diff --git a/java-tpu/google-cloud-tpu-bom/pom.xml b/java-tpu/google-cloud-tpu-bom/pom.xml index c0a79c13f974..3fb11032cdb6 100644 --- a/java-tpu/google-cloud-tpu-bom/pom.xml +++ b/java-tpu/google-cloud-tpu-bom/pom.xml @@ -39,6 +39,11 @@ grpc-google-cloud-tpu-v2alpha1 2.8.0-SNAPSHOT + + com.google.api.grpc + grpc-google-cloud-tpu-v2 + 2.8.0-SNAPSHOT + com.google.api.grpc proto-google-cloud-tpu-v1 @@ -49,6 +54,11 @@ proto-google-cloud-tpu-v2alpha1 2.8.0-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-tpu-v2 + 2.8.0-SNAPSHOT + diff --git a/java-tpu/google-cloud-tpu/pom.xml b/java-tpu/google-cloud-tpu/pom.xml index cbc91e59bfa4..aaf83a2337b7 100644 --- a/java-tpu/google-cloud-tpu/pom.xml +++ b/java-tpu/google-cloud-tpu/pom.xml @@ -41,6 +41,10 @@ proto-google-common-protos + + com.google.api.grpc + proto-google-cloud-tpu-v2 + com.google.api.grpc proto-google-cloud-tpu-v2alpha1 @@ -78,6 +82,11 @@ grpc-google-cloud-tpu-v1 test + + com.google.api.grpc + grpc-google-cloud-tpu-v2 + test + com.google.api.grpc grpc-google-cloud-tpu-v2alpha1 diff --git a/owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuClient.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuClient.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuClient.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuClient.java diff --git a/owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuSettings.java similarity index 99% rename from owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuSettings.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuSettings.java index 7d549ca1f20c..ecc8d3709c05 100644 --- a/owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuSettings.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuSettings.java @@ -31,7 +31,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.location.GetLocationRequest; diff --git a/owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/gapic_metadata.json b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/gapic_metadata.json rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/package-info.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/package-info.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/package-info.java diff --git a/owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/GrpcTpuCallableFactory.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/GrpcTpuCallableFactory.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/GrpcTpuCallableFactory.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/GrpcTpuCallableFactory.java diff --git a/owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/GrpcTpuStub.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/GrpcTpuStub.java similarity index 99% rename from owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/GrpcTpuStub.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/GrpcTpuStub.java index 684e2301247d..d6b4c7cb878a 100644 --- a/owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/GrpcTpuStub.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/GrpcTpuStub.java @@ -56,7 +56,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStub.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStub.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStub.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStub.java diff --git a/owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStubSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStubSettings.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStubSettings.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStubSettings.java diff --git a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuClient.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuClient.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuClient.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuClient.java diff --git a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuSettings.java similarity index 99% rename from owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuSettings.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuSettings.java index 4b00298043a9..0b5d389e57fb 100644 --- a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuSettings.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuSettings.java @@ -32,7 +32,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.location.GetLocationRequest; diff --git a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/gapic_metadata.json b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/gapic_metadata.json rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/gapic_metadata.json diff --git a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/package-info.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/package-info.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/package-info.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/package-info.java diff --git a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/GrpcTpuCallableFactory.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/GrpcTpuCallableFactory.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/GrpcTpuCallableFactory.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/GrpcTpuCallableFactory.java diff --git a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/GrpcTpuStub.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/GrpcTpuStub.java similarity index 99% rename from owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/GrpcTpuStub.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/GrpcTpuStub.java index eb977d9d9176..2837d3ea1b20 100644 --- a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/GrpcTpuStub.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/GrpcTpuStub.java @@ -61,7 +61,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/HttpJsonTpuCallableFactory.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/HttpJsonTpuCallableFactory.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/HttpJsonTpuCallableFactory.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/HttpJsonTpuCallableFactory.java diff --git a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/HttpJsonTpuStub.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/HttpJsonTpuStub.java similarity index 99% rename from owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/HttpJsonTpuStub.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/HttpJsonTpuStub.java index acbf0d3d8423..09d996c00c5c 100644 --- a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/HttpJsonTpuStub.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/HttpJsonTpuStub.java @@ -33,7 +33,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStub.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStub.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStub.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStub.java diff --git a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuClient.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuClient.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuClient.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuClient.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuSettings.java similarity index 99% rename from owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuSettings.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuSettings.java index e0ebc60e7c8d..d5c51bed9d59 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuSettings.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuSettings.java @@ -32,7 +32,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.location.GetLocationRequest; diff --git a/owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/gapic_metadata.json b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/gapic_metadata.json rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/gapic_metadata.json diff --git a/owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/package-info.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/package-info.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/package-info.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/package-info.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/GrpcTpuCallableFactory.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/GrpcTpuCallableFactory.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/GrpcTpuCallableFactory.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/GrpcTpuCallableFactory.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/GrpcTpuStub.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/GrpcTpuStub.java similarity index 99% rename from owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/GrpcTpuStub.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/GrpcTpuStub.java index 1eb67191472a..5760526c4511 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/GrpcTpuStub.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/GrpcTpuStub.java @@ -70,7 +70,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStub.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStub.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStub.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStub.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java rename to java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java diff --git a/owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/MockLocations.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/MockLocations.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/MockLocations.java rename to java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/MockLocations.java diff --git a/owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/MockLocationsImpl.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/MockLocationsImpl.java rename to java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/MockLocationsImpl.java diff --git a/owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/MockTpu.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/MockTpu.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/MockTpu.java rename to java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/MockTpu.java diff --git a/owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/MockTpuImpl.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/MockTpuImpl.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/MockTpuImpl.java rename to java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/MockTpuImpl.java diff --git a/owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/TpuClientTest.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/TpuClientTest.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/TpuClientTest.java rename to java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v1/TpuClientTest.java diff --git a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockLocations.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockLocations.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockLocations.java rename to java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockLocations.java diff --git a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockLocationsImpl.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockLocationsImpl.java rename to java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockLocationsImpl.java diff --git a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockTpu.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockTpu.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockTpu.java rename to java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockTpu.java diff --git a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockTpuImpl.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockTpuImpl.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockTpuImpl.java rename to java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockTpuImpl.java diff --git a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/TpuClientHttpJsonTest.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/TpuClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/TpuClientHttpJsonTest.java rename to java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/TpuClientHttpJsonTest.java diff --git a/owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/TpuClientTest.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/TpuClientTest.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/TpuClientTest.java rename to java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/TpuClientTest.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockLocations.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockLocations.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockLocations.java rename to java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockLocations.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockLocationsImpl.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockLocationsImpl.java rename to java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockLocationsImpl.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockTpu.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockTpu.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockTpu.java rename to java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockTpu.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockTpuImpl.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockTpuImpl.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockTpuImpl.java rename to java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockTpuImpl.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/TpuClientTest.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/TpuClientTest.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/TpuClientTest.java rename to java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/TpuClientTest.java diff --git a/java-tpu/grpc-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TpuGrpc.java b/java-tpu/grpc-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TpuGrpc.java new file mode 100644 index 000000000000..9820ab5a867f --- /dev/null +++ b/java-tpu/grpc-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TpuGrpc.java @@ -0,0 +1,1463 @@ +/* + * 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. + */ +package com.google.cloud.tpu.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Manages TPU nodes and other resources
+ * TPU API v1
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/tpu/v1/cloud_tpu.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TpuGrpc { + + private TpuGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.tpu.v1.Tpu"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.ListNodesRequest, com.google.cloud.tpu.v1.ListNodesResponse> + getListNodesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNodes", + requestType = com.google.cloud.tpu.v1.ListNodesRequest.class, + responseType = com.google.cloud.tpu.v1.ListNodesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.ListNodesRequest, com.google.cloud.tpu.v1.ListNodesResponse> + getListNodesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.ListNodesRequest, com.google.cloud.tpu.v1.ListNodesResponse> + getListNodesMethod; + if ((getListNodesMethod = TpuGrpc.getListNodesMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getListNodesMethod = TpuGrpc.getListNodesMethod) == null) { + TpuGrpc.getListNodesMethod = + getListNodesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v1.ListNodesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v1.ListNodesResponse.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListNodes")) + .build(); + } + } + } + return getListNodesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.GetNodeRequest, com.google.cloud.tpu.v1.Node> + getGetNodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNode", + requestType = com.google.cloud.tpu.v1.GetNodeRequest.class, + responseType = com.google.cloud.tpu.v1.Node.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.GetNodeRequest, com.google.cloud.tpu.v1.Node> + getGetNodeMethod() { + io.grpc.MethodDescriptor + getGetNodeMethod; + if ((getGetNodeMethod = TpuGrpc.getGetNodeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getGetNodeMethod = TpuGrpc.getGetNodeMethod) == null) { + TpuGrpc.getGetNodeMethod = + getGetNodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v1.GetNodeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v1.Node.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetNode")) + .build(); + } + } + } + return getGetNodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.CreateNodeRequest, com.google.longrunning.Operation> + getCreateNodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateNode", + requestType = com.google.cloud.tpu.v1.CreateNodeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.CreateNodeRequest, com.google.longrunning.Operation> + getCreateNodeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.CreateNodeRequest, com.google.longrunning.Operation> + getCreateNodeMethod; + if ((getCreateNodeMethod = TpuGrpc.getCreateNodeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getCreateNodeMethod = TpuGrpc.getCreateNodeMethod) == null) { + TpuGrpc.getCreateNodeMethod = + getCreateNodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v1.CreateNodeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("CreateNode")) + .build(); + } + } + } + return getCreateNodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.DeleteNodeRequest, com.google.longrunning.Operation> + getDeleteNodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteNode", + requestType = com.google.cloud.tpu.v1.DeleteNodeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.DeleteNodeRequest, com.google.longrunning.Operation> + getDeleteNodeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.DeleteNodeRequest, com.google.longrunning.Operation> + getDeleteNodeMethod; + if ((getDeleteNodeMethod = TpuGrpc.getDeleteNodeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getDeleteNodeMethod = TpuGrpc.getDeleteNodeMethod) == null) { + TpuGrpc.getDeleteNodeMethod = + getDeleteNodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v1.DeleteNodeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("DeleteNode")) + .build(); + } + } + } + return getDeleteNodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.ReimageNodeRequest, com.google.longrunning.Operation> + getReimageNodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ReimageNode", + requestType = com.google.cloud.tpu.v1.ReimageNodeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.ReimageNodeRequest, com.google.longrunning.Operation> + getReimageNodeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.ReimageNodeRequest, com.google.longrunning.Operation> + getReimageNodeMethod; + if ((getReimageNodeMethod = TpuGrpc.getReimageNodeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getReimageNodeMethod = TpuGrpc.getReimageNodeMethod) == null) { + TpuGrpc.getReimageNodeMethod = + getReimageNodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReimageNode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v1.ReimageNodeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ReimageNode")) + .build(); + } + } + } + return getReimageNodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.StopNodeRequest, com.google.longrunning.Operation> + getStopNodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopNode", + requestType = com.google.cloud.tpu.v1.StopNodeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.StopNodeRequest, com.google.longrunning.Operation> + getStopNodeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.StopNodeRequest, com.google.longrunning.Operation> + getStopNodeMethod; + if ((getStopNodeMethod = TpuGrpc.getStopNodeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getStopNodeMethod = TpuGrpc.getStopNodeMethod) == null) { + TpuGrpc.getStopNodeMethod = + getStopNodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopNode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v1.StopNodeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("StopNode")) + .build(); + } + } + } + return getStopNodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.StartNodeRequest, com.google.longrunning.Operation> + getStartNodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartNode", + requestType = com.google.cloud.tpu.v1.StartNodeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.StartNodeRequest, com.google.longrunning.Operation> + getStartNodeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.StartNodeRequest, com.google.longrunning.Operation> + getStartNodeMethod; + if ((getStartNodeMethod = TpuGrpc.getStartNodeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getStartNodeMethod = TpuGrpc.getStartNodeMethod) == null) { + TpuGrpc.getStartNodeMethod = + getStartNodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartNode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v1.StartNodeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("StartNode")) + .build(); + } + } + } + return getStartNodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest, + com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse> + getListTensorFlowVersionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTensorFlowVersions", + requestType = com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest.class, + responseType = com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest, + com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse> + getListTensorFlowVersionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest, + com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse> + getListTensorFlowVersionsMethod; + if ((getListTensorFlowVersionsMethod = TpuGrpc.getListTensorFlowVersionsMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getListTensorFlowVersionsMethod = TpuGrpc.getListTensorFlowVersionsMethod) == null) { + TpuGrpc.getListTensorFlowVersionsMethod = + getListTensorFlowVersionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListTensorFlowVersions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TpuMethodDescriptorSupplier("ListTensorFlowVersions")) + .build(); + } + } + } + return getListTensorFlowVersionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.GetTensorFlowVersionRequest, + com.google.cloud.tpu.v1.TensorFlowVersion> + getGetTensorFlowVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTensorFlowVersion", + requestType = com.google.cloud.tpu.v1.GetTensorFlowVersionRequest.class, + responseType = com.google.cloud.tpu.v1.TensorFlowVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.GetTensorFlowVersionRequest, + com.google.cloud.tpu.v1.TensorFlowVersion> + getGetTensorFlowVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.GetTensorFlowVersionRequest, + com.google.cloud.tpu.v1.TensorFlowVersion> + getGetTensorFlowVersionMethod; + if ((getGetTensorFlowVersionMethod = TpuGrpc.getGetTensorFlowVersionMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getGetTensorFlowVersionMethod = TpuGrpc.getGetTensorFlowVersionMethod) == null) { + TpuGrpc.getGetTensorFlowVersionMethod = + getGetTensorFlowVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetTensorFlowVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v1.GetTensorFlowVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v1.TensorFlowVersion.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetTensorFlowVersion")) + .build(); + } + } + } + return getGetTensorFlowVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.ListAcceleratorTypesRequest, + com.google.cloud.tpu.v1.ListAcceleratorTypesResponse> + getListAcceleratorTypesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAcceleratorTypes", + requestType = com.google.cloud.tpu.v1.ListAcceleratorTypesRequest.class, + responseType = com.google.cloud.tpu.v1.ListAcceleratorTypesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.ListAcceleratorTypesRequest, + com.google.cloud.tpu.v1.ListAcceleratorTypesResponse> + getListAcceleratorTypesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.ListAcceleratorTypesRequest, + com.google.cloud.tpu.v1.ListAcceleratorTypesResponse> + getListAcceleratorTypesMethod; + if ((getListAcceleratorTypesMethod = TpuGrpc.getListAcceleratorTypesMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getListAcceleratorTypesMethod = TpuGrpc.getListAcceleratorTypesMethod) == null) { + TpuGrpc.getListAcceleratorTypesMethod = + getListAcceleratorTypesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAcceleratorTypes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v1.ListAcceleratorTypesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v1.ListAcceleratorTypesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListAcceleratorTypes")) + .build(); + } + } + } + return getListAcceleratorTypesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.GetAcceleratorTypeRequest, + com.google.cloud.tpu.v1.AcceleratorType> + getGetAcceleratorTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAcceleratorType", + requestType = com.google.cloud.tpu.v1.GetAcceleratorTypeRequest.class, + responseType = com.google.cloud.tpu.v1.AcceleratorType.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.GetAcceleratorTypeRequest, + com.google.cloud.tpu.v1.AcceleratorType> + getGetAcceleratorTypeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v1.GetAcceleratorTypeRequest, + com.google.cloud.tpu.v1.AcceleratorType> + getGetAcceleratorTypeMethod; + if ((getGetAcceleratorTypeMethod = TpuGrpc.getGetAcceleratorTypeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getGetAcceleratorTypeMethod = TpuGrpc.getGetAcceleratorTypeMethod) == null) { + TpuGrpc.getGetAcceleratorTypeMethod = + getGetAcceleratorTypeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAcceleratorType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v1.GetAcceleratorTypeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v1.AcceleratorType.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetAcceleratorType")) + .build(); + } + } + } + return getGetAcceleratorTypeMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static TpuStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TpuStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TpuStub(channel, callOptions); + } + }; + return TpuStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TpuBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TpuBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TpuBlockingStub(channel, callOptions); + } + }; + return TpuBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static TpuFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TpuFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TpuFutureStub(channel, callOptions); + } + }; + return TpuFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Manages TPU nodes and other resources
+   * TPU API v1
+   * 
+ */ + public abstract static class TpuImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists nodes.
+     * 
+ */ + public void listNodes( + com.google.cloud.tpu.v1.ListNodesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the details of a node.
+     * 
+ */ + public void getNode( + com.google.cloud.tpu.v1.GetNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a node.
+     * 
+ */ + public void createNode( + com.google.cloud.tpu.v1.CreateNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a node.
+     * 
+ */ + public void deleteNode( + com.google.cloud.tpu.v1.DeleteNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Reimages a node's OS.
+     * 
+ */ + public void reimageNode( + com.google.cloud.tpu.v1.ReimageNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getReimageNodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Stops a node, this operation is only available with single TPU nodes.
+     * 
+ */ + public void stopNode( + com.google.cloud.tpu.v1.StopNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopNodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts a node.
+     * 
+ */ + public void startNode( + com.google.cloud.tpu.v1.StartNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartNodeMethod(), responseObserver); + } + + /** + * + * + *
+     * List TensorFlow versions supported by this API.
+     * 
+ */ + public void listTensorFlowVersions( + com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTensorFlowVersionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets TensorFlow Version.
+     * 
+ */ + public void getTensorFlowVersion( + com.google.cloud.tpu.v1.GetTensorFlowVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTensorFlowVersionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists accelerator types supported by this API.
+     * 
+ */ + public void listAcceleratorTypes( + com.google.cloud.tpu.v1.ListAcceleratorTypesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAcceleratorTypesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets AcceleratorType.
+     * 
+ */ + public void getAcceleratorType( + com.google.cloud.tpu.v1.GetAcceleratorTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAcceleratorTypeMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListNodesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v1.ListNodesRequest, + com.google.cloud.tpu.v1.ListNodesResponse>(this, METHODID_LIST_NODES))) + .addMethod( + getGetNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v1.GetNodeRequest, com.google.cloud.tpu.v1.Node>( + this, METHODID_GET_NODE))) + .addMethod( + getCreateNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v1.CreateNodeRequest, com.google.longrunning.Operation>( + this, METHODID_CREATE_NODE))) + .addMethod( + getDeleteNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v1.DeleteNodeRequest, com.google.longrunning.Operation>( + this, METHODID_DELETE_NODE))) + .addMethod( + getReimageNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v1.ReimageNodeRequest, com.google.longrunning.Operation>( + this, METHODID_REIMAGE_NODE))) + .addMethod( + getStopNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v1.StopNodeRequest, com.google.longrunning.Operation>( + this, METHODID_STOP_NODE))) + .addMethod( + getStartNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v1.StartNodeRequest, com.google.longrunning.Operation>( + this, METHODID_START_NODE))) + .addMethod( + getListTensorFlowVersionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest, + com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse>( + this, METHODID_LIST_TENSOR_FLOW_VERSIONS))) + .addMethod( + getGetTensorFlowVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v1.GetTensorFlowVersionRequest, + com.google.cloud.tpu.v1.TensorFlowVersion>( + this, METHODID_GET_TENSOR_FLOW_VERSION))) + .addMethod( + getListAcceleratorTypesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v1.ListAcceleratorTypesRequest, + com.google.cloud.tpu.v1.ListAcceleratorTypesResponse>( + this, METHODID_LIST_ACCELERATOR_TYPES))) + .addMethod( + getGetAcceleratorTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v1.GetAcceleratorTypeRequest, + com.google.cloud.tpu.v1.AcceleratorType>( + this, METHODID_GET_ACCELERATOR_TYPE))) + .build(); + } + } + + /** + * + * + *
+   * Manages TPU nodes and other resources
+   * TPU API v1
+   * 
+ */ + public static final class TpuStub extends io.grpc.stub.AbstractAsyncStub { + private TpuStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TpuStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TpuStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists nodes.
+     * 
+ */ + public void listNodes( + com.google.cloud.tpu.v1.ListNodesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNodesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets the details of a node.
+     * 
+ */ + public void getNode( + com.google.cloud.tpu.v1.GetNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a node.
+     * 
+ */ + public void createNode( + com.google.cloud.tpu.v1.CreateNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes a node.
+     * 
+ */ + public void deleteNode( + com.google.cloud.tpu.v1.DeleteNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteNodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Reimages a node's OS.
+     * 
+ */ + public void reimageNode( + com.google.cloud.tpu.v1.ReimageNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getReimageNodeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Stops a node, this operation is only available with single TPU nodes.
+     * 
+ */ + public void stopNode( + com.google.cloud.tpu.v1.StopNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopNodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Starts a node.
+     * 
+ */ + public void startNode( + com.google.cloud.tpu.v1.StartNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartNodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * List TensorFlow versions supported by this API.
+     * 
+ */ + public void listTensorFlowVersions( + com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTensorFlowVersionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets TensorFlow Version.
+     * 
+ */ + public void getTensorFlowVersion( + com.google.cloud.tpu.v1.GetTensorFlowVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTensorFlowVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists accelerator types supported by this API.
+     * 
+ */ + public void listAcceleratorTypes( + com.google.cloud.tpu.v1.ListAcceleratorTypesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAcceleratorTypesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets AcceleratorType.
+     * 
+ */ + public void getAcceleratorType( + com.google.cloud.tpu.v1.GetAcceleratorTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAcceleratorTypeMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Manages TPU nodes and other resources
+   * TPU API v1
+   * 
+ */ + public static final class TpuBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TpuBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TpuBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TpuBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists nodes.
+     * 
+ */ + public com.google.cloud.tpu.v1.ListNodesResponse listNodes( + com.google.cloud.tpu.v1.ListNodesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNodesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the details of a node.
+     * 
+ */ + public com.google.cloud.tpu.v1.Node getNode(com.google.cloud.tpu.v1.GetNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNodeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a node.
+     * 
+ */ + public com.google.longrunning.Operation createNode( + com.google.cloud.tpu.v1.CreateNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNodeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a node.
+     * 
+ */ + public com.google.longrunning.Operation deleteNode( + com.google.cloud.tpu.v1.DeleteNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNodeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Reimages a node's OS.
+     * 
+ */ + public com.google.longrunning.Operation reimageNode( + com.google.cloud.tpu.v1.ReimageNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getReimageNodeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stops a node, this operation is only available with single TPU nodes.
+     * 
+ */ + public com.google.longrunning.Operation stopNode( + com.google.cloud.tpu.v1.StopNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopNodeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts a node.
+     * 
+ */ + public com.google.longrunning.Operation startNode( + com.google.cloud.tpu.v1.StartNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartNodeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List TensorFlow versions supported by this API.
+     * 
+ */ + public com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse listTensorFlowVersions( + com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTensorFlowVersionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets TensorFlow Version.
+     * 
+ */ + public com.google.cloud.tpu.v1.TensorFlowVersion getTensorFlowVersion( + com.google.cloud.tpu.v1.GetTensorFlowVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTensorFlowVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists accelerator types supported by this API.
+     * 
+ */ + public com.google.cloud.tpu.v1.ListAcceleratorTypesResponse listAcceleratorTypes( + com.google.cloud.tpu.v1.ListAcceleratorTypesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAcceleratorTypesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets AcceleratorType.
+     * 
+ */ + public com.google.cloud.tpu.v1.AcceleratorType getAcceleratorType( + com.google.cloud.tpu.v1.GetAcceleratorTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAcceleratorTypeMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Manages TPU nodes and other resources
+   * TPU API v1
+   * 
+ */ + public static final class TpuFutureStub extends io.grpc.stub.AbstractFutureStub { + private TpuFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TpuFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TpuFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists nodes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v1.ListNodesResponse> + listNodes(com.google.cloud.tpu.v1.ListNodesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNodesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the details of a node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getNode( + com.google.cloud.tpu.v1.GetNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNodeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createNode(com.google.cloud.tpu.v1.CreateNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateNodeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteNode(com.google.cloud.tpu.v1.DeleteNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteNodeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Reimages a node's OS.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + reimageNode(com.google.cloud.tpu.v1.ReimageNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getReimageNodeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stops a node, this operation is only available with single TPU nodes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + stopNode(com.google.cloud.tpu.v1.StopNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopNodeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts a node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + startNode(com.google.cloud.tpu.v1.StartNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartNodeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List TensorFlow versions supported by this API.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse> + listTensorFlowVersions(com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTensorFlowVersionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets TensorFlow Version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v1.TensorFlowVersion> + getTensorFlowVersion(com.google.cloud.tpu.v1.GetTensorFlowVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTensorFlowVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists accelerator types supported by this API.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v1.ListAcceleratorTypesResponse> + listAcceleratorTypes(com.google.cloud.tpu.v1.ListAcceleratorTypesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAcceleratorTypesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets AcceleratorType.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v1.AcceleratorType> + getAcceleratorType(com.google.cloud.tpu.v1.GetAcceleratorTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAcceleratorTypeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_NODES = 0; + private static final int METHODID_GET_NODE = 1; + private static final int METHODID_CREATE_NODE = 2; + private static final int METHODID_DELETE_NODE = 3; + private static final int METHODID_REIMAGE_NODE = 4; + private static final int METHODID_STOP_NODE = 5; + private static final int METHODID_START_NODE = 6; + private static final int METHODID_LIST_TENSOR_FLOW_VERSIONS = 7; + private static final int METHODID_GET_TENSOR_FLOW_VERSION = 8; + private static final int METHODID_LIST_ACCELERATOR_TYPES = 9; + private static final int METHODID_GET_ACCELERATOR_TYPE = 10; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final TpuImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TpuImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_NODES: + serviceImpl.listNodes( + (com.google.cloud.tpu.v1.ListNodesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_NODE: + serviceImpl.getNode( + (com.google.cloud.tpu.v1.GetNodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_NODE: + serviceImpl.createNode( + (com.google.cloud.tpu.v1.CreateNodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_NODE: + serviceImpl.deleteNode( + (com.google.cloud.tpu.v1.DeleteNodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REIMAGE_NODE: + serviceImpl.reimageNode( + (com.google.cloud.tpu.v1.ReimageNodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_NODE: + serviceImpl.stopNode( + (com.google.cloud.tpu.v1.StopNodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_NODE: + serviceImpl.startNode( + (com.google.cloud.tpu.v1.StartNodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TENSOR_FLOW_VERSIONS: + serviceImpl.listTensorFlowVersions( + (com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_TENSOR_FLOW_VERSION: + serviceImpl.getTensorFlowVersion( + (com.google.cloud.tpu.v1.GetTensorFlowVersionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ACCELERATOR_TYPES: + serviceImpl.listAcceleratorTypes( + (com.google.cloud.tpu.v1.ListAcceleratorTypesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_ACCELERATOR_TYPE: + serviceImpl.getAcceleratorType( + (com.google.cloud.tpu.v1.GetAcceleratorTypeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class TpuBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TpuBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Tpu"); + } + } + + private static final class TpuFileDescriptorSupplier extends TpuBaseDescriptorSupplier { + TpuFileDescriptorSupplier() {} + } + + private static final class TpuMethodDescriptorSupplier extends TpuBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TpuMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (TpuGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TpuFileDescriptorSupplier()) + .addMethod(getListNodesMethod()) + .addMethod(getGetNodeMethod()) + .addMethod(getCreateNodeMethod()) + .addMethod(getDeleteNodeMethod()) + .addMethod(getReimageNodeMethod()) + .addMethod(getStopNodeMethod()) + .addMethod(getStartNodeMethod()) + .addMethod(getListTensorFlowVersionsMethod()) + .addMethod(getGetTensorFlowVersionMethod()) + .addMethod(getListAcceleratorTypesMethod()) + .addMethod(getGetAcceleratorTypeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-tpu/grpc-google-cloud-tpu-v2/pom.xml b/java-tpu/grpc-google-cloud-tpu-v2/pom.xml new file mode 100644 index 000000000000..8ec16dc37cc0 --- /dev/null +++ b/java-tpu/grpc-google-cloud-tpu-v2/pom.xml @@ -0,0 +1,69 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-tpu-v2 + 2.8.0-SNAPSHOT + grpc-google-cloud-tpu-v2 + GRPC library for google-cloud-tpu + + com.google.cloud + google-cloud-tpu-parent + 2.8.0-SNAPSHOT + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-cloud-tpu-v2 + + + com.google.guava + guava + + + + + + java9 + + [9,) + + + + javax.annotation + javax.annotation-api + + + + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + + \ No newline at end of file diff --git a/java-tpu/grpc-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/TpuGrpc.java b/java-tpu/grpc-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/TpuGrpc.java new file mode 100644 index 000000000000..97342624abb5 --- /dev/null +++ b/java-tpu/grpc-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/TpuGrpc.java @@ -0,0 +1,1696 @@ +/* + * 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. + */ +package com.google.cloud.tpu.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Manages TPU nodes and other resources
+ * TPU API v2
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/tpu/v2/cloud_tpu.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TpuGrpc { + + private TpuGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.tpu.v2.Tpu"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.ListNodesRequest, com.google.cloud.tpu.v2.ListNodesResponse> + getListNodesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNodes", + requestType = com.google.cloud.tpu.v2.ListNodesRequest.class, + responseType = com.google.cloud.tpu.v2.ListNodesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.ListNodesRequest, com.google.cloud.tpu.v2.ListNodesResponse> + getListNodesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.ListNodesRequest, com.google.cloud.tpu.v2.ListNodesResponse> + getListNodesMethod; + if ((getListNodesMethod = TpuGrpc.getListNodesMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getListNodesMethod = TpuGrpc.getListNodesMethod) == null) { + TpuGrpc.getListNodesMethod = + getListNodesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.ListNodesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.ListNodesResponse.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListNodes")) + .build(); + } + } + } + return getListNodesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.GetNodeRequest, com.google.cloud.tpu.v2.Node> + getGetNodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNode", + requestType = com.google.cloud.tpu.v2.GetNodeRequest.class, + responseType = com.google.cloud.tpu.v2.Node.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.GetNodeRequest, com.google.cloud.tpu.v2.Node> + getGetNodeMethod() { + io.grpc.MethodDescriptor + getGetNodeMethod; + if ((getGetNodeMethod = TpuGrpc.getGetNodeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getGetNodeMethod = TpuGrpc.getGetNodeMethod) == null) { + TpuGrpc.getGetNodeMethod = + getGetNodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.GetNodeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.Node.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetNode")) + .build(); + } + } + } + return getGetNodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.CreateNodeRequest, com.google.longrunning.Operation> + getCreateNodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateNode", + requestType = com.google.cloud.tpu.v2.CreateNodeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.CreateNodeRequest, com.google.longrunning.Operation> + getCreateNodeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.CreateNodeRequest, com.google.longrunning.Operation> + getCreateNodeMethod; + if ((getCreateNodeMethod = TpuGrpc.getCreateNodeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getCreateNodeMethod = TpuGrpc.getCreateNodeMethod) == null) { + TpuGrpc.getCreateNodeMethod = + getCreateNodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.CreateNodeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("CreateNode")) + .build(); + } + } + } + return getCreateNodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.DeleteNodeRequest, com.google.longrunning.Operation> + getDeleteNodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteNode", + requestType = com.google.cloud.tpu.v2.DeleteNodeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.DeleteNodeRequest, com.google.longrunning.Operation> + getDeleteNodeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.DeleteNodeRequest, com.google.longrunning.Operation> + getDeleteNodeMethod; + if ((getDeleteNodeMethod = TpuGrpc.getDeleteNodeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getDeleteNodeMethod = TpuGrpc.getDeleteNodeMethod) == null) { + TpuGrpc.getDeleteNodeMethod = + getDeleteNodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.DeleteNodeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("DeleteNode")) + .build(); + } + } + } + return getDeleteNodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.StopNodeRequest, com.google.longrunning.Operation> + getStopNodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopNode", + requestType = com.google.cloud.tpu.v2.StopNodeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.StopNodeRequest, com.google.longrunning.Operation> + getStopNodeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.StopNodeRequest, com.google.longrunning.Operation> + getStopNodeMethod; + if ((getStopNodeMethod = TpuGrpc.getStopNodeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getStopNodeMethod = TpuGrpc.getStopNodeMethod) == null) { + TpuGrpc.getStopNodeMethod = + getStopNodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopNode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.StopNodeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("StopNode")) + .build(); + } + } + } + return getStopNodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.StartNodeRequest, com.google.longrunning.Operation> + getStartNodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartNode", + requestType = com.google.cloud.tpu.v2.StartNodeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.StartNodeRequest, com.google.longrunning.Operation> + getStartNodeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.StartNodeRequest, com.google.longrunning.Operation> + getStartNodeMethod; + if ((getStartNodeMethod = TpuGrpc.getStartNodeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getStartNodeMethod = TpuGrpc.getStartNodeMethod) == null) { + TpuGrpc.getStartNodeMethod = + getStartNodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartNode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.StartNodeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("StartNode")) + .build(); + } + } + } + return getStartNodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.UpdateNodeRequest, com.google.longrunning.Operation> + getUpdateNodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNode", + requestType = com.google.cloud.tpu.v2.UpdateNodeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.UpdateNodeRequest, com.google.longrunning.Operation> + getUpdateNodeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.UpdateNodeRequest, com.google.longrunning.Operation> + getUpdateNodeMethod; + if ((getUpdateNodeMethod = TpuGrpc.getUpdateNodeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getUpdateNodeMethod = TpuGrpc.getUpdateNodeMethod) == null) { + TpuGrpc.getUpdateNodeMethod = + getUpdateNodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.UpdateNodeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("UpdateNode")) + .build(); + } + } + } + return getUpdateNodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.GenerateServiceIdentityRequest, + com.google.cloud.tpu.v2.GenerateServiceIdentityResponse> + getGenerateServiceIdentityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateServiceIdentity", + requestType = com.google.cloud.tpu.v2.GenerateServiceIdentityRequest.class, + responseType = com.google.cloud.tpu.v2.GenerateServiceIdentityResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.GenerateServiceIdentityRequest, + com.google.cloud.tpu.v2.GenerateServiceIdentityResponse> + getGenerateServiceIdentityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.GenerateServiceIdentityRequest, + com.google.cloud.tpu.v2.GenerateServiceIdentityResponse> + getGenerateServiceIdentityMethod; + if ((getGenerateServiceIdentityMethod = TpuGrpc.getGenerateServiceIdentityMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getGenerateServiceIdentityMethod = TpuGrpc.getGenerateServiceIdentityMethod) == null) { + TpuGrpc.getGenerateServiceIdentityMethod = + getGenerateServiceIdentityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateServiceIdentity")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.GenerateServiceIdentityRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.GenerateServiceIdentityResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TpuMethodDescriptorSupplier("GenerateServiceIdentity")) + .build(); + } + } + } + return getGenerateServiceIdentityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.ListAcceleratorTypesRequest, + com.google.cloud.tpu.v2.ListAcceleratorTypesResponse> + getListAcceleratorTypesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAcceleratorTypes", + requestType = com.google.cloud.tpu.v2.ListAcceleratorTypesRequest.class, + responseType = com.google.cloud.tpu.v2.ListAcceleratorTypesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.ListAcceleratorTypesRequest, + com.google.cloud.tpu.v2.ListAcceleratorTypesResponse> + getListAcceleratorTypesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.ListAcceleratorTypesRequest, + com.google.cloud.tpu.v2.ListAcceleratorTypesResponse> + getListAcceleratorTypesMethod; + if ((getListAcceleratorTypesMethod = TpuGrpc.getListAcceleratorTypesMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getListAcceleratorTypesMethod = TpuGrpc.getListAcceleratorTypesMethod) == null) { + TpuGrpc.getListAcceleratorTypesMethod = + getListAcceleratorTypesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAcceleratorTypes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.ListAcceleratorTypesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.ListAcceleratorTypesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListAcceleratorTypes")) + .build(); + } + } + } + return getListAcceleratorTypesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.GetAcceleratorTypeRequest, + com.google.cloud.tpu.v2.AcceleratorType> + getGetAcceleratorTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAcceleratorType", + requestType = com.google.cloud.tpu.v2.GetAcceleratorTypeRequest.class, + responseType = com.google.cloud.tpu.v2.AcceleratorType.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.GetAcceleratorTypeRequest, + com.google.cloud.tpu.v2.AcceleratorType> + getGetAcceleratorTypeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.GetAcceleratorTypeRequest, + com.google.cloud.tpu.v2.AcceleratorType> + getGetAcceleratorTypeMethod; + if ((getGetAcceleratorTypeMethod = TpuGrpc.getGetAcceleratorTypeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getGetAcceleratorTypeMethod = TpuGrpc.getGetAcceleratorTypeMethod) == null) { + TpuGrpc.getGetAcceleratorTypeMethod = + getGetAcceleratorTypeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAcceleratorType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.GetAcceleratorTypeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.AcceleratorType.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetAcceleratorType")) + .build(); + } + } + } + return getGetAcceleratorTypeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.ListRuntimeVersionsRequest, + com.google.cloud.tpu.v2.ListRuntimeVersionsResponse> + getListRuntimeVersionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRuntimeVersions", + requestType = com.google.cloud.tpu.v2.ListRuntimeVersionsRequest.class, + responseType = com.google.cloud.tpu.v2.ListRuntimeVersionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.ListRuntimeVersionsRequest, + com.google.cloud.tpu.v2.ListRuntimeVersionsResponse> + getListRuntimeVersionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.ListRuntimeVersionsRequest, + com.google.cloud.tpu.v2.ListRuntimeVersionsResponse> + getListRuntimeVersionsMethod; + if ((getListRuntimeVersionsMethod = TpuGrpc.getListRuntimeVersionsMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getListRuntimeVersionsMethod = TpuGrpc.getListRuntimeVersionsMethod) == null) { + TpuGrpc.getListRuntimeVersionsMethod = + getListRuntimeVersionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListRuntimeVersions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.ListRuntimeVersionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.ListRuntimeVersionsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListRuntimeVersions")) + .build(); + } + } + } + return getListRuntimeVersionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.GetRuntimeVersionRequest, com.google.cloud.tpu.v2.RuntimeVersion> + getGetRuntimeVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRuntimeVersion", + requestType = com.google.cloud.tpu.v2.GetRuntimeVersionRequest.class, + responseType = com.google.cloud.tpu.v2.RuntimeVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.GetRuntimeVersionRequest, com.google.cloud.tpu.v2.RuntimeVersion> + getGetRuntimeVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.GetRuntimeVersionRequest, + com.google.cloud.tpu.v2.RuntimeVersion> + getGetRuntimeVersionMethod; + if ((getGetRuntimeVersionMethod = TpuGrpc.getGetRuntimeVersionMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getGetRuntimeVersionMethod = TpuGrpc.getGetRuntimeVersionMethod) == null) { + TpuGrpc.getGetRuntimeVersionMethod = + getGetRuntimeVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRuntimeVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.GetRuntimeVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.RuntimeVersion.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetRuntimeVersion")) + .build(); + } + } + } + return getGetRuntimeVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.GetGuestAttributesRequest, + com.google.cloud.tpu.v2.GetGuestAttributesResponse> + getGetGuestAttributesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGuestAttributes", + requestType = com.google.cloud.tpu.v2.GetGuestAttributesRequest.class, + responseType = com.google.cloud.tpu.v2.GetGuestAttributesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.GetGuestAttributesRequest, + com.google.cloud.tpu.v2.GetGuestAttributesResponse> + getGetGuestAttributesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.GetGuestAttributesRequest, + com.google.cloud.tpu.v2.GetGuestAttributesResponse> + getGetGuestAttributesMethod; + if ((getGetGuestAttributesMethod = TpuGrpc.getGetGuestAttributesMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getGetGuestAttributesMethod = TpuGrpc.getGetGuestAttributesMethod) == null) { + TpuGrpc.getGetGuestAttributesMethod = + getGetGuestAttributesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGuestAttributes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.GetGuestAttributesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.GetGuestAttributesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetGuestAttributes")) + .build(); + } + } + } + return getGetGuestAttributesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static TpuStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TpuStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TpuStub(channel, callOptions); + } + }; + return TpuStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TpuBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TpuBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TpuBlockingStub(channel, callOptions); + } + }; + return TpuBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static TpuFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TpuFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TpuFutureStub(channel, callOptions); + } + }; + return TpuFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Manages TPU nodes and other resources
+   * TPU API v2
+   * 
+ */ + public abstract static class TpuImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists nodes.
+     * 
+ */ + public void listNodes( + com.google.cloud.tpu.v2.ListNodesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the details of a node.
+     * 
+ */ + public void getNode( + com.google.cloud.tpu.v2.GetNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a node.
+     * 
+ */ + public void createNode( + com.google.cloud.tpu.v2.CreateNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a node.
+     * 
+ */ + public void deleteNode( + com.google.cloud.tpu.v2.DeleteNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Stops a node. This operation is only available with single TPU nodes.
+     * 
+ */ + public void stopNode( + com.google.cloud.tpu.v2.StopNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopNodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts a node.
+     * 
+ */ + public void startNode( + com.google.cloud.tpu.v2.StartNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartNodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the configurations of a node.
+     * 
+ */ + public void updateNode( + com.google.cloud.tpu.v2.UpdateNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Generates the Cloud TPU service identity for the project.
+     * 
+ */ + public void generateServiceIdentity( + com.google.cloud.tpu.v2.GenerateServiceIdentityRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateServiceIdentityMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists accelerator types supported by this API.
+     * 
+ */ + public void listAcceleratorTypes( + com.google.cloud.tpu.v2.ListAcceleratorTypesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAcceleratorTypesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets AcceleratorType.
+     * 
+ */ + public void getAcceleratorType( + com.google.cloud.tpu.v2.GetAcceleratorTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAcceleratorTypeMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists runtime versions supported by this API.
+     * 
+ */ + public void listRuntimeVersions( + com.google.cloud.tpu.v2.ListRuntimeVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRuntimeVersionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a runtime version.
+     * 
+ */ + public void getRuntimeVersion( + com.google.cloud.tpu.v2.GetRuntimeVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetRuntimeVersionMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the guest attributes for the node.
+     * 
+ */ + public void getGuestAttributes( + com.google.cloud.tpu.v2.GetGuestAttributesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetGuestAttributesMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListNodesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2.ListNodesRequest, + com.google.cloud.tpu.v2.ListNodesResponse>(this, METHODID_LIST_NODES))) + .addMethod( + getGetNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2.GetNodeRequest, com.google.cloud.tpu.v2.Node>( + this, METHODID_GET_NODE))) + .addMethod( + getCreateNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2.CreateNodeRequest, com.google.longrunning.Operation>( + this, METHODID_CREATE_NODE))) + .addMethod( + getDeleteNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2.DeleteNodeRequest, com.google.longrunning.Operation>( + this, METHODID_DELETE_NODE))) + .addMethod( + getStopNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2.StopNodeRequest, com.google.longrunning.Operation>( + this, METHODID_STOP_NODE))) + .addMethod( + getStartNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2.StartNodeRequest, com.google.longrunning.Operation>( + this, METHODID_START_NODE))) + .addMethod( + getUpdateNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2.UpdateNodeRequest, com.google.longrunning.Operation>( + this, METHODID_UPDATE_NODE))) + .addMethod( + getGenerateServiceIdentityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2.GenerateServiceIdentityRequest, + com.google.cloud.tpu.v2.GenerateServiceIdentityResponse>( + this, METHODID_GENERATE_SERVICE_IDENTITY))) + .addMethod( + getListAcceleratorTypesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2.ListAcceleratorTypesRequest, + com.google.cloud.tpu.v2.ListAcceleratorTypesResponse>( + this, METHODID_LIST_ACCELERATOR_TYPES))) + .addMethod( + getGetAcceleratorTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2.GetAcceleratorTypeRequest, + com.google.cloud.tpu.v2.AcceleratorType>( + this, METHODID_GET_ACCELERATOR_TYPE))) + .addMethod( + getListRuntimeVersionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2.ListRuntimeVersionsRequest, + com.google.cloud.tpu.v2.ListRuntimeVersionsResponse>( + this, METHODID_LIST_RUNTIME_VERSIONS))) + .addMethod( + getGetRuntimeVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2.GetRuntimeVersionRequest, + com.google.cloud.tpu.v2.RuntimeVersion>(this, METHODID_GET_RUNTIME_VERSION))) + .addMethod( + getGetGuestAttributesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2.GetGuestAttributesRequest, + com.google.cloud.tpu.v2.GetGuestAttributesResponse>( + this, METHODID_GET_GUEST_ATTRIBUTES))) + .build(); + } + } + + /** + * + * + *
+   * Manages TPU nodes and other resources
+   * TPU API v2
+   * 
+ */ + public static final class TpuStub extends io.grpc.stub.AbstractAsyncStub { + private TpuStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TpuStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TpuStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists nodes.
+     * 
+ */ + public void listNodes( + com.google.cloud.tpu.v2.ListNodesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNodesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets the details of a node.
+     * 
+ */ + public void getNode( + com.google.cloud.tpu.v2.GetNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a node.
+     * 
+ */ + public void createNode( + com.google.cloud.tpu.v2.CreateNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes a node.
+     * 
+ */ + public void deleteNode( + com.google.cloud.tpu.v2.DeleteNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteNodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Stops a node. This operation is only available with single TPU nodes.
+     * 
+ */ + public void stopNode( + com.google.cloud.tpu.v2.StopNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopNodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Starts a node.
+     * 
+ */ + public void startNode( + com.google.cloud.tpu.v2.StartNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartNodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates the configurations of a node.
+     * 
+ */ + public void updateNode( + com.google.cloud.tpu.v2.UpdateNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Generates the Cloud TPU service identity for the project.
+     * 
+ */ + public void generateServiceIdentity( + com.google.cloud.tpu.v2.GenerateServiceIdentityRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateServiceIdentityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists accelerator types supported by this API.
+     * 
+ */ + public void listAcceleratorTypes( + com.google.cloud.tpu.v2.ListAcceleratorTypesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAcceleratorTypesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets AcceleratorType.
+     * 
+ */ + public void getAcceleratorType( + com.google.cloud.tpu.v2.GetAcceleratorTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAcceleratorTypeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists runtime versions supported by this API.
+     * 
+ */ + public void listRuntimeVersions( + com.google.cloud.tpu.v2.ListRuntimeVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRuntimeVersionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a runtime version.
+     * 
+ */ + public void getRuntimeVersion( + com.google.cloud.tpu.v2.GetRuntimeVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRuntimeVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves the guest attributes for the node.
+     * 
+ */ + public void getGuestAttributes( + com.google.cloud.tpu.v2.GetGuestAttributesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGuestAttributesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Manages TPU nodes and other resources
+   * TPU API v2
+   * 
+ */ + public static final class TpuBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TpuBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TpuBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TpuBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists nodes.
+     * 
+ */ + public com.google.cloud.tpu.v2.ListNodesResponse listNodes( + com.google.cloud.tpu.v2.ListNodesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNodesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the details of a node.
+     * 
+ */ + public com.google.cloud.tpu.v2.Node getNode(com.google.cloud.tpu.v2.GetNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNodeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a node.
+     * 
+ */ + public com.google.longrunning.Operation createNode( + com.google.cloud.tpu.v2.CreateNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNodeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a node.
+     * 
+ */ + public com.google.longrunning.Operation deleteNode( + com.google.cloud.tpu.v2.DeleteNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNodeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stops a node. This operation is only available with single TPU nodes.
+     * 
+ */ + public com.google.longrunning.Operation stopNode( + com.google.cloud.tpu.v2.StopNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopNodeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts a node.
+     * 
+ */ + public com.google.longrunning.Operation startNode( + com.google.cloud.tpu.v2.StartNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartNodeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the configurations of a node.
+     * 
+ */ + public com.google.longrunning.Operation updateNode( + com.google.cloud.tpu.v2.UpdateNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNodeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generates the Cloud TPU service identity for the project.
+     * 
+ */ + public com.google.cloud.tpu.v2.GenerateServiceIdentityResponse generateServiceIdentity( + com.google.cloud.tpu.v2.GenerateServiceIdentityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateServiceIdentityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists accelerator types supported by this API.
+     * 
+ */ + public com.google.cloud.tpu.v2.ListAcceleratorTypesResponse listAcceleratorTypes( + com.google.cloud.tpu.v2.ListAcceleratorTypesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAcceleratorTypesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets AcceleratorType.
+     * 
+ */ + public com.google.cloud.tpu.v2.AcceleratorType getAcceleratorType( + com.google.cloud.tpu.v2.GetAcceleratorTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAcceleratorTypeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists runtime versions supported by this API.
+     * 
+ */ + public com.google.cloud.tpu.v2.ListRuntimeVersionsResponse listRuntimeVersions( + com.google.cloud.tpu.v2.ListRuntimeVersionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRuntimeVersionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a runtime version.
+     * 
+ */ + public com.google.cloud.tpu.v2.RuntimeVersion getRuntimeVersion( + com.google.cloud.tpu.v2.GetRuntimeVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRuntimeVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves the guest attributes for the node.
+     * 
+ */ + public com.google.cloud.tpu.v2.GetGuestAttributesResponse getGuestAttributes( + com.google.cloud.tpu.v2.GetGuestAttributesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGuestAttributesMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Manages TPU nodes and other resources
+   * TPU API v2
+   * 
+ */ + public static final class TpuFutureStub extends io.grpc.stub.AbstractFutureStub { + private TpuFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TpuFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TpuFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists nodes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2.ListNodesResponse> + listNodes(com.google.cloud.tpu.v2.ListNodesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNodesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the details of a node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getNode( + com.google.cloud.tpu.v2.GetNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNodeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createNode(com.google.cloud.tpu.v2.CreateNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateNodeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteNode(com.google.cloud.tpu.v2.DeleteNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteNodeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stops a node. This operation is only available with single TPU nodes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + stopNode(com.google.cloud.tpu.v2.StopNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopNodeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts a node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + startNode(com.google.cloud.tpu.v2.StartNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartNodeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the configurations of a node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateNode(com.google.cloud.tpu.v2.UpdateNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNodeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Generates the Cloud TPU service identity for the project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2.GenerateServiceIdentityResponse> + generateServiceIdentity(com.google.cloud.tpu.v2.GenerateServiceIdentityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateServiceIdentityMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists accelerator types supported by this API.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2.ListAcceleratorTypesResponse> + listAcceleratorTypes(com.google.cloud.tpu.v2.ListAcceleratorTypesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAcceleratorTypesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets AcceleratorType.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2.AcceleratorType> + getAcceleratorType(com.google.cloud.tpu.v2.GetAcceleratorTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAcceleratorTypeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists runtime versions supported by this API.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2.ListRuntimeVersionsResponse> + listRuntimeVersions(com.google.cloud.tpu.v2.ListRuntimeVersionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRuntimeVersionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a runtime version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2.RuntimeVersion> + getRuntimeVersion(com.google.cloud.tpu.v2.GetRuntimeVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRuntimeVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves the guest attributes for the node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2.GetGuestAttributesResponse> + getGuestAttributes(com.google.cloud.tpu.v2.GetGuestAttributesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGuestAttributesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_NODES = 0; + private static final int METHODID_GET_NODE = 1; + private static final int METHODID_CREATE_NODE = 2; + private static final int METHODID_DELETE_NODE = 3; + private static final int METHODID_STOP_NODE = 4; + private static final int METHODID_START_NODE = 5; + private static final int METHODID_UPDATE_NODE = 6; + private static final int METHODID_GENERATE_SERVICE_IDENTITY = 7; + private static final int METHODID_LIST_ACCELERATOR_TYPES = 8; + private static final int METHODID_GET_ACCELERATOR_TYPE = 9; + private static final int METHODID_LIST_RUNTIME_VERSIONS = 10; + private static final int METHODID_GET_RUNTIME_VERSION = 11; + private static final int METHODID_GET_GUEST_ATTRIBUTES = 12; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final TpuImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TpuImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_NODES: + serviceImpl.listNodes( + (com.google.cloud.tpu.v2.ListNodesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_NODE: + serviceImpl.getNode( + (com.google.cloud.tpu.v2.GetNodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_NODE: + serviceImpl.createNode( + (com.google.cloud.tpu.v2.CreateNodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_NODE: + serviceImpl.deleteNode( + (com.google.cloud.tpu.v2.DeleteNodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_NODE: + serviceImpl.stopNode( + (com.google.cloud.tpu.v2.StopNodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_NODE: + serviceImpl.startNode( + (com.google.cloud.tpu.v2.StartNodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_NODE: + serviceImpl.updateNode( + (com.google.cloud.tpu.v2.UpdateNodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_SERVICE_IDENTITY: + serviceImpl.generateServiceIdentity( + (com.google.cloud.tpu.v2.GenerateServiceIdentityRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ACCELERATOR_TYPES: + serviceImpl.listAcceleratorTypes( + (com.google.cloud.tpu.v2.ListAcceleratorTypesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_ACCELERATOR_TYPE: + serviceImpl.getAcceleratorType( + (com.google.cloud.tpu.v2.GetAcceleratorTypeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_RUNTIME_VERSIONS: + serviceImpl.listRuntimeVersions( + (com.google.cloud.tpu.v2.ListRuntimeVersionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_RUNTIME_VERSION: + serviceImpl.getRuntimeVersion( + (com.google.cloud.tpu.v2.GetRuntimeVersionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_GUEST_ATTRIBUTES: + serviceImpl.getGuestAttributes( + (com.google.cloud.tpu.v2.GetGuestAttributesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class TpuBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TpuBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Tpu"); + } + } + + private static final class TpuFileDescriptorSupplier extends TpuBaseDescriptorSupplier { + TpuFileDescriptorSupplier() {} + } + + private static final class TpuMethodDescriptorSupplier extends TpuBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TpuMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (TpuGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TpuFileDescriptorSupplier()) + .addMethod(getListNodesMethod()) + .addMethod(getGetNodeMethod()) + .addMethod(getCreateNodeMethod()) + .addMethod(getDeleteNodeMethod()) + .addMethod(getStopNodeMethod()) + .addMethod(getStartNodeMethod()) + .addMethod(getUpdateNodeMethod()) + .addMethod(getGenerateServiceIdentityMethod()) + .addMethod(getListAcceleratorTypesMethod()) + .addMethod(getGetAcceleratorTypeMethod()) + .addMethod(getListRuntimeVersionsMethod()) + .addMethod(getGetRuntimeVersionMethod()) + .addMethod(getGetGuestAttributesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-tpu/grpc-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/TpuGrpc.java b/java-tpu/grpc-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/TpuGrpc.java new file mode 100644 index 000000000000..008a91342433 --- /dev/null +++ b/java-tpu/grpc-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/TpuGrpc.java @@ -0,0 +1,2310 @@ +/* + * 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. + */ +package com.google.cloud.tpu.v2alpha1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Manages TPU nodes and other resources
+ * TPU API v2alpha1
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/tpu/v2alpha1/cloud_tpu.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TpuGrpc { + + private TpuGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.tpu.v2alpha1.Tpu"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.ListNodesRequest, + com.google.cloud.tpu.v2alpha1.ListNodesResponse> + getListNodesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNodes", + requestType = com.google.cloud.tpu.v2alpha1.ListNodesRequest.class, + responseType = com.google.cloud.tpu.v2alpha1.ListNodesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.ListNodesRequest, + com.google.cloud.tpu.v2alpha1.ListNodesResponse> + getListNodesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.ListNodesRequest, + com.google.cloud.tpu.v2alpha1.ListNodesResponse> + getListNodesMethod; + if ((getListNodesMethod = TpuGrpc.getListNodesMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getListNodesMethod = TpuGrpc.getListNodesMethod) == null) { + TpuGrpc.getListNodesMethod = + getListNodesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.ListNodesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.ListNodesResponse.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListNodes")) + .build(); + } + } + } + return getListNodesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.GetNodeRequest, com.google.cloud.tpu.v2alpha1.Node> + getGetNodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNode", + requestType = com.google.cloud.tpu.v2alpha1.GetNodeRequest.class, + responseType = com.google.cloud.tpu.v2alpha1.Node.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.GetNodeRequest, com.google.cloud.tpu.v2alpha1.Node> + getGetNodeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.GetNodeRequest, com.google.cloud.tpu.v2alpha1.Node> + getGetNodeMethod; + if ((getGetNodeMethod = TpuGrpc.getGetNodeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getGetNodeMethod = TpuGrpc.getGetNodeMethod) == null) { + TpuGrpc.getGetNodeMethod = + getGetNodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.GetNodeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.Node.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetNode")) + .build(); + } + } + } + return getGetNodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.CreateNodeRequest, com.google.longrunning.Operation> + getCreateNodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateNode", + requestType = com.google.cloud.tpu.v2alpha1.CreateNodeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.CreateNodeRequest, com.google.longrunning.Operation> + getCreateNodeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.CreateNodeRequest, com.google.longrunning.Operation> + getCreateNodeMethod; + if ((getCreateNodeMethod = TpuGrpc.getCreateNodeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getCreateNodeMethod = TpuGrpc.getCreateNodeMethod) == null) { + TpuGrpc.getCreateNodeMethod = + getCreateNodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.CreateNodeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("CreateNode")) + .build(); + } + } + } + return getCreateNodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.DeleteNodeRequest, com.google.longrunning.Operation> + getDeleteNodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteNode", + requestType = com.google.cloud.tpu.v2alpha1.DeleteNodeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.DeleteNodeRequest, com.google.longrunning.Operation> + getDeleteNodeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.DeleteNodeRequest, com.google.longrunning.Operation> + getDeleteNodeMethod; + if ((getDeleteNodeMethod = TpuGrpc.getDeleteNodeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getDeleteNodeMethod = TpuGrpc.getDeleteNodeMethod) == null) { + TpuGrpc.getDeleteNodeMethod = + getDeleteNodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.DeleteNodeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("DeleteNode")) + .build(); + } + } + } + return getDeleteNodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.StopNodeRequest, com.google.longrunning.Operation> + getStopNodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopNode", + requestType = com.google.cloud.tpu.v2alpha1.StopNodeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.StopNodeRequest, com.google.longrunning.Operation> + getStopNodeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.StopNodeRequest, com.google.longrunning.Operation> + getStopNodeMethod; + if ((getStopNodeMethod = TpuGrpc.getStopNodeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getStopNodeMethod = TpuGrpc.getStopNodeMethod) == null) { + TpuGrpc.getStopNodeMethod = + getStopNodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopNode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.StopNodeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("StopNode")) + .build(); + } + } + } + return getStopNodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.StartNodeRequest, com.google.longrunning.Operation> + getStartNodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartNode", + requestType = com.google.cloud.tpu.v2alpha1.StartNodeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.StartNodeRequest, com.google.longrunning.Operation> + getStartNodeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.StartNodeRequest, com.google.longrunning.Operation> + getStartNodeMethod; + if ((getStartNodeMethod = TpuGrpc.getStartNodeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getStartNodeMethod = TpuGrpc.getStartNodeMethod) == null) { + TpuGrpc.getStartNodeMethod = + getStartNodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartNode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.StartNodeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("StartNode")) + .build(); + } + } + } + return getStartNodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.UpdateNodeRequest, com.google.longrunning.Operation> + getUpdateNodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNode", + requestType = com.google.cloud.tpu.v2alpha1.UpdateNodeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.UpdateNodeRequest, com.google.longrunning.Operation> + getUpdateNodeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.UpdateNodeRequest, com.google.longrunning.Operation> + getUpdateNodeMethod; + if ((getUpdateNodeMethod = TpuGrpc.getUpdateNodeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getUpdateNodeMethod = TpuGrpc.getUpdateNodeMethod) == null) { + TpuGrpc.getUpdateNodeMethod = + getUpdateNodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.UpdateNodeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("UpdateNode")) + .build(); + } + } + } + return getUpdateNodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest, + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse> + getListQueuedResourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListQueuedResources", + requestType = com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest.class, + responseType = com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest, + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse> + getListQueuedResourcesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest, + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse> + getListQueuedResourcesMethod; + if ((getListQueuedResourcesMethod = TpuGrpc.getListQueuedResourcesMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getListQueuedResourcesMethod = TpuGrpc.getListQueuedResourcesMethod) == null) { + TpuGrpc.getListQueuedResourcesMethod = + getListQueuedResourcesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListQueuedResources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListQueuedResources")) + .build(); + } + } + } + return getListQueuedResourcesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest, + com.google.cloud.tpu.v2alpha1.QueuedResource> + getGetQueuedResourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetQueuedResource", + requestType = com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest.class, + responseType = com.google.cloud.tpu.v2alpha1.QueuedResource.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest, + com.google.cloud.tpu.v2alpha1.QueuedResource> + getGetQueuedResourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest, + com.google.cloud.tpu.v2alpha1.QueuedResource> + getGetQueuedResourceMethod; + if ((getGetQueuedResourceMethod = TpuGrpc.getGetQueuedResourceMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getGetQueuedResourceMethod = TpuGrpc.getGetQueuedResourceMethod) == null) { + TpuGrpc.getGetQueuedResourceMethod = + getGetQueuedResourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetQueuedResource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.QueuedResource.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetQueuedResource")) + .build(); + } + } + } + return getGetQueuedResourceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest, + com.google.longrunning.Operation> + getCreateQueuedResourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateQueuedResource", + requestType = com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest, + com.google.longrunning.Operation> + getCreateQueuedResourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest, + com.google.longrunning.Operation> + getCreateQueuedResourceMethod; + if ((getCreateQueuedResourceMethod = TpuGrpc.getCreateQueuedResourceMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getCreateQueuedResourceMethod = TpuGrpc.getCreateQueuedResourceMethod) == null) { + TpuGrpc.getCreateQueuedResourceMethod = + getCreateQueuedResourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateQueuedResource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("CreateQueuedResource")) + .build(); + } + } + } + return getCreateQueuedResourceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest, + com.google.longrunning.Operation> + getDeleteQueuedResourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteQueuedResource", + requestType = com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest, + com.google.longrunning.Operation> + getDeleteQueuedResourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest, + com.google.longrunning.Operation> + getDeleteQueuedResourceMethod; + if ((getDeleteQueuedResourceMethod = TpuGrpc.getDeleteQueuedResourceMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getDeleteQueuedResourceMethod = TpuGrpc.getDeleteQueuedResourceMethod) == null) { + TpuGrpc.getDeleteQueuedResourceMethod = + getDeleteQueuedResourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteQueuedResource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("DeleteQueuedResource")) + .build(); + } + } + } + return getDeleteQueuedResourceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest, + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse> + getGenerateServiceIdentityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateServiceIdentity", + requestType = com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest.class, + responseType = com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest, + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse> + getGenerateServiceIdentityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest, + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse> + getGenerateServiceIdentityMethod; + if ((getGenerateServiceIdentityMethod = TpuGrpc.getGenerateServiceIdentityMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getGenerateServiceIdentityMethod = TpuGrpc.getGenerateServiceIdentityMethod) == null) { + TpuGrpc.getGenerateServiceIdentityMethod = + getGenerateServiceIdentityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateServiceIdentity")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TpuMethodDescriptorSupplier("GenerateServiceIdentity")) + .build(); + } + } + } + return getGenerateServiceIdentityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest, + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse> + getListAcceleratorTypesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAcceleratorTypes", + requestType = com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest.class, + responseType = com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest, + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse> + getListAcceleratorTypesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest, + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse> + getListAcceleratorTypesMethod; + if ((getListAcceleratorTypesMethod = TpuGrpc.getListAcceleratorTypesMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getListAcceleratorTypesMethod = TpuGrpc.getListAcceleratorTypesMethod) == null) { + TpuGrpc.getListAcceleratorTypesMethod = + getListAcceleratorTypesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAcceleratorTypes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListAcceleratorTypes")) + .build(); + } + } + } + return getListAcceleratorTypesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest, + com.google.cloud.tpu.v2alpha1.AcceleratorType> + getGetAcceleratorTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAcceleratorType", + requestType = com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest.class, + responseType = com.google.cloud.tpu.v2alpha1.AcceleratorType.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest, + com.google.cloud.tpu.v2alpha1.AcceleratorType> + getGetAcceleratorTypeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest, + com.google.cloud.tpu.v2alpha1.AcceleratorType> + getGetAcceleratorTypeMethod; + if ((getGetAcceleratorTypeMethod = TpuGrpc.getGetAcceleratorTypeMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getGetAcceleratorTypeMethod = TpuGrpc.getGetAcceleratorTypeMethod) == null) { + TpuGrpc.getGetAcceleratorTypeMethod = + getGetAcceleratorTypeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAcceleratorType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.AcceleratorType.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetAcceleratorType")) + .build(); + } + } + } + return getGetAcceleratorTypeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest, + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse> + getListRuntimeVersionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRuntimeVersions", + requestType = com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest.class, + responseType = com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest, + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse> + getListRuntimeVersionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest, + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse> + getListRuntimeVersionsMethod; + if ((getListRuntimeVersionsMethod = TpuGrpc.getListRuntimeVersionsMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getListRuntimeVersionsMethod = TpuGrpc.getListRuntimeVersionsMethod) == null) { + TpuGrpc.getListRuntimeVersionsMethod = + getListRuntimeVersionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListRuntimeVersions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListRuntimeVersions")) + .build(); + } + } + } + return getListRuntimeVersionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest, + com.google.cloud.tpu.v2alpha1.RuntimeVersion> + getGetRuntimeVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRuntimeVersion", + requestType = com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest.class, + responseType = com.google.cloud.tpu.v2alpha1.RuntimeVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest, + com.google.cloud.tpu.v2alpha1.RuntimeVersion> + getGetRuntimeVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest, + com.google.cloud.tpu.v2alpha1.RuntimeVersion> + getGetRuntimeVersionMethod; + if ((getGetRuntimeVersionMethod = TpuGrpc.getGetRuntimeVersionMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getGetRuntimeVersionMethod = TpuGrpc.getGetRuntimeVersionMethod) == null) { + TpuGrpc.getGetRuntimeVersionMethod = + getGetRuntimeVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRuntimeVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.RuntimeVersion.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetRuntimeVersion")) + .build(); + } + } + } + return getGetRuntimeVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest, + com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse> + getGetGuestAttributesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGuestAttributes", + requestType = com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest.class, + responseType = com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest, + com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse> + getGetGuestAttributesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest, + com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse> + getGetGuestAttributesMethod; + if ((getGetGuestAttributesMethod = TpuGrpc.getGetGuestAttributesMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getGetGuestAttributesMethod = TpuGrpc.getGetGuestAttributesMethod) == null) { + TpuGrpc.getGetGuestAttributesMethod = + getGetGuestAttributesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGuestAttributes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetGuestAttributes")) + .build(); + } + } + } + return getGetGuestAttributesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest, + com.google.longrunning.Operation> + getSimulateMaintenanceEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SimulateMaintenanceEvent", + requestType = com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest, + com.google.longrunning.Operation> + getSimulateMaintenanceEventMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest, + com.google.longrunning.Operation> + getSimulateMaintenanceEventMethod; + if ((getSimulateMaintenanceEventMethod = TpuGrpc.getSimulateMaintenanceEventMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getSimulateMaintenanceEventMethod = TpuGrpc.getSimulateMaintenanceEventMethod) + == null) { + TpuGrpc.getSimulateMaintenanceEventMethod = + getSimulateMaintenanceEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SimulateMaintenanceEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TpuMethodDescriptorSupplier("SimulateMaintenanceEvent")) + .build(); + } + } + } + return getSimulateMaintenanceEventMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static TpuStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TpuStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TpuStub(channel, callOptions); + } + }; + return TpuStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TpuBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TpuBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TpuBlockingStub(channel, callOptions); + } + }; + return TpuBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static TpuFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TpuFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TpuFutureStub(channel, callOptions); + } + }; + return TpuFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Manages TPU nodes and other resources
+   * TPU API v2alpha1
+   * 
+ */ + public abstract static class TpuImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists nodes.
+     * 
+ */ + public void listNodes( + com.google.cloud.tpu.v2alpha1.ListNodesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the details of a node.
+     * 
+ */ + public void getNode( + com.google.cloud.tpu.v2alpha1.GetNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a node.
+     * 
+ */ + public void createNode( + com.google.cloud.tpu.v2alpha1.CreateNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a node.
+     * 
+ */ + public void deleteNode( + com.google.cloud.tpu.v2alpha1.DeleteNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Stops a node. This operation is only available with single TPU nodes.
+     * 
+ */ + public void stopNode( + com.google.cloud.tpu.v2alpha1.StopNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopNodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts a node.
+     * 
+ */ + public void startNode( + com.google.cloud.tpu.v2alpha1.StartNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartNodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the configurations of a node.
+     * 
+ */ + public void updateNode( + com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists queued resources.
+     * 
+ */ + public void listQueuedResources( + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListQueuedResourcesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a queued resource.
+     * 
+ */ + public void getQueuedResource( + com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetQueuedResourceMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a QueuedResource TPU instance.
+     * 
+ */ + public void createQueuedResource( + com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateQueuedResourceMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a QueuedResource TPU instance.
+     * 
+ */ + public void deleteQueuedResource( + com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteQueuedResourceMethod(), responseObserver); + } + + /** + * + * + *
+     * Generates the Cloud TPU service identity for the project.
+     * 
+ */ + public void generateServiceIdentity( + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateServiceIdentityMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists accelerator types supported by this API.
+     * 
+ */ + public void listAcceleratorTypes( + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAcceleratorTypesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets AcceleratorType.
+     * 
+ */ + public void getAcceleratorType( + com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAcceleratorTypeMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists runtime versions supported by this API.
+     * 
+ */ + public void listRuntimeVersions( + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRuntimeVersionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a runtime version.
+     * 
+ */ + public void getRuntimeVersion( + com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetRuntimeVersionMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the guest attributes for the node.
+     * 
+ */ + public void getGuestAttributes( + com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetGuestAttributesMethod(), responseObserver); + } + + /** + * + * + *
+     * Simulates a maintenance event.
+     * 
+ */ + public void simulateMaintenanceEvent( + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSimulateMaintenanceEventMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListNodesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.ListNodesRequest, + com.google.cloud.tpu.v2alpha1.ListNodesResponse>(this, METHODID_LIST_NODES))) + .addMethod( + getGetNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.GetNodeRequest, + com.google.cloud.tpu.v2alpha1.Node>(this, METHODID_GET_NODE))) + .addMethod( + getCreateNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.CreateNodeRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_NODE))) + .addMethod( + getDeleteNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.DeleteNodeRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_NODE))) + .addMethod( + getStopNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.StopNodeRequest, + com.google.longrunning.Operation>(this, METHODID_STOP_NODE))) + .addMethod( + getStartNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.StartNodeRequest, + com.google.longrunning.Operation>(this, METHODID_START_NODE))) + .addMethod( + getUpdateNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.UpdateNodeRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_NODE))) + .addMethod( + getListQueuedResourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest, + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse>( + this, METHODID_LIST_QUEUED_RESOURCES))) + .addMethod( + getGetQueuedResourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest, + com.google.cloud.tpu.v2alpha1.QueuedResource>( + this, METHODID_GET_QUEUED_RESOURCE))) + .addMethod( + getCreateQueuedResourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_QUEUED_RESOURCE))) + .addMethod( + getDeleteQueuedResourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_QUEUED_RESOURCE))) + .addMethod( + getGenerateServiceIdentityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest, + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse>( + this, METHODID_GENERATE_SERVICE_IDENTITY))) + .addMethod( + getListAcceleratorTypesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest, + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse>( + this, METHODID_LIST_ACCELERATOR_TYPES))) + .addMethod( + getGetAcceleratorTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest, + com.google.cloud.tpu.v2alpha1.AcceleratorType>( + this, METHODID_GET_ACCELERATOR_TYPE))) + .addMethod( + getListRuntimeVersionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest, + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse>( + this, METHODID_LIST_RUNTIME_VERSIONS))) + .addMethod( + getGetRuntimeVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest, + com.google.cloud.tpu.v2alpha1.RuntimeVersion>( + this, METHODID_GET_RUNTIME_VERSION))) + .addMethod( + getGetGuestAttributesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest, + com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>( + this, METHODID_GET_GUEST_ATTRIBUTES))) + .addMethod( + getSimulateMaintenanceEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest, + com.google.longrunning.Operation>(this, METHODID_SIMULATE_MAINTENANCE_EVENT))) + .build(); + } + } + + /** + * + * + *
+   * Manages TPU nodes and other resources
+   * TPU API v2alpha1
+   * 
+ */ + public static final class TpuStub extends io.grpc.stub.AbstractAsyncStub { + private TpuStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TpuStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TpuStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists nodes.
+     * 
+ */ + public void listNodes( + com.google.cloud.tpu.v2alpha1.ListNodesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNodesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets the details of a node.
+     * 
+ */ + public void getNode( + com.google.cloud.tpu.v2alpha1.GetNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a node.
+     * 
+ */ + public void createNode( + com.google.cloud.tpu.v2alpha1.CreateNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes a node.
+     * 
+ */ + public void deleteNode( + com.google.cloud.tpu.v2alpha1.DeleteNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteNodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Stops a node. This operation is only available with single TPU nodes.
+     * 
+ */ + public void stopNode( + com.google.cloud.tpu.v2alpha1.StopNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopNodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Starts a node.
+     * 
+ */ + public void startNode( + com.google.cloud.tpu.v2alpha1.StartNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartNodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates the configurations of a node.
+     * 
+ */ + public void updateNode( + com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists queued resources.
+     * 
+ */ + public void listQueuedResources( + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListQueuedResourcesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a queued resource.
+     * 
+ */ + public void getQueuedResource( + com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetQueuedResourceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a QueuedResource TPU instance.
+     * 
+ */ + public void createQueuedResource( + com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateQueuedResourceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a QueuedResource TPU instance.
+     * 
+ */ + public void deleteQueuedResource( + com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteQueuedResourceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Generates the Cloud TPU service identity for the project.
+     * 
+ */ + public void generateServiceIdentity( + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateServiceIdentityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists accelerator types supported by this API.
+     * 
+ */ + public void listAcceleratorTypes( + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAcceleratorTypesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets AcceleratorType.
+     * 
+ */ + public void getAcceleratorType( + com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAcceleratorTypeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists runtime versions supported by this API.
+     * 
+ */ + public void listRuntimeVersions( + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRuntimeVersionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a runtime version.
+     * 
+ */ + public void getRuntimeVersion( + com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRuntimeVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves the guest attributes for the node.
+     * 
+ */ + public void getGuestAttributes( + com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGuestAttributesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Simulates a maintenance event.
+     * 
+ */ + public void simulateMaintenanceEvent( + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSimulateMaintenanceEventMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Manages TPU nodes and other resources
+   * TPU API v2alpha1
+   * 
+ */ + public static final class TpuBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TpuBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TpuBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TpuBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists nodes.
+     * 
+ */ + public com.google.cloud.tpu.v2alpha1.ListNodesResponse listNodes( + com.google.cloud.tpu.v2alpha1.ListNodesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNodesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the details of a node.
+     * 
+ */ + public com.google.cloud.tpu.v2alpha1.Node getNode( + com.google.cloud.tpu.v2alpha1.GetNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNodeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a node.
+     * 
+ */ + public com.google.longrunning.Operation createNode( + com.google.cloud.tpu.v2alpha1.CreateNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNodeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a node.
+     * 
+ */ + public com.google.longrunning.Operation deleteNode( + com.google.cloud.tpu.v2alpha1.DeleteNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNodeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stops a node. This operation is only available with single TPU nodes.
+     * 
+ */ + public com.google.longrunning.Operation stopNode( + com.google.cloud.tpu.v2alpha1.StopNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopNodeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts a node.
+     * 
+ */ + public com.google.longrunning.Operation startNode( + com.google.cloud.tpu.v2alpha1.StartNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartNodeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the configurations of a node.
+     * 
+ */ + public com.google.longrunning.Operation updateNode( + com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNodeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists queued resources.
+     * 
+ */ + public com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse listQueuedResources( + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListQueuedResourcesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a queued resource.
+     * 
+ */ + public com.google.cloud.tpu.v2alpha1.QueuedResource getQueuedResource( + com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetQueuedResourceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a QueuedResource TPU instance.
+     * 
+ */ + public com.google.longrunning.Operation createQueuedResource( + com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateQueuedResourceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a QueuedResource TPU instance.
+     * 
+ */ + public com.google.longrunning.Operation deleteQueuedResource( + com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteQueuedResourceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generates the Cloud TPU service identity for the project.
+     * 
+ */ + public com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse generateServiceIdentity( + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateServiceIdentityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists accelerator types supported by this API.
+     * 
+ */ + public com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse listAcceleratorTypes( + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAcceleratorTypesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets AcceleratorType.
+     * 
+ */ + public com.google.cloud.tpu.v2alpha1.AcceleratorType getAcceleratorType( + com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAcceleratorTypeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists runtime versions supported by this API.
+     * 
+ */ + public com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse listRuntimeVersions( + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRuntimeVersionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a runtime version.
+     * 
+ */ + public com.google.cloud.tpu.v2alpha1.RuntimeVersion getRuntimeVersion( + com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRuntimeVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves the guest attributes for the node.
+     * 
+ */ + public com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse getGuestAttributes( + com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGuestAttributesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Simulates a maintenance event.
+     * 
+ */ + public com.google.longrunning.Operation simulateMaintenanceEvent( + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSimulateMaintenanceEventMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Manages TPU nodes and other resources
+   * TPU API v2alpha1
+   * 
+ */ + public static final class TpuFutureStub extends io.grpc.stub.AbstractFutureStub { + private TpuFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TpuFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TpuFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists nodes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2alpha1.ListNodesResponse> + listNodes(com.google.cloud.tpu.v2alpha1.ListNodesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNodesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the details of a node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getNode(com.google.cloud.tpu.v2alpha1.GetNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNodeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createNode(com.google.cloud.tpu.v2alpha1.CreateNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateNodeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteNode(com.google.cloud.tpu.v2alpha1.DeleteNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteNodeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stops a node. This operation is only available with single TPU nodes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + stopNode(com.google.cloud.tpu.v2alpha1.StopNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopNodeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts a node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + startNode(com.google.cloud.tpu.v2alpha1.StartNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartNodeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the configurations of a node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateNode(com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNodeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists queued resources.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse> + listQueuedResources(com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListQueuedResourcesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a queued resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2alpha1.QueuedResource> + getQueuedResource(com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetQueuedResourceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a QueuedResource TPU instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createQueuedResource(com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateQueuedResourceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a QueuedResource TPU instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteQueuedResource(com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteQueuedResourceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Generates the Cloud TPU service identity for the project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse> + generateServiceIdentity( + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateServiceIdentityMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists accelerator types supported by this API.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse> + listAcceleratorTypes(com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAcceleratorTypesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets AcceleratorType.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2alpha1.AcceleratorType> + getAcceleratorType(com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAcceleratorTypeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists runtime versions supported by this API.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse> + listRuntimeVersions(com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRuntimeVersionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a runtime version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2alpha1.RuntimeVersion> + getRuntimeVersion(com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRuntimeVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves the guest attributes for the node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse> + getGuestAttributes(com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGuestAttributesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Simulates a maintenance event.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + simulateMaintenanceEvent( + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSimulateMaintenanceEventMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_NODES = 0; + private static final int METHODID_GET_NODE = 1; + private static final int METHODID_CREATE_NODE = 2; + private static final int METHODID_DELETE_NODE = 3; + private static final int METHODID_STOP_NODE = 4; + private static final int METHODID_START_NODE = 5; + private static final int METHODID_UPDATE_NODE = 6; + private static final int METHODID_LIST_QUEUED_RESOURCES = 7; + private static final int METHODID_GET_QUEUED_RESOURCE = 8; + private static final int METHODID_CREATE_QUEUED_RESOURCE = 9; + private static final int METHODID_DELETE_QUEUED_RESOURCE = 10; + private static final int METHODID_GENERATE_SERVICE_IDENTITY = 11; + private static final int METHODID_LIST_ACCELERATOR_TYPES = 12; + private static final int METHODID_GET_ACCELERATOR_TYPE = 13; + private static final int METHODID_LIST_RUNTIME_VERSIONS = 14; + private static final int METHODID_GET_RUNTIME_VERSION = 15; + private static final int METHODID_GET_GUEST_ATTRIBUTES = 16; + private static final int METHODID_SIMULATE_MAINTENANCE_EVENT = 17; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final TpuImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TpuImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_NODES: + serviceImpl.listNodes( + (com.google.cloud.tpu.v2alpha1.ListNodesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_NODE: + serviceImpl.getNode( + (com.google.cloud.tpu.v2alpha1.GetNodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_NODE: + serviceImpl.createNode( + (com.google.cloud.tpu.v2alpha1.CreateNodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_NODE: + serviceImpl.deleteNode( + (com.google.cloud.tpu.v2alpha1.DeleteNodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_NODE: + serviceImpl.stopNode( + (com.google.cloud.tpu.v2alpha1.StopNodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_NODE: + serviceImpl.startNode( + (com.google.cloud.tpu.v2alpha1.StartNodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_NODE: + serviceImpl.updateNode( + (com.google.cloud.tpu.v2alpha1.UpdateNodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_QUEUED_RESOURCES: + serviceImpl.listQueuedResources( + (com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse>) + responseObserver); + break; + case METHODID_GET_QUEUED_RESOURCE: + serviceImpl.getQueuedResource( + (com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_QUEUED_RESOURCE: + serviceImpl.createQueuedResource( + (com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_QUEUED_RESOURCE: + serviceImpl.deleteQueuedResource( + (com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_SERVICE_IDENTITY: + serviceImpl.generateServiceIdentity( + (com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse>) + responseObserver); + break; + case METHODID_LIST_ACCELERATOR_TYPES: + serviceImpl.listAcceleratorTypes( + (com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse>) + responseObserver); + break; + case METHODID_GET_ACCELERATOR_TYPE: + serviceImpl.getAcceleratorType( + (com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_RUNTIME_VERSIONS: + serviceImpl.listRuntimeVersions( + (com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse>) + responseObserver); + break; + case METHODID_GET_RUNTIME_VERSION: + serviceImpl.getRuntimeVersion( + (com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_GUEST_ATTRIBUTES: + serviceImpl.getGuestAttributes( + (com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>) + responseObserver); + break; + case METHODID_SIMULATE_MAINTENANCE_EVENT: + serviceImpl.simulateMaintenanceEvent( + (com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class TpuBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TpuBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Tpu"); + } + } + + private static final class TpuFileDescriptorSupplier extends TpuBaseDescriptorSupplier { + TpuFileDescriptorSupplier() {} + } + + private static final class TpuMethodDescriptorSupplier extends TpuBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TpuMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (TpuGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TpuFileDescriptorSupplier()) + .addMethod(getListNodesMethod()) + .addMethod(getGetNodeMethod()) + .addMethod(getCreateNodeMethod()) + .addMethod(getDeleteNodeMethod()) + .addMethod(getStopNodeMethod()) + .addMethod(getStartNodeMethod()) + .addMethod(getUpdateNodeMethod()) + .addMethod(getListQueuedResourcesMethod()) + .addMethod(getGetQueuedResourceMethod()) + .addMethod(getCreateQueuedResourceMethod()) + .addMethod(getDeleteQueuedResourceMethod()) + .addMethod(getGenerateServiceIdentityMethod()) + .addMethod(getListAcceleratorTypesMethod()) + .addMethod(getGetAcceleratorTypeMethod()) + .addMethod(getListRuntimeVersionsMethod()) + .addMethod(getGetRuntimeVersionMethod()) + .addMethod(getGetGuestAttributesMethod()) + .addMethod(getSimulateMaintenanceEventMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-tpu/pom.xml b/java-tpu/pom.xml index 8cca5d7c0a54..5e80fcc6bf34 100644 --- a/java-tpu/pom.xml +++ b/java-tpu/pom.xml @@ -31,6 +31,16 @@ google-cloud-tpu 2.8.0-SNAPSHOT
+ + com.google.api.grpc + proto-google-cloud-tpu-v2 + 2.8.0-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-tpu-v2 + 2.8.0-SNAPSHOT + com.google.api.grpc proto-google-cloud-tpu-v2alpha1 @@ -58,8 +68,10 @@ google-cloud-tpu grpc-google-cloud-tpu-v1 grpc-google-cloud-tpu-v2alpha1 + grpc-google-cloud-tpu-v2 proto-google-cloud-tpu-v1 proto-google-cloud-tpu-v2alpha1 + proto-google-cloud-tpu-v2 google-cloud-tpu-bom diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorType.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorType.java similarity index 66% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorType.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorType.java index 6cb536764ccd..b1858a5f368b 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorType.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorType.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * A accelerator type that a Node can be configured with.
  * 
* * Protobuf type {@code google.cloud.tpu.v1.AcceleratorType} */ -public final class AcceleratorType extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AcceleratorType extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.AcceleratorType) AcceleratorTypeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AcceleratorType.newBuilder() to construct. private AcceleratorType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AcceleratorType() { name_ = ""; type_ = ""; @@ -26,37 +44,41 @@ private AcceleratorType() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AcceleratorType(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_AcceleratorType_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_AcceleratorType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_AcceleratorType_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_AcceleratorType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.AcceleratorType.class, com.google.cloud.tpu.v1.AcceleratorType.Builder.class); + com.google.cloud.tpu.v1.AcceleratorType.class, + com.google.cloud.tpu.v1.AcceleratorType.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -65,29 +87,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,11 +120,14 @@ public java.lang.String getName() { public static final int TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object type_; /** + * + * *
    * the accelerator type.
    * 
* * string type = 2; + * * @return The type. */ @java.lang.Override @@ -111,29 +136,29 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
    * the accelerator type.
    * 
* * string type = 2; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -142,6 +167,7 @@ public java.lang.String getType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -184,17 +209,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.AcceleratorType)) { return super.equals(obj); } com.google.cloud.tpu.v1.AcceleratorType other = (com.google.cloud.tpu.v1.AcceleratorType) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getType() - .equals(other.getType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getType().equals(other.getType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -215,130 +238,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v1.AcceleratorType parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v1.AcceleratorType parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.AcceleratorType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.AcceleratorType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.AcceleratorType 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.tpu.v1.AcceleratorType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.AcceleratorType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.AcceleratorType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.AcceleratorType parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.AcceleratorType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.AcceleratorType parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.AcceleratorType parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.AcceleratorType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.AcceleratorType parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.AcceleratorType prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A accelerator type that a Node can be configured with.
    * 
* * Protobuf type {@code google.cloud.tpu.v1.AcceleratorType} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.AcceleratorType) com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_AcceleratorType_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_AcceleratorType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_AcceleratorType_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_AcceleratorType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.AcceleratorType.class, com.google.cloud.tpu.v1.AcceleratorType.Builder.class); + com.google.cloud.tpu.v1.AcceleratorType.class, + com.google.cloud.tpu.v1.AcceleratorType.Builder.class); } // Construct using com.google.cloud.tpu.v1.AcceleratorType.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_AcceleratorType_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_AcceleratorType_descriptor; } @java.lang.Override @@ -371,7 +400,8 @@ public com.google.cloud.tpu.v1.AcceleratorType build() { @java.lang.Override public com.google.cloud.tpu.v1.AcceleratorType buildPartial() { - com.google.cloud.tpu.v1.AcceleratorType result = new com.google.cloud.tpu.v1.AcceleratorType(this); + com.google.cloud.tpu.v1.AcceleratorType result = + new com.google.cloud.tpu.v1.AcceleratorType(this); result.name_ = name_; result.type_ = type_; onBuilt(); @@ -382,38 +412,39 @@ public com.google.cloud.tpu.v1.AcceleratorType buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.AcceleratorType) { - return mergeFrom((com.google.cloud.tpu.v1.AcceleratorType)other); + return mergeFrom((com.google.cloud.tpu.v1.AcceleratorType) other); } else { super.mergeFrom(other); return this; @@ -456,22 +487,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - type_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + type_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -484,18 +518,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -504,20 +540,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -525,54 +562,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -580,18 +624,20 @@ public Builder setNameBytes( private java.lang.Object type_ = ""; /** + * + * *
      * the accelerator type.
      * 
* * string type = 2; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -600,20 +646,21 @@ public java.lang.String getType() { } } /** + * + * *
      * the accelerator type.
      * 
* * string type = 2; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -621,61 +668,68 @@ public java.lang.String getType() { } } /** + * + * *
      * the accelerator type.
      * 
* * string type = 2; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
      * the accelerator type.
      * 
* * string type = 2; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
      * the accelerator type.
      * 
* * string type = 2; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -685,12 +739,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.AcceleratorType) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.AcceleratorType) private static final com.google.cloud.tpu.v1.AcceleratorType DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.AcceleratorType(); } @@ -699,27 +753,27 @@ public static com.google.cloud.tpu.v1.AcceleratorType getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcceleratorType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcceleratorType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -734,6 +788,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v1.AcceleratorType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorTypeName.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorTypeName.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorTypeName.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorTypeName.java diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorTypeOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorTypeOrBuilder.java similarity index 51% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorTypeOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorTypeOrBuilder.java index 26cc04022f2b..d9a66a858e47 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorTypeOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorTypeOrBuilder.java @@ -1,49 +1,75 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; -public interface AcceleratorTypeOrBuilder extends +public interface AcceleratorTypeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.AcceleratorType) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * the accelerator type.
    * 
* * string type = 2; + * * @return The type. */ java.lang.String getType(); /** + * + * *
    * the accelerator type.
    * 
* * string type = 2; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); } diff --git a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CloudTpuProto.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CloudTpuProto.java new file mode 100644 index 000000000000..f6a47cfdaf68 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CloudTpuProto.java @@ -0,0 +1,513 @@ +/* + * 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/tpu/v1/cloud_tpu.proto + +package com.google.cloud.tpu.v1; + +public final class CloudTpuProto { + private CloudTpuProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_SchedulingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_SchedulingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_NetworkEndpoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_NetworkEndpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_Node_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_Node_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_Node_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_Node_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_ListNodesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_ListNodesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_ListNodesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_ListNodesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_GetNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_GetNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_CreateNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_CreateNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_DeleteNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_DeleteNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_ReimageNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_ReimageNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_StopNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_StopNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_StartNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_StartNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_TensorFlowVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_TensorFlowVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_AcceleratorType_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_AcceleratorType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v1_Symptom_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v1_Symptom_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n#google/cloud/tpu/v1/cloud_tpu.proto\022\023g" + + "oogle.cloud.tpu.v1\032\034google/api/annotatio" + + "ns.proto\032\027google/api/client.proto\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/r" + + "esource.proto\032#google/longrunning/operat" + + "ions.proto\032\037google/protobuf/timestamp.pr" + + "oto\"9\n\020SchedulingConfig\022\023\n\013preemptible\030\001" + + " \001(\010\022\020\n\010reserved\030\002 \001(\010\"3\n\017NetworkEndpoin" + + "t\022\022\n\nip_address\030\001 \001(\t\022\014\n\004port\030\002 \001(\005\"\264\n\n\004" + + "Node\022\024\n\004name\030\001 \001(\tB\006\340A\005\340A\003\022\023\n\013descriptio" + + "n\030\003 \001(\t\022\035\n\020accelerator_type\030\005 \001(\tB\003\340A\002\022\026" + + "\n\nip_address\030\010 \001(\tB\002\030\001\022\020\n\004port\030\016 \001(\tB\002\030\001" + + "\0223\n\005state\030\t \001(\0162\037.google.cloud.tpu.v1.No" + + "de.StateB\003\340A\003\022\037\n\022health_description\030\n \001(" + + "\tB\003\340A\003\022\037\n\022tensorflow_version\030\013 \001(\tB\003\340A\002\022" + + "\017\n\007network\030\014 \001(\t\022\022\n\ncidr_block\030\r \001(\t\022\034\n\017" + + "service_account\030\017 \001(\tB\003\340A\003\0224\n\013create_tim" + + "e\030\020 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\022@\n\021scheduling_config\030\021 \001(\0132%.google.clo" + + "ud.tpu.v1.SchedulingConfig\022D\n\021network_en" + + "dpoints\030\025 \003(\0132$.google.cloud.tpu.v1.Netw" + + "orkEndpointB\003\340A\003\0220\n\006health\030\026 \001(\0162 .googl" + + "e.cloud.tpu.v1.Node.Health\0225\n\006labels\030\030 \003" + + "(\0132%.google.cloud.tpu.v1.Node.LabelsEntr" + + "y\022\036\n\026use_service_networking\030\033 \001(\010\022>\n\013api" + + "_version\030& \001(\0162$.google.cloud.tpu.v1.Nod" + + "e.ApiVersionB\003\340A\003\0223\n\010symptoms\030\' \003(\0132\034.go" + + "ogle.cloud.tpu.v1.SymptomB\003\340A\003\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\341\001" + + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATI" + + "NG\020\001\022\t\n\005READY\020\002\022\016\n\nRESTARTING\020\003\022\r\n\tREIMA" + + "GING\020\004\022\014\n\010DELETING\020\005\022\r\n\tREPAIRING\020\006\022\013\n\007S" + + "TOPPED\020\010\022\014\n\010STOPPING\020\t\022\014\n\010STARTING\020\n\022\r\n\t" + + "PREEMPTED\020\013\022\016\n\nTERMINATED\020\014\022\n\n\006HIDING\020\r\022" + + "\n\n\006HIDDEN\020\016\022\014\n\010UNHIDING\020\017\"\211\001\n\006Health\022\026\n\022" + + "HEALTH_UNSPECIFIED\020\000\022\013\n\007HEALTHY\020\001\022\030\n\024DEP" + + "RECATED_UNHEALTHY\020\002\022\013\n\007TIMEOUT\020\003\022\030\n\024UNHE" + + "ALTHY_TENSORFLOW\020\004\022\031\n\025UNHEALTHY_MAINTENA" + + "NCE\020\005\"O\n\nApiVersion\022\033\n\027API_VERSION_UNSPE" + + "CIFIED\020\000\022\r\n\tV1_ALPHA1\020\001\022\006\n\002V1\020\002\022\r\n\tV2_AL" + + "PHA1\020\003:R\352AO\n\027tpu.googleapis.com/Node\0224pr" + + "ojects/{project}/locations/{location}/no" + + "des/{node}\"j\n\020ListNodesRequest\022/\n\006parent" + + "\030\001 \001(\tB\037\340A\002\372A\031\022\027tpu.googleapis.com/Node\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k" + + "\n\021ListNodesResponse\022(\n\005nodes\030\001 \003(\0132\031.goo" + + "gle.cloud.tpu.v1.Node\022\027\n\017next_page_token" + + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"?\n\016GetNodeRe" + + "quest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googlea" + + "pis.com/Node\"\203\001\n\021CreateNodeRequest\022/\n\006pa" + + "rent\030\001 \001(\tB\037\340A\002\372A\031\022\027tpu.googleapis.com/N" + + "ode\022\017\n\007node_id\030\002 \001(\t\022,\n\004node\030\003 \001(\0132\031.goo" + + "gle.cloud.tpu.v1.NodeB\003\340A\002\"B\n\021DeleteNode" + + "Request\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googl" + + "eapis.com/Node\">\n\022ReimageNodeRequest\022\014\n\004" + + "name\030\001 \001(\t\022\032\n\022tensorflow_version\030\002 \001(\t\"\037" + + "\n\017StopNodeRequest\022\014\n\004name\030\001 \001(\t\" \n\020Start" + + "NodeRequest\022\014\n\004name\030\001 \001(\t\"\257\001\n\021TensorFlow" + + "Version\022\014\n\004name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t:{" + + "\352Ax\n$tpu.googleapis.com/TensorFlowVersio" + + "n\022Pprojects/{project}/locations/{locatio" + + "n}/tensorFlowVersions/{tensor_flow_versi" + + "on}\"Y\n\033GetTensorFlowVersionRequest\022:\n\004na" + + "me\030\001 \001(\tB,\340A\002\372A&\n$tpu.googleapis.com/Ten" + + "sorFlowVersion\"\246\001\n\035ListTensorFlowVersion" + + "sRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$tpu.go" + + "ogleapis.com/TensorFlowVersion\022\021\n\tpage_s" + + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030" + + "\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\223\001\n\036ListTensorFl" + + "owVersionsResponse\022C\n\023tensorflow_version" + + "s\030\001 \003(\0132&.google.cloud.tpu.v1.TensorFlow" + + "Version\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" + + "achable\030\003 \003(\t\"\243\001\n\017AcceleratorType\022\014\n\004nam" + + "e\030\001 \001(\t\022\014\n\004type\030\002 \001(\t:t\352Aq\n\"tpu.googleap" + + "is.com/AcceleratorType\022Kprojects/{projec" + + "t}/locations/{location}/acceleratorTypes" + + "/{accelerator_type}\"U\n\031GetAcceleratorTyp" + + "eRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"tpu.goog" + + "leapis.com/AcceleratorType\"\242\001\n\033ListAccel" + + "eratorTypesRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372" + + "A$\n\"tpu.googleapis.com/AcceleratorType\022\021" + + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n" + + "\006filter\030\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\215\001\n\034List" + + "AcceleratorTypesResponse\022?\n\021accelerator_" + + "types\030\001 \003(\0132$.google.cloud.tpu.v1.Accele" + + "ratorType\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" + + "reachable\030\003 \003(\t\"\326\001\n\021OperationMetadata\022/\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" + + "estamp\022,\n\010end_time\030\002 \001(\0132\032.google.protob" + + "uf.Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001" + + "(\t\022\025\n\rstatus_detail\030\005 \001(\t\022\030\n\020cancel_requ" + + "ested\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t\"\305\002\n\007Sym" + + "ptom\022/\n\013create_time\030\001 \001(\0132\032.google.proto" + + "buf.Timestamp\022>\n\014symptom_type\030\002 \001(\0162(.go" + + "ogle.cloud.tpu.v1.Symptom.SymptomType\022\017\n" + + "\007details\030\003 \001(\t\022\021\n\tworker_id\030\004 \001(\t\"\244\001\n\013Sy" + + "mptomType\022\034\n\030SYMPTOM_TYPE_UNSPECIFIED\020\000\022" + + "\016\n\nLOW_MEMORY\020\001\022\021\n\rOUT_OF_MEMORY\020\002\022\025\n\021EX" + + "ECUTE_TIMED_OUT\020\003\022\023\n\017MESH_BUILD_FAIL\020\004\022\025" + + "\n\021HBM_OUT_OF_MEMORY\020\005\022\021\n\rPROJECT_ABUSE\020\006" + + "2\336\017\n\003Tpu\022\226\001\n\tListNodes\022%.google.cloud.tp" + + "u.v1.ListNodesRequest\032&.google.cloud.tpu" + + ".v1.ListNodesResponse\":\202\323\344\223\002+\022)/v1/{pare" + + "nt=projects/*/locations/*}/nodes\332A\006paren" + + "t\022\203\001\n\007GetNode\022#.google.cloud.tpu.v1.GetN" + + "odeRequest\032\031.google.cloud.tpu.v1.Node\"8\202" + + "\323\344\223\002+\022)/v1/{name=projects/*/locations/*/" + + "nodes/*}\332A\004name\022\276\001\n\nCreateNode\022&.google." + + "cloud.tpu.v1.CreateNodeRequest\032\035.google." + + "longrunning.Operation\"i\202\323\344\223\0021\")/v1/{pare" + + "nt=projects/*/locations/*}/nodes:\004node\332A" + + "\023parent,node,node_id\312A\031\n\004Node\022\021Operation" + + "Metadata\022\251\001\n\nDeleteNode\022&.google.cloud.t" + + "pu.v1.DeleteNodeRequest\032\035.google.longrun" + + "ning.Operation\"T\202\323\344\223\002+*)/v1/{name=projec" + + "ts/*/locations/*/nodes/*}\332A\004name\312A\031\n\004Nod" + + "e\022\021OperationMetadata\022\257\001\n\013ReimageNode\022\'.g" + + "oogle.cloud.tpu.v1.ReimageNodeRequest\032\035." + + "google.longrunning.Operation\"X\202\323\344\223\0026\"1/v" + + "1/{name=projects/*/locations/*/nodes/*}:" + + "reimage:\001*\312A\031\n\004Node\022\021OperationMetadata\022\246" + + "\001\n\010StopNode\022$.google.cloud.tpu.v1.StopNo" + + "deRequest\032\035.google.longrunning.Operation" + + "\"U\202\323\344\223\0023\"./v1/{name=projects/*/locations" + + "/*/nodes/*}:stop:\001*\312A\031\n\004Node\022\021OperationM" + + "etadata\022\251\001\n\tStartNode\022%.google.cloud.tpu" + + ".v1.StartNodeRequest\032\035.google.longrunnin" + + "g.Operation\"V\202\323\344\223\0024\"//v1/{name=projects/" + + "*/locations/*/nodes/*}:start:\001*\312A\031\n\004Node" + + "\022\021OperationMetadata\022\312\001\n\026ListTensorFlowVe" + + "rsions\0222.google.cloud.tpu.v1.ListTensorF" + + "lowVersionsRequest\0323.google.cloud.tpu.v1" + + ".ListTensorFlowVersionsResponse\"G\202\323\344\223\0028\022" + + "6/v1/{parent=projects/*/locations/*}/ten" + + "sorflowVersions\332A\006parent\022\267\001\n\024GetTensorFl" + + "owVersion\0220.google.cloud.tpu.v1.GetTenso" + + "rFlowVersionRequest\032&.google.cloud.tpu.v" + + "1.TensorFlowVersion\"E\202\323\344\223\0028\0226/v1/{name=p" + + "rojects/*/locations/*/tensorflowVersions" + + "/*}\332A\004name\022\302\001\n\024ListAcceleratorTypes\0220.go" + + "ogle.cloud.tpu.v1.ListAcceleratorTypesRe" + + "quest\0321.google.cloud.tpu.v1.ListAccelera" + + "torTypesResponse\"E\202\323\344\223\0026\0224/v1/{parent=pr" + + "ojects/*/locations/*}/acceleratorTypes\332A" + + "\006parent\022\257\001\n\022GetAcceleratorType\022..google." + + "cloud.tpu.v1.GetAcceleratorTypeRequest\032$" + + ".google.cloud.tpu.v1.AcceleratorType\"C\202\323" + + "\344\223\0026\0224/v1/{name=projects/*/locations/*/a" + + "cceleratorTypes/*}\332A\004name\032F\312A\022tpu.google" + + "apis.com\322A.https://www.googleapis.com/au" + + "th/cloud-platformBb\n\027com.google.cloud.tp" + + "u.v1B\rCloudTpuProtoP\001Z6google.golang.org" + + "/genproto/googleapis/cloud/tpu/v1;tpub\006p" + + "roto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_tpu_v1_SchedulingConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_tpu_v1_SchedulingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_SchedulingConfig_descriptor, + new java.lang.String[] { + "Preemptible", "Reserved", + }); + internal_static_google_cloud_tpu_v1_NetworkEndpoint_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_tpu_v1_NetworkEndpoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_NetworkEndpoint_descriptor, + new java.lang.String[] { + "IpAddress", "Port", + }); + internal_static_google_cloud_tpu_v1_Node_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_tpu_v1_Node_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_Node_descriptor, + new java.lang.String[] { + "Name", + "Description", + "AcceleratorType", + "IpAddress", + "Port", + "State", + "HealthDescription", + "TensorflowVersion", + "Network", + "CidrBlock", + "ServiceAccount", + "CreateTime", + "SchedulingConfig", + "NetworkEndpoints", + "Health", + "Labels", + "UseServiceNetworking", + "ApiVersion", + "Symptoms", + }); + internal_static_google_cloud_tpu_v1_Node_LabelsEntry_descriptor = + internal_static_google_cloud_tpu_v1_Node_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_tpu_v1_Node_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_Node_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_tpu_v1_ListNodesRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_tpu_v1_ListNodesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_ListNodesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_tpu_v1_ListNodesResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_tpu_v1_ListNodesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_ListNodesResponse_descriptor, + new java.lang.String[] { + "Nodes", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_tpu_v1_GetNodeRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_tpu_v1_GetNodeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_GetNodeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_tpu_v1_CreateNodeRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_tpu_v1_CreateNodeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_CreateNodeRequest_descriptor, + new java.lang.String[] { + "Parent", "NodeId", "Node", + }); + internal_static_google_cloud_tpu_v1_DeleteNodeRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_tpu_v1_DeleteNodeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_DeleteNodeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_tpu_v1_ReimageNodeRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_tpu_v1_ReimageNodeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_ReimageNodeRequest_descriptor, + new java.lang.String[] { + "Name", "TensorflowVersion", + }); + internal_static_google_cloud_tpu_v1_StopNodeRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_tpu_v1_StopNodeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_StopNodeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_tpu_v1_StartNodeRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_tpu_v1_StartNodeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_StartNodeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_tpu_v1_TensorFlowVersion_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_tpu_v1_TensorFlowVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_TensorFlowVersion_descriptor, + new java.lang.String[] { + "Name", "Version", + }); + internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_descriptor, + new java.lang.String[] { + "TensorflowVersions", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_tpu_v1_AcceleratorType_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_tpu_v1_AcceleratorType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_AcceleratorType_descriptor, + new java.lang.String[] { + "Name", "Type", + }); + internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_descriptor, + new java.lang.String[] { + "AcceleratorTypes", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_tpu_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_tpu_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusDetail", + "CancelRequested", + "ApiVersion", + }); + internal_static_google_cloud_tpu_v1_Symptom_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_tpu_v1_Symptom_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v1_Symptom_descriptor, + new java.lang.String[] { + "CreateTime", "SymptomType", "Details", "WorkerId", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CreateNodeRequest.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CreateNodeRequest.java similarity index 66% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CreateNodeRequest.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CreateNodeRequest.java index 05efff182e19..93f0d5f0ea2b 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CreateNodeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CreateNodeRequest.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * Request for [CreateNode][google.cloud.tpu.v1.Tpu.CreateNode].
  * 
* * Protobuf type {@code google.cloud.tpu.v1.CreateNodeRequest} */ -public final class CreateNodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.CreateNodeRequest) CreateNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateNodeRequest.newBuilder() to construct. private CreateNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateNodeRequest() { parent_ = ""; nodeId_ = ""; @@ -26,37 +44,43 @@ private CreateNodeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateNodeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_CreateNodeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_CreateNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_CreateNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_CreateNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.CreateNodeRequest.class, com.google.cloud.tpu.v1.CreateNodeRequest.Builder.class); + com.google.cloud.tpu.v1.CreateNodeRequest.class, + com.google.cloud.tpu.v1.CreateNodeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -65,29 +89,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -98,11 +124,14 @@ public java.lang.String getParent() { public static final int NODE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object nodeId_; /** + * + * *
    * The unqualified resource name.
    * 
* * string node_id = 2; + * * @return The nodeId. */ @java.lang.Override @@ -111,29 +140,29 @@ public java.lang.String getNodeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeId_ = s; return s; } } /** + * + * *
    * The unqualified resource name.
    * 
* * string node_id = 2; + * * @return The bytes for nodeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getNodeIdBytes() { + public com.google.protobuf.ByteString getNodeIdBytes() { java.lang.Object ref = nodeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeId_ = b; return b; } else { @@ -144,11 +173,14 @@ public java.lang.String getNodeId() { public static final int NODE_FIELD_NUMBER = 3; private com.google.cloud.tpu.v1.Node node_; /** + * + * *
    * Required. The node.
    * 
* * .google.cloud.tpu.v1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the node field is set. */ @java.lang.Override @@ -156,11 +188,14 @@ public boolean hasNode() { return node_ != null; } /** + * + * *
    * Required. The node.
    * 
* * .google.cloud.tpu.v1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The node. */ @java.lang.Override @@ -168,6 +203,8 @@ public com.google.cloud.tpu.v1.Node getNode() { return node_ == null ? com.google.cloud.tpu.v1.Node.getDefaultInstance() : node_; } /** + * + * *
    * Required. The node.
    * 
@@ -180,6 +217,7 @@ public com.google.cloud.tpu.v1.NodeOrBuilder getNodeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +229,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -218,8 +255,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeId_); } if (node_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getNode()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNode()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -229,21 +265,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.CreateNodeRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v1.CreateNodeRequest other = (com.google.cloud.tpu.v1.CreateNodeRequest) obj; + com.google.cloud.tpu.v1.CreateNodeRequest other = + (com.google.cloud.tpu.v1.CreateNodeRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getNodeId() - .equals(other.getNodeId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getNodeId().equals(other.getNodeId())) return false; if (hasNode() != other.hasNode()) return false; if (hasNode()) { - if (!getNode() - .equals(other.getNode())) return false; + if (!getNode().equals(other.getNode())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -269,130 +303,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v1.CreateNodeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v1.CreateNodeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.CreateNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.CreateNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.CreateNodeRequest 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.tpu.v1.CreateNodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.CreateNodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.CreateNodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.CreateNodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.CreateNodeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.CreateNodeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.CreateNodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.CreateNodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.CreateNodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.CreateNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [CreateNode][google.cloud.tpu.v1.Tpu.CreateNode].
    * 
* * Protobuf type {@code google.cloud.tpu.v1.CreateNodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.CreateNodeRequest) com.google.cloud.tpu.v1.CreateNodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_CreateNodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_CreateNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_CreateNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_CreateNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.CreateNodeRequest.class, com.google.cloud.tpu.v1.CreateNodeRequest.Builder.class); + com.google.cloud.tpu.v1.CreateNodeRequest.class, + com.google.cloud.tpu.v1.CreateNodeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v1.CreateNodeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +450,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_CreateNodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_CreateNodeRequest_descriptor; } @java.lang.Override @@ -431,7 +471,8 @@ public com.google.cloud.tpu.v1.CreateNodeRequest build() { @java.lang.Override public com.google.cloud.tpu.v1.CreateNodeRequest buildPartial() { - com.google.cloud.tpu.v1.CreateNodeRequest result = new com.google.cloud.tpu.v1.CreateNodeRequest(this); + com.google.cloud.tpu.v1.CreateNodeRequest result = + new com.google.cloud.tpu.v1.CreateNodeRequest(this); result.parent_ = parent_; result.nodeId_ = nodeId_; if (nodeBuilder_ == null) { @@ -447,38 +488,39 @@ public com.google.cloud.tpu.v1.CreateNodeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.CreateNodeRequest) { - return mergeFrom((com.google.cloud.tpu.v1.CreateNodeRequest)other); + return mergeFrom((com.google.cloud.tpu.v1.CreateNodeRequest) other); } else { super.mergeFrom(other); return this; @@ -524,29 +566,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - nodeId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + nodeId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getNodeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getNodeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -559,18 +603,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -579,20 +627,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -600,54 +651,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -655,18 +719,20 @@ public Builder setParentBytes( private java.lang.Object nodeId_ = ""; /** + * + * *
      * The unqualified resource name.
      * 
* * string node_id = 2; + * * @return The nodeId. */ public java.lang.String getNodeId() { java.lang.Object ref = nodeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeId_ = s; return s; @@ -675,20 +741,21 @@ public java.lang.String getNodeId() { } } /** + * + * *
      * The unqualified resource name.
      * 
* * string node_id = 2; + * * @return The bytes for nodeId. */ - public com.google.protobuf.ByteString - getNodeIdBytes() { + public com.google.protobuf.ByteString getNodeIdBytes() { java.lang.Object ref = nodeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeId_ = b; return b; } else { @@ -696,54 +763,61 @@ public java.lang.String getNodeId() { } } /** + * + * *
      * The unqualified resource name.
      * 
* * string node_id = 2; + * * @param value The nodeId to set. * @return This builder for chaining. */ - public Builder setNodeId( - java.lang.String value) { + public Builder setNodeId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeId_ = value; onChanged(); return this; } /** + * + * *
      * The unqualified resource name.
      * 
* * string node_id = 2; + * * @return This builder for chaining. */ public Builder clearNodeId() { - + nodeId_ = getDefaultInstance().getNodeId(); onChanged(); return this; } /** + * + * *
      * The unqualified resource name.
      * 
* * string node_id = 2; + * * @param value The bytes for nodeId to set. * @return This builder for chaining. */ - public Builder setNodeIdBytes( - com.google.protobuf.ByteString value) { + public Builder setNodeIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeId_ = value; onChanged(); return this; @@ -751,24 +825,33 @@ public Builder setNodeIdBytes( private com.google.cloud.tpu.v1.Node node_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v1.Node, com.google.cloud.tpu.v1.Node.Builder, com.google.cloud.tpu.v1.NodeOrBuilder> nodeBuilder_; + com.google.cloud.tpu.v1.Node, + com.google.cloud.tpu.v1.Node.Builder, + com.google.cloud.tpu.v1.NodeOrBuilder> + nodeBuilder_; /** + * + * *
      * Required. The node.
      * 
* * .google.cloud.tpu.v1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the node field is set. */ public boolean hasNode() { return nodeBuilder_ != null || node_ != null; } /** + * + * *
      * Required. The node.
      * 
* * .google.cloud.tpu.v1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The node. */ public com.google.cloud.tpu.v1.Node getNode() { @@ -779,6 +862,8 @@ public com.google.cloud.tpu.v1.Node getNode() { } } /** + * + * *
      * Required. The node.
      * 
@@ -799,14 +884,15 @@ public Builder setNode(com.google.cloud.tpu.v1.Node value) { return this; } /** + * + * *
      * Required. The node.
      * 
* * .google.cloud.tpu.v1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setNode( - com.google.cloud.tpu.v1.Node.Builder builderForValue) { + public Builder setNode(com.google.cloud.tpu.v1.Node.Builder builderForValue) { if (nodeBuilder_ == null) { node_ = builderForValue.build(); onChanged(); @@ -817,6 +903,8 @@ public Builder setNode( return this; } /** + * + * *
      * Required. The node.
      * 
@@ -826,8 +914,7 @@ public Builder setNode( public Builder mergeNode(com.google.cloud.tpu.v1.Node value) { if (nodeBuilder_ == null) { if (node_ != null) { - node_ = - com.google.cloud.tpu.v1.Node.newBuilder(node_).mergeFrom(value).buildPartial(); + node_ = com.google.cloud.tpu.v1.Node.newBuilder(node_).mergeFrom(value).buildPartial(); } else { node_ = value; } @@ -839,6 +926,8 @@ public Builder mergeNode(com.google.cloud.tpu.v1.Node value) { return this; } /** + * + * *
      * Required. The node.
      * 
@@ -857,6 +946,8 @@ public Builder clearNode() { return this; } /** + * + * *
      * Required. The node.
      * 
@@ -864,11 +955,13 @@ public Builder clearNode() { * .google.cloud.tpu.v1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.tpu.v1.Node.Builder getNodeBuilder() { - + onChanged(); return getNodeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The node.
      * 
@@ -879,11 +972,12 @@ public com.google.cloud.tpu.v1.NodeOrBuilder getNodeOrBuilder() { if (nodeBuilder_ != null) { return nodeBuilder_.getMessageOrBuilder(); } else { - return node_ == null ? - com.google.cloud.tpu.v1.Node.getDefaultInstance() : node_; + return node_ == null ? com.google.cloud.tpu.v1.Node.getDefaultInstance() : node_; } } /** + * + * *
      * Required. The node.
      * 
@@ -891,21 +985,24 @@ public com.google.cloud.tpu.v1.NodeOrBuilder getNodeOrBuilder() { * .google.cloud.tpu.v1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v1.Node, com.google.cloud.tpu.v1.Node.Builder, com.google.cloud.tpu.v1.NodeOrBuilder> + com.google.cloud.tpu.v1.Node, + com.google.cloud.tpu.v1.Node.Builder, + com.google.cloud.tpu.v1.NodeOrBuilder> getNodeFieldBuilder() { if (nodeBuilder_ == null) { - nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v1.Node, com.google.cloud.tpu.v1.Node.Builder, com.google.cloud.tpu.v1.NodeOrBuilder>( - getNode(), - getParentForChildren(), - isClean()); + nodeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v1.Node, + com.google.cloud.tpu.v1.Node.Builder, + com.google.cloud.tpu.v1.NodeOrBuilder>( + getNode(), getParentForChildren(), isClean()); node_ = null; } return nodeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -915,12 +1012,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.CreateNodeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.CreateNodeRequest) private static final com.google.cloud.tpu.v1.CreateNodeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.CreateNodeRequest(); } @@ -929,27 +1026,27 @@ public static com.google.cloud.tpu.v1.CreateNodeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateNodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -964,6 +1061,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v1.CreateNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CreateNodeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CreateNodeRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CreateNodeRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CreateNodeRequestOrBuilder.java index caad16ada543..2f6aae517a8c 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CreateNodeRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CreateNodeRequestOrBuilder.java @@ -1,71 +1,109 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; -public interface CreateNodeRequestOrBuilder extends +public interface CreateNodeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.CreateNodeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The unqualified resource name.
    * 
* * string node_id = 2; + * * @return The nodeId. */ java.lang.String getNodeId(); /** + * + * *
    * The unqualified resource name.
    * 
* * string node_id = 2; + * * @return The bytes for nodeId. */ - com.google.protobuf.ByteString - getNodeIdBytes(); + com.google.protobuf.ByteString getNodeIdBytes(); /** + * + * *
    * Required. The node.
    * 
* * .google.cloud.tpu.v1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the node field is set. */ boolean hasNode(); /** + * + * *
    * Required. The node.
    * 
* * .google.cloud.tpu.v1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The node. */ com.google.cloud.tpu.v1.Node getNode(); /** + * + * *
    * Required. The node.
    * 
diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/DeleteNodeRequest.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/DeleteNodeRequest.java similarity index 60% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/DeleteNodeRequest.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/DeleteNodeRequest.java index 1f3d5bf8274f..a0bdf5267ec4 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/DeleteNodeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/DeleteNodeRequest.java @@ -1,61 +1,85 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * Request for [DeleteNode][google.cloud.tpu.v1.Tpu.DeleteNode].
  * 
* * Protobuf type {@code google.cloud.tpu.v1.DeleteNodeRequest} */ -public final class DeleteNodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.DeleteNodeRequest) DeleteNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteNodeRequest.newBuilder() to construct. private DeleteNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteNodeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteNodeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_DeleteNodeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_DeleteNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_DeleteNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_DeleteNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.DeleteNodeRequest.class, com.google.cloud.tpu.v1.DeleteNodeRequest.Builder.class); + com.google.cloud.tpu.v1.DeleteNodeRequest.class, + com.google.cloud.tpu.v1.DeleteNodeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.DeleteNodeRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v1.DeleteNodeRequest other = (com.google.cloud.tpu.v1.DeleteNodeRequest) obj; + com.google.cloud.tpu.v1.DeleteNodeRequest other = + (com.google.cloud.tpu.v1.DeleteNodeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +184,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v1.DeleteNodeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v1.DeleteNodeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.DeleteNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.DeleteNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.DeleteNodeRequest 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.tpu.v1.DeleteNodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.DeleteNodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.DeleteNodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.DeleteNodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.DeleteNodeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.DeleteNodeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.DeleteNodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.DeleteNodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.DeleteNodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.DeleteNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [DeleteNode][google.cloud.tpu.v1.Tpu.DeleteNode].
    * 
* * Protobuf type {@code google.cloud.tpu.v1.DeleteNodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.DeleteNodeRequest) com.google.cloud.tpu.v1.DeleteNodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_DeleteNodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_DeleteNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_DeleteNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_DeleteNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.DeleteNodeRequest.class, com.google.cloud.tpu.v1.DeleteNodeRequest.Builder.class); + com.google.cloud.tpu.v1.DeleteNodeRequest.class, + com.google.cloud.tpu.v1.DeleteNodeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v1.DeleteNodeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_DeleteNodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_DeleteNodeRequest_descriptor; } @java.lang.Override @@ -312,7 +344,8 @@ public com.google.cloud.tpu.v1.DeleteNodeRequest build() { @java.lang.Override public com.google.cloud.tpu.v1.DeleteNodeRequest buildPartial() { - com.google.cloud.tpu.v1.DeleteNodeRequest result = new com.google.cloud.tpu.v1.DeleteNodeRequest(this); + com.google.cloud.tpu.v1.DeleteNodeRequest result = + new com.google.cloud.tpu.v1.DeleteNodeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +355,39 @@ public com.google.cloud.tpu.v1.DeleteNodeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.DeleteNodeRequest) { - return mergeFrom((com.google.cloud.tpu.v1.DeleteNodeRequest)other); + return mergeFrom((com.google.cloud.tpu.v1.DeleteNodeRequest) other); } else { super.mergeFrom(other); return this; @@ -392,17 +426,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +451,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -435,20 +475,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -456,61 +499,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +576,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.DeleteNodeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.DeleteNodeRequest) private static final com.google.cloud.tpu.v1.DeleteNodeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.DeleteNodeRequest(); } @@ -534,27 +590,27 @@ public static com.google.cloud.tpu.v1.DeleteNodeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteNodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteNodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +625,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v1.DeleteNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/DeleteNodeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/DeleteNodeRequestOrBuilder.java new file mode 100644 index 000000000000..cca7435f8d84 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/DeleteNodeRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v1/cloud_tpu.proto + +package com.google.cloud.tpu.v1; + +public interface DeleteNodeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.DeleteNodeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetAcceleratorTypeRequest.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetAcceleratorTypeRequest.java similarity index 61% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetAcceleratorTypeRequest.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetAcceleratorTypeRequest.java index df07b0b79087..6e375d56b2c1 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetAcceleratorTypeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetAcceleratorTypeRequest.java @@ -1,61 +1,85 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * Request for [GetAcceleratorType][google.cloud.tpu.v1.Tpu.GetAcceleratorType].
  * 
* * Protobuf type {@code google.cloud.tpu.v1.GetAcceleratorTypeRequest} */ -public final class GetAcceleratorTypeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetAcceleratorTypeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.GetAcceleratorTypeRequest) GetAcceleratorTypeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetAcceleratorTypeRequest.newBuilder() to construct. private GetAcceleratorTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetAcceleratorTypeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetAcceleratorTypeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.GetAcceleratorTypeRequest.class, com.google.cloud.tpu.v1.GetAcceleratorTypeRequest.Builder.class); + com.google.cloud.tpu.v1.GetAcceleratorTypeRequest.class, + com.google.cloud.tpu.v1.GetAcceleratorTypeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.GetAcceleratorTypeRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v1.GetAcceleratorTypeRequest other = (com.google.cloud.tpu.v1.GetAcceleratorTypeRequest) obj; + com.google.cloud.tpu.v1.GetAcceleratorTypeRequest other = + (com.google.cloud.tpu.v1.GetAcceleratorTypeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,129 +185,135 @@ public int hashCode() { } public static com.google.cloud.tpu.v1.GetAcceleratorTypeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.GetAcceleratorTypeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.GetAcceleratorTypeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.GetAcceleratorTypeRequest 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.tpu.v1.GetAcceleratorTypeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.GetAcceleratorTypeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v1.GetAcceleratorTypeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.GetAcceleratorTypeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.GetAcceleratorTypeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.GetAcceleratorTypeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.GetAcceleratorTypeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.GetAcceleratorTypeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.GetAcceleratorTypeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.GetAcceleratorTypeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.GetAcceleratorTypeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [GetAcceleratorType][google.cloud.tpu.v1.Tpu.GetAcceleratorType].
    * 
* * Protobuf type {@code google.cloud.tpu.v1.GetAcceleratorTypeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.GetAcceleratorTypeRequest) com.google.cloud.tpu.v1.GetAcceleratorTypeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.GetAcceleratorTypeRequest.class, com.google.cloud.tpu.v1.GetAcceleratorTypeRequest.Builder.class); + com.google.cloud.tpu.v1.GetAcceleratorTypeRequest.class, + com.google.cloud.tpu.v1.GetAcceleratorTypeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v1.GetAcceleratorTypeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_descriptor; } @java.lang.Override @@ -312,7 +344,8 @@ public com.google.cloud.tpu.v1.GetAcceleratorTypeRequest build() { @java.lang.Override public com.google.cloud.tpu.v1.GetAcceleratorTypeRequest buildPartial() { - com.google.cloud.tpu.v1.GetAcceleratorTypeRequest result = new com.google.cloud.tpu.v1.GetAcceleratorTypeRequest(this); + com.google.cloud.tpu.v1.GetAcceleratorTypeRequest result = + new com.google.cloud.tpu.v1.GetAcceleratorTypeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +355,39 @@ public com.google.cloud.tpu.v1.GetAcceleratorTypeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.GetAcceleratorTypeRequest) { - return mergeFrom((com.google.cloud.tpu.v1.GetAcceleratorTypeRequest)other); + return mergeFrom((com.google.cloud.tpu.v1.GetAcceleratorTypeRequest) other); } else { super.mergeFrom(other); return this; @@ -361,7 +395,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v1.GetAcceleratorTypeRequest other) { - if (other == com.google.cloud.tpu.v1.GetAcceleratorTypeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v1.GetAcceleratorTypeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -392,17 +427,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +452,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -435,20 +476,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -456,61 +500,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +577,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.GetAcceleratorTypeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.GetAcceleratorTypeRequest) private static final com.google.cloud.tpu.v1.GetAcceleratorTypeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.GetAcceleratorTypeRequest(); } @@ -534,27 +591,27 @@ public static com.google.cloud.tpu.v1.GetAcceleratorTypeRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAcceleratorTypeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAcceleratorTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +626,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.tpu.v1.GetAcceleratorTypeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetAcceleratorTypeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetAcceleratorTypeRequestOrBuilder.java new file mode 100644 index 000000000000..236bc019d8bc --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetAcceleratorTypeRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v1/cloud_tpu.proto + +package com.google.cloud.tpu.v1; + +public interface GetAcceleratorTypeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.GetAcceleratorTypeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetNodeRequest.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetNodeRequest.java similarity index 61% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetNodeRequest.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetNodeRequest.java index 9354630e8a9c..d2d971b7ad65 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetNodeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetNodeRequest.java @@ -1,61 +1,85 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * Request for [GetNode][google.cloud.tpu.v1.Tpu.GetNode].
  * 
* * Protobuf type {@code google.cloud.tpu.v1.GetNodeRequest} */ -public final class GetNodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.GetNodeRequest) GetNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetNodeRequest.newBuilder() to construct. private GetNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetNodeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNodeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_GetNodeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_GetNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_GetNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_GetNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.GetNodeRequest.class, com.google.cloud.tpu.v1.GetNodeRequest.Builder.class); + com.google.cloud.tpu.v1.GetNodeRequest.class, + com.google.cloud.tpu.v1.GetNodeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +157,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.GetNodeRequest)) { return super.equals(obj); } com.google.cloud.tpu.v1.GetNodeRequest other = (com.google.cloud.tpu.v1.GetNodeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +183,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v1.GetNodeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v1.GetNodeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.GetNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.GetNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.GetNodeRequest 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.tpu.v1.GetNodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.GetNodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.GetNodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.GetNodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.GetNodeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.GetNodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.GetNodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.GetNodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.GetNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [GetNode][google.cloud.tpu.v1.Tpu.GetNode].
    * 
* * Protobuf type {@code google.cloud.tpu.v1.GetNodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.GetNodeRequest) com.google.cloud.tpu.v1.GetNodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_GetNodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_GetNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_GetNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_GetNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.GetNodeRequest.class, com.google.cloud.tpu.v1.GetNodeRequest.Builder.class); + com.google.cloud.tpu.v1.GetNodeRequest.class, + com.google.cloud.tpu.v1.GetNodeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v1.GetNodeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_GetNodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_GetNodeRequest_descriptor; } @java.lang.Override @@ -312,7 +343,8 @@ public com.google.cloud.tpu.v1.GetNodeRequest build() { @java.lang.Override public com.google.cloud.tpu.v1.GetNodeRequest buildPartial() { - com.google.cloud.tpu.v1.GetNodeRequest result = new com.google.cloud.tpu.v1.GetNodeRequest(this); + com.google.cloud.tpu.v1.GetNodeRequest result = + new com.google.cloud.tpu.v1.GetNodeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +354,39 @@ public com.google.cloud.tpu.v1.GetNodeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.GetNodeRequest) { - return mergeFrom((com.google.cloud.tpu.v1.GetNodeRequest)other); + return mergeFrom((com.google.cloud.tpu.v1.GetNodeRequest) other); } else { super.mergeFrom(other); return this; @@ -392,17 +425,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +450,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -435,20 +474,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -456,61 +498,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +575,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.GetNodeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.GetNodeRequest) private static final com.google.cloud.tpu.v1.GetNodeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.GetNodeRequest(); } @@ -534,27 +589,27 @@ public static com.google.cloud.tpu.v1.GetNodeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +624,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v1.GetNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetNodeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetNodeRequestOrBuilder.java new file mode 100644 index 000000000000..283d187a5fbe --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetNodeRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v1/cloud_tpu.proto + +package com.google.cloud.tpu.v1; + +public interface GetNodeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.GetNodeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetTensorFlowVersionRequest.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetTensorFlowVersionRequest.java similarity index 61% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetTensorFlowVersionRequest.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetTensorFlowVersionRequest.java index 681f9205fc5b..b96b96337d63 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetTensorFlowVersionRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetTensorFlowVersionRequest.java @@ -1,61 +1,85 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * Request for [GetTensorFlowVersion][google.cloud.tpu.v1.Tpu.GetTensorFlowVersion].
  * 
* * Protobuf type {@code google.cloud.tpu.v1.GetTensorFlowVersionRequest} */ -public final class GetTensorFlowVersionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetTensorFlowVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.GetTensorFlowVersionRequest) GetTensorFlowVersionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetTensorFlowVersionRequest.newBuilder() to construct. private GetTensorFlowVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetTensorFlowVersionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetTensorFlowVersionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.GetTensorFlowVersionRequest.class, com.google.cloud.tpu.v1.GetTensorFlowVersionRequest.Builder.class); + com.google.cloud.tpu.v1.GetTensorFlowVersionRequest.class, + com.google.cloud.tpu.v1.GetTensorFlowVersionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.GetTensorFlowVersionRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v1.GetTensorFlowVersionRequest other = (com.google.cloud.tpu.v1.GetTensorFlowVersionRequest) obj; + com.google.cloud.tpu.v1.GetTensorFlowVersionRequest other = + (com.google.cloud.tpu.v1.GetTensorFlowVersionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,129 +185,135 @@ public int hashCode() { } public static com.google.cloud.tpu.v1.GetTensorFlowVersionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.GetTensorFlowVersionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.GetTensorFlowVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.GetTensorFlowVersionRequest 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.tpu.v1.GetTensorFlowVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.GetTensorFlowVersionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v1.GetTensorFlowVersionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.GetTensorFlowVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.GetTensorFlowVersionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.GetTensorFlowVersionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.GetTensorFlowVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.GetTensorFlowVersionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.GetTensorFlowVersionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.GetTensorFlowVersionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.GetTensorFlowVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [GetTensorFlowVersion][google.cloud.tpu.v1.Tpu.GetTensorFlowVersion].
    * 
* * Protobuf type {@code google.cloud.tpu.v1.GetTensorFlowVersionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.GetTensorFlowVersionRequest) com.google.cloud.tpu.v1.GetTensorFlowVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.GetTensorFlowVersionRequest.class, com.google.cloud.tpu.v1.GetTensorFlowVersionRequest.Builder.class); + com.google.cloud.tpu.v1.GetTensorFlowVersionRequest.class, + com.google.cloud.tpu.v1.GetTensorFlowVersionRequest.Builder.class); } // Construct using com.google.cloud.tpu.v1.GetTensorFlowVersionRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_descriptor; } @java.lang.Override @@ -312,7 +344,8 @@ public com.google.cloud.tpu.v1.GetTensorFlowVersionRequest build() { @java.lang.Override public com.google.cloud.tpu.v1.GetTensorFlowVersionRequest buildPartial() { - com.google.cloud.tpu.v1.GetTensorFlowVersionRequest result = new com.google.cloud.tpu.v1.GetTensorFlowVersionRequest(this); + com.google.cloud.tpu.v1.GetTensorFlowVersionRequest result = + new com.google.cloud.tpu.v1.GetTensorFlowVersionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +355,39 @@ public com.google.cloud.tpu.v1.GetTensorFlowVersionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.GetTensorFlowVersionRequest) { - return mergeFrom((com.google.cloud.tpu.v1.GetTensorFlowVersionRequest)other); + return mergeFrom((com.google.cloud.tpu.v1.GetTensorFlowVersionRequest) other); } else { super.mergeFrom(other); return this; @@ -361,7 +395,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v1.GetTensorFlowVersionRequest other) { - if (other == com.google.cloud.tpu.v1.GetTensorFlowVersionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v1.GetTensorFlowVersionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -392,17 +427,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +452,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -435,20 +476,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -456,61 +500,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +577,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.GetTensorFlowVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.GetTensorFlowVersionRequest) private static final com.google.cloud.tpu.v1.GetTensorFlowVersionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.GetTensorFlowVersionRequest(); } @@ -534,27 +591,27 @@ public static com.google.cloud.tpu.v1.GetTensorFlowVersionRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTensorFlowVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTensorFlowVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +626,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.tpu.v1.GetTensorFlowVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetTensorFlowVersionRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetTensorFlowVersionRequestOrBuilder.java new file mode 100644 index 000000000000..ed5597d5bf9f --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetTensorFlowVersionRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v1/cloud_tpu.proto + +package com.google.cloud.tpu.v1; + +public interface GetTensorFlowVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.GetTensorFlowVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesRequest.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesRequest.java similarity index 67% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesRequest.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesRequest.java index 7460a6b1c948..94caa5beb778 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesRequest.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * Request for [ListAcceleratorTypes][google.cloud.tpu.v1.Tpu.ListAcceleratorTypes].
  * 
* * Protobuf type {@code google.cloud.tpu.v1.ListAcceleratorTypesRequest} */ -public final class ListAcceleratorTypesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAcceleratorTypesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.ListAcceleratorTypesRequest) ListAcceleratorTypesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAcceleratorTypesRequest.newBuilder() to construct. private ListAcceleratorTypesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAcceleratorTypesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,37 +46,43 @@ private ListAcceleratorTypesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAcceleratorTypesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.ListAcceleratorTypesRequest.class, com.google.cloud.tpu.v1.ListAcceleratorTypesRequest.Builder.class); + com.google.cloud.tpu.v1.ListAcceleratorTypesRequest.class, + com.google.cloud.tpu.v1.ListAcceleratorTypesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,29 +91,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -100,11 +126,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -115,11 +144,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -128,29 +160,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -161,11 +193,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ @java.lang.Override @@ -174,29 +209,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -207,11 +242,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 6; private volatile java.lang.Object orderBy_; /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The orderBy. */ @java.lang.Override @@ -220,29 +258,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -251,6 +289,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,8 +301,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -292,8 +330,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -312,23 +349,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.ListAcceleratorTypesRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v1.ListAcceleratorTypesRequest other = (com.google.cloud.tpu.v1.ListAcceleratorTypesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.tpu.v1.ListAcceleratorTypesRequest other = + (com.google.cloud.tpu.v1.ListAcceleratorTypesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -356,129 +389,135 @@ public int hashCode() { } public static com.google.cloud.tpu.v1.ListAcceleratorTypesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ListAcceleratorTypesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.ListAcceleratorTypesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ListAcceleratorTypesRequest 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.tpu.v1.ListAcceleratorTypesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ListAcceleratorTypesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v1.ListAcceleratorTypesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.ListAcceleratorTypesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ListAcceleratorTypesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.ListAcceleratorTypesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.ListAcceleratorTypesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ListAcceleratorTypesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.ListAcceleratorTypesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ListAcceleratorTypesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.ListAcceleratorTypesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [ListAcceleratorTypes][google.cloud.tpu.v1.Tpu.ListAcceleratorTypes].
    * 
* * Protobuf type {@code google.cloud.tpu.v1.ListAcceleratorTypesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.ListAcceleratorTypesRequest) com.google.cloud.tpu.v1.ListAcceleratorTypesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.ListAcceleratorTypesRequest.class, com.google.cloud.tpu.v1.ListAcceleratorTypesRequest.Builder.class); + com.google.cloud.tpu.v1.ListAcceleratorTypesRequest.class, + com.google.cloud.tpu.v1.ListAcceleratorTypesRequest.Builder.class); } // Construct using com.google.cloud.tpu.v1.ListAcceleratorTypesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +535,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_descriptor; } @java.lang.Override @@ -517,7 +556,8 @@ public com.google.cloud.tpu.v1.ListAcceleratorTypesRequest build() { @java.lang.Override public com.google.cloud.tpu.v1.ListAcceleratorTypesRequest buildPartial() { - com.google.cloud.tpu.v1.ListAcceleratorTypesRequest result = new com.google.cloud.tpu.v1.ListAcceleratorTypesRequest(this); + com.google.cloud.tpu.v1.ListAcceleratorTypesRequest result = + new com.google.cloud.tpu.v1.ListAcceleratorTypesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -531,38 +571,39 @@ public com.google.cloud.tpu.v1.ListAcceleratorTypesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.ListAcceleratorTypesRequest) { - return mergeFrom((com.google.cloud.tpu.v1.ListAcceleratorTypesRequest)other); + return mergeFrom((com.google.cloud.tpu.v1.ListAcceleratorTypesRequest) other); } else { super.mergeFrom(other); return this; @@ -570,7 +611,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v1.ListAcceleratorTypesRequest other) { - if (other == com.google.cloud.tpu.v1.ListAcceleratorTypesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v1.ListAcceleratorTypesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -616,37 +658,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 42: { - filter_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 42: + { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - case 50: { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 42 + case 50: + { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,18 +707,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -679,20 +731,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -700,66 +755,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -767,30 +838,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -798,18 +875,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -818,20 +897,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -839,54 +919,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -894,18 +981,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -914,20 +1003,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -935,54 +1025,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -990,18 +1087,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1010,20 +1109,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1031,61 +1131,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1095,12 +1202,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.ListAcceleratorTypesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.ListAcceleratorTypesRequest) private static final com.google.cloud.tpu.v1.ListAcceleratorTypesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.ListAcceleratorTypesRequest(); } @@ -1109,27 +1216,27 @@ public static com.google.cloud.tpu.v1.ListAcceleratorTypesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAcceleratorTypesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAcceleratorTypesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,6 +1251,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.tpu.v1.ListAcceleratorTypesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesRequestOrBuilder.java index 9901af4af3f7..d2b5e3b447ba 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; -public interface ListAcceleratorTypesRequestOrBuilder extends +public interface ListAcceleratorTypesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.ListAcceleratorTypesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesResponse.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesResponse.java similarity index 73% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesResponse.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesResponse.java index c2d3e5b78801..51282dd6a500 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesResponse.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesResponse.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * Response for [ListAcceleratorTypes][google.cloud.tpu.v1.Tpu.ListAcceleratorTypes].
  * 
* * Protobuf type {@code google.cloud.tpu.v1.ListAcceleratorTypesResponse} */ -public final class ListAcceleratorTypesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAcceleratorTypesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.ListAcceleratorTypesResponse) ListAcceleratorTypesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAcceleratorTypesResponse.newBuilder() to construct. private ListAcceleratorTypesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAcceleratorTypesResponse() { acceleratorTypes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +45,35 @@ private ListAcceleratorTypesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAcceleratorTypesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.ListAcceleratorTypesResponse.class, com.google.cloud.tpu.v1.ListAcceleratorTypesResponse.Builder.class); + com.google.cloud.tpu.v1.ListAcceleratorTypesResponse.class, + com.google.cloud.tpu.v1.ListAcceleratorTypesResponse.Builder.class); } public static final int ACCELERATOR_TYPES_FIELD_NUMBER = 1; private java.util.List acceleratorTypes_; /** + * + * *
    * The listed nodes.
    * 
@@ -64,6 +85,8 @@ public java.util.List getAcceleratorTyp return acceleratorTypes_; } /** + * + * *
    * The listed nodes.
    * 
@@ -71,11 +94,13 @@ public java.util.List getAcceleratorTyp * repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1; */ @java.lang.Override - public java.util.List + public java.util.List getAcceleratorTypesOrBuilderList() { return acceleratorTypes_; } /** + * + * *
    * The listed nodes.
    * 
@@ -87,6 +112,8 @@ public int getAcceleratorTypesCount() { return acceleratorTypes_.size(); } /** + * + * *
    * The listed nodes.
    * 
@@ -98,6 +125,8 @@ public com.google.cloud.tpu.v1.AcceleratorType getAcceleratorTypes(int index) { return acceleratorTypes_.get(index); } /** + * + * *
    * The listed nodes.
    * 
@@ -105,19 +134,21 @@ public com.google.cloud.tpu.v1.AcceleratorType getAcceleratorTypes(int index) { * repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1; */ @java.lang.Override - public com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder getAcceleratorTypesOrBuilder( - int index) { + public com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder getAcceleratorTypesOrBuilder(int index) { return acceleratorTypes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,29 +157,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -159,34 +190,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -194,20 +233,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < acceleratorTypes_.size(); i++) { output.writeMessage(1, acceleratorTypes_.get(i)); } @@ -240,8 +281,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < acceleratorTypes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, acceleratorTypes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, acceleratorTypes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -262,19 +302,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.ListAcceleratorTypesResponse)) { return super.equals(obj); } - com.google.cloud.tpu.v1.ListAcceleratorTypesResponse other = (com.google.cloud.tpu.v1.ListAcceleratorTypesResponse) obj; + com.google.cloud.tpu.v1.ListAcceleratorTypesResponse other = + (com.google.cloud.tpu.v1.ListAcceleratorTypesResponse) obj; - if (!getAcceleratorTypesList() - .equals(other.getAcceleratorTypesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getAcceleratorTypesList().equals(other.getAcceleratorTypesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -302,129 +340,135 @@ public int hashCode() { } public static com.google.cloud.tpu.v1.ListAcceleratorTypesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ListAcceleratorTypesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.ListAcceleratorTypesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ListAcceleratorTypesResponse 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.tpu.v1.ListAcceleratorTypesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ListAcceleratorTypesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v1.ListAcceleratorTypesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.ListAcceleratorTypesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ListAcceleratorTypesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.ListAcceleratorTypesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.ListAcceleratorTypesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ListAcceleratorTypesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.ListAcceleratorTypesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ListAcceleratorTypesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.ListAcceleratorTypesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [ListAcceleratorTypes][google.cloud.tpu.v1.Tpu.ListAcceleratorTypes].
    * 
* * Protobuf type {@code google.cloud.tpu.v1.ListAcceleratorTypesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.ListAcceleratorTypesResponse) com.google.cloud.tpu.v1.ListAcceleratorTypesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.ListAcceleratorTypesResponse.class, com.google.cloud.tpu.v1.ListAcceleratorTypesResponse.Builder.class); + com.google.cloud.tpu.v1.ListAcceleratorTypesResponse.class, + com.google.cloud.tpu.v1.ListAcceleratorTypesResponse.Builder.class); } // Construct using com.google.cloud.tpu.v1.ListAcceleratorTypesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_descriptor; } @java.lang.Override @@ -464,7 +508,8 @@ public com.google.cloud.tpu.v1.ListAcceleratorTypesResponse build() { @java.lang.Override public com.google.cloud.tpu.v1.ListAcceleratorTypesResponse buildPartial() { - com.google.cloud.tpu.v1.ListAcceleratorTypesResponse result = new com.google.cloud.tpu.v1.ListAcceleratorTypesResponse(this); + com.google.cloud.tpu.v1.ListAcceleratorTypesResponse result = + new com.google.cloud.tpu.v1.ListAcceleratorTypesResponse(this); int from_bitField0_ = bitField0_; if (acceleratorTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -489,38 +534,39 @@ public com.google.cloud.tpu.v1.ListAcceleratorTypesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.ListAcceleratorTypesResponse) { - return mergeFrom((com.google.cloud.tpu.v1.ListAcceleratorTypesResponse)other); + return mergeFrom((com.google.cloud.tpu.v1.ListAcceleratorTypesResponse) other); } else { super.mergeFrom(other); return this; @@ -528,7 +574,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v1.ListAcceleratorTypesResponse other) { - if (other == com.google.cloud.tpu.v1.ListAcceleratorTypesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v1.ListAcceleratorTypesResponse.getDefaultInstance()) + return this; if (acceleratorTypesBuilder_ == null) { if (!other.acceleratorTypes_.isEmpty()) { if (acceleratorTypes_.isEmpty()) { @@ -547,9 +594,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v1.ListAcceleratorTypesResponse ot acceleratorTypesBuilder_ = null; acceleratorTypes_ = other.acceleratorTypes_; bitField0_ = (bitField0_ & ~0x00000001); - acceleratorTypesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAcceleratorTypesFieldBuilder() : null; + acceleratorTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAcceleratorTypesFieldBuilder() + : null; } else { acceleratorTypesBuilder_.addAllMessages(other.acceleratorTypes_); } @@ -595,36 +643,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.tpu.v1.AcceleratorType m = - input.readMessage( - com.google.cloud.tpu.v1.AcceleratorType.parser(), - extensionRegistry); - if (acceleratorTypesBuilder_ == null) { - ensureAcceleratorTypesIsMutable(); - acceleratorTypes_.add(m); - } else { - acceleratorTypesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.tpu.v1.AcceleratorType m = + input.readMessage( + com.google.cloud.tpu.v1.AcceleratorType.parser(), extensionRegistry); + if (acceleratorTypesBuilder_ == null) { + ensureAcceleratorTypesIsMutable(); + acceleratorTypes_.add(m); + } else { + acceleratorTypesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -634,21 +685,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List acceleratorTypes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAcceleratorTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - acceleratorTypes_ = new java.util.ArrayList(acceleratorTypes_); + acceleratorTypes_ = + new java.util.ArrayList(acceleratorTypes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v1.AcceleratorType, com.google.cloud.tpu.v1.AcceleratorType.Builder, com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder> acceleratorTypesBuilder_; + com.google.cloud.tpu.v1.AcceleratorType, + com.google.cloud.tpu.v1.AcceleratorType.Builder, + com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder> + acceleratorTypesBuilder_; /** + * + * *
      * The listed nodes.
      * 
@@ -663,6 +722,8 @@ public java.util.List getAcceleratorTyp } } /** + * + * *
      * The listed nodes.
      * 
@@ -677,6 +738,8 @@ public int getAcceleratorTypesCount() { } } /** + * + * *
      * The listed nodes.
      * 
@@ -691,14 +754,15 @@ public com.google.cloud.tpu.v1.AcceleratorType getAcceleratorTypes(int index) { } } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1; */ - public Builder setAcceleratorTypes( - int index, com.google.cloud.tpu.v1.AcceleratorType value) { + public Builder setAcceleratorTypes(int index, com.google.cloud.tpu.v1.AcceleratorType value) { if (acceleratorTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -712,6 +776,8 @@ public Builder setAcceleratorTypes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -730,6 +796,8 @@ public Builder setAcceleratorTypes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -750,14 +818,15 @@ public Builder addAcceleratorTypes(com.google.cloud.tpu.v1.AcceleratorType value return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1; */ - public Builder addAcceleratorTypes( - int index, com.google.cloud.tpu.v1.AcceleratorType value) { + public Builder addAcceleratorTypes(int index, com.google.cloud.tpu.v1.AcceleratorType value) { if (acceleratorTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -771,6 +840,8 @@ public Builder addAcceleratorTypes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -789,6 +860,8 @@ public Builder addAcceleratorTypes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -807,6 +880,8 @@ public Builder addAcceleratorTypes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -817,8 +892,7 @@ public Builder addAllAcceleratorTypes( java.lang.Iterable values) { if (acceleratorTypesBuilder_ == null) { ensureAcceleratorTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, acceleratorTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, acceleratorTypes_); onChanged(); } else { acceleratorTypesBuilder_.addAllMessages(values); @@ -826,6 +900,8 @@ public Builder addAllAcceleratorTypes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -843,6 +919,8 @@ public Builder clearAcceleratorTypes() { return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -860,17 +938,20 @@ public Builder removeAcceleratorTypes(int index) { return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1; */ - public com.google.cloud.tpu.v1.AcceleratorType.Builder getAcceleratorTypesBuilder( - int index) { + public com.google.cloud.tpu.v1.AcceleratorType.Builder getAcceleratorTypesBuilder(int index) { return getAcceleratorTypesFieldBuilder().getBuilder(index); } /** + * + * *
      * The listed nodes.
      * 
@@ -880,19 +961,22 @@ public com.google.cloud.tpu.v1.AcceleratorType.Builder getAcceleratorTypesBuilde public com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder getAcceleratorTypesOrBuilder( int index) { if (acceleratorTypesBuilder_ == null) { - return acceleratorTypes_.get(index); } else { + return acceleratorTypes_.get(index); + } else { return acceleratorTypesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1; */ - public java.util.List - getAcceleratorTypesOrBuilderList() { + public java.util.List + getAcceleratorTypesOrBuilderList() { if (acceleratorTypesBuilder_ != null) { return acceleratorTypesBuilder_.getMessageOrBuilderList(); } else { @@ -900,6 +984,8 @@ public com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder getAcceleratorTypesOrBui } } /** + * + * *
      * The listed nodes.
      * 
@@ -907,38 +993,47 @@ public com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder getAcceleratorTypesOrBui * repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1; */ public com.google.cloud.tpu.v1.AcceleratorType.Builder addAcceleratorTypesBuilder() { - return getAcceleratorTypesFieldBuilder().addBuilder( - com.google.cloud.tpu.v1.AcceleratorType.getDefaultInstance()); + return getAcceleratorTypesFieldBuilder() + .addBuilder(com.google.cloud.tpu.v1.AcceleratorType.getDefaultInstance()); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1; */ - public com.google.cloud.tpu.v1.AcceleratorType.Builder addAcceleratorTypesBuilder( - int index) { - return getAcceleratorTypesFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v1.AcceleratorType.getDefaultInstance()); + public com.google.cloud.tpu.v1.AcceleratorType.Builder addAcceleratorTypesBuilder(int index) { + return getAcceleratorTypesFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v1.AcceleratorType.getDefaultInstance()); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1; */ - public java.util.List - getAcceleratorTypesBuilderList() { + public java.util.List + getAcceleratorTypesBuilderList() { return getAcceleratorTypesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v1.AcceleratorType, com.google.cloud.tpu.v1.AcceleratorType.Builder, com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder> + com.google.cloud.tpu.v1.AcceleratorType, + com.google.cloud.tpu.v1.AcceleratorType.Builder, + com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder> getAcceleratorTypesFieldBuilder() { if (acceleratorTypesBuilder_ == null) { - acceleratorTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v1.AcceleratorType, com.google.cloud.tpu.v1.AcceleratorType.Builder, com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder>( + acceleratorTypesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v1.AcceleratorType, + com.google.cloud.tpu.v1.AcceleratorType.Builder, + com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder>( acceleratorTypes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -950,18 +1045,20 @@ public com.google.cloud.tpu.v1.AcceleratorType.Builder addAcceleratorTypesBuilde private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -970,20 +1067,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -991,95 +1089,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1087,80 +1202,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1170,28 +1295,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1201,12 +1328,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.ListAcceleratorTypesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.ListAcceleratorTypesResponse) private static final com.google.cloud.tpu.v1.ListAcceleratorTypesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.ListAcceleratorTypesResponse(); } @@ -1215,27 +1342,27 @@ public static com.google.cloud.tpu.v1.ListAcceleratorTypesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAcceleratorTypesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAcceleratorTypesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1250,6 +1377,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.tpu.v1.ListAcceleratorTypesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesResponseOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesResponseOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesResponseOrBuilder.java index ee4a968d747b..22c7fea3df5a 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesResponseOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListAcceleratorTypesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; -public interface ListAcceleratorTypesResponseOrBuilder extends +public interface ListAcceleratorTypesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.ListAcceleratorTypesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1; */ - java.util.List - getAcceleratorTypesList(); + java.util.List getAcceleratorTypesList(); /** + * + * *
    * The listed nodes.
    * 
@@ -25,6 +44,8 @@ public interface ListAcceleratorTypesResponseOrBuilder extends */ com.google.cloud.tpu.v1.AcceleratorType getAcceleratorTypes(int index); /** + * + * *
    * The listed nodes.
    * 
@@ -33,82 +54,100 @@ public interface ListAcceleratorTypesResponseOrBuilder extends */ int getAcceleratorTypesCount(); /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1; */ - java.util.List + java.util.List getAcceleratorTypesOrBuilderList(); /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1; */ - com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder getAcceleratorTypesOrBuilder( - int index); + com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder getAcceleratorTypesOrBuilder(int index); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesRequest.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesRequest.java similarity index 65% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesRequest.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesRequest.java index 08cbda15c073..809cb41da9b2 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesRequest.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * Request for [ListNodes][google.cloud.tpu.v1.Tpu.ListNodes].
  * 
* * Protobuf type {@code google.cloud.tpu.v1.ListNodesRequest} */ -public final class ListNodesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNodesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.ListNodesRequest) ListNodesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNodesRequest.newBuilder() to construct. private ListNodesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNodesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,37 +44,43 @@ private ListNodesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNodesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListNodesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListNodesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListNodesRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListNodesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.ListNodesRequest.class, com.google.cloud.tpu.v1.ListNodesRequest.Builder.class); + com.google.cloud.tpu.v1.ListNodesRequest.class, + com.google.cloud.tpu.v1.ListNodesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -65,29 +89,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -98,11 +124,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -113,11 +142,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -126,29 +158,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -157,6 +189,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -192,8 +224,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -206,19 +237,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.ListNodesRequest)) { return super.equals(obj); } com.google.cloud.tpu.v1.ListNodesRequest other = (com.google.cloud.tpu.v1.ListNodesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,130 +269,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v1.ListNodesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v1.ListNodesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ListNodesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.ListNodesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ListNodesRequest 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.tpu.v1.ListNodesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ListNodesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.ListNodesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ListNodesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.ListNodesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.ListNodesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ListNodesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.ListNodesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ListNodesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.ListNodesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [ListNodes][google.cloud.tpu.v1.Tpu.ListNodes].
    * 
* * Protobuf type {@code google.cloud.tpu.v1.ListNodesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.ListNodesRequest) com.google.cloud.tpu.v1.ListNodesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListNodesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListNodesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListNodesRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListNodesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.ListNodesRequest.class, com.google.cloud.tpu.v1.ListNodesRequest.Builder.class); + com.google.cloud.tpu.v1.ListNodesRequest.class, + com.google.cloud.tpu.v1.ListNodesRequest.Builder.class); } // Construct using com.google.cloud.tpu.v1.ListNodesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListNodesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListNodesRequest_descriptor; } @java.lang.Override @@ -399,7 +433,8 @@ public com.google.cloud.tpu.v1.ListNodesRequest build() { @java.lang.Override public com.google.cloud.tpu.v1.ListNodesRequest buildPartial() { - com.google.cloud.tpu.v1.ListNodesRequest result = new com.google.cloud.tpu.v1.ListNodesRequest(this); + com.google.cloud.tpu.v1.ListNodesRequest result = + new com.google.cloud.tpu.v1.ListNodesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -411,38 +446,39 @@ public com.google.cloud.tpu.v1.ListNodesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.ListNodesRequest) { - return mergeFrom((com.google.cloud.tpu.v1.ListNodesRequest)other); + return mergeFrom((com.google.cloud.tpu.v1.ListNodesRequest) other); } else { super.mergeFrom(other); return this; @@ -488,27 +524,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -521,18 +561,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -541,20 +585,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -562,66 +609,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -629,30 +692,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -660,18 +729,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -680,20 +751,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -701,61 +773,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -765,12 +844,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.ListNodesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.ListNodesRequest) private static final com.google.cloud.tpu.v1.ListNodesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.ListNodesRequest(); } @@ -779,27 +858,27 @@ public static com.google.cloud.tpu.v1.ListNodesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNodesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNodesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -814,6 +893,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v1.ListNodesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesRequestOrBuilder.java index 78168640de9e..fdd37af64506 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesRequestOrBuilder.java @@ -1,59 +1,92 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; -public interface ListNodesRequestOrBuilder extends +public interface ListNodesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.ListNodesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesResponse.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesResponse.java similarity index 71% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesResponse.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesResponse.java index 52711dccfa6c..fdf96624850d 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesResponse.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesResponse.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * Response for [ListNodes][google.cloud.tpu.v1.Tpu.ListNodes].
  * 
* * Protobuf type {@code google.cloud.tpu.v1.ListNodesResponse} */ -public final class ListNodesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNodesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.ListNodesResponse) ListNodesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNodesResponse.newBuilder() to construct. private ListNodesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNodesResponse() { nodes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +45,35 @@ private ListNodesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNodesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListNodesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListNodesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListNodesResponse_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListNodesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.ListNodesResponse.class, com.google.cloud.tpu.v1.ListNodesResponse.Builder.class); + com.google.cloud.tpu.v1.ListNodesResponse.class, + com.google.cloud.tpu.v1.ListNodesResponse.Builder.class); } public static final int NODES_FIELD_NUMBER = 1; private java.util.List nodes_; /** + * + * *
    * The listed nodes.
    * 
@@ -64,6 +85,8 @@ public java.util.List getNodesList() { return nodes_; } /** + * + * *
    * The listed nodes.
    * 
@@ -71,11 +94,12 @@ public java.util.List getNodesList() { * repeated .google.cloud.tpu.v1.Node nodes = 1; */ @java.lang.Override - public java.util.List - getNodesOrBuilderList() { + public java.util.List getNodesOrBuilderList() { return nodes_; } /** + * + * *
    * The listed nodes.
    * 
@@ -87,6 +111,8 @@ public int getNodesCount() { return nodes_.size(); } /** + * + * *
    * The listed nodes.
    * 
@@ -98,6 +124,8 @@ public com.google.cloud.tpu.v1.Node getNodes(int index) { return nodes_.get(index); } /** + * + * *
    * The listed nodes.
    * 
@@ -105,19 +133,21 @@ public com.google.cloud.tpu.v1.Node getNodes(int index) { * repeated .google.cloud.tpu.v1.Node nodes = 1; */ @java.lang.Override - public com.google.cloud.tpu.v1.NodeOrBuilder getNodesOrBuilder( - int index) { + public com.google.cloud.tpu.v1.NodeOrBuilder getNodesOrBuilder(int index) { return nodes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,29 +156,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -159,34 +189,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -194,20 +232,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < nodes_.size(); i++) { output.writeMessage(1, nodes_.get(i)); } @@ -240,8 +280,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nodes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nodes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -262,19 +301,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.ListNodesResponse)) { return super.equals(obj); } - com.google.cloud.tpu.v1.ListNodesResponse other = (com.google.cloud.tpu.v1.ListNodesResponse) obj; + com.google.cloud.tpu.v1.ListNodesResponse other = + (com.google.cloud.tpu.v1.ListNodesResponse) obj; - if (!getNodesList() - .equals(other.getNodesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getNodesList().equals(other.getNodesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -301,130 +338,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v1.ListNodesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v1.ListNodesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ListNodesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.ListNodesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ListNodesResponse 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.tpu.v1.ListNodesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ListNodesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.ListNodesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ListNodesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.ListNodesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.ListNodesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ListNodesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.ListNodesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ListNodesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.ListNodesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [ListNodes][google.cloud.tpu.v1.Tpu.ListNodes].
    * 
* * Protobuf type {@code google.cloud.tpu.v1.ListNodesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.ListNodesResponse) com.google.cloud.tpu.v1.ListNodesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListNodesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListNodesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListNodesResponse_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListNodesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.ListNodesResponse.class, com.google.cloud.tpu.v1.ListNodesResponse.Builder.class); + com.google.cloud.tpu.v1.ListNodesResponse.class, + com.google.cloud.tpu.v1.ListNodesResponse.Builder.class); } // Construct using com.google.cloud.tpu.v1.ListNodesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +486,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListNodesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListNodesResponse_descriptor; } @java.lang.Override @@ -464,7 +507,8 @@ public com.google.cloud.tpu.v1.ListNodesResponse build() { @java.lang.Override public com.google.cloud.tpu.v1.ListNodesResponse buildPartial() { - com.google.cloud.tpu.v1.ListNodesResponse result = new com.google.cloud.tpu.v1.ListNodesResponse(this); + com.google.cloud.tpu.v1.ListNodesResponse result = + new com.google.cloud.tpu.v1.ListNodesResponse(this); int from_bitField0_ = bitField0_; if (nodesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -489,38 +533,39 @@ public com.google.cloud.tpu.v1.ListNodesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.ListNodesResponse) { - return mergeFrom((com.google.cloud.tpu.v1.ListNodesResponse)other); + return mergeFrom((com.google.cloud.tpu.v1.ListNodesResponse) other); } else { super.mergeFrom(other); return this; @@ -547,9 +592,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v1.ListNodesResponse other) { nodesBuilder_ = null; nodes_ = other.nodes_; bitField0_ = (bitField0_ & ~0x00000001); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodesFieldBuilder() : null; + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodesFieldBuilder() + : null; } else { nodesBuilder_.addAllMessages(other.nodes_); } @@ -595,36 +641,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.tpu.v1.Node m = - input.readMessage( - com.google.cloud.tpu.v1.Node.parser(), - extensionRegistry); - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(m); - } else { - nodesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.tpu.v1.Node m = + input.readMessage(com.google.cloud.tpu.v1.Node.parser(), extensionRegistry); + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(m); + } else { + nodesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -634,21 +682,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List nodes_ = - java.util.Collections.emptyList(); + private java.util.List nodes_ = java.util.Collections.emptyList(); + private void ensureNodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nodes_ = new java.util.ArrayList(nodes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v1.Node, com.google.cloud.tpu.v1.Node.Builder, com.google.cloud.tpu.v1.NodeOrBuilder> nodesBuilder_; + com.google.cloud.tpu.v1.Node, + com.google.cloud.tpu.v1.Node.Builder, + com.google.cloud.tpu.v1.NodeOrBuilder> + nodesBuilder_; /** + * + * *
      * The listed nodes.
      * 
@@ -663,6 +717,8 @@ public java.util.List getNodesList() { } } /** + * + * *
      * The listed nodes.
      * 
@@ -677,6 +733,8 @@ public int getNodesCount() { } } /** + * + * *
      * The listed nodes.
      * 
@@ -691,14 +749,15 @@ public com.google.cloud.tpu.v1.Node getNodes(int index) { } } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.Node nodes = 1; */ - public Builder setNodes( - int index, com.google.cloud.tpu.v1.Node value) { + public Builder setNodes(int index, com.google.cloud.tpu.v1.Node value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -712,14 +771,15 @@ public Builder setNodes( return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.Node nodes = 1; */ - public Builder setNodes( - int index, com.google.cloud.tpu.v1.Node.Builder builderForValue) { + public Builder setNodes(int index, com.google.cloud.tpu.v1.Node.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.set(index, builderForValue.build()); @@ -730,6 +790,8 @@ public Builder setNodes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -750,14 +812,15 @@ public Builder addNodes(com.google.cloud.tpu.v1.Node value) { return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.Node nodes = 1; */ - public Builder addNodes( - int index, com.google.cloud.tpu.v1.Node value) { + public Builder addNodes(int index, com.google.cloud.tpu.v1.Node value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -771,14 +834,15 @@ public Builder addNodes( return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.Node nodes = 1; */ - public Builder addNodes( - com.google.cloud.tpu.v1.Node.Builder builderForValue) { + public Builder addNodes(com.google.cloud.tpu.v1.Node.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(builderForValue.build()); @@ -789,14 +853,15 @@ public Builder addNodes( return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.Node nodes = 1; */ - public Builder addNodes( - int index, com.google.cloud.tpu.v1.Node.Builder builderForValue) { + public Builder addNodes(int index, com.google.cloud.tpu.v1.Node.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(index, builderForValue.build()); @@ -807,18 +872,18 @@ public Builder addNodes( return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.Node nodes = 1; */ - public Builder addAllNodes( - java.lang.Iterable values) { + public Builder addAllNodes(java.lang.Iterable values) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); onChanged(); } else { nodesBuilder_.addAllMessages(values); @@ -826,6 +891,8 @@ public Builder addAllNodes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -843,6 +910,8 @@ public Builder clearNodes() { return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -860,39 +929,43 @@ public Builder removeNodes(int index) { return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.Node nodes = 1; */ - public com.google.cloud.tpu.v1.Node.Builder getNodesBuilder( - int index) { + public com.google.cloud.tpu.v1.Node.Builder getNodesBuilder(int index) { return getNodesFieldBuilder().getBuilder(index); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.Node nodes = 1; */ - public com.google.cloud.tpu.v1.NodeOrBuilder getNodesOrBuilder( - int index) { + public com.google.cloud.tpu.v1.NodeOrBuilder getNodesOrBuilder(int index) { if (nodesBuilder_ == null) { - return nodes_.get(index); } else { + return nodes_.get(index); + } else { return nodesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.Node nodes = 1; */ - public java.util.List - getNodesOrBuilderList() { + public java.util.List getNodesOrBuilderList() { if (nodesBuilder_ != null) { return nodesBuilder_.getMessageOrBuilderList(); } else { @@ -900,6 +973,8 @@ public com.google.cloud.tpu.v1.NodeOrBuilder getNodesOrBuilder( } } /** + * + * *
      * The listed nodes.
      * 
@@ -907,42 +982,46 @@ public com.google.cloud.tpu.v1.NodeOrBuilder getNodesOrBuilder( * repeated .google.cloud.tpu.v1.Node nodes = 1; */ public com.google.cloud.tpu.v1.Node.Builder addNodesBuilder() { - return getNodesFieldBuilder().addBuilder( - com.google.cloud.tpu.v1.Node.getDefaultInstance()); + return getNodesFieldBuilder().addBuilder(com.google.cloud.tpu.v1.Node.getDefaultInstance()); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.Node nodes = 1; */ - public com.google.cloud.tpu.v1.Node.Builder addNodesBuilder( - int index) { - return getNodesFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v1.Node.getDefaultInstance()); + public com.google.cloud.tpu.v1.Node.Builder addNodesBuilder(int index) { + return getNodesFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v1.Node.getDefaultInstance()); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.Node nodes = 1; */ - public java.util.List - getNodesBuilderList() { + public java.util.List getNodesBuilderList() { return getNodesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v1.Node, com.google.cloud.tpu.v1.Node.Builder, com.google.cloud.tpu.v1.NodeOrBuilder> + com.google.cloud.tpu.v1.Node, + com.google.cloud.tpu.v1.Node.Builder, + com.google.cloud.tpu.v1.NodeOrBuilder> getNodesFieldBuilder() { if (nodesBuilder_ == null) { - nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v1.Node, com.google.cloud.tpu.v1.Node.Builder, com.google.cloud.tpu.v1.NodeOrBuilder>( - nodes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + nodesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v1.Node, + com.google.cloud.tpu.v1.Node.Builder, + com.google.cloud.tpu.v1.NodeOrBuilder>( + nodes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); nodes_ = null; } return nodesBuilder_; @@ -950,18 +1029,20 @@ public com.google.cloud.tpu.v1.Node.Builder addNodesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -970,20 +1051,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -991,95 +1073,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1087,80 +1186,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1170,28 +1279,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1201,12 +1312,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.ListNodesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.ListNodesResponse) private static final com.google.cloud.tpu.v1.ListNodesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.ListNodesResponse(); } @@ -1215,27 +1326,27 @@ public static com.google.cloud.tpu.v1.ListNodesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNodesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNodesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1250,6 +1361,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v1.ListNodesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesResponseOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesResponseOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesResponseOrBuilder.java index 95c9ef55efc5..64efc2a93b5a 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesResponseOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListNodesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; -public interface ListNodesResponseOrBuilder extends +public interface ListNodesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.ListNodesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v1.Node nodes = 1; */ - java.util.List - getNodesList(); + java.util.List getNodesList(); /** + * + * *
    * The listed nodes.
    * 
@@ -25,6 +44,8 @@ public interface ListNodesResponseOrBuilder extends */ com.google.cloud.tpu.v1.Node getNodes(int index); /** + * + * *
    * The listed nodes.
    * 
@@ -33,82 +54,99 @@ public interface ListNodesResponseOrBuilder extends */ int getNodesCount(); /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v1.Node nodes = 1; */ - java.util.List - getNodesOrBuilderList(); + java.util.List getNodesOrBuilderList(); /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v1.Node nodes = 1; */ - com.google.cloud.tpu.v1.NodeOrBuilder getNodesOrBuilder( - int index); + com.google.cloud.tpu.v1.NodeOrBuilder getNodesOrBuilder(int index); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsRequest.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsRequest.java similarity index 67% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsRequest.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsRequest.java index fd02501066a0..d10ee31453a0 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsRequest.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * Request for [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].
  * 
* * Protobuf type {@code google.cloud.tpu.v1.ListTensorFlowVersionsRequest} */ -public final class ListTensorFlowVersionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTensorFlowVersionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.ListTensorFlowVersionsRequest) ListTensorFlowVersionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTensorFlowVersionsRequest.newBuilder() to construct. private ListTensorFlowVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTensorFlowVersionsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,37 +46,43 @@ private ListTensorFlowVersionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTensorFlowVersionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest.class, com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest.Builder.class); + com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest.class, + com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,29 +91,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -100,11 +126,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -115,11 +144,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -128,29 +160,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -161,11 +193,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ @java.lang.Override @@ -174,29 +209,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -207,11 +242,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 6; private volatile java.lang.Object orderBy_; /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The orderBy. */ @java.lang.Override @@ -220,29 +258,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -251,6 +289,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,8 +301,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -292,8 +330,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -312,23 +349,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest other = (com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest other = + (com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -356,129 +389,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest 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.tpu.v1.ListTensorFlowVersionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].
    * 
* * Protobuf type {@code google.cloud.tpu.v1.ListTensorFlowVersionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.ListTensorFlowVersionsRequest) com.google.cloud.tpu.v1.ListTensorFlowVersionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest.class, com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest.Builder.class); + com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest.class, + com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest.Builder.class); } // Construct using com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +536,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_descriptor; } @java.lang.Override @@ -517,7 +557,8 @@ public com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest build() { @java.lang.Override public com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest buildPartial() { - com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest result = new com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest(this); + com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest result = + new com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -531,38 +572,39 @@ public com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.ListTensorFlowVersionsRequest) { - return mergeFrom((com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest)other); + return mergeFrom((com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest) other); } else { super.mergeFrom(other); return this; @@ -570,7 +612,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest other) { - if (other == com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -616,37 +659,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 42: { - filter_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 42: + { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - case 50: { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 42 + case 50: + { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,18 +708,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -679,20 +732,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -700,66 +756,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -767,30 +839,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -798,18 +876,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -818,20 +898,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -839,54 +920,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -894,18 +982,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -914,20 +1004,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -935,54 +1026,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -990,18 +1088,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1010,20 +1110,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1031,61 +1132,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1095,12 +1203,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.ListTensorFlowVersionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.ListTensorFlowVersionsRequest) private static final com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest(); } @@ -1109,27 +1217,27 @@ public static com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTensorFlowVersionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTensorFlowVersionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,6 +1252,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsRequestOrBuilder.java index b69e0e0286a2..98a6e4d49c4d 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; -public interface ListTensorFlowVersionsRequestOrBuilder extends +public interface ListTensorFlowVersionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.ListTensorFlowVersionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsResponse.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsResponse.java similarity index 73% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsResponse.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsResponse.java index 01034331067e..86f4f28ed96e 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsResponse.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsResponse.java @@ -1,24 +1,43 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * Response for [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].
  * 
* * Protobuf type {@code google.cloud.tpu.v1.ListTensorFlowVersionsResponse} */ -public final class ListTensorFlowVersionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTensorFlowVersionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.ListTensorFlowVersionsResponse) ListTensorFlowVersionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTensorFlowVersionsResponse.newBuilder() to construct. - private ListTensorFlowVersionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListTensorFlowVersionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTensorFlowVersionsResponse() { tensorflowVersions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +46,35 @@ private ListTensorFlowVersionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTensorFlowVersionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse.class, com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse.Builder.class); + com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse.class, + com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse.Builder.class); } public static final int TENSORFLOW_VERSIONS_FIELD_NUMBER = 1; private java.util.List tensorflowVersions_; /** + * + * *
    * The listed nodes.
    * 
@@ -64,6 +86,8 @@ public java.util.List getTensorflowVe return tensorflowVersions_; } /** + * + * *
    * The listed nodes.
    * 
@@ -71,11 +95,13 @@ public java.util.List getTensorflowVe * repeated .google.cloud.tpu.v1.TensorFlowVersion tensorflow_versions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getTensorflowVersionsOrBuilderList() { return tensorflowVersions_; } /** + * + * *
    * The listed nodes.
    * 
@@ -87,6 +113,8 @@ public int getTensorflowVersionsCount() { return tensorflowVersions_.size(); } /** + * + * *
    * The listed nodes.
    * 
@@ -98,6 +126,8 @@ public com.google.cloud.tpu.v1.TensorFlowVersion getTensorflowVersions(int index return tensorflowVersions_.get(index); } /** + * + * *
    * The listed nodes.
    * 
@@ -113,11 +143,14 @@ public com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder getTensorflowVersionsO public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,29 +159,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -159,34 +192,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -194,20 +235,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < tensorflowVersions_.size(); i++) { output.writeMessage(1, tensorflowVersions_.get(i)); } @@ -240,8 +283,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < tensorflowVersions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, tensorflowVersions_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, tensorflowVersions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -262,19 +305,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse)) { return super.equals(obj); } - com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse other = (com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse) obj; + com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse other = + (com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse) obj; - if (!getTensorflowVersionsList() - .equals(other.getTensorflowVersionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getTensorflowVersionsList().equals(other.getTensorflowVersionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -302,129 +343,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse 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.tpu.v1.ListTensorFlowVersionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].
    * 
* * Protobuf type {@code google.cloud.tpu.v1.ListTensorFlowVersionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.ListTensorFlowVersionsResponse) com.google.cloud.tpu.v1.ListTensorFlowVersionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse.class, com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse.Builder.class); + com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse.class, + com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse.Builder.class); } // Construct using com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +491,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_descriptor; } @java.lang.Override @@ -464,7 +512,8 @@ public com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse build() { @java.lang.Override public com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse buildPartial() { - com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse result = new com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse(this); + com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse result = + new com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse(this); int from_bitField0_ = bitField0_; if (tensorflowVersionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -489,38 +538,39 @@ public com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.ListTensorFlowVersionsResponse) { - return mergeFrom((com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse)other); + return mergeFrom((com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse) other); } else { super.mergeFrom(other); return this; @@ -528,7 +578,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse other) { - if (other == com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse.getDefaultInstance()) + return this; if (tensorflowVersionsBuilder_ == null) { if (!other.tensorflowVersions_.isEmpty()) { if (tensorflowVersions_.isEmpty()) { @@ -547,9 +598,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse tensorflowVersionsBuilder_ = null; tensorflowVersions_ = other.tensorflowVersions_; bitField0_ = (bitField0_ & ~0x00000001); - tensorflowVersionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTensorflowVersionsFieldBuilder() : null; + tensorflowVersionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTensorflowVersionsFieldBuilder() + : null; } else { tensorflowVersionsBuilder_.addAllMessages(other.tensorflowVersions_); } @@ -595,36 +647,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.tpu.v1.TensorFlowVersion m = - input.readMessage( - com.google.cloud.tpu.v1.TensorFlowVersion.parser(), - extensionRegistry); - if (tensorflowVersionsBuilder_ == null) { - ensureTensorflowVersionsIsMutable(); - tensorflowVersions_.add(m); - } else { - tensorflowVersionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.tpu.v1.TensorFlowVersion m = + input.readMessage( + com.google.cloud.tpu.v1.TensorFlowVersion.parser(), extensionRegistry); + if (tensorflowVersionsBuilder_ == null) { + ensureTensorflowVersionsIsMutable(); + tensorflowVersions_.add(m); + } else { + tensorflowVersionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -634,21 +689,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List tensorflowVersions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTensorflowVersionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - tensorflowVersions_ = new java.util.ArrayList(tensorflowVersions_); + tensorflowVersions_ = + new java.util.ArrayList(tensorflowVersions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v1.TensorFlowVersion, com.google.cloud.tpu.v1.TensorFlowVersion.Builder, com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder> tensorflowVersionsBuilder_; + com.google.cloud.tpu.v1.TensorFlowVersion, + com.google.cloud.tpu.v1.TensorFlowVersion.Builder, + com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder> + tensorflowVersionsBuilder_; /** + * + * *
      * The listed nodes.
      * 
@@ -663,6 +726,8 @@ public java.util.List getTensorflowVe } } /** + * + * *
      * The listed nodes.
      * 
@@ -677,6 +742,8 @@ public int getTensorflowVersionsCount() { } } /** + * + * *
      * The listed nodes.
      * 
@@ -691,6 +758,8 @@ public com.google.cloud.tpu.v1.TensorFlowVersion getTensorflowVersions(int index } } /** + * + * *
      * The listed nodes.
      * 
@@ -712,6 +781,8 @@ public Builder setTensorflowVersions( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -730,6 +801,8 @@ public Builder setTensorflowVersions( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -750,6 +823,8 @@ public Builder addTensorflowVersions(com.google.cloud.tpu.v1.TensorFlowVersion v return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -771,6 +846,8 @@ public Builder addTensorflowVersions( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -789,6 +866,8 @@ public Builder addTensorflowVersions( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -807,6 +886,8 @@ public Builder addTensorflowVersions( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -817,8 +898,7 @@ public Builder addAllTensorflowVersions( java.lang.Iterable values) { if (tensorflowVersionsBuilder_ == null) { ensureTensorflowVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tensorflowVersions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tensorflowVersions_); onChanged(); } else { tensorflowVersionsBuilder_.addAllMessages(values); @@ -826,6 +906,8 @@ public Builder addAllTensorflowVersions( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -843,6 +925,8 @@ public Builder clearTensorflowVersions() { return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -860,6 +944,8 @@ public Builder removeTensorflowVersions(int index) { return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -871,6 +957,8 @@ public com.google.cloud.tpu.v1.TensorFlowVersion.Builder getTensorflowVersionsBu return getTensorflowVersionsFieldBuilder().getBuilder(index); } /** + * + * *
      * The listed nodes.
      * 
@@ -880,19 +968,22 @@ public com.google.cloud.tpu.v1.TensorFlowVersion.Builder getTensorflowVersionsBu public com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder getTensorflowVersionsOrBuilder( int index) { if (tensorflowVersionsBuilder_ == null) { - return tensorflowVersions_.get(index); } else { + return tensorflowVersions_.get(index); + } else { return tensorflowVersionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.TensorFlowVersion tensorflow_versions = 1; */ - public java.util.List - getTensorflowVersionsOrBuilderList() { + public java.util.List + getTensorflowVersionsOrBuilderList() { if (tensorflowVersionsBuilder_ != null) { return tensorflowVersionsBuilder_.getMessageOrBuilderList(); } else { @@ -900,6 +991,8 @@ public com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder getTensorflowVersionsO } } /** + * + * *
      * The listed nodes.
      * 
@@ -907,10 +1000,12 @@ public com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder getTensorflowVersionsO * repeated .google.cloud.tpu.v1.TensorFlowVersion tensorflow_versions = 1; */ public com.google.cloud.tpu.v1.TensorFlowVersion.Builder addTensorflowVersionsBuilder() { - return getTensorflowVersionsFieldBuilder().addBuilder( - com.google.cloud.tpu.v1.TensorFlowVersion.getDefaultInstance()); + return getTensorflowVersionsFieldBuilder() + .addBuilder(com.google.cloud.tpu.v1.TensorFlowVersion.getDefaultInstance()); } /** + * + * *
      * The listed nodes.
      * 
@@ -919,26 +1014,34 @@ public com.google.cloud.tpu.v1.TensorFlowVersion.Builder addTensorflowVersionsBu */ public com.google.cloud.tpu.v1.TensorFlowVersion.Builder addTensorflowVersionsBuilder( int index) { - return getTensorflowVersionsFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v1.TensorFlowVersion.getDefaultInstance()); + return getTensorflowVersionsFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v1.TensorFlowVersion.getDefaultInstance()); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v1.TensorFlowVersion tensorflow_versions = 1; */ - public java.util.List - getTensorflowVersionsBuilderList() { + public java.util.List + getTensorflowVersionsBuilderList() { return getTensorflowVersionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v1.TensorFlowVersion, com.google.cloud.tpu.v1.TensorFlowVersion.Builder, com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder> + com.google.cloud.tpu.v1.TensorFlowVersion, + com.google.cloud.tpu.v1.TensorFlowVersion.Builder, + com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder> getTensorflowVersionsFieldBuilder() { if (tensorflowVersionsBuilder_ == null) { - tensorflowVersionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v1.TensorFlowVersion, com.google.cloud.tpu.v1.TensorFlowVersion.Builder, com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder>( + tensorflowVersionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v1.TensorFlowVersion, + com.google.cloud.tpu.v1.TensorFlowVersion.Builder, + com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder>( tensorflowVersions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -950,18 +1053,20 @@ public com.google.cloud.tpu.v1.TensorFlowVersion.Builder addTensorflowVersionsBu private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -970,20 +1075,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -991,95 +1097,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1087,80 +1210,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1170,28 +1303,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1201,12 +1336,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.ListTensorFlowVersionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.ListTensorFlowVersionsResponse) private static final com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse(); } @@ -1215,27 +1350,27 @@ public static com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTensorFlowVersionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTensorFlowVersionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1250,6 +1385,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsResponseOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsResponseOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsResponseOrBuilder.java index 1d97d8a83f45..15d27ff3f5cb 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsResponseOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ListTensorFlowVersionsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; -public interface ListTensorFlowVersionsResponseOrBuilder extends +public interface ListTensorFlowVersionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.ListTensorFlowVersionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v1.TensorFlowVersion tensorflow_versions = 1; */ - java.util.List - getTensorflowVersionsList(); + java.util.List getTensorflowVersionsList(); /** + * + * *
    * The listed nodes.
    * 
@@ -25,6 +44,8 @@ public interface ListTensorFlowVersionsResponseOrBuilder extends */ com.google.cloud.tpu.v1.TensorFlowVersion getTensorflowVersions(int index); /** + * + * *
    * The listed nodes.
    * 
@@ -33,82 +54,100 @@ public interface ListTensorFlowVersionsResponseOrBuilder extends */ int getTensorflowVersionsCount(); /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v1.TensorFlowVersion tensorflow_versions = 1; */ - java.util.List + java.util.List getTensorflowVersionsOrBuilderList(); /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v1.TensorFlowVersion tensorflow_versions = 1; */ - com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder getTensorflowVersionsOrBuilder( - int index); + com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder getTensorflowVersionsOrBuilder(int index); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/LocationName.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/LocationName.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/LocationName.java diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NetworkEndpoint.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NetworkEndpoint.java similarity index 66% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NetworkEndpoint.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NetworkEndpoint.java index c8377ccd0098..a21ffcf89fec 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NetworkEndpoint.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NetworkEndpoint.java @@ -1,61 +1,83 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * A network endpoint over which a TPU worker can be reached.
  * 
* * Protobuf type {@code google.cloud.tpu.v1.NetworkEndpoint} */ -public final class NetworkEndpoint extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NetworkEndpoint extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.NetworkEndpoint) NetworkEndpointOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NetworkEndpoint.newBuilder() to construct. private NetworkEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NetworkEndpoint() { ipAddress_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NetworkEndpoint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_NetworkEndpoint_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_NetworkEndpoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_NetworkEndpoint_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_NetworkEndpoint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.NetworkEndpoint.class, com.google.cloud.tpu.v1.NetworkEndpoint.Builder.class); + com.google.cloud.tpu.v1.NetworkEndpoint.class, + com.google.cloud.tpu.v1.NetworkEndpoint.Builder.class); } public static final int IP_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object ipAddress_; /** + * + * *
    * The IP address of this network endpoint.
    * 
* * string ip_address = 1; + * * @return The ipAddress. */ @java.lang.Override @@ -64,29 +86,29 @@ public java.lang.String getIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** + * + * *
    * The IP address of this network endpoint.
    * 
* * string ip_address = 1; + * * @return The bytes for ipAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -97,11 +119,14 @@ public java.lang.String getIpAddress() { public static final int PORT_FIELD_NUMBER = 2; private int port_; /** + * + * *
    * The port of this network endpoint.
    * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -110,6 +135,7 @@ public int getPort() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +147,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipAddress_); } @@ -142,8 +167,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ipAddress_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -153,17 +177,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.NetworkEndpoint)) { return super.equals(obj); } com.google.cloud.tpu.v1.NetworkEndpoint other = (com.google.cloud.tpu.v1.NetworkEndpoint) obj; - if (!getIpAddress() - .equals(other.getIpAddress())) return false; - if (getPort() - != other.getPort()) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (getPort() != other.getPort()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,130 +206,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v1.NetworkEndpoint parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v1.NetworkEndpoint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.NetworkEndpoint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.NetworkEndpoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.NetworkEndpoint 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.tpu.v1.NetworkEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.NetworkEndpoint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.NetworkEndpoint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.NetworkEndpoint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.NetworkEndpoint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.NetworkEndpoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.NetworkEndpoint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.NetworkEndpoint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.NetworkEndpoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.NetworkEndpoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A network endpoint over which a TPU worker can be reached.
    * 
* * Protobuf type {@code google.cloud.tpu.v1.NetworkEndpoint} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.NetworkEndpoint) com.google.cloud.tpu.v1.NetworkEndpointOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_NetworkEndpoint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_NetworkEndpoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_NetworkEndpoint_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_NetworkEndpoint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.NetworkEndpoint.class, com.google.cloud.tpu.v1.NetworkEndpoint.Builder.class); + com.google.cloud.tpu.v1.NetworkEndpoint.class, + com.google.cloud.tpu.v1.NetworkEndpoint.Builder.class); } // Construct using com.google.cloud.tpu.v1.NetworkEndpoint.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -319,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_NetworkEndpoint_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_NetworkEndpoint_descriptor; } @java.lang.Override @@ -340,7 +368,8 @@ public com.google.cloud.tpu.v1.NetworkEndpoint build() { @java.lang.Override public com.google.cloud.tpu.v1.NetworkEndpoint buildPartial() { - com.google.cloud.tpu.v1.NetworkEndpoint result = new com.google.cloud.tpu.v1.NetworkEndpoint(this); + com.google.cloud.tpu.v1.NetworkEndpoint result = + new com.google.cloud.tpu.v1.NetworkEndpoint(this); result.ipAddress_ = ipAddress_; result.port_ = port_; onBuilt(); @@ -351,38 +380,39 @@ public com.google.cloud.tpu.v1.NetworkEndpoint buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.NetworkEndpoint) { - return mergeFrom((com.google.cloud.tpu.v1.NetworkEndpoint)other); + return mergeFrom((com.google.cloud.tpu.v1.NetworkEndpoint) other); } else { super.mergeFrom(other); return this; @@ -424,22 +454,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - ipAddress_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - port_ = input.readInt32(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + ipAddress_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + port_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -452,18 +485,20 @@ public Builder mergeFrom( private java.lang.Object ipAddress_ = ""; /** + * + * *
      * The IP address of this network endpoint.
      * 
* * string ip_address = 1; + * * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -472,20 +507,21 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The IP address of this network endpoint.
      * 
* * string ip_address = 1; + * * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -493,66 +529,76 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The IP address of this network endpoint.
      * 
* * string ip_address = 1; + * * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddress( - java.lang.String value) { + public Builder setIpAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipAddress_ = value; onChanged(); return this; } /** + * + * *
      * The IP address of this network endpoint.
      * 
* * string ip_address = 1; + * * @return This builder for chaining. */ public Builder clearIpAddress() { - + ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** + * + * *
      * The IP address of this network endpoint.
      * 
* * string ip_address = 1; + * * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; onChanged(); return this; } - private int port_ ; + private int port_; /** + * + * *
      * The port of this network endpoint.
      * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -560,37 +606,43 @@ public int getPort() { return port_; } /** + * + * *
      * The port of this network endpoint.
      * 
* * int32 port = 2; + * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; onChanged(); return this; } /** + * + * *
      * The port of this network endpoint.
      * 
* * int32 port = 2; + * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -600,12 +652,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.NetworkEndpoint) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.NetworkEndpoint) private static final com.google.cloud.tpu.v1.NetworkEndpoint DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.NetworkEndpoint(); } @@ -614,27 +666,27 @@ public static com.google.cloud.tpu.v1.NetworkEndpoint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkEndpoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkEndpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,6 +701,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v1.NetworkEndpoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NetworkEndpointOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NetworkEndpointOrBuilder.java similarity index 51% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NetworkEndpointOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NetworkEndpointOrBuilder.java index b77928c7db20..02f2f949146b 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NetworkEndpointOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NetworkEndpointOrBuilder.java @@ -1,38 +1,62 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; -public interface NetworkEndpointOrBuilder extends +public interface NetworkEndpointOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.NetworkEndpoint) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The IP address of this network endpoint.
    * 
* * string ip_address = 1; + * * @return The ipAddress. */ java.lang.String getIpAddress(); /** + * + * *
    * The IP address of this network endpoint.
    * 
* * string ip_address = 1; + * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString - getIpAddressBytes(); + com.google.protobuf.ByteString getIpAddressBytes(); /** + * + * *
    * The port of this network endpoint.
    * 
* * int32 port = 2; + * * @return The port. */ int getPort(); diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/Node.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/Node.java similarity index 70% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/Node.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/Node.java index e5f6247494ee..e696bff77a4b 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/Node.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/Node.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * A TPU instance.
  * 
* * Protobuf type {@code google.cloud.tpu.v1.Node} */ -public final class Node extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Node extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.Node) NodeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Node.newBuilder() to construct. private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Node() { name_ = ""; description_ = ""; @@ -39,51 +57,53 @@ private Node() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Node(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_Node_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_Node_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 24: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_Node_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.tpu.v1.Node.class, com.google.cloud.tpu.v1.Node.Builder.class); } /** + * + * *
    * Represents the different states of a TPU node during its lifecycle.
    * 
* * Protobuf enum {@code google.cloud.tpu.v1.Node.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * TPU node state is not known/set.
      * 
@@ -92,6 +112,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * TPU node is being created.
      * 
@@ -100,6 +122,8 @@ public enum State */ CREATING(1), /** + * + * *
      * TPU node has been created.
      * 
@@ -108,6 +132,8 @@ public enum State */ READY(2), /** + * + * *
      * TPU node is restarting.
      * 
@@ -116,6 +142,8 @@ public enum State */ RESTARTING(3), /** + * + * *
      * TPU node is undergoing reimaging.
      * 
@@ -124,6 +152,8 @@ public enum State */ REIMAGING(4), /** + * + * *
      * TPU node is being deleted.
      * 
@@ -132,6 +162,8 @@ public enum State */ DELETING(5), /** + * + * *
      * TPU node is being repaired and may be unusable. Details can be
      * found in the `help_description` field.
@@ -141,6 +173,8 @@ public enum State
      */
     REPAIRING(6),
     /**
+     *
+     *
      * 
      * TPU node is stopped.
      * 
@@ -149,6 +183,8 @@ public enum State */ STOPPED(8), /** + * + * *
      * TPU node is currently stopping.
      * 
@@ -157,6 +193,8 @@ public enum State */ STOPPING(9), /** + * + * *
      * TPU node is currently starting.
      * 
@@ -165,6 +203,8 @@ public enum State */ STARTING(10), /** + * + * *
      * TPU node has been preempted. Only applies to Preemptible TPU Nodes.
      * 
@@ -173,6 +213,8 @@ public enum State */ PREEMPTED(11), /** + * + * *
      * TPU node has been terminated due to maintenance or has reached the end of
      * its life cycle (for preemptible nodes).
@@ -182,6 +224,8 @@ public enum State
      */
     TERMINATED(12),
     /**
+     *
+     *
      * 
      * TPU node is currently hiding.
      * 
@@ -190,6 +234,8 @@ public enum State */ HIDING(13), /** + * + * *
      * TPU node has been hidden.
      * 
@@ -198,6 +244,8 @@ public enum State */ HIDDEN(14), /** + * + * *
      * TPU node is currently unhiding.
      * 
@@ -209,6 +257,8 @@ public enum State ; /** + * + * *
      * TPU node state is not known/set.
      * 
@@ -217,6 +267,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * TPU node is being created.
      * 
@@ -225,6 +277,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * TPU node has been created.
      * 
@@ -233,6 +287,8 @@ public enum State */ public static final int READY_VALUE = 2; /** + * + * *
      * TPU node is restarting.
      * 
@@ -241,6 +297,8 @@ public enum State */ public static final int RESTARTING_VALUE = 3; /** + * + * *
      * TPU node is undergoing reimaging.
      * 
@@ -249,6 +307,8 @@ public enum State */ public static final int REIMAGING_VALUE = 4; /** + * + * *
      * TPU node is being deleted.
      * 
@@ -257,6 +317,8 @@ public enum State */ public static final int DELETING_VALUE = 5; /** + * + * *
      * TPU node is being repaired and may be unusable. Details can be
      * found in the `help_description` field.
@@ -266,6 +328,8 @@ public enum State
      */
     public static final int REPAIRING_VALUE = 6;
     /**
+     *
+     *
      * 
      * TPU node is stopped.
      * 
@@ -274,6 +338,8 @@ public enum State */ public static final int STOPPED_VALUE = 8; /** + * + * *
      * TPU node is currently stopping.
      * 
@@ -282,6 +348,8 @@ public enum State */ public static final int STOPPING_VALUE = 9; /** + * + * *
      * TPU node is currently starting.
      * 
@@ -290,6 +358,8 @@ public enum State */ public static final int STARTING_VALUE = 10; /** + * + * *
      * TPU node has been preempted. Only applies to Preemptible TPU Nodes.
      * 
@@ -298,6 +368,8 @@ public enum State */ public static final int PREEMPTED_VALUE = 11; /** + * + * *
      * TPU node has been terminated due to maintenance or has reached the end of
      * its life cycle (for preemptible nodes).
@@ -307,6 +379,8 @@ public enum State
      */
     public static final int TERMINATED_VALUE = 12;
     /**
+     *
+     *
      * 
      * TPU node is currently hiding.
      * 
@@ -315,6 +389,8 @@ public enum State */ public static final int HIDING_VALUE = 13; /** + * + * *
      * TPU node has been hidden.
      * 
@@ -323,6 +399,8 @@ public enum State */ public static final int HIDDEN_VALUE = 14; /** + * + * *
      * TPU node is currently unhiding.
      * 
@@ -331,7 +409,6 @@ public enum State */ public static final int UNHIDING_VALUE = 15; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -356,61 +433,73 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 2: return READY; - case 3: return RESTARTING; - case 4: return REIMAGING; - case 5: return DELETING; - case 6: return REPAIRING; - case 8: return STOPPED; - case 9: return STOPPING; - case 10: return STARTING; - case 11: return PREEMPTED; - case 12: return TERMINATED; - case 13: return HIDING; - case 14: return HIDDEN; - case 15: return UNHIDING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return RESTARTING; + case 4: + return REIMAGING; + case 5: + return DELETING; + case 6: + return REPAIRING; + case 8: + return STOPPED; + case 9: + return STOPPING; + case 10: + return STARTING; + case 11: + return PREEMPTED; + case 12: + return TERMINATED; + case 13: + return HIDING; + case 14: + return HIDDEN; + case 15: + return UNHIDING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + 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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.tpu.v1.Node.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + 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."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -428,6 +517,8 @@ private State(int value) { } /** + * + * *
    * Health defines the status of a TPU node as reported by
    * Health Monitor.
@@ -435,9 +526,10 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.tpu.v1.Node.Health}
    */
-  public enum Health
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Health implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Health status is unknown: not initialized or failed to retrieve.
      * 
@@ -446,6 +538,8 @@ public enum Health */ HEALTH_UNSPECIFIED(0), /** + * + * *
      * The resource is healthy.
      * 
@@ -454,6 +548,8 @@ public enum Health */ HEALTHY(1), /** + * + * *
      * The resource is unhealthy.
      * 
@@ -462,6 +558,8 @@ public enum Health */ DEPRECATED_UNHEALTHY(2), /** + * + * *
      * The resource is unresponsive.
      * 
@@ -470,6 +568,8 @@ public enum Health */ TIMEOUT(3), /** + * + * *
      * The in-guest ML stack is unhealthy.
      * 
@@ -478,6 +578,8 @@ public enum Health */ UNHEALTHY_TENSORFLOW(4), /** + * + * *
      * The node is under maintenance/priority boost caused rescheduling and
      * will resume running once rescheduled.
@@ -490,6 +592,8 @@ public enum Health
     ;
 
     /**
+     *
+     *
      * 
      * Health status is unknown: not initialized or failed to retrieve.
      * 
@@ -498,6 +602,8 @@ public enum Health */ public static final int HEALTH_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The resource is healthy.
      * 
@@ -506,6 +612,8 @@ public enum Health */ public static final int HEALTHY_VALUE = 1; /** + * + * *
      * The resource is unhealthy.
      * 
@@ -514,6 +622,8 @@ public enum Health */ public static final int DEPRECATED_UNHEALTHY_VALUE = 2; /** + * + * *
      * The resource is unresponsive.
      * 
@@ -522,6 +632,8 @@ public enum Health */ public static final int TIMEOUT_VALUE = 3; /** + * + * *
      * The in-guest ML stack is unhealthy.
      * 
@@ -530,6 +642,8 @@ public enum Health */ public static final int UNHEALTHY_TENSORFLOW_VALUE = 4; /** + * + * *
      * The node is under maintenance/priority boost caused rescheduling and
      * will resume running once rescheduled.
@@ -539,7 +653,6 @@ public enum Health
      */
     public static final int UNHEALTHY_MAINTENANCE_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -564,52 +677,55 @@ public static Health valueOf(int value) {
      */
     public static Health forNumber(int value) {
       switch (value) {
-        case 0: return HEALTH_UNSPECIFIED;
-        case 1: return HEALTHY;
-        case 2: return DEPRECATED_UNHEALTHY;
-        case 3: return TIMEOUT;
-        case 4: return UNHEALTHY_TENSORFLOW;
-        case 5: return UNHEALTHY_MAINTENANCE;
-        default: return null;
+        case 0:
+          return HEALTH_UNSPECIFIED;
+        case 1:
+          return HEALTHY;
+        case 2:
+          return DEPRECATED_UNHEALTHY;
+        case 3:
+          return TIMEOUT;
+        case 4:
+          return UNHEALTHY_TENSORFLOW;
+        case 5:
+          return UNHEALTHY_MAINTENANCE;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        Health> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Health findValueByNumber(int number) {
-              return Health.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Health findValueByNumber(int number) {
+            return Health.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() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.tpu.v1.Node.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Health[] VALUES = values();
 
-    public static Health valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Health valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -627,15 +743,18 @@ private Health(int value) {
   }
 
   /**
+   *
+   *
    * 
    * TPU API Version.
    * 
* * Protobuf enum {@code google.cloud.tpu.v1.Node.ApiVersion} */ - public enum ApiVersion - implements com.google.protobuf.ProtocolMessageEnum { + public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * API version is unknown.
      * 
@@ -644,6 +763,8 @@ public enum ApiVersion */ API_VERSION_UNSPECIFIED(0), /** + * + * *
      * TPU API V1Alpha1 version.
      * 
@@ -652,6 +773,8 @@ public enum ApiVersion */ V1_ALPHA1(1), /** + * + * *
      * TPU API V1 version.
      * 
@@ -660,6 +783,8 @@ public enum ApiVersion */ V1(2), /** + * + * *
      * TPU API V2Alpha1 version.
      * 
@@ -671,6 +796,8 @@ public enum ApiVersion ; /** + * + * *
      * API version is unknown.
      * 
@@ -679,6 +806,8 @@ public enum ApiVersion */ public static final int API_VERSION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * TPU API V1Alpha1 version.
      * 
@@ -687,6 +816,8 @@ public enum ApiVersion */ public static final int V1_ALPHA1_VALUE = 1; /** + * + * *
      * TPU API V1 version.
      * 
@@ -695,6 +826,8 @@ public enum ApiVersion */ public static final int V1_VALUE = 2; /** + * + * *
      * TPU API V2Alpha1 version.
      * 
@@ -703,7 +836,6 @@ public enum ApiVersion */ public static final int V2_ALPHA1_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -728,50 +860,51 @@ public static ApiVersion valueOf(int value) { */ public static ApiVersion forNumber(int value) { switch (value) { - case 0: return API_VERSION_UNSPECIFIED; - case 1: return V1_ALPHA1; - case 2: return V1; - case 3: return V2_ALPHA1; - default: return null; + case 0: + return API_VERSION_UNSPECIFIED; + case 1: + return V1_ALPHA1; + case 2: + return V1; + case 3: + return V2_ALPHA1; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ApiVersion> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ApiVersion findValueByNumber(int number) { - return ApiVersion.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ApiVersion findValueByNumber(int number) { + return ApiVersion.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.tpu.v1.Node.getDescriptor().getEnumTypes().get(2); } private static final ApiVersion[] VALUES = values(); - public static ApiVersion valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ApiVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -791,11 +924,16 @@ private ApiVersion(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. Immutable. The name of the TPU
    * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The name. */ @java.lang.Override @@ -804,29 +942,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Immutable. The name of the TPU
    * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -837,11 +977,14 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * The user-supplied description of the TPU. Maximum of 512 characters.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -850,29 +993,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * The user-supplied description of the TPU. Maximum of 512 characters.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -883,11 +1026,14 @@ public java.lang.String getDescription() { public static final int ACCELERATOR_TYPE_FIELD_NUMBER = 5; private volatile java.lang.Object acceleratorType_; /** + * + * *
    * Required. The type of hardware accelerators associated with this node.
    * 
* * string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The acceleratorType. */ @java.lang.Override @@ -896,29 +1042,29 @@ public java.lang.String getAcceleratorType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); acceleratorType_ = s; return s; } } /** + * + * *
    * Required. The type of hardware accelerators associated with this node.
    * 
* * string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for acceleratorType. */ @java.lang.Override - public com.google.protobuf.ByteString - getAcceleratorTypeBytes() { + public com.google.protobuf.ByteString getAcceleratorTypeBytes() { java.lang.Object ref = acceleratorType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); acceleratorType_ = b; return b; } else { @@ -929,6 +1075,8 @@ public java.lang.String getAcceleratorType() { public static final int IP_ADDRESS_FIELD_NUMBER = 8; private volatile java.lang.Object ipAddress_; /** + * + * *
    * Output only. DEPRECATED! Use network_endpoints instead.
    * The network address for the TPU Node as visible to Compute Engine
@@ -936,24 +1084,27 @@ public java.lang.String getAcceleratorType() {
    * 
* * string ip_address = 8 [deprecated = true]; - * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. - * See google/cloud/tpu/v1/cloud_tpu.proto;l=275 + * + * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See + * google/cloud/tpu/v1/cloud_tpu.proto;l=275 * @return The ipAddress. */ @java.lang.Override - @java.lang.Deprecated public java.lang.String getIpAddress() { + @java.lang.Deprecated + public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** + * + * *
    * Output only. DEPRECATED! Use network_endpoints instead.
    * The network address for the TPU Node as visible to Compute Engine
@@ -961,18 +1112,18 @@ public java.lang.String getAcceleratorType() {
    * 
* * string ip_address = 8 [deprecated = true]; - * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. - * See google/cloud/tpu/v1/cloud_tpu.proto;l=275 + * + * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See + * google/cloud/tpu/v1/cloud_tpu.proto;l=275 * @return The bytes for ipAddress. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getIpAddressBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -983,48 +1134,53 @@ public java.lang.String getAcceleratorType() { public static final int PORT_FIELD_NUMBER = 14; private volatile java.lang.Object port_; /** + * + * *
    * Output only. DEPRECATED! Use network_endpoints instead.
    * The network port for the TPU Node as visible to Compute Engine instances.
    * 
* * string port = 14 [deprecated = true]; - * @deprecated google.cloud.tpu.v1.Node.port is deprecated. - * See google/cloud/tpu/v1/cloud_tpu.proto;l=279 + * + * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See + * google/cloud/tpu/v1/cloud_tpu.proto;l=279 * @return The port. */ @java.lang.Override - @java.lang.Deprecated public java.lang.String getPort() { + @java.lang.Deprecated + public java.lang.String getPort() { java.lang.Object ref = port_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); port_ = s; return s; } } /** + * + * *
    * Output only. DEPRECATED! Use network_endpoints instead.
    * The network port for the TPU Node as visible to Compute Engine instances.
    * 
* * string port = 14 [deprecated = true]; - * @deprecated google.cloud.tpu.v1.Node.port is deprecated. - * See google/cloud/tpu/v1/cloud_tpu.proto;l=279 + * + * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See + * google/cloud/tpu/v1/cloud_tpu.proto;l=279 * @return The bytes for port. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getPortBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getPortBytes() { java.lang.Object ref = port_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); port_ = b; return b; } else { @@ -1035,25 +1191,35 @@ public java.lang.String getAcceleratorType() { public static final int STATE_FIELD_NUMBER = 9; private int state_; /** + * + * *
    * Output only. The current state for the TPU Node.
    * 
* - * .google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current state for the TPU Node.
    * 
* - * .google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.tpu.v1.Node.State getState() { + @java.lang.Override + public com.google.cloud.tpu.v1.Node.State getState() { @SuppressWarnings("deprecation") com.google.cloud.tpu.v1.Node.State result = com.google.cloud.tpu.v1.Node.State.valueOf(state_); return result == null ? com.google.cloud.tpu.v1.Node.State.UNRECOGNIZED : result; @@ -1062,12 +1228,15 @@ public java.lang.String getAcceleratorType() { public static final int HEALTH_DESCRIPTION_FIELD_NUMBER = 10; private volatile java.lang.Object healthDescription_; /** + * + * *
    * Output only. If this field is populated, it contains a description of why the TPU Node
    * is unhealthy.
    * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The healthDescription. */ @java.lang.Override @@ -1076,30 +1245,30 @@ public java.lang.String getHealthDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); healthDescription_ = s; return s; } } /** + * + * *
    * Output only. If this field is populated, it contains a description of why the TPU Node
    * is unhealthy.
    * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for healthDescription. */ @java.lang.Override - public com.google.protobuf.ByteString - getHealthDescriptionBytes() { + public com.google.protobuf.ByteString getHealthDescriptionBytes() { java.lang.Object ref = healthDescription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); healthDescription_ = b; return b; } else { @@ -1110,11 +1279,14 @@ public java.lang.String getHealthDescription() { public static final int TENSORFLOW_VERSION_FIELD_NUMBER = 11; private volatile java.lang.Object tensorflowVersion_; /** + * + * *
    * Required. The version of Tensorflow running in the Node.
    * 
* * string tensorflow_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The tensorflowVersion. */ @java.lang.Override @@ -1123,29 +1295,29 @@ public java.lang.String getTensorflowVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tensorflowVersion_ = s; return s; } } /** + * + * *
    * Required. The version of Tensorflow running in the Node.
    * 
* * string tensorflow_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for tensorflowVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getTensorflowVersionBytes() { + public com.google.protobuf.ByteString getTensorflowVersionBytes() { java.lang.Object ref = tensorflowVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tensorflowVersion_ = b; return b; } else { @@ -1156,6 +1328,8 @@ public java.lang.String getTensorflowVersion() { public static final int NETWORK_FIELD_NUMBER = 12; private volatile java.lang.Object network_; /** + * + * *
    * The name of a network they wish to peer the TPU node to. It must be a
    * preexisting Compute Engine network inside of the project on which this API
@@ -1163,6 +1337,7 @@ public java.lang.String getTensorflowVersion() {
    * 
* * string network = 12; + * * @return The network. */ @java.lang.Override @@ -1171,14 +1346,15 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** + * + * *
    * The name of a network they wish to peer the TPU node to. It must be a
    * preexisting Compute Engine network inside of the project on which this API
@@ -1186,16 +1362,15 @@ public java.lang.String getNetwork() {
    * 
* * string network = 12; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -1206,6 +1381,8 @@ public java.lang.String getNetwork() { public static final int CIDR_BLOCK_FIELD_NUMBER = 13; private volatile java.lang.Object cidrBlock_; /** + * + * *
    * The CIDR block that the TPU node will use when selecting an IP address.
    * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -1218,6 +1395,7 @@ public java.lang.String getNetwork() {
    * 
* * string cidr_block = 13; + * * @return The cidrBlock. */ @java.lang.Override @@ -1226,14 +1404,15 @@ public java.lang.String getCidrBlock() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cidrBlock_ = s; return s; } } /** + * + * *
    * The CIDR block that the TPU node will use when selecting an IP address.
    * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -1246,16 +1425,15 @@ public java.lang.String getCidrBlock() {
    * 
* * string cidr_block = 13; + * * @return The bytes for cidrBlock. */ @java.lang.Override - public com.google.protobuf.ByteString - getCidrBlockBytes() { + public com.google.protobuf.ByteString getCidrBlockBytes() { java.lang.Object ref = cidrBlock_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cidrBlock_ = b; return b; } else { @@ -1266,6 +1444,8 @@ public java.lang.String getCidrBlock() { public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 15; private volatile java.lang.Object serviceAccount_; /** + * + * *
    * Output only. The service account used to run the tensor flow services within the node.
    * To share resources, including Google Cloud Storage data, with the
@@ -1274,6 +1454,7 @@ public java.lang.String getCidrBlock() {
    * 
* * string service_account = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccount. */ @java.lang.Override @@ -1282,14 +1463,15 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** + * + * *
    * Output only. The service account used to run the tensor flow services within the node.
    * To share resources, including Google Cloud Storage data, with the
@@ -1298,16 +1480,15 @@ public java.lang.String getServiceAccount() {
    * 
* * string service_account = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -1318,11 +1499,15 @@ public java.lang.String getServiceAccount() { public static final int CREATE_TIME_FIELD_NUMBER = 16; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time when the node was created.
    * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1330,11 +1515,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the node was created.
    * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1342,11 +1531,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the node was created.
    * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1356,11 +1548,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int SCHEDULING_CONFIG_FIELD_NUMBER = 17; private com.google.cloud.tpu.v1.SchedulingConfig schedulingConfig_; /** + * + * *
    * The scheduling options for this node.
    * 
* * .google.cloud.tpu.v1.SchedulingConfig scheduling_config = 17; + * * @return Whether the schedulingConfig field is set. */ @java.lang.Override @@ -1368,18 +1563,25 @@ public boolean hasSchedulingConfig() { return schedulingConfig_ != null; } /** + * + * *
    * The scheduling options for this node.
    * 
* * .google.cloud.tpu.v1.SchedulingConfig scheduling_config = 17; + * * @return The schedulingConfig. */ @java.lang.Override public com.google.cloud.tpu.v1.SchedulingConfig getSchedulingConfig() { - return schedulingConfig_ == null ? com.google.cloud.tpu.v1.SchedulingConfig.getDefaultInstance() : schedulingConfig_; + return schedulingConfig_ == null + ? com.google.cloud.tpu.v1.SchedulingConfig.getDefaultInstance() + : schedulingConfig_; } /** + * + * *
    * The scheduling options for this node.
    * 
@@ -1394,119 +1596,146 @@ public com.google.cloud.tpu.v1.SchedulingConfigOrBuilder getSchedulingConfigOrBu public static final int NETWORK_ENDPOINTS_FIELD_NUMBER = 21; private java.util.List networkEndpoints_; /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that Tensorflow clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getNetworkEndpointsList() { return networkEndpoints_; } /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that Tensorflow clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getNetworkEndpointsOrBuilderList() { return networkEndpoints_; } /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that Tensorflow clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getNetworkEndpointsCount() { return networkEndpoints_.size(); } /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that Tensorflow clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.tpu.v1.NetworkEndpoint getNetworkEndpoints(int index) { return networkEndpoints_.get(index); } /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that Tensorflow clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.tpu.v1.NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder( - int index) { + public com.google.cloud.tpu.v1.NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder(int index) { return networkEndpoints_.get(index); } public static final int HEALTH_FIELD_NUMBER = 22; private int health_; /** + * + * *
    * The health status of the TPU node.
    * 
* * .google.cloud.tpu.v1.Node.Health health = 22; + * * @return The enum numeric value on the wire for health. */ - @java.lang.Override public int getHealthValue() { + @java.lang.Override + public int getHealthValue() { return health_; } /** + * + * *
    * The health status of the TPU node.
    * 
* * .google.cloud.tpu.v1.Node.Health health = 22; + * * @return The health. */ - @java.lang.Override public com.google.cloud.tpu.v1.Node.Health getHealth() { + @java.lang.Override + public com.google.cloud.tpu.v1.Node.Health getHealth() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v1.Node.Health result = com.google.cloud.tpu.v1.Node.Health.valueOf(health_); + com.google.cloud.tpu.v1.Node.Health result = + com.google.cloud.tpu.v1.Node.Health.valueOf(health_); return result == null ? com.google.cloud.tpu.v1.Node.Health.UNRECOGNIZED : result; } public static final int LABELS_FIELD_NUMBER = 24; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_Node_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_Node_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1515,28 +1744,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
* * map<string, string> labels = 24; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
@@ -1544,11 +1775,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 24; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
@@ -1556,16 +1788,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 24; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
@@ -1573,12 +1805,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 24; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1588,6 +1819,8 @@ public java.lang.String getLabelsOrThrow( public static final int USE_SERVICE_NETWORKING_FIELD_NUMBER = 27; private boolean useServiceNetworking_; /** + * + * *
    * Whether the VPC peering for the node is set up through Service Networking
    * API. The VPC Peering should be set up before provisioning the node.
@@ -1597,6 +1830,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * bool use_service_networking = 27; + * * @return The useServiceNetworking. */ @java.lang.Override @@ -1607,91 +1841,124 @@ public boolean getUseServiceNetworking() { public static final int API_VERSION_FIELD_NUMBER = 38; private int apiVersion_; /** + * + * *
    * Output only. The API version that created this Node.
    * 
* - * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for apiVersion. */ - @java.lang.Override public int getApiVersionValue() { + @java.lang.Override + public int getApiVersionValue() { return apiVersion_; } /** + * + * *
    * Output only. The API version that created this Node.
    * 
* - * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The apiVersion. */ - @java.lang.Override public com.google.cloud.tpu.v1.Node.ApiVersion getApiVersion() { + @java.lang.Override + public com.google.cloud.tpu.v1.Node.ApiVersion getApiVersion() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v1.Node.ApiVersion result = com.google.cloud.tpu.v1.Node.ApiVersion.valueOf(apiVersion_); + com.google.cloud.tpu.v1.Node.ApiVersion result = + com.google.cloud.tpu.v1.Node.ApiVersion.valueOf(apiVersion_); return result == null ? com.google.cloud.tpu.v1.Node.ApiVersion.UNRECOGNIZED : result; } public static final int SYMPTOMS_FIELD_NUMBER = 39; private java.util.List symptoms_; /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getSymptomsList() { return symptoms_; } /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getSymptomsOrBuilderList() { return symptoms_; } /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getSymptomsCount() { return symptoms_.size(); } /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.tpu.v1.Symptom getSymptoms(int index) { return symptoms_.get(index); } /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.tpu.v1.SymptomOrBuilder getSymptomsOrBuilder( - int index) { + public com.google.cloud.tpu.v1.SymptomOrBuilder getSymptomsOrBuilder(int index) { return symptoms_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1703,8 +1970,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1750,16 +2016,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (health_ != com.google.cloud.tpu.v1.Node.Health.HEALTH_UNSPECIFIED.getNumber()) { output.writeEnum(22, health_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 24); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 24); if (useServiceNetworking_ != false) { output.writeBool(27, useServiceNetworking_); } - if (apiVersion_ != com.google.cloud.tpu.v1.Node.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) { + if (apiVersion_ + != com.google.cloud.tpu.v1.Node.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) { output.writeEnum(38, apiVersion_); } for (int i = 0; i < symptoms_.size(); i++) { @@ -1787,8 +2050,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, ipAddress_); } if (state_ != com.google.cloud.tpu.v1.Node.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthDescription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, healthDescription_); @@ -1809,42 +2071,37 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, serviceAccount_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getCreateTime()); } if (schedulingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getSchedulingConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getSchedulingConfig()); } for (int i = 0; i < networkEndpoints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, networkEndpoints_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(21, networkEndpoints_.get(i)); } if (health_ != com.google.cloud.tpu.v1.Node.Health.HEALTH_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(22, health_); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, labels__); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, health_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, labels__); } if (useServiceNetworking_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(27, useServiceNetworking_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(27, useServiceNetworking_); } - if (apiVersion_ != com.google.cloud.tpu.v1.Node.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(38, apiVersion_); + if (apiVersion_ + != com.google.cloud.tpu.v1.Node.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(38, apiVersion_); } for (int i = 0; i < symptoms_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(39, symptoms_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(39, symptoms_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1854,54 +2111,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.Node)) { return super.equals(obj); } com.google.cloud.tpu.v1.Node other = (com.google.cloud.tpu.v1.Node) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getAcceleratorType() - .equals(other.getAcceleratorType())) return false; - if (!getIpAddress() - .equals(other.getIpAddress())) return false; - if (!getPort() - .equals(other.getPort())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getAcceleratorType().equals(other.getAcceleratorType())) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getPort().equals(other.getPort())) return false; if (state_ != other.state_) return false; - if (!getHealthDescription() - .equals(other.getHealthDescription())) return false; - if (!getTensorflowVersion() - .equals(other.getTensorflowVersion())) return false; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getCidrBlock() - .equals(other.getCidrBlock())) return false; - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; + if (!getHealthDescription().equals(other.getHealthDescription())) return false; + if (!getTensorflowVersion().equals(other.getTensorflowVersion())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getCidrBlock().equals(other.getCidrBlock())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasSchedulingConfig() != other.hasSchedulingConfig()) return false; if (hasSchedulingConfig()) { - if (!getSchedulingConfig() - .equals(other.getSchedulingConfig())) return false; + if (!getSchedulingConfig().equals(other.getSchedulingConfig())) return false; } - if (!getNetworkEndpointsList() - .equals(other.getNetworkEndpointsList())) return false; + if (!getNetworkEndpointsList().equals(other.getNetworkEndpointsList())) return false; if (health_ != other.health_) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (getUseServiceNetworking() - != other.getUseServiceNetworking()) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (getUseServiceNetworking() != other.getUseServiceNetworking()) return false; if (apiVersion_ != other.apiVersion_) return false; - if (!getSymptomsList() - .equals(other.getSymptomsList())) return false; + if (!getSymptomsList().equals(other.getSymptomsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1954,8 +2195,7 @@ public int hashCode() { hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + USE_SERVICE_NETWORKING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseServiceNetworking()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseServiceNetworking()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + apiVersion_; if (getSymptomsCount() > 0) { @@ -1967,152 +2207,154 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v1.Node parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v1.Node parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.Node parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v1.Node parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.tpu.v1.Node parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.Node 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.tpu.v1.Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.Node parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.Node parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.Node parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.Node parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.Node parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.Node parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.cloud.tpu.v1.Node parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.Node parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.Node prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A TPU instance.
    * 
* * Protobuf type {@code google.cloud.tpu.v1.Node} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.Node) com.google.cloud.tpu.v1.NodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_Node_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_Node_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 24: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 24: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_Node_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.tpu.v1.Node.class, com.google.cloud.tpu.v1.Node.Builder.class); } // Construct using com.google.cloud.tpu.v1.Node.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2175,9 +2417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_Node_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_Node_descriptor; } @java.lang.Override @@ -2250,38 +2492,39 @@ public com.google.cloud.tpu.v1.Node buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.Node) { - return mergeFrom((com.google.cloud.tpu.v1.Node)other); + return mergeFrom((com.google.cloud.tpu.v1.Node) other); } else { super.mergeFrom(other); return this; @@ -2357,9 +2600,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v1.Node other) { networkEndpointsBuilder_ = null; networkEndpoints_ = other.networkEndpoints_; bitField0_ = (bitField0_ & ~0x00000001); - networkEndpointsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNetworkEndpointsFieldBuilder() : null; + networkEndpointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworkEndpointsFieldBuilder() + : null; } else { networkEndpointsBuilder_.addAllMessages(other.networkEndpoints_); } @@ -2368,8 +2612,7 @@ public Builder mergeFrom(com.google.cloud.tpu.v1.Node other) { if (other.health_ != 0) { setHealthValue(other.getHealthValue()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.getUseServiceNetworking() != false) { setUseServiceNetworking(other.getUseServiceNetworking()); } @@ -2394,9 +2637,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v1.Node other) { symptomsBuilder_ = null; symptoms_ = other.symptoms_; bitField0_ = (bitField0_ & ~0x00000004); - symptomsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSymptomsFieldBuilder() : null; + symptomsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSymptomsFieldBuilder() + : null; } else { symptomsBuilder_.addAllMessages(other.symptoms_); } @@ -2428,130 +2672,146 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 26: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 42: { - acceleratorType_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 66: { - ipAddress_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 72: { - state_ = input.readEnum(); - - break; - } // case 72 - case 82: { - healthDescription_ = input.readStringRequireUtf8(); - - break; - } // case 82 - case 90: { - tensorflowVersion_ = input.readStringRequireUtf8(); - - break; - } // case 90 - case 98: { - network_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 106: { - cidrBlock_ = input.readStringRequireUtf8(); - - break; - } // case 106 - case 114: { - port_ = input.readStringRequireUtf8(); - - break; - } // case 114 - case 122: { - serviceAccount_ = input.readStringRequireUtf8(); - - break; - } // case 122 - case 130: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 130 - case 138: { - input.readMessage( - getSchedulingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 138 - case 170: { - com.google.cloud.tpu.v1.NetworkEndpoint m = - input.readMessage( - com.google.cloud.tpu.v1.NetworkEndpoint.parser(), - extensionRegistry); - if (networkEndpointsBuilder_ == null) { - ensureNetworkEndpointsIsMutable(); - networkEndpoints_.add(m); - } else { - networkEndpointsBuilder_.addMessage(m); - } - break; - } // case 170 - case 176: { - health_ = input.readEnum(); - - break; - } // case 176 - case 194: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 194 - case 216: { - useServiceNetworking_ = input.readBool(); - - break; - } // case 216 - case 304: { - apiVersion_ = input.readEnum(); - - break; - } // case 304 - case 314: { - com.google.cloud.tpu.v1.Symptom m = - input.readMessage( - com.google.cloud.tpu.v1.Symptom.parser(), - extensionRegistry); - if (symptomsBuilder_ == null) { - ensureSymptomsIsMutable(); - symptoms_.add(m); - } else { - symptomsBuilder_.addMessage(m); - } - break; - } // case 314 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 42: + { + acceleratorType_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 66: + { + ipAddress_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 72: + { + state_ = input.readEnum(); + + break; + } // case 72 + case 82: + { + healthDescription_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: + { + tensorflowVersion_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: + { + network_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: + { + cidrBlock_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 114: + { + port_ = input.readStringRequireUtf8(); + + break; + } // case 114 + case 122: + { + serviceAccount_ = input.readStringRequireUtf8(); + + break; + } // case 122 + case 130: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 130 + case 138: + { + input.readMessage( + getSchedulingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 138 + case 170: + { + com.google.cloud.tpu.v1.NetworkEndpoint m = + input.readMessage( + com.google.cloud.tpu.v1.NetworkEndpoint.parser(), extensionRegistry); + if (networkEndpointsBuilder_ == null) { + ensureNetworkEndpointsIsMutable(); + networkEndpoints_.add(m); + } else { + networkEndpointsBuilder_.addMessage(m); + } + break; + } // case 170 + case 176: + { + health_ = input.readEnum(); + + break; + } // case 176 + case 194: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 194 + case 216: + { + useServiceNetworking_ = input.readBool(); + + break; + } // case 216 + case 304: + { + apiVersion_ = input.readEnum(); + + break; + } // case 304 + case 314: + { + com.google.cloud.tpu.v1.Symptom m = + input.readMessage(com.google.cloud.tpu.v1.Symptom.parser(), extensionRegistry); + if (symptomsBuilder_ == null) { + ensureSymptomsIsMutable(); + symptoms_.add(m); + } else { + symptomsBuilder_.addMessage(m); + } + break; + } // case 314 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2561,22 +2821,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Immutable. The name of the TPU
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2585,20 +2850,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Immutable. The name of the TPU
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2606,54 +2874,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Immutable. The name of the TPU
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Immutable. The name of the TPU
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Immutable. The name of the TPU
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2661,18 +2942,20 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * The user-supplied description of the TPU. Maximum of 512 characters.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2681,20 +2964,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The user-supplied description of the TPU. Maximum of 512 characters.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -2702,54 +2986,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The user-supplied description of the TPU. Maximum of 512 characters.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * The user-supplied description of the TPU. Maximum of 512 characters.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * The user-supplied description of the TPU. Maximum of 512 characters.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2757,18 +3048,20 @@ public Builder setDescriptionBytes( private java.lang.Object acceleratorType_ = ""; /** + * + * *
      * Required. The type of hardware accelerators associated with this node.
      * 
* * string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The acceleratorType. */ public java.lang.String getAcceleratorType() { java.lang.Object ref = acceleratorType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); acceleratorType_ = s; return s; @@ -2777,20 +3070,21 @@ public java.lang.String getAcceleratorType() { } } /** + * + * *
      * Required. The type of hardware accelerators associated with this node.
      * 
* * string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for acceleratorType. */ - public com.google.protobuf.ByteString - getAcceleratorTypeBytes() { + public com.google.protobuf.ByteString getAcceleratorTypeBytes() { java.lang.Object ref = acceleratorType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); acceleratorType_ = b; return b; } else { @@ -2798,54 +3092,61 @@ public java.lang.String getAcceleratorType() { } } /** + * + * *
      * Required. The type of hardware accelerators associated with this node.
      * 
* * string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The acceleratorType to set. * @return This builder for chaining. */ - public Builder setAcceleratorType( - java.lang.String value) { + public Builder setAcceleratorType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + acceleratorType_ = value; onChanged(); return this; } /** + * + * *
      * Required. The type of hardware accelerators associated with this node.
      * 
* * string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAcceleratorType() { - + acceleratorType_ = getDefaultInstance().getAcceleratorType(); onChanged(); return this; } /** + * + * *
      * Required. The type of hardware accelerators associated with this node.
      * 
* * string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for acceleratorType to set. * @return This builder for chaining. */ - public Builder setAcceleratorTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setAcceleratorTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + acceleratorType_ = value; onChanged(); return this; @@ -2853,6 +3154,8 @@ public Builder setAcceleratorTypeBytes( private java.lang.Object ipAddress_ = ""; /** + * + * *
      * Output only. DEPRECATED! Use network_endpoints instead.
      * The network address for the TPU Node as visible to Compute Engine
@@ -2860,15 +3163,16 @@ public Builder setAcceleratorTypeBytes(
      * 
* * string ip_address = 8 [deprecated = true]; - * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. - * See google/cloud/tpu/v1/cloud_tpu.proto;l=275 + * + * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See + * google/cloud/tpu/v1/cloud_tpu.proto;l=275 * @return The ipAddress. */ - @java.lang.Deprecated public java.lang.String getIpAddress() { + @java.lang.Deprecated + public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -2877,6 +3181,8 @@ public Builder setAcceleratorTypeBytes( } } /** + * + * *
      * Output only. DEPRECATED! Use network_endpoints instead.
      * The network address for the TPU Node as visible to Compute Engine
@@ -2884,17 +3190,17 @@ public Builder setAcceleratorTypeBytes(
      * 
* * string ip_address = 8 [deprecated = true]; - * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. - * See google/cloud/tpu/v1/cloud_tpu.proto;l=275 + * + * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See + * google/cloud/tpu/v1/cloud_tpu.proto;l=275 * @return The bytes for ipAddress. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getIpAddressBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -2902,6 +3208,8 @@ public Builder setAcceleratorTypeBytes( } } /** + * + * *
      * Output only. DEPRECATED! Use network_endpoints instead.
      * The network address for the TPU Node as visible to Compute Engine
@@ -2909,22 +3217,25 @@ public Builder setAcceleratorTypeBytes(
      * 
* * string ip_address = 8 [deprecated = true]; - * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. - * See google/cloud/tpu/v1/cloud_tpu.proto;l=275 + * + * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See + * google/cloud/tpu/v1/cloud_tpu.proto;l=275 * @param value The ipAddress to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setIpAddress( - java.lang.String value) { + @java.lang.Deprecated + public Builder setIpAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipAddress_ = value; onChanged(); return this; } /** + * + * *
      * Output only. DEPRECATED! Use network_endpoints instead.
      * The network address for the TPU Node as visible to Compute Engine
@@ -2932,17 +3243,21 @@ public Builder setAcceleratorTypeBytes(
      * 
* * string ip_address = 8 [deprecated = true]; - * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. - * See google/cloud/tpu/v1/cloud_tpu.proto;l=275 + * + * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See + * google/cloud/tpu/v1/cloud_tpu.proto;l=275 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearIpAddress() { - + @java.lang.Deprecated + public Builder clearIpAddress() { + ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** + * + * *
      * Output only. DEPRECATED! Use network_endpoints instead.
      * The network address for the TPU Node as visible to Compute Engine
@@ -2950,18 +3265,19 @@ public Builder setAcceleratorTypeBytes(
      * 
* * string ip_address = 8 [deprecated = true]; - * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. - * See google/cloud/tpu/v1/cloud_tpu.proto;l=275 + * + * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See + * google/cloud/tpu/v1/cloud_tpu.proto;l=275 * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setIpAddressBytes( - com.google.protobuf.ByteString value) { + @java.lang.Deprecated + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; onChanged(); return this; @@ -2969,21 +3285,24 @@ public Builder setAcceleratorTypeBytes( private java.lang.Object port_ = ""; /** + * + * *
      * Output only. DEPRECATED! Use network_endpoints instead.
      * The network port for the TPU Node as visible to Compute Engine instances.
      * 
* * string port = 14 [deprecated = true]; - * @deprecated google.cloud.tpu.v1.Node.port is deprecated. - * See google/cloud/tpu/v1/cloud_tpu.proto;l=279 + * + * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See + * google/cloud/tpu/v1/cloud_tpu.proto;l=279 * @return The port. */ - @java.lang.Deprecated public java.lang.String getPort() { + @java.lang.Deprecated + public java.lang.String getPort() { java.lang.Object ref = port_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); port_ = s; return s; @@ -2992,23 +3311,25 @@ public Builder setAcceleratorTypeBytes( } } /** + * + * *
      * Output only. DEPRECATED! Use network_endpoints instead.
      * The network port for the TPU Node as visible to Compute Engine instances.
      * 
* * string port = 14 [deprecated = true]; - * @deprecated google.cloud.tpu.v1.Node.port is deprecated. - * See google/cloud/tpu/v1/cloud_tpu.proto;l=279 + * + * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See + * google/cloud/tpu/v1/cloud_tpu.proto;l=279 * @return The bytes for port. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getPortBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getPortBytes() { java.lang.Object ref = port_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); port_ = b; return b; } else { @@ -3016,63 +3337,73 @@ public Builder setAcceleratorTypeBytes( } } /** + * + * *
      * Output only. DEPRECATED! Use network_endpoints instead.
      * The network port for the TPU Node as visible to Compute Engine instances.
      * 
* * string port = 14 [deprecated = true]; - * @deprecated google.cloud.tpu.v1.Node.port is deprecated. - * See google/cloud/tpu/v1/cloud_tpu.proto;l=279 + * + * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See + * google/cloud/tpu/v1/cloud_tpu.proto;l=279 * @param value The port to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setPort( - java.lang.String value) { + @java.lang.Deprecated + public Builder setPort(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + port_ = value; onChanged(); return this; } /** + * + * *
      * Output only. DEPRECATED! Use network_endpoints instead.
      * The network port for the TPU Node as visible to Compute Engine instances.
      * 
* * string port = 14 [deprecated = true]; - * @deprecated google.cloud.tpu.v1.Node.port is deprecated. - * See google/cloud/tpu/v1/cloud_tpu.proto;l=279 + * + * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See + * google/cloud/tpu/v1/cloud_tpu.proto;l=279 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearPort() { - + @java.lang.Deprecated + public Builder clearPort() { + port_ = getDefaultInstance().getPort(); onChanged(); return this; } /** + * + * *
      * Output only. DEPRECATED! Use network_endpoints instead.
      * The network port for the TPU Node as visible to Compute Engine instances.
      * 
* * string port = 14 [deprecated = true]; - * @deprecated google.cloud.tpu.v1.Node.port is deprecated. - * See google/cloud/tpu/v1/cloud_tpu.proto;l=279 + * + * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See + * google/cloud/tpu/v1/cloud_tpu.proto;l=279 * @param value The bytes for port to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setPortBytes( - com.google.protobuf.ByteString value) { + @java.lang.Deprecated + public Builder setPortBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + port_ = value; onChanged(); return this; @@ -3080,51 +3411,69 @@ public Builder setAcceleratorTypeBytes( private int state_ = 0; /** + * + * *
      * Output only. The current state for the TPU Node.
      * 
* - * .google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current state for the TPU Node.
      * 
* - * .google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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; } /** + * + * *
      * Output only. The current state for the TPU Node.
      * 
* - * .google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.tpu.v1.Node.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v1.Node.State result = com.google.cloud.tpu.v1.Node.State.valueOf(state_); + com.google.cloud.tpu.v1.Node.State result = + com.google.cloud.tpu.v1.Node.State.valueOf(state_); return result == null ? com.google.cloud.tpu.v1.Node.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The current state for the TPU Node.
      * 
* - * .google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -3132,21 +3481,25 @@ public Builder setState(com.google.cloud.tpu.v1.Node.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The current state for the TPU Node.
      * 
* - * .google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -3154,19 +3507,21 @@ public Builder clearState() { private java.lang.Object healthDescription_ = ""; /** + * + * *
      * Output only. If this field is populated, it contains a description of why the TPU Node
      * is unhealthy.
      * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The healthDescription. */ public java.lang.String getHealthDescription() { java.lang.Object ref = healthDescription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); healthDescription_ = s; return s; @@ -3175,21 +3530,22 @@ public java.lang.String getHealthDescription() { } } /** + * + * *
      * Output only. If this field is populated, it contains a description of why the TPU Node
      * is unhealthy.
      * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for healthDescription. */ - public com.google.protobuf.ByteString - getHealthDescriptionBytes() { + public com.google.protobuf.ByteString getHealthDescriptionBytes() { java.lang.Object ref = healthDescription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); healthDescription_ = b; return b; } else { @@ -3197,57 +3553,64 @@ public java.lang.String getHealthDescription() { } } /** + * + * *
      * Output only. If this field is populated, it contains a description of why the TPU Node
      * is unhealthy.
      * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The healthDescription to set. * @return This builder for chaining. */ - public Builder setHealthDescription( - java.lang.String value) { + public Builder setHealthDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + healthDescription_ = value; onChanged(); return this; } /** + * + * *
      * Output only. If this field is populated, it contains a description of why the TPU Node
      * is unhealthy.
      * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearHealthDescription() { - + healthDescription_ = getDefaultInstance().getHealthDescription(); onChanged(); return this; } /** + * + * *
      * Output only. If this field is populated, it contains a description of why the TPU Node
      * is unhealthy.
      * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for healthDescription to set. * @return This builder for chaining. */ - public Builder setHealthDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setHealthDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + healthDescription_ = value; onChanged(); return this; @@ -3255,18 +3618,20 @@ public Builder setHealthDescriptionBytes( private java.lang.Object tensorflowVersion_ = ""; /** + * + * *
      * Required. The version of Tensorflow running in the Node.
      * 
* * string tensorflow_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The tensorflowVersion. */ public java.lang.String getTensorflowVersion() { java.lang.Object ref = tensorflowVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tensorflowVersion_ = s; return s; @@ -3275,20 +3640,21 @@ public java.lang.String getTensorflowVersion() { } } /** + * + * *
      * Required. The version of Tensorflow running in the Node.
      * 
* * string tensorflow_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for tensorflowVersion. */ - public com.google.protobuf.ByteString - getTensorflowVersionBytes() { + public com.google.protobuf.ByteString getTensorflowVersionBytes() { java.lang.Object ref = tensorflowVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tensorflowVersion_ = b; return b; } else { @@ -3296,54 +3662,61 @@ public java.lang.String getTensorflowVersion() { } } /** + * + * *
      * Required. The version of Tensorflow running in the Node.
      * 
* * string tensorflow_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The tensorflowVersion to set. * @return This builder for chaining. */ - public Builder setTensorflowVersion( - java.lang.String value) { + public Builder setTensorflowVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + tensorflowVersion_ = value; onChanged(); return this; } /** + * + * *
      * Required. The version of Tensorflow running in the Node.
      * 
* * string tensorflow_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTensorflowVersion() { - + tensorflowVersion_ = getDefaultInstance().getTensorflowVersion(); onChanged(); return this; } /** + * + * *
      * Required. The version of Tensorflow running in the Node.
      * 
* * string tensorflow_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for tensorflowVersion to set. * @return This builder for chaining. */ - public Builder setTensorflowVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setTensorflowVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tensorflowVersion_ = value; onChanged(); return this; @@ -3351,6 +3724,8 @@ public Builder setTensorflowVersionBytes( private java.lang.Object network_ = ""; /** + * + * *
      * The name of a network they wish to peer the TPU node to. It must be a
      * preexisting Compute Engine network inside of the project on which this API
@@ -3358,13 +3733,13 @@ public Builder setTensorflowVersionBytes(
      * 
* * string network = 12; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -3373,6 +3748,8 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * The name of a network they wish to peer the TPU node to. It must be a
      * preexisting Compute Engine network inside of the project on which this API
@@ -3380,15 +3757,14 @@ public java.lang.String getNetwork() {
      * 
* * string network = 12; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -3396,6 +3772,8 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * The name of a network they wish to peer the TPU node to. It must be a
      * preexisting Compute Engine network inside of the project on which this API
@@ -3403,20 +3781,22 @@ public java.lang.String getNetwork() {
      * 
* * string network = 12; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { + public Builder setNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** + * + * *
      * The name of a network they wish to peer the TPU node to. It must be a
      * preexisting Compute Engine network inside of the project on which this API
@@ -3424,15 +3804,18 @@ public Builder setNetwork(
      * 
* * string network = 12; + * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** + * + * *
      * The name of a network they wish to peer the TPU node to. It must be a
      * preexisting Compute Engine network inside of the project on which this API
@@ -3440,16 +3823,16 @@ public Builder clearNetwork() {
      * 
* * string network = 12; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -3457,6 +3840,8 @@ public Builder setNetworkBytes( private java.lang.Object cidrBlock_ = ""; /** + * + * *
      * The CIDR block that the TPU node will use when selecting an IP address.
      * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -3469,13 +3854,13 @@ public Builder setNetworkBytes(
      * 
* * string cidr_block = 13; + * * @return The cidrBlock. */ public java.lang.String getCidrBlock() { java.lang.Object ref = cidrBlock_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cidrBlock_ = s; return s; @@ -3484,6 +3869,8 @@ public java.lang.String getCidrBlock() { } } /** + * + * *
      * The CIDR block that the TPU node will use when selecting an IP address.
      * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -3496,15 +3883,14 @@ public java.lang.String getCidrBlock() {
      * 
* * string cidr_block = 13; + * * @return The bytes for cidrBlock. */ - public com.google.protobuf.ByteString - getCidrBlockBytes() { + public com.google.protobuf.ByteString getCidrBlockBytes() { java.lang.Object ref = cidrBlock_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cidrBlock_ = b; return b; } else { @@ -3512,6 +3898,8 @@ public java.lang.String getCidrBlock() { } } /** + * + * *
      * The CIDR block that the TPU node will use when selecting an IP address.
      * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -3524,20 +3912,22 @@ public java.lang.String getCidrBlock() {
      * 
* * string cidr_block = 13; + * * @param value The cidrBlock to set. * @return This builder for chaining. */ - public Builder setCidrBlock( - java.lang.String value) { + public Builder setCidrBlock(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cidrBlock_ = value; onChanged(); return this; } /** + * + * *
      * The CIDR block that the TPU node will use when selecting an IP address.
      * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -3550,15 +3940,18 @@ public Builder setCidrBlock(
      * 
* * string cidr_block = 13; + * * @return This builder for chaining. */ public Builder clearCidrBlock() { - + cidrBlock_ = getDefaultInstance().getCidrBlock(); onChanged(); return this; } /** + * + * *
      * The CIDR block that the TPU node will use when selecting an IP address.
      * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -3571,16 +3964,16 @@ public Builder clearCidrBlock() {
      * 
* * string cidr_block = 13; + * * @param value The bytes for cidrBlock to set. * @return This builder for chaining. */ - public Builder setCidrBlockBytes( - com.google.protobuf.ByteString value) { + public Builder setCidrBlockBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cidrBlock_ = value; onChanged(); return this; @@ -3588,6 +3981,8 @@ public Builder setCidrBlockBytes( private java.lang.Object serviceAccount_ = ""; /** + * + * *
      * Output only. The service account used to run the tensor flow services within the node.
      * To share resources, including Google Cloud Storage data, with the
@@ -3596,13 +3991,13 @@ public Builder setCidrBlockBytes(
      * 
* * string service_account = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -3611,6 +4006,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Output only. The service account used to run the tensor flow services within the node.
      * To share resources, including Google Cloud Storage data, with the
@@ -3619,15 +4016,14 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -3635,6 +4031,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Output only. The service account used to run the tensor flow services within the node.
      * To share resources, including Google Cloud Storage data, with the
@@ -3643,20 +4041,22 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount( - java.lang.String value) { + public Builder setServiceAccount(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The service account used to run the tensor flow services within the node.
      * To share resources, including Google Cloud Storage data, with the
@@ -3665,15 +4065,18 @@ public Builder setServiceAccount(
      * 
* * string service_account = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearServiceAccount() { - + serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** + * + * *
      * Output only. The service account used to run the tensor flow services within the node.
      * To share resources, including Google Cloud Storage data, with the
@@ -3682,16 +4085,16 @@ public Builder clearServiceAccount() {
      * 
* * string service_account = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; onChanged(); return this; @@ -3699,39 +4102,58 @@ public Builder setServiceAccountBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3747,14 +4169,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3765,17 +4190,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3787,11 +4216,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3805,48 +4238,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_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> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3854,34 +4303,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.cloud.tpu.v1.SchedulingConfig schedulingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v1.SchedulingConfig, com.google.cloud.tpu.v1.SchedulingConfig.Builder, com.google.cloud.tpu.v1.SchedulingConfigOrBuilder> schedulingConfigBuilder_; + com.google.cloud.tpu.v1.SchedulingConfig, + com.google.cloud.tpu.v1.SchedulingConfig.Builder, + com.google.cloud.tpu.v1.SchedulingConfigOrBuilder> + schedulingConfigBuilder_; /** + * + * *
      * The scheduling options for this node.
      * 
* * .google.cloud.tpu.v1.SchedulingConfig scheduling_config = 17; + * * @return Whether the schedulingConfig field is set. */ public boolean hasSchedulingConfig() { return schedulingConfigBuilder_ != null || schedulingConfig_ != null; } /** + * + * *
      * The scheduling options for this node.
      * 
* * .google.cloud.tpu.v1.SchedulingConfig scheduling_config = 17; + * * @return The schedulingConfig. */ public com.google.cloud.tpu.v1.SchedulingConfig getSchedulingConfig() { if (schedulingConfigBuilder_ == null) { - return schedulingConfig_ == null ? com.google.cloud.tpu.v1.SchedulingConfig.getDefaultInstance() : schedulingConfig_; + return schedulingConfig_ == null + ? com.google.cloud.tpu.v1.SchedulingConfig.getDefaultInstance() + : schedulingConfig_; } else { return schedulingConfigBuilder_.getMessage(); } } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -3902,6 +4364,8 @@ public Builder setSchedulingConfig(com.google.cloud.tpu.v1.SchedulingConfig valu return this; } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -3920,6 +4384,8 @@ public Builder setSchedulingConfig( return this; } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -3930,7 +4396,9 @@ public Builder mergeSchedulingConfig(com.google.cloud.tpu.v1.SchedulingConfig va if (schedulingConfigBuilder_ == null) { if (schedulingConfig_ != null) { schedulingConfig_ = - com.google.cloud.tpu.v1.SchedulingConfig.newBuilder(schedulingConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v1.SchedulingConfig.newBuilder(schedulingConfig_) + .mergeFrom(value) + .buildPartial(); } else { schedulingConfig_ = value; } @@ -3942,6 +4410,8 @@ public Builder mergeSchedulingConfig(com.google.cloud.tpu.v1.SchedulingConfig va return this; } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -3960,6 +4430,8 @@ public Builder clearSchedulingConfig() { return this; } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -3967,11 +4439,13 @@ public Builder clearSchedulingConfig() { * .google.cloud.tpu.v1.SchedulingConfig scheduling_config = 17; */ public com.google.cloud.tpu.v1.SchedulingConfig.Builder getSchedulingConfigBuilder() { - + onChanged(); return getSchedulingConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -3982,11 +4456,14 @@ public com.google.cloud.tpu.v1.SchedulingConfigOrBuilder getSchedulingConfigOrBu if (schedulingConfigBuilder_ != null) { return schedulingConfigBuilder_.getMessageOrBuilder(); } else { - return schedulingConfig_ == null ? - com.google.cloud.tpu.v1.SchedulingConfig.getDefaultInstance() : schedulingConfig_; + return schedulingConfig_ == null + ? com.google.cloud.tpu.v1.SchedulingConfig.getDefaultInstance() + : schedulingConfig_; } } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -3994,39 +4471,51 @@ public com.google.cloud.tpu.v1.SchedulingConfigOrBuilder getSchedulingConfigOrBu * .google.cloud.tpu.v1.SchedulingConfig scheduling_config = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v1.SchedulingConfig, com.google.cloud.tpu.v1.SchedulingConfig.Builder, com.google.cloud.tpu.v1.SchedulingConfigOrBuilder> + com.google.cloud.tpu.v1.SchedulingConfig, + com.google.cloud.tpu.v1.SchedulingConfig.Builder, + com.google.cloud.tpu.v1.SchedulingConfigOrBuilder> getSchedulingConfigFieldBuilder() { if (schedulingConfigBuilder_ == null) { - schedulingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v1.SchedulingConfig, com.google.cloud.tpu.v1.SchedulingConfig.Builder, com.google.cloud.tpu.v1.SchedulingConfigOrBuilder>( - getSchedulingConfig(), - getParentForChildren(), - isClean()); + schedulingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v1.SchedulingConfig, + com.google.cloud.tpu.v1.SchedulingConfig.Builder, + com.google.cloud.tpu.v1.SchedulingConfigOrBuilder>( + getSchedulingConfig(), getParentForChildren(), isClean()); schedulingConfig_ = null; } return schedulingConfigBuilder_; } private java.util.List networkEndpoints_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNetworkEndpointsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - networkEndpoints_ = new java.util.ArrayList(networkEndpoints_); + networkEndpoints_ = + new java.util.ArrayList(networkEndpoints_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v1.NetworkEndpoint, com.google.cloud.tpu.v1.NetworkEndpoint.Builder, com.google.cloud.tpu.v1.NetworkEndpointOrBuilder> networkEndpointsBuilder_; + com.google.cloud.tpu.v1.NetworkEndpoint, + com.google.cloud.tpu.v1.NetworkEndpoint.Builder, + com.google.cloud.tpu.v1.NetworkEndpointOrBuilder> + networkEndpointsBuilder_; /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that Tensorflow clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getNetworkEndpointsList() { if (networkEndpointsBuilder_ == null) { @@ -4036,13 +4525,17 @@ public java.util.List getNetworkEndpoin } } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that Tensorflow clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getNetworkEndpointsCount() { if (networkEndpointsBuilder_ == null) { @@ -4052,13 +4545,17 @@ public int getNetworkEndpointsCount() { } } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that Tensorflow clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v1.NetworkEndpoint getNetworkEndpoints(int index) { if (networkEndpointsBuilder_ == null) { @@ -4068,16 +4565,19 @@ public com.google.cloud.tpu.v1.NetworkEndpoint getNetworkEndpoints(int index) { } } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that Tensorflow clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNetworkEndpoints( - int index, com.google.cloud.tpu.v1.NetworkEndpoint value) { + public Builder setNetworkEndpoints(int index, com.google.cloud.tpu.v1.NetworkEndpoint value) { if (networkEndpointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4091,13 +4591,17 @@ public Builder setNetworkEndpoints( return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that Tensorflow clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setNetworkEndpoints( int index, com.google.cloud.tpu.v1.NetworkEndpoint.Builder builderForValue) { @@ -4111,13 +4615,17 @@ public Builder setNetworkEndpoints( return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that Tensorflow clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addNetworkEndpoints(com.google.cloud.tpu.v1.NetworkEndpoint value) { if (networkEndpointsBuilder_ == null) { @@ -4133,16 +4641,19 @@ public Builder addNetworkEndpoints(com.google.cloud.tpu.v1.NetworkEndpoint value return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that Tensorflow clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addNetworkEndpoints( - int index, com.google.cloud.tpu.v1.NetworkEndpoint value) { + public Builder addNetworkEndpoints(int index, com.google.cloud.tpu.v1.NetworkEndpoint value) { if (networkEndpointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4156,13 +4667,17 @@ public Builder addNetworkEndpoints( return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that Tensorflow clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addNetworkEndpoints( com.google.cloud.tpu.v1.NetworkEndpoint.Builder builderForValue) { @@ -4176,13 +4691,17 @@ public Builder addNetworkEndpoints( return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that Tensorflow clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addNetworkEndpoints( int index, com.google.cloud.tpu.v1.NetworkEndpoint.Builder builderForValue) { @@ -4196,20 +4715,23 @@ public Builder addNetworkEndpoints( return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that Tensorflow clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllNetworkEndpoints( java.lang.Iterable values) { if (networkEndpointsBuilder_ == null) { ensureNetworkEndpointsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, networkEndpoints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkEndpoints_); onChanged(); } else { networkEndpointsBuilder_.addAllMessages(values); @@ -4217,13 +4739,17 @@ public Builder addAllNetworkEndpoints( return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that Tensorflow clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearNetworkEndpoints() { if (networkEndpointsBuilder_ == null) { @@ -4236,13 +4762,17 @@ public Builder clearNetworkEndpoints() { return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that Tensorflow clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeNetworkEndpoints(int index) { if (networkEndpointsBuilder_ == null) { @@ -4255,45 +4785,57 @@ public Builder removeNetworkEndpoints(int index) { return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that Tensorflow clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.tpu.v1.NetworkEndpoint.Builder getNetworkEndpointsBuilder( - int index) { + public com.google.cloud.tpu.v1.NetworkEndpoint.Builder getNetworkEndpointsBuilder(int index) { return getNetworkEndpointsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that Tensorflow clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v1.NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder( int index) { if (networkEndpointsBuilder_ == null) { - return networkEndpoints_.get(index); } else { + return networkEndpoints_.get(index); + } else { return networkEndpointsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that Tensorflow clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getNetworkEndpointsOrBuilderList() { + public java.util.List + getNetworkEndpointsOrBuilderList() { if (networkEndpointsBuilder_ != null) { return networkEndpointsBuilder_.getMessageOrBuilderList(); } else { @@ -4301,51 +4843,68 @@ public com.google.cloud.tpu.v1.NetworkEndpointOrBuilder getNetworkEndpointsOrBui } } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that Tensorflow clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v1.NetworkEndpoint.Builder addNetworkEndpointsBuilder() { - return getNetworkEndpointsFieldBuilder().addBuilder( - com.google.cloud.tpu.v1.NetworkEndpoint.getDefaultInstance()); + return getNetworkEndpointsFieldBuilder() + .addBuilder(com.google.cloud.tpu.v1.NetworkEndpoint.getDefaultInstance()); } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that Tensorflow clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.tpu.v1.NetworkEndpoint.Builder addNetworkEndpointsBuilder( - int index) { - return getNetworkEndpointsFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v1.NetworkEndpoint.getDefaultInstance()); + public com.google.cloud.tpu.v1.NetworkEndpoint.Builder addNetworkEndpointsBuilder(int index) { + return getNetworkEndpointsFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v1.NetworkEndpoint.getDefaultInstance()); } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that Tensorflow clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getNetworkEndpointsBuilderList() { + public java.util.List + getNetworkEndpointsBuilderList() { return getNetworkEndpointsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v1.NetworkEndpoint, com.google.cloud.tpu.v1.NetworkEndpoint.Builder, com.google.cloud.tpu.v1.NetworkEndpointOrBuilder> + com.google.cloud.tpu.v1.NetworkEndpoint, + com.google.cloud.tpu.v1.NetworkEndpoint.Builder, + com.google.cloud.tpu.v1.NetworkEndpointOrBuilder> getNetworkEndpointsFieldBuilder() { if (networkEndpointsBuilder_ == null) { - networkEndpointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v1.NetworkEndpoint, com.google.cloud.tpu.v1.NetworkEndpoint.Builder, com.google.cloud.tpu.v1.NetworkEndpointOrBuilder>( + networkEndpointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v1.NetworkEndpoint, + com.google.cloud.tpu.v1.NetworkEndpoint.Builder, + com.google.cloud.tpu.v1.NetworkEndpointOrBuilder>( networkEndpoints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -4357,51 +4916,65 @@ public com.google.cloud.tpu.v1.NetworkEndpoint.Builder addNetworkEndpointsBuilde private int health_ = 0; /** + * + * *
      * The health status of the TPU node.
      * 
* * .google.cloud.tpu.v1.Node.Health health = 22; + * * @return The enum numeric value on the wire for health. */ - @java.lang.Override public int getHealthValue() { + @java.lang.Override + public int getHealthValue() { return health_; } /** + * + * *
      * The health status of the TPU node.
      * 
* * .google.cloud.tpu.v1.Node.Health health = 22; + * * @param value The enum numeric value on the wire for health to set. * @return This builder for chaining. */ public Builder setHealthValue(int value) { - + health_ = value; onChanged(); return this; } /** + * + * *
      * The health status of the TPU node.
      * 
* * .google.cloud.tpu.v1.Node.Health health = 22; + * * @return The health. */ @java.lang.Override public com.google.cloud.tpu.v1.Node.Health getHealth() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v1.Node.Health result = com.google.cloud.tpu.v1.Node.Health.valueOf(health_); + com.google.cloud.tpu.v1.Node.Health result = + com.google.cloud.tpu.v1.Node.Health.valueOf(health_); return result == null ? com.google.cloud.tpu.v1.Node.Health.UNRECOGNIZED : result; } /** + * + * *
      * The health status of the TPU node.
      * 
* * .google.cloud.tpu.v1.Node.Health health = 22; + * * @param value The health to set. * @return This builder for chaining. */ @@ -4409,42 +4982,44 @@ public Builder setHealth(com.google.cloud.tpu.v1.Node.Health value) { if (value == null) { throw new NullPointerException(); } - + health_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The health status of the TPU node.
      * 
* * .google.cloud.tpu.v1.Node.Health health = 22; + * * @return This builder for chaining. */ public Builder clearHealth() { - + health_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -4456,28 +5031,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
* * map<string, string> labels = 24; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
@@ -4485,11 +5062,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 24; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
@@ -4497,16 +5075,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 24; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
@@ -4514,12 +5093,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 24; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -4527,69 +5105,68 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
* * map<string, string> labels = 24; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
* * map<string, string> labels = 24; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
* * map<string, string> labels = 24; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } - private boolean useServiceNetworking_ ; + private boolean useServiceNetworking_; /** + * + * *
      * Whether the VPC peering for the node is set up through Service Networking
      * API. The VPC Peering should be set up before provisioning the node.
@@ -4599,6 +5176,7 @@ public Builder putAllLabels(
      * 
* * bool use_service_networking = 27; + * * @return The useServiceNetworking. */ @java.lang.Override @@ -4606,6 +5184,8 @@ public boolean getUseServiceNetworking() { return useServiceNetworking_; } /** + * + * *
      * Whether the VPC peering for the node is set up through Service Networking
      * API. The VPC Peering should be set up before provisioning the node.
@@ -4615,16 +5195,19 @@ public boolean getUseServiceNetworking() {
      * 
* * bool use_service_networking = 27; + * * @param value The useServiceNetworking to set. * @return This builder for chaining. */ public Builder setUseServiceNetworking(boolean value) { - + useServiceNetworking_ = value; onChanged(); return this; } /** + * + * *
      * Whether the VPC peering for the node is set up through Service Networking
      * API. The VPC Peering should be set up before provisioning the node.
@@ -4634,10 +5217,11 @@ public Builder setUseServiceNetworking(boolean value) {
      * 
* * bool use_service_networking = 27; + * * @return This builder for chaining. */ public Builder clearUseServiceNetworking() { - + useServiceNetworking_ = false; onChanged(); return this; @@ -4645,51 +5229,73 @@ public Builder clearUseServiceNetworking() { private int apiVersion_ = 0; /** + * + * *
      * Output only. The API version that created this Node.
      * 
* - * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for apiVersion. */ - @java.lang.Override public int getApiVersionValue() { + @java.lang.Override + public int getApiVersionValue() { return apiVersion_; } /** + * + * *
      * Output only. The API version that created this Node.
      * 
* - * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for apiVersion to set. * @return This builder for chaining. */ public Builder setApiVersionValue(int value) { - + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The API version that created this Node.
      * 
* - * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The apiVersion. */ @java.lang.Override public com.google.cloud.tpu.v1.Node.ApiVersion getApiVersion() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v1.Node.ApiVersion result = com.google.cloud.tpu.v1.Node.ApiVersion.valueOf(apiVersion_); + com.google.cloud.tpu.v1.Node.ApiVersion result = + com.google.cloud.tpu.v1.Node.ApiVersion.valueOf(apiVersion_); return result == null ? com.google.cloud.tpu.v1.Node.ApiVersion.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The API version that created this Node.
      * 
* - * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The apiVersion to set. * @return This builder for chaining. */ @@ -4697,44 +5303,57 @@ public Builder setApiVersion(com.google.cloud.tpu.v1.Node.ApiVersion value) { if (value == null) { throw new NullPointerException(); } - + apiVersion_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The API version that created this Node.
      * 
* - * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = 0; onChanged(); return this; } private java.util.List symptoms_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSymptomsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { symptoms_ = new java.util.ArrayList(symptoms_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v1.Symptom, com.google.cloud.tpu.v1.Symptom.Builder, com.google.cloud.tpu.v1.SymptomOrBuilder> symptomsBuilder_; + com.google.cloud.tpu.v1.Symptom, + com.google.cloud.tpu.v1.Symptom.Builder, + com.google.cloud.tpu.v1.SymptomOrBuilder> + symptomsBuilder_; /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getSymptomsList() { if (symptomsBuilder_ == null) { @@ -4744,11 +5363,15 @@ public java.util.List getSymptomsList() { } } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getSymptomsCount() { if (symptomsBuilder_ == null) { @@ -4758,11 +5381,15 @@ public int getSymptomsCount() { } } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v1.Symptom getSymptoms(int index) { if (symptomsBuilder_ == null) { @@ -4772,14 +5399,17 @@ public com.google.cloud.tpu.v1.Symptom getSymptoms(int index) { } } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSymptoms( - int index, com.google.cloud.tpu.v1.Symptom value) { + public Builder setSymptoms(int index, com.google.cloud.tpu.v1.Symptom value) { if (symptomsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4793,14 +5423,17 @@ public Builder setSymptoms( return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSymptoms( - int index, com.google.cloud.tpu.v1.Symptom.Builder builderForValue) { + public Builder setSymptoms(int index, com.google.cloud.tpu.v1.Symptom.Builder builderForValue) { if (symptomsBuilder_ == null) { ensureSymptomsIsMutable(); symptoms_.set(index, builderForValue.build()); @@ -4811,11 +5444,15 @@ public Builder setSymptoms( return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addSymptoms(com.google.cloud.tpu.v1.Symptom value) { if (symptomsBuilder_ == null) { @@ -4831,14 +5468,17 @@ public Builder addSymptoms(com.google.cloud.tpu.v1.Symptom value) { return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addSymptoms( - int index, com.google.cloud.tpu.v1.Symptom value) { + public Builder addSymptoms(int index, com.google.cloud.tpu.v1.Symptom value) { if (symptomsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4852,14 +5492,17 @@ public Builder addSymptoms( return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addSymptoms( - com.google.cloud.tpu.v1.Symptom.Builder builderForValue) { + public Builder addSymptoms(com.google.cloud.tpu.v1.Symptom.Builder builderForValue) { if (symptomsBuilder_ == null) { ensureSymptomsIsMutable(); symptoms_.add(builderForValue.build()); @@ -4870,14 +5513,17 @@ public Builder addSymptoms( return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addSymptoms( - int index, com.google.cloud.tpu.v1.Symptom.Builder builderForValue) { + public Builder addSymptoms(int index, com.google.cloud.tpu.v1.Symptom.Builder builderForValue) { if (symptomsBuilder_ == null) { ensureSymptomsIsMutable(); symptoms_.add(index, builderForValue.build()); @@ -4888,18 +5534,21 @@ public Builder addSymptoms( return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllSymptoms( java.lang.Iterable values) { if (symptomsBuilder_ == null) { ensureSymptomsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, symptoms_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, symptoms_); onChanged(); } else { symptomsBuilder_.addAllMessages(values); @@ -4907,11 +5556,15 @@ public Builder addAllSymptoms( return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSymptoms() { if (symptomsBuilder_ == null) { @@ -4924,11 +5577,15 @@ public Builder clearSymptoms() { return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeSymptoms(int index) { if (symptomsBuilder_ == null) { @@ -4941,39 +5598,50 @@ public Builder removeSymptoms(int index) { return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.tpu.v1.Symptom.Builder getSymptomsBuilder( - int index) { + public com.google.cloud.tpu.v1.Symptom.Builder getSymptomsBuilder(int index) { return getSymptomsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.tpu.v1.SymptomOrBuilder getSymptomsOrBuilder( - int index) { + public com.google.cloud.tpu.v1.SymptomOrBuilder getSymptomsOrBuilder(int index) { if (symptomsBuilder_ == null) { - return symptoms_.get(index); } else { + return symptoms_.get(index); + } else { return symptomsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getSymptomsOrBuilderList() { + public java.util.List + getSymptomsOrBuilderList() { if (symptomsBuilder_ != null) { return symptomsBuilder_.getMessageOrBuilderList(); } else { @@ -4981,56 +5649,69 @@ public com.google.cloud.tpu.v1.SymptomOrBuilder getSymptomsOrBuilder( } } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v1.Symptom.Builder addSymptomsBuilder() { - return getSymptomsFieldBuilder().addBuilder( - com.google.cloud.tpu.v1.Symptom.getDefaultInstance()); + return getSymptomsFieldBuilder() + .addBuilder(com.google.cloud.tpu.v1.Symptom.getDefaultInstance()); } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.tpu.v1.Symptom.Builder addSymptomsBuilder( - int index) { - return getSymptomsFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v1.Symptom.getDefaultInstance()); + public com.google.cloud.tpu.v1.Symptom.Builder addSymptomsBuilder(int index) { + return getSymptomsFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v1.Symptom.getDefaultInstance()); } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getSymptomsBuilderList() { + public java.util.List getSymptomsBuilderList() { return getSymptomsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v1.Symptom, com.google.cloud.tpu.v1.Symptom.Builder, com.google.cloud.tpu.v1.SymptomOrBuilder> + com.google.cloud.tpu.v1.Symptom, + com.google.cloud.tpu.v1.Symptom.Builder, + com.google.cloud.tpu.v1.SymptomOrBuilder> getSymptomsFieldBuilder() { if (symptomsBuilder_ == null) { - symptomsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v1.Symptom, com.google.cloud.tpu.v1.Symptom.Builder, com.google.cloud.tpu.v1.SymptomOrBuilder>( - symptoms_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + symptomsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v1.Symptom, + com.google.cloud.tpu.v1.Symptom.Builder, + com.google.cloud.tpu.v1.SymptomOrBuilder>( + symptoms_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); symptoms_ = null; } return symptomsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5040,12 +5721,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.Node) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.Node) private static final com.google.cloud.tpu.v1.Node DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.Node(); } @@ -5054,27 +5735,27 @@ public static com.google.cloud.tpu.v1.Node getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Node parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Node parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5089,6 +5770,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v1.Node getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NodeName.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NodeName.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NodeName.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NodeName.java diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NodeOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NodeOrBuilder.java similarity index 72% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NodeOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NodeOrBuilder.java index 7bca19d16a1b..4b8140083ede 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NodeOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NodeOrBuilder.java @@ -1,73 +1,110 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; -public interface NodeOrBuilder extends +public interface NodeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.Node) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Immutable. The name of the TPU
    * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Immutable. The name of the TPU
    * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The user-supplied description of the TPU. Maximum of 512 characters.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * The user-supplied description of the TPU. Maximum of 512 characters.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Required. The type of hardware accelerators associated with this node.
    * 
* * string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The acceleratorType. */ java.lang.String getAcceleratorType(); /** + * + * *
    * Required. The type of hardware accelerators associated with this node.
    * 
* * string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for acceleratorType. */ - com.google.protobuf.ByteString - getAcceleratorTypeBytes(); + com.google.protobuf.ByteString getAcceleratorTypeBytes(); /** + * + * *
    * Output only. DEPRECATED! Use network_endpoints instead.
    * The network address for the TPU Node as visible to Compute Engine
@@ -75,12 +112,16 @@ public interface NodeOrBuilder extends
    * 
* * string ip_address = 8 [deprecated = true]; - * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. - * See google/cloud/tpu/v1/cloud_tpu.proto;l=275 + * + * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See + * google/cloud/tpu/v1/cloud_tpu.proto;l=275 * @return The ipAddress. */ - @java.lang.Deprecated java.lang.String getIpAddress(); + @java.lang.Deprecated + java.lang.String getIpAddress(); /** + * + * *
    * Output only. DEPRECATED! Use network_endpoints instead.
    * The network address for the TPU Node as visible to Compute Engine
@@ -88,101 +129,129 @@ public interface NodeOrBuilder extends
    * 
* * string ip_address = 8 [deprecated = true]; - * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. - * See google/cloud/tpu/v1/cloud_tpu.proto;l=275 + * + * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See + * google/cloud/tpu/v1/cloud_tpu.proto;l=275 * @return The bytes for ipAddress. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getIpAddressBytes(); + @java.lang.Deprecated + com.google.protobuf.ByteString getIpAddressBytes(); /** + * + * *
    * Output only. DEPRECATED! Use network_endpoints instead.
    * The network port for the TPU Node as visible to Compute Engine instances.
    * 
* * string port = 14 [deprecated = true]; - * @deprecated google.cloud.tpu.v1.Node.port is deprecated. - * See google/cloud/tpu/v1/cloud_tpu.proto;l=279 + * + * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See + * google/cloud/tpu/v1/cloud_tpu.proto;l=279 * @return The port. */ - @java.lang.Deprecated java.lang.String getPort(); + @java.lang.Deprecated + java.lang.String getPort(); /** + * + * *
    * Output only. DEPRECATED! Use network_endpoints instead.
    * The network port for the TPU Node as visible to Compute Engine instances.
    * 
* * string port = 14 [deprecated = true]; - * @deprecated google.cloud.tpu.v1.Node.port is deprecated. - * See google/cloud/tpu/v1/cloud_tpu.proto;l=279 + * + * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See + * google/cloud/tpu/v1/cloud_tpu.proto;l=279 * @return The bytes for port. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getPortBytes(); + @java.lang.Deprecated + com.google.protobuf.ByteString getPortBytes(); /** + * + * *
    * Output only. The current state for the TPU Node.
    * 
* - * .google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current state for the TPU Node.
    * 
* - * .google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.tpu.v1.Node.State getState(); /** + * + * *
    * Output only. If this field is populated, it contains a description of why the TPU Node
    * is unhealthy.
    * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The healthDescription. */ java.lang.String getHealthDescription(); /** + * + * *
    * Output only. If this field is populated, it contains a description of why the TPU Node
    * is unhealthy.
    * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for healthDescription. */ - com.google.protobuf.ByteString - getHealthDescriptionBytes(); + com.google.protobuf.ByteString getHealthDescriptionBytes(); /** + * + * *
    * Required. The version of Tensorflow running in the Node.
    * 
* * string tensorflow_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The tensorflowVersion. */ java.lang.String getTensorflowVersion(); /** + * + * *
    * Required. The version of Tensorflow running in the Node.
    * 
* * string tensorflow_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for tensorflowVersion. */ - com.google.protobuf.ByteString - getTensorflowVersionBytes(); + com.google.protobuf.ByteString getTensorflowVersionBytes(); /** + * + * *
    * The name of a network they wish to peer the TPU node to. It must be a
    * preexisting Compute Engine network inside of the project on which this API
@@ -190,10 +259,13 @@ public interface NodeOrBuilder extends
    * 
* * string network = 12; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
    * The name of a network they wish to peer the TPU node to. It must be a
    * preexisting Compute Engine network inside of the project on which this API
@@ -201,12 +273,14 @@ public interface NodeOrBuilder extends
    * 
* * string network = 12; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
    * The CIDR block that the TPU node will use when selecting an IP address.
    * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -219,10 +293,13 @@ public interface NodeOrBuilder extends
    * 
* * string cidr_block = 13; + * * @return The cidrBlock. */ java.lang.String getCidrBlock(); /** + * + * *
    * The CIDR block that the TPU node will use when selecting an IP address.
    * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -235,12 +312,14 @@ public interface NodeOrBuilder extends
    * 
* * string cidr_block = 13; + * * @return The bytes for cidrBlock. */ - com.google.protobuf.ByteString - getCidrBlockBytes(); + com.google.protobuf.ByteString getCidrBlockBytes(); /** + * + * *
    * Output only. The service account used to run the tensor flow services within the node.
    * To share resources, including Google Cloud Storage data, with the
@@ -249,10 +328,13 @@ public interface NodeOrBuilder extends
    * 
* * string service_account = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
    * Output only. The service account used to run the tensor flow services within the node.
    * To share resources, including Google Cloud Storage data, with the
@@ -261,57 +343,76 @@ public interface NodeOrBuilder extends
    * 
* * string service_account = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
    * Output only. The time when the node was created.
    * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time when the node was created.
    * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time when the node was created.
    * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The scheduling options for this node.
    * 
* * .google.cloud.tpu.v1.SchedulingConfig scheduling_config = 17; + * * @return Whether the schedulingConfig field is set. */ boolean hasSchedulingConfig(); /** + * + * *
    * The scheduling options for this node.
    * 
* * .google.cloud.tpu.v1.SchedulingConfig scheduling_config = 17; + * * @return The schedulingConfig. */ com.google.cloud.tpu.v1.SchedulingConfig getSchedulingConfig(); /** + * + * *
    * The scheduling options for this node.
    * 
@@ -321,79 +422,105 @@ public interface NodeOrBuilder extends com.google.cloud.tpu.v1.SchedulingConfigOrBuilder getSchedulingConfigOrBuilder(); /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that Tensorflow clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getNetworkEndpointsList(); + java.util.List getNetworkEndpointsList(); /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that Tensorflow clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.tpu.v1.NetworkEndpoint getNetworkEndpoints(int index); /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that Tensorflow clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getNetworkEndpointsCount(); /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that Tensorflow clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getNetworkEndpointsOrBuilderList(); /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that Tensorflow clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.tpu.v1.NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder( - int index); + com.google.cloud.tpu.v1.NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder(int index); /** + * + * *
    * The health status of the TPU node.
    * 
* * .google.cloud.tpu.v1.Node.Health health = 22; + * * @return The enum numeric value on the wire for health. */ int getHealthValue(); /** + * + * *
    * The health status of the TPU node.
    * 
* * .google.cloud.tpu.v1.Node.Health health = 22; + * * @return The health. */ com.google.cloud.tpu.v1.Node.Health getHealth(); /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
@@ -402,30 +529,31 @@ com.google.cloud.tpu.v1.NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder( */ int getLabelsCount(); /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
* * map<string, string> labels = 24; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
* * map<string, string> labels = 24; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
@@ -434,22 +562,24 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
* * map<string, string> labels = 24; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Whether the VPC peering for the node is set up through Service Networking
    * API. The VPC Peering should be set up before provisioning the node.
@@ -459,70 +589,98 @@ java.lang.String getLabelsOrThrow(
    * 
* * bool use_service_networking = 27; + * * @return The useServiceNetworking. */ boolean getUseServiceNetworking(); /** + * + * *
    * Output only. The API version that created this Node.
    * 
* - * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for apiVersion. */ int getApiVersionValue(); /** + * + * *
    * Output only. The API version that created this Node.
    * 
* - * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The apiVersion. */ com.google.cloud.tpu.v1.Node.ApiVersion getApiVersion(); /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getSymptomsList(); + java.util.List getSymptomsList(); /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.tpu.v1.Symptom getSymptoms(int index); /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getSymptomsCount(); /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getSymptomsOrBuilderList(); + java.util.List getSymptomsOrBuilderList(); /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.tpu.v1.SymptomOrBuilder getSymptomsOrBuilder( - int index); + com.google.cloud.tpu.v1.SymptomOrBuilder getSymptomsOrBuilder(int index); } diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/OperationMetadata.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/OperationMetadata.java similarity index 72% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/OperationMetadata.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/OperationMetadata.java index 4780b21c35ac..10671a434178 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/OperationMetadata.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * Metadata describing an [Operation][google.longrunning.Operation]
  * 
* * Protobuf type {@code google.cloud.tpu.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,37 +46,41 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.OperationMetadata.class, com.google.cloud.tpu.v1.OperationMetadata.Builder.class); + com.google.cloud.tpu.v1.OperationMetadata.class, + com.google.cloud.tpu.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -66,11 +88,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -78,6 +103,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time the operation was created.
    * 
@@ -92,11 +119,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -104,11 +134,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -116,6 +149,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time the operation finished running.
    * 
@@ -130,12 +165,15 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Target of the operation - for example
    * projects/project-1/connectivityTests/test-1
    * 
* * string target = 3; + * * @return The target. */ @java.lang.Override @@ -144,30 +182,30 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Target of the operation - for example
    * projects/project-1/connectivityTests/test-1
    * 
* * string target = 3; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -178,11 +216,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The verb. */ @java.lang.Override @@ -191,29 +232,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -224,11 +265,14 @@ public java.lang.String getVerb() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_detail = 5; + * * @return The statusDetail. */ @java.lang.Override @@ -237,29 +281,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_detail = 5; + * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -270,11 +314,14 @@ public java.lang.String getStatusDetail() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** + * + * *
    * Specifies if cancellation was requested for the operation.
    * 
* * bool cancel_requested = 6; + * * @return The cancelRequested. */ @java.lang.Override @@ -285,11 +332,14 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * API version.
    * 
* * string api_version = 7; + * * @return The apiVersion. */ @java.lang.Override @@ -298,29 +348,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * API version.
    * 
* * string api_version = 7; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -329,6 +379,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -340,8 +391,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -373,12 +423,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -390,8 +438,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -404,33 +451,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.tpu.v1.OperationMetadata other = (com.google.cloud.tpu.v1.OperationMetadata) obj; + com.google.cloud.tpu.v1.OperationMetadata other = + (com.google.cloud.tpu.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusDetail() - .equals(other.getStatusDetail())) return false; - if (getCancelRequested() - != other.getCancelRequested()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusDetail().equals(other.getStatusDetail())) return false; + if (getCancelRequested() != other.getCancelRequested()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -457,8 +498,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -466,130 +506,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.OperationMetadata 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.tpu.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata describing an [Operation][google.longrunning.Operation]
    * 
* * Protobuf type {@code google.cloud.tpu.v1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.OperationMetadata) com.google.cloud.tpu.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.OperationMetadata.class, com.google.cloud.tpu.v1.OperationMetadata.Builder.class); + com.google.cloud.tpu.v1.OperationMetadata.class, + com.google.cloud.tpu.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.tpu.v1.OperationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -619,9 +665,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -640,7 +686,8 @@ public com.google.cloud.tpu.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.tpu.v1.OperationMetadata buildPartial() { - com.google.cloud.tpu.v1.OperationMetadata result = new com.google.cloud.tpu.v1.OperationMetadata(this); + com.google.cloud.tpu.v1.OperationMetadata result = + new com.google.cloud.tpu.v1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -664,38 +711,39 @@ public com.google.cloud.tpu.v1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.tpu.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.tpu.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -755,51 +803,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - statusDetail_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 48: { - cancelRequested_ = input.readBool(); - - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + statusDetail_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: + { + cancelRequested_ = input.readBool(); + + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -812,34 +864,47 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time the operation was created.
      * 
@@ -860,14 +925,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -878,6 +944,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -888,7 +956,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -900,6 +968,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -918,6 +988,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -925,11 +997,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation was created.
      * 
@@ -940,11 +1014,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time the operation was created.
      * 
@@ -952,14 +1029,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -967,24 +1047,33 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -995,6 +1084,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1015,14 +1106,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1033,6 +1125,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1043,7 +1137,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1055,6 +1149,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1073,6 +1169,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1080,11 +1178,13 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 2; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1095,11 +1195,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1107,14 +1208,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1122,19 +1226,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Target of the operation - for example
      * projects/project-1/connectivityTests/test-1
      * 
* * string target = 3; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1143,21 +1249,22 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Target of the operation - for example
      * projects/project-1/connectivityTests/test-1
      * 
* * string target = 3; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1165,57 +1272,64 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Target of the operation - for example
      * projects/project-1/connectivityTests/test-1
      * 
* * string target = 3; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Target of the operation - for example
      * projects/project-1/connectivityTests/test-1
      * 
* * string target = 3; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Target of the operation - for example
      * projects/project-1/connectivityTests/test-1
      * 
* * string target = 3; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1223,18 +1337,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1243,20 +1359,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1264,54 +1381,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1319,18 +1443,20 @@ public Builder setVerbBytes( private java.lang.Object statusDetail_ = ""; /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_detail = 5; + * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1339,20 +1465,21 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_detail = 5; + * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1360,66 +1487,76 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_detail = 5; + * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail( - java.lang.String value) { + public Builder setStatusDetail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_detail = 5; + * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_detail = 5; + * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_ ; + private boolean cancelRequested_; /** + * + * *
      * Specifies if cancellation was requested for the operation.
      * 
* * bool cancel_requested = 6; + * * @return The cancelRequested. */ @java.lang.Override @@ -1427,30 +1564,36 @@ public boolean getCancelRequested() { return cancelRequested_; } /** + * + * *
      * Specifies if cancellation was requested for the operation.
      * 
* * bool cancel_requested = 6; + * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** + * + * *
      * Specifies if cancellation was requested for the operation.
      * 
* * bool cancel_requested = 6; + * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1458,18 +1601,20 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1478,20 +1623,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1499,61 +1645,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1563,12 +1716,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.OperationMetadata) private static final com.google.cloud.tpu.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.OperationMetadata(); } @@ -1577,27 +1730,27 @@ public static com.google.cloud.tpu.v1.OperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1612,6 +1765,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/OperationMetadataOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/OperationMetadataOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/OperationMetadataOrBuilder.java index b88331fd15d0..8192fc69b200 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/OperationMetadataOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/OperationMetadataOrBuilder.java @@ -1,31 +1,55 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
@@ -35,24 +59,32 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
@@ -62,94 +94,117 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Target of the operation - for example
    * projects/project-1/connectivityTests/test-1
    * 
* * string target = 3; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Target of the operation - for example
    * projects/project-1/connectivityTests/test-1
    * 
* * string target = 3; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_detail = 5; + * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_detail = 5; + * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString - getStatusDetailBytes(); + com.google.protobuf.ByteString getStatusDetailBytes(); /** + * + * *
    * Specifies if cancellation was requested for the operation.
    * 
* * bool cancel_requested = 6; + * * @return The cancelRequested. */ boolean getCancelRequested(); /** + * + * *
    * API version.
    * 
* * string api_version = 7; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * API version.
    * 
* * string api_version = 7; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ReimageNodeRequest.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ReimageNodeRequest.java similarity index 66% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ReimageNodeRequest.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ReimageNodeRequest.java index 3e0bde1b1648..e2ffa921cdda 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ReimageNodeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ReimageNodeRequest.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * Request for [ReimageNode][google.cloud.tpu.v1.Tpu.ReimageNode].
  * 
* * Protobuf type {@code google.cloud.tpu.v1.ReimageNodeRequest} */ -public final class ReimageNodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReimageNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.ReimageNodeRequest) ReimageNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReimageNodeRequest.newBuilder() to construct. private ReimageNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReimageNodeRequest() { name_ = ""; tensorflowVersion_ = ""; @@ -26,37 +44,41 @@ private ReimageNodeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReimageNodeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ReimageNodeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ReimageNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ReimageNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ReimageNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.ReimageNodeRequest.class, com.google.cloud.tpu.v1.ReimageNodeRequest.Builder.class); + com.google.cloud.tpu.v1.ReimageNodeRequest.class, + com.google.cloud.tpu.v1.ReimageNodeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -65,29 +87,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,11 +120,14 @@ public java.lang.String getName() { public static final int TENSORFLOW_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object tensorflowVersion_; /** + * + * *
    * The version for reimage to create.
    * 
* * string tensorflow_version = 2; + * * @return The tensorflowVersion. */ @java.lang.Override @@ -111,29 +136,29 @@ public java.lang.String getTensorflowVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tensorflowVersion_ = s; return s; } } /** + * + * *
    * The version for reimage to create.
    * 
* * string tensorflow_version = 2; + * * @return The bytes for tensorflowVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getTensorflowVersionBytes() { + public com.google.protobuf.ByteString getTensorflowVersionBytes() { java.lang.Object ref = tensorflowVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tensorflowVersion_ = b; return b; } else { @@ -142,6 +167,7 @@ public java.lang.String getTensorflowVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -184,17 +209,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.ReimageNodeRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v1.ReimageNodeRequest other = (com.google.cloud.tpu.v1.ReimageNodeRequest) obj; + com.google.cloud.tpu.v1.ReimageNodeRequest other = + (com.google.cloud.tpu.v1.ReimageNodeRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getTensorflowVersion() - .equals(other.getTensorflowVersion())) return false; + if (!getName().equals(other.getName())) return false; + if (!getTensorflowVersion().equals(other.getTensorflowVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -215,130 +239,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v1.ReimageNodeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v1.ReimageNodeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ReimageNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.ReimageNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ReimageNodeRequest 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.tpu.v1.ReimageNodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.ReimageNodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.ReimageNodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ReimageNodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.ReimageNodeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.ReimageNodeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ReimageNodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.ReimageNodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.ReimageNodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.ReimageNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [ReimageNode][google.cloud.tpu.v1.Tpu.ReimageNode].
    * 
* * Protobuf type {@code google.cloud.tpu.v1.ReimageNodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.ReimageNodeRequest) com.google.cloud.tpu.v1.ReimageNodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ReimageNodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ReimageNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ReimageNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ReimageNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.ReimageNodeRequest.class, com.google.cloud.tpu.v1.ReimageNodeRequest.Builder.class); + com.google.cloud.tpu.v1.ReimageNodeRequest.class, + com.google.cloud.tpu.v1.ReimageNodeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v1.ReimageNodeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_ReimageNodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_ReimageNodeRequest_descriptor; } @java.lang.Override @@ -371,7 +401,8 @@ public com.google.cloud.tpu.v1.ReimageNodeRequest build() { @java.lang.Override public com.google.cloud.tpu.v1.ReimageNodeRequest buildPartial() { - com.google.cloud.tpu.v1.ReimageNodeRequest result = new com.google.cloud.tpu.v1.ReimageNodeRequest(this); + com.google.cloud.tpu.v1.ReimageNodeRequest result = + new com.google.cloud.tpu.v1.ReimageNodeRequest(this); result.name_ = name_; result.tensorflowVersion_ = tensorflowVersion_; onBuilt(); @@ -382,38 +413,39 @@ public com.google.cloud.tpu.v1.ReimageNodeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.ReimageNodeRequest) { - return mergeFrom((com.google.cloud.tpu.v1.ReimageNodeRequest)other); + return mergeFrom((com.google.cloud.tpu.v1.ReimageNodeRequest) other); } else { super.mergeFrom(other); return this; @@ -456,22 +488,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - tensorflowVersion_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + tensorflowVersion_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -484,18 +519,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -504,20 +541,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -525,54 +563,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -580,18 +625,20 @@ public Builder setNameBytes( private java.lang.Object tensorflowVersion_ = ""; /** + * + * *
      * The version for reimage to create.
      * 
* * string tensorflow_version = 2; + * * @return The tensorflowVersion. */ public java.lang.String getTensorflowVersion() { java.lang.Object ref = tensorflowVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tensorflowVersion_ = s; return s; @@ -600,20 +647,21 @@ public java.lang.String getTensorflowVersion() { } } /** + * + * *
      * The version for reimage to create.
      * 
* * string tensorflow_version = 2; + * * @return The bytes for tensorflowVersion. */ - public com.google.protobuf.ByteString - getTensorflowVersionBytes() { + public com.google.protobuf.ByteString getTensorflowVersionBytes() { java.lang.Object ref = tensorflowVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tensorflowVersion_ = b; return b; } else { @@ -621,61 +669,68 @@ public java.lang.String getTensorflowVersion() { } } /** + * + * *
      * The version for reimage to create.
      * 
* * string tensorflow_version = 2; + * * @param value The tensorflowVersion to set. * @return This builder for chaining. */ - public Builder setTensorflowVersion( - java.lang.String value) { + public Builder setTensorflowVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + tensorflowVersion_ = value; onChanged(); return this; } /** + * + * *
      * The version for reimage to create.
      * 
* * string tensorflow_version = 2; + * * @return This builder for chaining. */ public Builder clearTensorflowVersion() { - + tensorflowVersion_ = getDefaultInstance().getTensorflowVersion(); onChanged(); return this; } /** + * + * *
      * The version for reimage to create.
      * 
* * string tensorflow_version = 2; + * * @param value The bytes for tensorflowVersion to set. * @return This builder for chaining. */ - public Builder setTensorflowVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setTensorflowVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tensorflowVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -685,12 +740,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.ReimageNodeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.ReimageNodeRequest) private static final com.google.cloud.tpu.v1.ReimageNodeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.ReimageNodeRequest(); } @@ -699,27 +754,27 @@ public static com.google.cloud.tpu.v1.ReimageNodeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReimageNodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReimageNodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -734,6 +789,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v1.ReimageNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ReimageNodeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ReimageNodeRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ReimageNodeRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ReimageNodeRequestOrBuilder.java index 3d0b1bfc7df5..e44a725d493f 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ReimageNodeRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/ReimageNodeRequestOrBuilder.java @@ -1,49 +1,75 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; -public interface ReimageNodeRequestOrBuilder extends +public interface ReimageNodeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.ReimageNodeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The version for reimage to create.
    * 
* * string tensorflow_version = 2; + * * @return The tensorflowVersion. */ java.lang.String getTensorflowVersion(); /** + * + * *
    * The version for reimage to create.
    * 
* * string tensorflow_version = 2; + * * @return The bytes for tensorflowVersion. */ - com.google.protobuf.ByteString - getTensorflowVersionBytes(); + com.google.protobuf.ByteString getTensorflowVersionBytes(); } diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/SchedulingConfig.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/SchedulingConfig.java similarity index 66% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/SchedulingConfig.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/SchedulingConfig.java index 33c0c3078b4c..bab3a8f6d8f9 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/SchedulingConfig.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/SchedulingConfig.java @@ -1,60 +1,81 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * Sets the scheduling options for this node.
  * 
* * Protobuf type {@code google.cloud.tpu.v1.SchedulingConfig} */ -public final class SchedulingConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SchedulingConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.SchedulingConfig) SchedulingConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SchedulingConfig.newBuilder() to construct. private SchedulingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SchedulingConfig() { - } + + private SchedulingConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SchedulingConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_SchedulingConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_SchedulingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_SchedulingConfig_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_SchedulingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.SchedulingConfig.class, com.google.cloud.tpu.v1.SchedulingConfig.Builder.class); + com.google.cloud.tpu.v1.SchedulingConfig.class, + com.google.cloud.tpu.v1.SchedulingConfig.Builder.class); } public static final int PREEMPTIBLE_FIELD_NUMBER = 1; private boolean preemptible_; /** + * + * *
    * Defines whether the node is preemptible.
    * 
* * bool preemptible = 1; + * * @return The preemptible. */ @java.lang.Override @@ -65,11 +86,14 @@ public boolean getPreemptible() { public static final int RESERVED_FIELD_NUMBER = 2; private boolean reserved_; /** + * + * *
    * Whether the node is created under a reservation.
    * 
* * bool reserved = 2; + * * @return The reserved. */ @java.lang.Override @@ -78,6 +102,7 @@ public boolean getReserved() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -89,8 +114,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (preemptible_ != false) { output.writeBool(1, preemptible_); } @@ -107,12 +131,10 @@ public int getSerializedSize() { size = 0; if (preemptible_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, preemptible_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, preemptible_); } if (reserved_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, reserved_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, reserved_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -122,17 +144,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.SchedulingConfig)) { return super.equals(obj); } com.google.cloud.tpu.v1.SchedulingConfig other = (com.google.cloud.tpu.v1.SchedulingConfig) obj; - if (getPreemptible() - != other.getPreemptible()) return false; - if (getReserved() - != other.getReserved()) return false; + if (getPreemptible() != other.getPreemptible()) return false; + if (getReserved() != other.getReserved()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -145,140 +165,144 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PREEMPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPreemptible()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreemptible()); hash = (37 * hash) + RESERVED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReserved()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReserved()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.tpu.v1.SchedulingConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v1.SchedulingConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.SchedulingConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.SchedulingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.SchedulingConfig 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.tpu.v1.SchedulingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.SchedulingConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.SchedulingConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.SchedulingConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.SchedulingConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.SchedulingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.SchedulingConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.SchedulingConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.SchedulingConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.SchedulingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Sets the scheduling options for this node.
    * 
* * Protobuf type {@code google.cloud.tpu.v1.SchedulingConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.SchedulingConfig) com.google.cloud.tpu.v1.SchedulingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_SchedulingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_SchedulingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_SchedulingConfig_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_SchedulingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.SchedulingConfig.class, com.google.cloud.tpu.v1.SchedulingConfig.Builder.class); + com.google.cloud.tpu.v1.SchedulingConfig.class, + com.google.cloud.tpu.v1.SchedulingConfig.Builder.class); } // Construct using com.google.cloud.tpu.v1.SchedulingConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -290,9 +314,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_SchedulingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_SchedulingConfig_descriptor; } @java.lang.Override @@ -311,7 +335,8 @@ public com.google.cloud.tpu.v1.SchedulingConfig build() { @java.lang.Override public com.google.cloud.tpu.v1.SchedulingConfig buildPartial() { - com.google.cloud.tpu.v1.SchedulingConfig result = new com.google.cloud.tpu.v1.SchedulingConfig(this); + com.google.cloud.tpu.v1.SchedulingConfig result = + new com.google.cloud.tpu.v1.SchedulingConfig(this); result.preemptible_ = preemptible_; result.reserved_ = reserved_; onBuilt(); @@ -322,38 +347,39 @@ public com.google.cloud.tpu.v1.SchedulingConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.SchedulingConfig) { - return mergeFrom((com.google.cloud.tpu.v1.SchedulingConfig)other); + return mergeFrom((com.google.cloud.tpu.v1.SchedulingConfig) other); } else { super.mergeFrom(other); return this; @@ -394,22 +420,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - preemptible_ = input.readBool(); - - break; - } // case 8 - case 16: { - reserved_ = input.readBool(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + preemptible_ = input.readBool(); + + break; + } // case 8 + case 16: + { + reserved_ = input.readBool(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,13 +449,16 @@ public Builder mergeFrom( return this; } - private boolean preemptible_ ; + private boolean preemptible_; /** + * + * *
      * Defines whether the node is preemptible.
      * 
* * bool preemptible = 1; + * * @return The preemptible. */ @java.lang.Override @@ -434,42 +466,51 @@ public boolean getPreemptible() { return preemptible_; } /** + * + * *
      * Defines whether the node is preemptible.
      * 
* * bool preemptible = 1; + * * @param value The preemptible to set. * @return This builder for chaining. */ public Builder setPreemptible(boolean value) { - + preemptible_ = value; onChanged(); return this; } /** + * + * *
      * Defines whether the node is preemptible.
      * 
* * bool preemptible = 1; + * * @return This builder for chaining. */ public Builder clearPreemptible() { - + preemptible_ = false; onChanged(); return this; } - private boolean reserved_ ; + private boolean reserved_; /** + * + * *
      * Whether the node is created under a reservation.
      * 
* * bool reserved = 2; + * * @return The reserved. */ @java.lang.Override @@ -477,37 +518,43 @@ public boolean getReserved() { return reserved_; } /** + * + * *
      * Whether the node is created under a reservation.
      * 
* * bool reserved = 2; + * * @param value The reserved to set. * @return This builder for chaining. */ public Builder setReserved(boolean value) { - + reserved_ = value; onChanged(); return this; } /** + * + * *
      * Whether the node is created under a reservation.
      * 
* * bool reserved = 2; + * * @return This builder for chaining. */ public Builder clearReserved() { - + reserved_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -517,12 +564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.SchedulingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.SchedulingConfig) private static final com.google.cloud.tpu.v1.SchedulingConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.SchedulingConfig(); } @@ -531,27 +578,27 @@ public static com.google.cloud.tpu.v1.SchedulingConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SchedulingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchedulingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -566,6 +613,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v1.SchedulingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/SchedulingConfigOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/SchedulingConfigOrBuilder.java new file mode 100644 index 000000000000..d747b81c351f --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/SchedulingConfigOrBuilder.java @@ -0,0 +1,51 @@ +/* + * 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/tpu/v1/cloud_tpu.proto + +package com.google.cloud.tpu.v1; + +public interface SchedulingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.SchedulingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Defines whether the node is preemptible.
+   * 
+ * + * bool preemptible = 1; + * + * @return The preemptible. + */ + boolean getPreemptible(); + + /** + * + * + *
+   * Whether the node is created under a reservation.
+   * 
+ * + * bool reserved = 2; + * + * @return The reserved. + */ + boolean getReserved(); +} diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StartNodeRequest.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StartNodeRequest.java similarity index 64% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StartNodeRequest.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StartNodeRequest.java index 9f8f33159306..a8ea93470d87 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StartNodeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StartNodeRequest.java @@ -1,61 +1,83 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * Request for [StartNode][google.cloud.tpu.v1.Tpu.StartNode].
  * 
* * Protobuf type {@code google.cloud.tpu.v1.StartNodeRequest} */ -public final class StartNodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.StartNodeRequest) StartNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartNodeRequest.newBuilder() to construct. private StartNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartNodeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartNodeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_StartNodeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_StartNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_StartNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_StartNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.StartNodeRequest.class, com.google.cloud.tpu.v1.StartNodeRequest.Builder.class); + com.google.cloud.tpu.v1.StartNodeRequest.class, + com.google.cloud.tpu.v1.StartNodeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -64,29 +86,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +117,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +129,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +153,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.StartNodeRequest)) { return super.equals(obj); } com.google.cloud.tpu.v1.StartNodeRequest other = (com.google.cloud.tpu.v1.StartNodeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +179,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v1.StartNodeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v1.StartNodeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.StartNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.StartNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.StartNodeRequest 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.tpu.v1.StartNodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.StartNodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.StartNodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.StartNodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.StartNodeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.StartNodeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.StartNodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.StartNodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.StartNodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.StartNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [StartNode][google.cloud.tpu.v1.Tpu.StartNode].
    * 
* * Protobuf type {@code google.cloud.tpu.v1.StartNodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.StartNodeRequest) com.google.cloud.tpu.v1.StartNodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_StartNodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_StartNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_StartNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_StartNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.StartNodeRequest.class, com.google.cloud.tpu.v1.StartNodeRequest.Builder.class); + com.google.cloud.tpu.v1.StartNodeRequest.class, + com.google.cloud.tpu.v1.StartNodeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v1.StartNodeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +318,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_StartNodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_StartNodeRequest_descriptor; } @java.lang.Override @@ -312,7 +339,8 @@ public com.google.cloud.tpu.v1.StartNodeRequest build() { @java.lang.Override public com.google.cloud.tpu.v1.StartNodeRequest buildPartial() { - com.google.cloud.tpu.v1.StartNodeRequest result = new com.google.cloud.tpu.v1.StartNodeRequest(this); + com.google.cloud.tpu.v1.StartNodeRequest result = + new com.google.cloud.tpu.v1.StartNodeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +350,39 @@ public com.google.cloud.tpu.v1.StartNodeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.StartNodeRequest) { - return mergeFrom((com.google.cloud.tpu.v1.StartNodeRequest)other); + return mergeFrom((com.google.cloud.tpu.v1.StartNodeRequest) other); } else { super.mergeFrom(other); return this; @@ -392,17 +421,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +446,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -435,20 +468,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -456,61 +490,68 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +561,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.StartNodeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.StartNodeRequest) private static final com.google.cloud.tpu.v1.StartNodeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.StartNodeRequest(); } @@ -534,27 +575,27 @@ public static com.google.cloud.tpu.v1.StartNodeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartNodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartNodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +610,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v1.StartNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StartNodeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StartNodeRequestOrBuilder.java new file mode 100644 index 000000000000..23baa871358e --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StartNodeRequestOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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/tpu/v1/cloud_tpu.proto + +package com.google.cloud.tpu.v1; + +public interface StartNodeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.StartNodeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The resource name.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StopNodeRequest.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StopNodeRequest.java similarity index 64% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StopNodeRequest.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StopNodeRequest.java index f3680936ab65..bb1d107e5176 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StopNodeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StopNodeRequest.java @@ -1,61 +1,83 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * Request for [StopNode][google.cloud.tpu.v1.Tpu.StopNode].
  * 
* * Protobuf type {@code google.cloud.tpu.v1.StopNodeRequest} */ -public final class StopNodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.StopNodeRequest) StopNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopNodeRequest.newBuilder() to construct. private StopNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StopNodeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopNodeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_StopNodeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_StopNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_StopNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_StopNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.StopNodeRequest.class, com.google.cloud.tpu.v1.StopNodeRequest.Builder.class); + com.google.cloud.tpu.v1.StopNodeRequest.class, + com.google.cloud.tpu.v1.StopNodeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -64,29 +86,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +117,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +129,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +153,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.StopNodeRequest)) { return super.equals(obj); } com.google.cloud.tpu.v1.StopNodeRequest other = (com.google.cloud.tpu.v1.StopNodeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +179,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v1.StopNodeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v1.StopNodeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.StopNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.StopNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.StopNodeRequest 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.tpu.v1.StopNodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.StopNodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.StopNodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.StopNodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.StopNodeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.StopNodeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.StopNodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.StopNodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.StopNodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.StopNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [StopNode][google.cloud.tpu.v1.Tpu.StopNode].
    * 
* * Protobuf type {@code google.cloud.tpu.v1.StopNodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.StopNodeRequest) com.google.cloud.tpu.v1.StopNodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_StopNodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_StopNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_StopNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_StopNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.StopNodeRequest.class, com.google.cloud.tpu.v1.StopNodeRequest.Builder.class); + com.google.cloud.tpu.v1.StopNodeRequest.class, + com.google.cloud.tpu.v1.StopNodeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v1.StopNodeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +318,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_StopNodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_StopNodeRequest_descriptor; } @java.lang.Override @@ -312,7 +339,8 @@ public com.google.cloud.tpu.v1.StopNodeRequest build() { @java.lang.Override public com.google.cloud.tpu.v1.StopNodeRequest buildPartial() { - com.google.cloud.tpu.v1.StopNodeRequest result = new com.google.cloud.tpu.v1.StopNodeRequest(this); + com.google.cloud.tpu.v1.StopNodeRequest result = + new com.google.cloud.tpu.v1.StopNodeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +350,39 @@ public com.google.cloud.tpu.v1.StopNodeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.StopNodeRequest) { - return mergeFrom((com.google.cloud.tpu.v1.StopNodeRequest)other); + return mergeFrom((com.google.cloud.tpu.v1.StopNodeRequest) other); } else { super.mergeFrom(other); return this; @@ -392,17 +421,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +446,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -435,20 +468,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -456,61 +490,68 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +561,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.StopNodeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.StopNodeRequest) private static final com.google.cloud.tpu.v1.StopNodeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.StopNodeRequest(); } @@ -534,27 +575,27 @@ public static com.google.cloud.tpu.v1.StopNodeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopNodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopNodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +610,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v1.StopNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StopNodeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StopNodeRequestOrBuilder.java new file mode 100644 index 000000000000..e340f41716e2 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StopNodeRequestOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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/tpu/v1/cloud_tpu.proto + +package com.google.cloud.tpu.v1; + +public interface StopNodeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.StopNodeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The resource name.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/Symptom.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/Symptom.java similarity index 71% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/Symptom.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/Symptom.java index 4e5645ce6709..d6127e722081 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/Symptom.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/Symptom.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * A Symptom instance.
  * 
* * Protobuf type {@code google.cloud.tpu.v1.Symptom} */ -public final class Symptom extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Symptom extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.Symptom) SymptomOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Symptom.newBuilder() to construct. private Symptom(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Symptom() { symptomType_ = 0; details_ = ""; @@ -27,30 +45,32 @@ private Symptom() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Symptom(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_Symptom_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_Symptom_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_Symptom_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_Symptom_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.tpu.v1.Symptom.class, com.google.cloud.tpu.v1.Symptom.Builder.class); } /** + * + * *
    * SymptomType represents the different types of Symptoms that a TPU can be
    * at.
@@ -58,9 +78,10 @@ protected java.lang.Object newInstance(
    *
    * Protobuf enum {@code google.cloud.tpu.v1.Symptom.SymptomType}
    */
-  public enum SymptomType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum SymptomType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified symptom.
      * 
@@ -69,6 +90,8 @@ public enum SymptomType */ SYMPTOM_TYPE_UNSPECIFIED(0), /** + * + * *
      * TPU VM memory is low.
      * 
@@ -77,6 +100,8 @@ public enum SymptomType */ LOW_MEMORY(1), /** + * + * *
      * TPU runtime is out of memory.
      * 
@@ -85,6 +110,8 @@ public enum SymptomType */ OUT_OF_MEMORY(2), /** + * + * *
      * TPU runtime execution has timed out.
      * 
@@ -93,6 +120,8 @@ public enum SymptomType */ EXECUTE_TIMED_OUT(3), /** + * + * *
      * TPU runtime fails to construct a mesh that recognizes each TPU device's
      * neighbors.
@@ -102,6 +131,8 @@ public enum SymptomType
      */
     MESH_BUILD_FAIL(4),
     /**
+     *
+     *
      * 
      * TPU HBM is out of memory.
      * 
@@ -110,6 +141,8 @@ public enum SymptomType */ HBM_OUT_OF_MEMORY(5), /** + * + * *
      * Abusive behaviors have been identified on the current project.
      * 
@@ -121,6 +154,8 @@ public enum SymptomType ; /** + * + * *
      * Unspecified symptom.
      * 
@@ -129,6 +164,8 @@ public enum SymptomType */ public static final int SYMPTOM_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * TPU VM memory is low.
      * 
@@ -137,6 +174,8 @@ public enum SymptomType */ public static final int LOW_MEMORY_VALUE = 1; /** + * + * *
      * TPU runtime is out of memory.
      * 
@@ -145,6 +184,8 @@ public enum SymptomType */ public static final int OUT_OF_MEMORY_VALUE = 2; /** + * + * *
      * TPU runtime execution has timed out.
      * 
@@ -153,6 +194,8 @@ public enum SymptomType */ public static final int EXECUTE_TIMED_OUT_VALUE = 3; /** + * + * *
      * TPU runtime fails to construct a mesh that recognizes each TPU device's
      * neighbors.
@@ -162,6 +205,8 @@ public enum SymptomType
      */
     public static final int MESH_BUILD_FAIL_VALUE = 4;
     /**
+     *
+     *
      * 
      * TPU HBM is out of memory.
      * 
@@ -170,6 +215,8 @@ public enum SymptomType */ public static final int HBM_OUT_OF_MEMORY_VALUE = 5; /** + * + * *
      * Abusive behaviors have been identified on the current project.
      * 
@@ -178,7 +225,6 @@ public enum SymptomType */ public static final int PROJECT_ABUSE_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -203,53 +249,57 @@ public static SymptomType valueOf(int value) { */ public static SymptomType forNumber(int value) { switch (value) { - case 0: return SYMPTOM_TYPE_UNSPECIFIED; - case 1: return LOW_MEMORY; - case 2: return OUT_OF_MEMORY; - case 3: return EXECUTE_TIMED_OUT; - case 4: return MESH_BUILD_FAIL; - case 5: return HBM_OUT_OF_MEMORY; - case 6: return PROJECT_ABUSE; - default: return null; + case 0: + return SYMPTOM_TYPE_UNSPECIFIED; + case 1: + return LOW_MEMORY; + case 2: + return OUT_OF_MEMORY; + case 3: + return EXECUTE_TIMED_OUT; + case 4: + return MESH_BUILD_FAIL; + case 5: + return HBM_OUT_OF_MEMORY; + case 6: + return PROJECT_ABUSE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SymptomType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SymptomType findValueByNumber(int number) { - return SymptomType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SymptomType findValueByNumber(int number) { + return SymptomType.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.tpu.v1.Symptom.getDescriptor().getEnumTypes().get(0); } private static final SymptomType[] VALUES = values(); - public static SymptomType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SymptomType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -269,11 +319,14 @@ private SymptomType(int value) { public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Timestamp when the Symptom is created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -281,11 +334,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Timestamp when the Symptom is created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -293,6 +349,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Timestamp when the Symptom is created.
    * 
@@ -307,38 +365,50 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int SYMPTOM_TYPE_FIELD_NUMBER = 2; private int symptomType_; /** + * + * *
    * Type of the Symptom.
    * 
* * .google.cloud.tpu.v1.Symptom.SymptomType symptom_type = 2; + * * @return The enum numeric value on the wire for symptomType. */ - @java.lang.Override public int getSymptomTypeValue() { + @java.lang.Override + public int getSymptomTypeValue() { return symptomType_; } /** + * + * *
    * Type of the Symptom.
    * 
* * .google.cloud.tpu.v1.Symptom.SymptomType symptom_type = 2; + * * @return The symptomType. */ - @java.lang.Override public com.google.cloud.tpu.v1.Symptom.SymptomType getSymptomType() { + @java.lang.Override + public com.google.cloud.tpu.v1.Symptom.SymptomType getSymptomType() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v1.Symptom.SymptomType result = com.google.cloud.tpu.v1.Symptom.SymptomType.valueOf(symptomType_); + com.google.cloud.tpu.v1.Symptom.SymptomType result = + com.google.cloud.tpu.v1.Symptom.SymptomType.valueOf(symptomType_); return result == null ? com.google.cloud.tpu.v1.Symptom.SymptomType.UNRECOGNIZED : result; } public static final int DETAILS_FIELD_NUMBER = 3; private volatile java.lang.Object details_; /** + * + * *
    * Detailed information of the current Symptom.
    * 
* * string details = 3; + * * @return The details. */ @java.lang.Override @@ -347,29 +417,29 @@ public java.lang.String getDetails() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; } } /** + * + * *
    * Detailed information of the current Symptom.
    * 
* * string details = 3; + * * @return The bytes for details. */ @java.lang.Override - public com.google.protobuf.ByteString - getDetailsBytes() { + public com.google.protobuf.ByteString getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); details_ = b; return b; } else { @@ -380,11 +450,14 @@ public java.lang.String getDetails() { public static final int WORKER_ID_FIELD_NUMBER = 4; private volatile java.lang.Object workerId_; /** + * + * *
    * A string used to uniquely distinguish a worker within a TPU node.
    * 
* * string worker_id = 4; + * * @return The workerId. */ @java.lang.Override @@ -393,29 +466,29 @@ public java.lang.String getWorkerId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workerId_ = s; return s; } } /** + * + * *
    * A string used to uniquely distinguish a worker within a TPU node.
    * 
* * string worker_id = 4; + * * @return The bytes for workerId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkerIdBytes() { + public com.google.protobuf.ByteString getWorkerIdBytes() { java.lang.Object ref = workerId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workerId_ = b; return b; } else { @@ -424,6 +497,7 @@ public java.lang.String getWorkerId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -435,12 +509,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } - if (symptomType_ != com.google.cloud.tpu.v1.Symptom.SymptomType.SYMPTOM_TYPE_UNSPECIFIED.getNumber()) { + if (symptomType_ + != com.google.cloud.tpu.v1.Symptom.SymptomType.SYMPTOM_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, symptomType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { @@ -459,12 +533,11 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } - if (symptomType_ != com.google.cloud.tpu.v1.Symptom.SymptomType.SYMPTOM_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, symptomType_); + if (symptomType_ + != com.google.cloud.tpu.v1.Symptom.SymptomType.SYMPTOM_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, symptomType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, details_); @@ -480,7 +553,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.Symptom)) { return super.equals(obj); @@ -489,14 +562,11 @@ public boolean equals(final java.lang.Object obj) { if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (symptomType_ != other.symptomType_) return false; - if (!getDetails() - .equals(other.getDetails())) return false; - if (!getWorkerId() - .equals(other.getWorkerId())) return false; + if (!getDetails().equals(other.getDetails())) return false; + if (!getWorkerId().equals(other.getWorkerId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -523,130 +593,134 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v1.Symptom parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v1.Symptom parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.Symptom parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v1.Symptom parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.tpu.v1.Symptom parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.Symptom 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.tpu.v1.Symptom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.Symptom parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.Symptom parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.Symptom parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.Symptom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.Symptom parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.Symptom parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.Symptom parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.Symptom prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A Symptom instance.
    * 
* * Protobuf type {@code google.cloud.tpu.v1.Symptom} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.Symptom) com.google.cloud.tpu.v1.SymptomOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_Symptom_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_Symptom_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_Symptom_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_Symptom_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.tpu.v1.Symptom.class, com.google.cloud.tpu.v1.Symptom.Builder.class); } // Construct using com.google.cloud.tpu.v1.Symptom.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -666,9 +740,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_Symptom_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_Symptom_descriptor; } @java.lang.Override @@ -704,38 +778,39 @@ public com.google.cloud.tpu.v1.Symptom buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.Symptom) { - return mergeFrom((com.google.cloud.tpu.v1.Symptom)other); + return mergeFrom((com.google.cloud.tpu.v1.Symptom) other); } else { super.mergeFrom(other); return this; @@ -784,34 +859,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 16: { - symptomType_ = input.readEnum(); - - break; - } // case 16 - case 26: { - details_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - workerId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 16: + { + symptomType_ = input.readEnum(); + + break; + } // case 16 + case 26: + { + details_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + workerId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -824,34 +902,47 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Timestamp when the Symptom is created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
@@ -872,14 +963,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -890,6 +982,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
@@ -900,7 +994,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -912,6 +1006,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
@@ -930,6 +1026,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
@@ -937,11 +1035,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
@@ -952,11 +1052,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
@@ -964,14 +1067,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -979,51 +1085,65 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int symptomType_ = 0; /** + * + * *
      * Type of the Symptom.
      * 
* * .google.cloud.tpu.v1.Symptom.SymptomType symptom_type = 2; + * * @return The enum numeric value on the wire for symptomType. */ - @java.lang.Override public int getSymptomTypeValue() { + @java.lang.Override + public int getSymptomTypeValue() { return symptomType_; } /** + * + * *
      * Type of the Symptom.
      * 
* * .google.cloud.tpu.v1.Symptom.SymptomType symptom_type = 2; + * * @param value The enum numeric value on the wire for symptomType to set. * @return This builder for chaining. */ public Builder setSymptomTypeValue(int value) { - + symptomType_ = value; onChanged(); return this; } /** + * + * *
      * Type of the Symptom.
      * 
* * .google.cloud.tpu.v1.Symptom.SymptomType symptom_type = 2; + * * @return The symptomType. */ @java.lang.Override public com.google.cloud.tpu.v1.Symptom.SymptomType getSymptomType() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v1.Symptom.SymptomType result = com.google.cloud.tpu.v1.Symptom.SymptomType.valueOf(symptomType_); + com.google.cloud.tpu.v1.Symptom.SymptomType result = + com.google.cloud.tpu.v1.Symptom.SymptomType.valueOf(symptomType_); return result == null ? com.google.cloud.tpu.v1.Symptom.SymptomType.UNRECOGNIZED : result; } /** + * + * *
      * Type of the Symptom.
      * 
* * .google.cloud.tpu.v1.Symptom.SymptomType symptom_type = 2; + * * @param value The symptomType to set. * @return This builder for chaining. */ @@ -1031,21 +1151,24 @@ public Builder setSymptomType(com.google.cloud.tpu.v1.Symptom.SymptomType value) if (value == null) { throw new NullPointerException(); } - + symptomType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Type of the Symptom.
      * 
* * .google.cloud.tpu.v1.Symptom.SymptomType symptom_type = 2; + * * @return This builder for chaining. */ public Builder clearSymptomType() { - + symptomType_ = 0; onChanged(); return this; @@ -1053,18 +1176,20 @@ public Builder clearSymptomType() { private java.lang.Object details_ = ""; /** + * + * *
      * Detailed information of the current Symptom.
      * 
* * string details = 3; + * * @return The details. */ public java.lang.String getDetails() { java.lang.Object ref = details_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; @@ -1073,20 +1198,21 @@ public java.lang.String getDetails() { } } /** + * + * *
      * Detailed information of the current Symptom.
      * 
* * string details = 3; + * * @return The bytes for details. */ - public com.google.protobuf.ByteString - getDetailsBytes() { + public com.google.protobuf.ByteString getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); details_ = b; return b; } else { @@ -1094,54 +1220,61 @@ public java.lang.String getDetails() { } } /** + * + * *
      * Detailed information of the current Symptom.
      * 
* * string details = 3; + * * @param value The details to set. * @return This builder for chaining. */ - public Builder setDetails( - java.lang.String value) { + public Builder setDetails(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + details_ = value; onChanged(); return this; } /** + * + * *
      * Detailed information of the current Symptom.
      * 
* * string details = 3; + * * @return This builder for chaining. */ public Builder clearDetails() { - + details_ = getDefaultInstance().getDetails(); onChanged(); return this; } /** + * + * *
      * Detailed information of the current Symptom.
      * 
* * string details = 3; + * * @param value The bytes for details to set. * @return This builder for chaining. */ - public Builder setDetailsBytes( - com.google.protobuf.ByteString value) { + public Builder setDetailsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + details_ = value; onChanged(); return this; @@ -1149,18 +1282,20 @@ public Builder setDetailsBytes( private java.lang.Object workerId_ = ""; /** + * + * *
      * A string used to uniquely distinguish a worker within a TPU node.
      * 
* * string worker_id = 4; + * * @return The workerId. */ public java.lang.String getWorkerId() { java.lang.Object ref = workerId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workerId_ = s; return s; @@ -1169,20 +1304,21 @@ public java.lang.String getWorkerId() { } } /** + * + * *
      * A string used to uniquely distinguish a worker within a TPU node.
      * 
* * string worker_id = 4; + * * @return The bytes for workerId. */ - public com.google.protobuf.ByteString - getWorkerIdBytes() { + public com.google.protobuf.ByteString getWorkerIdBytes() { java.lang.Object ref = workerId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workerId_ = b; return b; } else { @@ -1190,61 +1326,68 @@ public java.lang.String getWorkerId() { } } /** + * + * *
      * A string used to uniquely distinguish a worker within a TPU node.
      * 
* * string worker_id = 4; + * * @param value The workerId to set. * @return This builder for chaining. */ - public Builder setWorkerId( - java.lang.String value) { + public Builder setWorkerId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + workerId_ = value; onChanged(); return this; } /** + * + * *
      * A string used to uniquely distinguish a worker within a TPU node.
      * 
* * string worker_id = 4; + * * @return This builder for chaining. */ public Builder clearWorkerId() { - + workerId_ = getDefaultInstance().getWorkerId(); onChanged(); return this; } /** + * + * *
      * A string used to uniquely distinguish a worker within a TPU node.
      * 
* * string worker_id = 4; + * * @param value The bytes for workerId to set. * @return This builder for chaining. */ - public Builder setWorkerIdBytes( - com.google.protobuf.ByteString value) { + public Builder setWorkerIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workerId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1254,12 +1397,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.Symptom) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.Symptom) private static final com.google.cloud.tpu.v1.Symptom DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.Symptom(); } @@ -1268,27 +1411,27 @@ public static com.google.cloud.tpu.v1.Symptom getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Symptom parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Symptom parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1303,6 +1446,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v1.Symptom getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/SymptomOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/SymptomOrBuilder.java similarity index 71% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/SymptomOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/SymptomOrBuilder.java index 60cfa7da86a9..72ba143f550d 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/SymptomOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/SymptomOrBuilder.java @@ -1,31 +1,55 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; -public interface SymptomOrBuilder extends +public interface SymptomOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.Symptom) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Timestamp when the Symptom is created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Timestamp when the Symptom is created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Timestamp when the Symptom is created.
    * 
@@ -35,61 +59,77 @@ public interface SymptomOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Type of the Symptom.
    * 
* * .google.cloud.tpu.v1.Symptom.SymptomType symptom_type = 2; + * * @return The enum numeric value on the wire for symptomType. */ int getSymptomTypeValue(); /** + * + * *
    * Type of the Symptom.
    * 
* * .google.cloud.tpu.v1.Symptom.SymptomType symptom_type = 2; + * * @return The symptomType. */ com.google.cloud.tpu.v1.Symptom.SymptomType getSymptomType(); /** + * + * *
    * Detailed information of the current Symptom.
    * 
* * string details = 3; + * * @return The details. */ java.lang.String getDetails(); /** + * + * *
    * Detailed information of the current Symptom.
    * 
* * string details = 3; + * * @return The bytes for details. */ - com.google.protobuf.ByteString - getDetailsBytes(); + com.google.protobuf.ByteString getDetailsBytes(); /** + * + * *
    * A string used to uniquely distinguish a worker within a TPU node.
    * 
* * string worker_id = 4; + * * @return The workerId. */ java.lang.String getWorkerId(); /** + * + * *
    * A string used to uniquely distinguish a worker within a TPU node.
    * 
* * string worker_id = 4; + * * @return The bytes for workerId. */ - com.google.protobuf.ByteString - getWorkerIdBytes(); + com.google.protobuf.ByteString getWorkerIdBytes(); } diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersion.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersion.java similarity index 66% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersion.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersion.java index 83bdfea05d3e..add54a94ba1a 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersion.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersion.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; /** + * + * *
  * A tensorflow version that a Node can be configured with.
  * 
* * Protobuf type {@code google.cloud.tpu.v1.TensorFlowVersion} */ -public final class TensorFlowVersion extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TensorFlowVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.TensorFlowVersion) TensorFlowVersionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TensorFlowVersion.newBuilder() to construct. private TensorFlowVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TensorFlowVersion() { name_ = ""; version_ = ""; @@ -26,37 +44,41 @@ private TensorFlowVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TensorFlowVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_TensorFlowVersion_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_TensorFlowVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_TensorFlowVersion_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_TensorFlowVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.TensorFlowVersion.class, com.google.cloud.tpu.v1.TensorFlowVersion.Builder.class); + com.google.cloud.tpu.v1.TensorFlowVersion.class, + com.google.cloud.tpu.v1.TensorFlowVersion.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -65,29 +87,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,11 +120,14 @@ public java.lang.String getName() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** + * + * *
    * the tensorflow version.
    * 
* * string version = 2; + * * @return The version. */ @java.lang.Override @@ -111,29 +136,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * the tensorflow version.
    * 
* * string version = 2; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -142,6 +167,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -184,17 +209,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v1.TensorFlowVersion)) { return super.equals(obj); } - com.google.cloud.tpu.v1.TensorFlowVersion other = (com.google.cloud.tpu.v1.TensorFlowVersion) obj; + com.google.cloud.tpu.v1.TensorFlowVersion other = + (com.google.cloud.tpu.v1.TensorFlowVersion) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getName().equals(other.getName())) return false; + if (!getVersion().equals(other.getVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -215,130 +239,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v1.TensorFlowVersion parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v1.TensorFlowVersion parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.TensorFlowVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.TensorFlowVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.TensorFlowVersion 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.tpu.v1.TensorFlowVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v1.TensorFlowVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v1.TensorFlowVersion parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.TensorFlowVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v1.TensorFlowVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v1.TensorFlowVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.TensorFlowVersion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v1.TensorFlowVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v1.TensorFlowVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v1.TensorFlowVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A tensorflow version that a Node can be configured with.
    * 
* * Protobuf type {@code google.cloud.tpu.v1.TensorFlowVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.TensorFlowVersion) com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_TensorFlowVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_TensorFlowVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_TensorFlowVersion_fieldAccessorTable + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_TensorFlowVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v1.TensorFlowVersion.class, com.google.cloud.tpu.v1.TensorFlowVersion.Builder.class); + com.google.cloud.tpu.v1.TensorFlowVersion.class, + com.google.cloud.tpu.v1.TensorFlowVersion.Builder.class); } // Construct using com.google.cloud.tpu.v1.TensorFlowVersion.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v1.CloudTpuProto.internal_static_google_cloud_tpu_v1_TensorFlowVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v1.CloudTpuProto + .internal_static_google_cloud_tpu_v1_TensorFlowVersion_descriptor; } @java.lang.Override @@ -371,7 +401,8 @@ public com.google.cloud.tpu.v1.TensorFlowVersion build() { @java.lang.Override public com.google.cloud.tpu.v1.TensorFlowVersion buildPartial() { - com.google.cloud.tpu.v1.TensorFlowVersion result = new com.google.cloud.tpu.v1.TensorFlowVersion(this); + com.google.cloud.tpu.v1.TensorFlowVersion result = + new com.google.cloud.tpu.v1.TensorFlowVersion(this); result.name_ = name_; result.version_ = version_; onBuilt(); @@ -382,38 +413,39 @@ public com.google.cloud.tpu.v1.TensorFlowVersion buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v1.TensorFlowVersion) { - return mergeFrom((com.google.cloud.tpu.v1.TensorFlowVersion)other); + return mergeFrom((com.google.cloud.tpu.v1.TensorFlowVersion) other); } else { super.mergeFrom(other); return this; @@ -456,22 +488,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - version_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -484,18 +519,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -504,20 +541,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -525,54 +563,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -580,18 +625,20 @@ public Builder setNameBytes( private java.lang.Object version_ = ""; /** + * + * *
      * the tensorflow version.
      * 
* * string version = 2; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -600,20 +647,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * the tensorflow version.
      * 
* * string version = 2; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -621,61 +669,68 @@ public java.lang.String getVersion() { } } /** + * + * *
      * the tensorflow version.
      * 
* * string version = 2; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * the tensorflow version.
      * 
* * string version = 2; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * the tensorflow version.
      * 
* * string version = 2; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -685,12 +740,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v1.TensorFlowVersion) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v1.TensorFlowVersion) private static final com.google.cloud.tpu.v1.TensorFlowVersion DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v1.TensorFlowVersion(); } @@ -699,27 +754,27 @@ public static com.google.cloud.tpu.v1.TensorFlowVersion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TensorFlowVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TensorFlowVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -734,6 +789,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v1.TensorFlowVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersionName.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersionName.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersionName.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersionName.java diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersionOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersionOrBuilder.java similarity index 51% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersionOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersionOrBuilder.java index fe0475ee89cd..7192ca2da720 100644 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersionOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersionOrBuilder.java @@ -1,49 +1,75 @@ +/* + * 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/tpu/v1/cloud_tpu.proto package com.google.cloud.tpu.v1; -public interface TensorFlowVersionOrBuilder extends +public interface TensorFlowVersionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.TensorFlowVersion) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * the tensorflow version.
    * 
* * string version = 2; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * the tensorflow version.
    * 
* * string version = 2; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); } diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/proto/google/cloud/tpu/v1/cloud_tpu.proto b/java-tpu/proto-google-cloud-tpu-v1/src/main/proto/google/cloud/tpu/v1/cloud_tpu.proto similarity index 100% rename from owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/proto/google/cloud/tpu/v1/cloud_tpu.proto rename to java-tpu/proto-google-cloud-tpu-v1/src/main/proto/google/cloud/tpu/v1/cloud_tpu.proto diff --git a/java-tpu/proto-google-cloud-tpu-v2/clirr-ignored-differences.xml b/java-tpu/proto-google-cloud-tpu-v2/clirr-ignored-differences.xml new file mode 100644 index 000000000000..1e9a54d294fe --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/cloud/tpu/v2/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/tpu/v2/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/tpu/v2/*OrBuilder + boolean has*(*) + + diff --git a/java-tpu/proto-google-cloud-tpu-v2/pom.xml b/java-tpu/proto-google-cloud-tpu-v2/pom.xml new file mode 100644 index 000000000000..282606a60197 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/pom.xml @@ -0,0 +1,46 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-tpu-v2 + 2.8.0-SNAPSHOT + proto-google-cloud-tpu-v2 + Proto library for google-cloud-tpu + + com.google.cloud + google-cloud-tpu-parent + 2.8.0-SNAPSHOT + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + + diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorType.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorType.java similarity index 66% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorType.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorType.java index 0194324212c4..f3016f370d7e 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorType.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorType.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * A accelerator type that a Node can be configured with.
  * 
* * Protobuf type {@code google.cloud.tpu.v2.AcceleratorType} */ -public final class AcceleratorType extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AcceleratorType extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.AcceleratorType) AcceleratorTypeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AcceleratorType.newBuilder() to construct. private AcceleratorType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AcceleratorType() { name_ = ""; type_ = ""; @@ -26,37 +44,41 @@ private AcceleratorType() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AcceleratorType(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_AcceleratorType_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_AcceleratorType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_AcceleratorType_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_AcceleratorType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.AcceleratorType.class, com.google.cloud.tpu.v2.AcceleratorType.Builder.class); + com.google.cloud.tpu.v2.AcceleratorType.class, + com.google.cloud.tpu.v2.AcceleratorType.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -65,29 +87,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,11 +120,14 @@ public java.lang.String getName() { public static final int TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object type_; /** + * + * *
    * the accelerator type.
    * 
* * string type = 2; + * * @return The type. */ @java.lang.Override @@ -111,29 +136,29 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
    * the accelerator type.
    * 
* * string type = 2; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -142,6 +167,7 @@ public java.lang.String getType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -184,17 +209,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.AcceleratorType)) { return super.equals(obj); } com.google.cloud.tpu.v2.AcceleratorType other = (com.google.cloud.tpu.v2.AcceleratorType) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getType() - .equals(other.getType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getType().equals(other.getType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -215,130 +238,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.AcceleratorType parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.AcceleratorType parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.AcceleratorType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.AcceleratorType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.AcceleratorType 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.tpu.v2.AcceleratorType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.AcceleratorType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.AcceleratorType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.AcceleratorType parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.AcceleratorType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.AcceleratorType parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.AcceleratorType parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.AcceleratorType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.AcceleratorType parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.AcceleratorType prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A accelerator type that a Node can be configured with.
    * 
* * Protobuf type {@code google.cloud.tpu.v2.AcceleratorType} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.AcceleratorType) com.google.cloud.tpu.v2.AcceleratorTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_AcceleratorType_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_AcceleratorType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_AcceleratorType_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_AcceleratorType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.AcceleratorType.class, com.google.cloud.tpu.v2.AcceleratorType.Builder.class); + com.google.cloud.tpu.v2.AcceleratorType.class, + com.google.cloud.tpu.v2.AcceleratorType.Builder.class); } // Construct using com.google.cloud.tpu.v2.AcceleratorType.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_AcceleratorType_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_AcceleratorType_descriptor; } @java.lang.Override @@ -371,7 +400,8 @@ public com.google.cloud.tpu.v2.AcceleratorType build() { @java.lang.Override public com.google.cloud.tpu.v2.AcceleratorType buildPartial() { - com.google.cloud.tpu.v2.AcceleratorType result = new com.google.cloud.tpu.v2.AcceleratorType(this); + com.google.cloud.tpu.v2.AcceleratorType result = + new com.google.cloud.tpu.v2.AcceleratorType(this); result.name_ = name_; result.type_ = type_; onBuilt(); @@ -382,38 +412,39 @@ public com.google.cloud.tpu.v2.AcceleratorType buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.AcceleratorType) { - return mergeFrom((com.google.cloud.tpu.v2.AcceleratorType)other); + return mergeFrom((com.google.cloud.tpu.v2.AcceleratorType) other); } else { super.mergeFrom(other); return this; @@ -456,22 +487,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - type_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + type_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -484,18 +518,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -504,20 +540,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -525,54 +562,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -580,18 +624,20 @@ public Builder setNameBytes( private java.lang.Object type_ = ""; /** + * + * *
      * the accelerator type.
      * 
* * string type = 2; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -600,20 +646,21 @@ public java.lang.String getType() { } } /** + * + * *
      * the accelerator type.
      * 
* * string type = 2; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -621,61 +668,68 @@ public java.lang.String getType() { } } /** + * + * *
      * the accelerator type.
      * 
* * string type = 2; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
      * the accelerator type.
      * 
* * string type = 2; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
      * the accelerator type.
      * 
* * string type = 2; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -685,12 +739,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.AcceleratorType) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.AcceleratorType) private static final com.google.cloud.tpu.v2.AcceleratorType DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.AcceleratorType(); } @@ -699,27 +753,27 @@ public static com.google.cloud.tpu.v2.AcceleratorType getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcceleratorType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcceleratorType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -734,6 +788,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.AcceleratorType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorTypeName.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorTypeName.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorTypeName.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorTypeName.java diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorTypeOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorTypeOrBuilder.java similarity index 51% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorTypeOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorTypeOrBuilder.java index dc24d97a09b0..08972a10a2fe 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorTypeOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorTypeOrBuilder.java @@ -1,49 +1,75 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface AcceleratorTypeOrBuilder extends +public interface AcceleratorTypeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.AcceleratorType) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * the accelerator type.
    * 
* * string type = 2; + * * @return The type. */ java.lang.String getType(); /** + * + * *
    * the accelerator type.
    * 
* * string type = 2; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); } diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AccessConfig.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AccessConfig.java similarity index 65% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AccessConfig.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AccessConfig.java index ea6d58609851..d7eaf93eca96 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AccessConfig.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AccessConfig.java @@ -1,61 +1,83 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * An access config attached to the TPU worker.
  * 
* * Protobuf type {@code google.cloud.tpu.v2.AccessConfig} */ -public final class AccessConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AccessConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.AccessConfig) AccessConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AccessConfig.newBuilder() to construct. private AccessConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AccessConfig() { externalIp_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AccessConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_AccessConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_AccessConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_AccessConfig_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_AccessConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.AccessConfig.class, com.google.cloud.tpu.v2.AccessConfig.Builder.class); + com.google.cloud.tpu.v2.AccessConfig.class, + com.google.cloud.tpu.v2.AccessConfig.Builder.class); } public static final int EXTERNAL_IP_FIELD_NUMBER = 1; private volatile java.lang.Object externalIp_; /** + * + * *
    * Output only. An external IP address associated with the TPU worker.
    * 
* * string external_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The externalIp. */ @java.lang.Override @@ -64,29 +86,29 @@ public java.lang.String getExternalIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalIp_ = s; return s; } } /** + * + * *
    * Output only. An external IP address associated with the TPU worker.
    * 
* * string external_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for externalIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getExternalIpBytes() { + public com.google.protobuf.ByteString getExternalIpBytes() { java.lang.Object ref = externalIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalIp_ = b; return b; } else { @@ -95,6 +117,7 @@ public java.lang.String getExternalIp() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +129,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalIp_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, externalIp_); } @@ -131,15 +153,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.AccessConfig)) { return super.equals(obj); } com.google.cloud.tpu.v2.AccessConfig other = (com.google.cloud.tpu.v2.AccessConfig) obj; - if (!getExternalIp() - .equals(other.getExternalIp())) return false; + if (!getExternalIp().equals(other.getExternalIp())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +179,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.AccessConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.AccessConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.AccessConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2.AccessConfig parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.tpu.v2.AccessConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.AccessConfig 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.tpu.v2.AccessConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.AccessConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.AccessConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.AccessConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.AccessConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.AccessConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.AccessConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.AccessConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.AccessConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An access config attached to the TPU worker.
    * 
* * Protobuf type {@code google.cloud.tpu.v2.AccessConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.AccessConfig) com.google.cloud.tpu.v2.AccessConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_AccessConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_AccessConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_AccessConfig_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_AccessConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.AccessConfig.class, com.google.cloud.tpu.v2.AccessConfig.Builder.class); + com.google.cloud.tpu.v2.AccessConfig.class, + com.google.cloud.tpu.v2.AccessConfig.Builder.class); } // Construct using com.google.cloud.tpu.v2.AccessConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_AccessConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_AccessConfig_descriptor; } @java.lang.Override @@ -322,38 +348,39 @@ public com.google.cloud.tpu.v2.AccessConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.AccessConfig) { - return mergeFrom((com.google.cloud.tpu.v2.AccessConfig)other); + return mergeFrom((com.google.cloud.tpu.v2.AccessConfig) other); } else { super.mergeFrom(other); return this; @@ -392,17 +419,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - externalIp_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + externalIp_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +444,20 @@ public Builder mergeFrom( private java.lang.Object externalIp_ = ""; /** + * + * *
      * Output only. An external IP address associated with the TPU worker.
      * 
* * string external_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The externalIp. */ public java.lang.String getExternalIp() { java.lang.Object ref = externalIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalIp_ = s; return s; @@ -435,20 +466,21 @@ public java.lang.String getExternalIp() { } } /** + * + * *
      * Output only. An external IP address associated with the TPU worker.
      * 
* * string external_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for externalIp. */ - public com.google.protobuf.ByteString - getExternalIpBytes() { + public com.google.protobuf.ByteString getExternalIpBytes() { java.lang.Object ref = externalIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalIp_ = b; return b; } else { @@ -456,61 +488,68 @@ public java.lang.String getExternalIp() { } } /** + * + * *
      * Output only. An external IP address associated with the TPU worker.
      * 
* * string external_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The externalIp to set. * @return This builder for chaining. */ - public Builder setExternalIp( - java.lang.String value) { + public Builder setExternalIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalIp_ = value; onChanged(); return this; } /** + * + * *
      * Output only. An external IP address associated with the TPU worker.
      * 
* * string external_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearExternalIp() { - + externalIp_ = getDefaultInstance().getExternalIp(); onChanged(); return this; } /** + * + * *
      * Output only. An external IP address associated with the TPU worker.
      * 
* * string external_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for externalIp to set. * @return This builder for chaining. */ - public Builder setExternalIpBytes( - com.google.protobuf.ByteString value) { + public Builder setExternalIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalIp_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.AccessConfig) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.AccessConfig) private static final com.google.cloud.tpu.v2.AccessConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.AccessConfig(); } @@ -534,27 +573,27 @@ public static com.google.cloud.tpu.v2.AccessConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +608,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.AccessConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AccessConfigOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AccessConfigOrBuilder.java similarity index 51% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AccessConfigOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AccessConfigOrBuilder.java index 8e23ae69ce14..c6fca0ebe20c 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AccessConfigOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AccessConfigOrBuilder.java @@ -1,29 +1,50 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface AccessConfigOrBuilder extends +public interface AccessConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.AccessConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. An external IP address associated with the TPU worker.
    * 
* * string external_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The externalIp. */ java.lang.String getExternalIp(); /** + * + * *
    * Output only. An external IP address associated with the TPU worker.
    * 
* * string external_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for externalIp. */ - com.google.protobuf.ByteString - getExternalIpBytes(); + com.google.protobuf.ByteString getExternalIpBytes(); } diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AttachedDisk.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AttachedDisk.java similarity index 70% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AttachedDisk.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AttachedDisk.java index 2d88a52bba92..6ec754585221 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AttachedDisk.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AttachedDisk.java @@ -1,9 +1,26 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * A node-attached disk resource.
  * Next ID: 8;
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.tpu.v2.AttachedDisk}
  */
-public final class AttachedDisk extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AttachedDisk extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.AttachedDisk)
     AttachedDiskOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AttachedDisk.newBuilder() to construct.
   private AttachedDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AttachedDisk() {
     sourceDisk_ = "";
     mode_ = 0;
@@ -27,39 +45,43 @@ private AttachedDisk() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AttachedDisk();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_AttachedDisk_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.tpu.v2.CloudTpuProto
+        .internal_static_google_cloud_tpu_v2_AttachedDisk_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_AttachedDisk_fieldAccessorTable
+    return com.google.cloud.tpu.v2.CloudTpuProto
+        .internal_static_google_cloud_tpu_v2_AttachedDisk_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.tpu.v2.AttachedDisk.class, com.google.cloud.tpu.v2.AttachedDisk.Builder.class);
+            com.google.cloud.tpu.v2.AttachedDisk.class,
+            com.google.cloud.tpu.v2.AttachedDisk.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The different mode of the attached disk.
    * 
* * Protobuf enum {@code google.cloud.tpu.v2.AttachedDisk.DiskMode} */ - public enum DiskMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum DiskMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The disk mode is not known/set.
      * 
@@ -68,6 +90,8 @@ public enum DiskMode */ DISK_MODE_UNSPECIFIED(0), /** + * + * *
      * Attaches the disk in read-write mode. Only one TPU node can attach a disk
      * in read-write mode at a time.
@@ -77,6 +101,8 @@ public enum DiskMode
      */
     READ_WRITE(1),
     /**
+     *
+     *
      * 
      * Attaches the disk in read-only mode. Multiple TPU nodes can attach
      * a disk in read-only mode at a time.
@@ -89,6 +115,8 @@ public enum DiskMode
     ;
 
     /**
+     *
+     *
      * 
      * The disk mode is not known/set.
      * 
@@ -97,6 +125,8 @@ public enum DiskMode */ public static final int DISK_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Attaches the disk in read-write mode. Only one TPU node can attach a disk
      * in read-write mode at a time.
@@ -106,6 +136,8 @@ public enum DiskMode
      */
     public static final int READ_WRITE_VALUE = 1;
     /**
+     *
+     *
      * 
      * Attaches the disk in read-only mode. Multiple TPU nodes can attach
      * a disk in read-only mode at a time.
@@ -115,7 +147,6 @@ public enum DiskMode
      */
     public static final int READ_ONLY_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -140,49 +171,49 @@ public static DiskMode valueOf(int value) {
      */
     public static DiskMode forNumber(int value) {
       switch (value) {
-        case 0: return DISK_MODE_UNSPECIFIED;
-        case 1: return READ_WRITE;
-        case 2: return READ_ONLY;
-        default: return null;
+        case 0:
+          return DISK_MODE_UNSPECIFIED;
+        case 1:
+          return READ_WRITE;
+        case 2:
+          return READ_ONLY;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        DiskMode> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public DiskMode findValueByNumber(int number) {
-              return DiskMode.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public DiskMode findValueByNumber(int number) {
+            return DiskMode.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() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.tpu.v2.AttachedDisk.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final DiskMode[] VALUES = values();
 
-    public static DiskMode valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static DiskMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -202,12 +233,15 @@ private DiskMode(int value) {
   public static final int SOURCE_DISK_FIELD_NUMBER = 3;
   private volatile java.lang.Object sourceDisk_;
   /**
+   *
+   *
    * 
    * Specifies the full path to an existing disk.
    * For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
    * 
* * string source_disk = 3; + * * @return The sourceDisk. */ @java.lang.Override @@ -216,30 +250,30 @@ public java.lang.String getSourceDisk() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceDisk_ = s; return s; } } /** + * + * *
    * Specifies the full path to an existing disk.
    * For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
    * 
* * string source_disk = 3; + * * @return The bytes for sourceDisk. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceDiskBytes() { + public com.google.protobuf.ByteString getSourceDiskBytes() { java.lang.Object ref = sourceDisk_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceDisk_ = b; return b; } else { @@ -250,6 +284,8 @@ public java.lang.String getSourceDisk() { public static final int MODE_FIELD_NUMBER = 4; private int mode_; /** + * + * *
    * The mode in which to attach this disk.
    * If not specified, the default is READ_WRITE mode.
@@ -257,12 +293,16 @@ public java.lang.String getSourceDisk() {
    * 
* * .google.cloud.tpu.v2.AttachedDisk.DiskMode mode = 4; + * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override public int getModeValue() { + @java.lang.Override + public int getModeValue() { return mode_; } /** + * + * *
    * The mode in which to attach this disk.
    * If not specified, the default is READ_WRITE mode.
@@ -270,15 +310,19 @@ public java.lang.String getSourceDisk() {
    * 
* * .google.cloud.tpu.v2.AttachedDisk.DiskMode mode = 4; + * * @return The mode. */ - @java.lang.Override public com.google.cloud.tpu.v2.AttachedDisk.DiskMode getMode() { + @java.lang.Override + public com.google.cloud.tpu.v2.AttachedDisk.DiskMode getMode() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2.AttachedDisk.DiskMode result = com.google.cloud.tpu.v2.AttachedDisk.DiskMode.valueOf(mode_); + com.google.cloud.tpu.v2.AttachedDisk.DiskMode result = + com.google.cloud.tpu.v2.AttachedDisk.DiskMode.valueOf(mode_); return result == null ? com.google.cloud.tpu.v2.AttachedDisk.DiskMode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -290,8 +334,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceDisk_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceDisk_); } @@ -311,8 +354,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceDisk_); } if (mode_ != com.google.cloud.tpu.v2.AttachedDisk.DiskMode.DISK_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, mode_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, mode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -322,15 +364,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.AttachedDisk)) { return super.equals(obj); } com.google.cloud.tpu.v2.AttachedDisk other = (com.google.cloud.tpu.v2.AttachedDisk) obj; - if (!getSourceDisk() - .equals(other.getSourceDisk())) return false; + if (!getSourceDisk().equals(other.getSourceDisk())) return false; if (mode_ != other.mode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -352,97 +393,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.AttachedDisk parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.AttachedDisk parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.AttachedDisk parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2.AttachedDisk parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.tpu.v2.AttachedDisk parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.AttachedDisk 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.tpu.v2.AttachedDisk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.AttachedDisk parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.AttachedDisk parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.AttachedDisk parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.AttachedDisk parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.AttachedDisk parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.AttachedDisk parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.AttachedDisk parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.AttachedDisk prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A node-attached disk resource.
    * Next ID: 8;
@@ -450,33 +497,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.tpu.v2.AttachedDisk}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.AttachedDisk)
       com.google.cloud.tpu.v2.AttachedDiskOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_AttachedDisk_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.tpu.v2.CloudTpuProto
+          .internal_static_google_cloud_tpu_v2_AttachedDisk_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_AttachedDisk_fieldAccessorTable
+      return com.google.cloud.tpu.v2.CloudTpuProto
+          .internal_static_google_cloud_tpu_v2_AttachedDisk_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.tpu.v2.AttachedDisk.class, com.google.cloud.tpu.v2.AttachedDisk.Builder.class);
+              com.google.cloud.tpu.v2.AttachedDisk.class,
+              com.google.cloud.tpu.v2.AttachedDisk.Builder.class);
     }
 
     // Construct using com.google.cloud.tpu.v2.AttachedDisk.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -488,9 +534,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_AttachedDisk_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.tpu.v2.CloudTpuProto
+          .internal_static_google_cloud_tpu_v2_AttachedDisk_descriptor;
     }
 
     @java.lang.Override
@@ -520,38 +566,39 @@ public com.google.cloud.tpu.v2.AttachedDisk buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.AttachedDisk) {
-        return mergeFrom((com.google.cloud.tpu.v2.AttachedDisk)other);
+        return mergeFrom((com.google.cloud.tpu.v2.AttachedDisk) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -593,22 +640,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 26: {
-              sourceDisk_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 26
-            case 32: {
-              mode_ = input.readEnum();
-
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 26:
+              {
+                sourceDisk_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 26
+            case 32:
+              {
+                mode_ = input.readEnum();
+
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -621,19 +671,21 @@ public Builder mergeFrom(
 
     private java.lang.Object sourceDisk_ = "";
     /**
+     *
+     *
      * 
      * Specifies the full path to an existing disk.
      * For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
      * 
* * string source_disk = 3; + * * @return The sourceDisk. */ public java.lang.String getSourceDisk() { java.lang.Object ref = sourceDisk_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceDisk_ = s; return s; @@ -642,21 +694,22 @@ public java.lang.String getSourceDisk() { } } /** + * + * *
      * Specifies the full path to an existing disk.
      * For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
      * 
* * string source_disk = 3; + * * @return The bytes for sourceDisk. */ - public com.google.protobuf.ByteString - getSourceDiskBytes() { + public com.google.protobuf.ByteString getSourceDiskBytes() { java.lang.Object ref = sourceDisk_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceDisk_ = b; return b; } else { @@ -664,57 +717,64 @@ public java.lang.String getSourceDisk() { } } /** + * + * *
      * Specifies the full path to an existing disk.
      * For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
      * 
* * string source_disk = 3; + * * @param value The sourceDisk to set. * @return This builder for chaining. */ - public Builder setSourceDisk( - java.lang.String value) { + public Builder setSourceDisk(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceDisk_ = value; onChanged(); return this; } /** + * + * *
      * Specifies the full path to an existing disk.
      * For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
      * 
* * string source_disk = 3; + * * @return This builder for chaining. */ public Builder clearSourceDisk() { - + sourceDisk_ = getDefaultInstance().getSourceDisk(); onChanged(); return this; } /** + * + * *
      * Specifies the full path to an existing disk.
      * For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
      * 
* * string source_disk = 3; + * * @param value The bytes for sourceDisk to set. * @return This builder for chaining. */ - public Builder setSourceDiskBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceDiskBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceDisk_ = value; onChanged(); return this; @@ -722,6 +782,8 @@ public Builder setSourceDiskBytes( private int mode_ = 0; /** + * + * *
      * The mode in which to attach this disk.
      * If not specified, the default is READ_WRITE mode.
@@ -729,12 +791,16 @@ public Builder setSourceDiskBytes(
      * 
* * .google.cloud.tpu.v2.AttachedDisk.DiskMode mode = 4; + * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override public int getModeValue() { + @java.lang.Override + public int getModeValue() { return mode_; } /** + * + * *
      * The mode in which to attach this disk.
      * If not specified, the default is READ_WRITE mode.
@@ -742,16 +808,19 @@ public Builder setSourceDiskBytes(
      * 
* * .google.cloud.tpu.v2.AttachedDisk.DiskMode mode = 4; + * * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ public Builder setModeValue(int value) { - + mode_ = value; onChanged(); return this; } /** + * + * *
      * The mode in which to attach this disk.
      * If not specified, the default is READ_WRITE mode.
@@ -759,15 +828,19 @@ public Builder setModeValue(int value) {
      * 
* * .google.cloud.tpu.v2.AttachedDisk.DiskMode mode = 4; + * * @return The mode. */ @java.lang.Override public com.google.cloud.tpu.v2.AttachedDisk.DiskMode getMode() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2.AttachedDisk.DiskMode result = com.google.cloud.tpu.v2.AttachedDisk.DiskMode.valueOf(mode_); + com.google.cloud.tpu.v2.AttachedDisk.DiskMode result = + com.google.cloud.tpu.v2.AttachedDisk.DiskMode.valueOf(mode_); return result == null ? com.google.cloud.tpu.v2.AttachedDisk.DiskMode.UNRECOGNIZED : result; } /** + * + * *
      * The mode in which to attach this disk.
      * If not specified, the default is READ_WRITE mode.
@@ -775,6 +848,7 @@ public com.google.cloud.tpu.v2.AttachedDisk.DiskMode getMode() {
      * 
* * .google.cloud.tpu.v2.AttachedDisk.DiskMode mode = 4; + * * @param value The mode to set. * @return This builder for chaining. */ @@ -782,12 +856,14 @@ public Builder setMode(com.google.cloud.tpu.v2.AttachedDisk.DiskMode value) { if (value == null) { throw new NullPointerException(); } - + mode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The mode in which to attach this disk.
      * If not specified, the default is READ_WRITE mode.
@@ -795,17 +871,18 @@ public Builder setMode(com.google.cloud.tpu.v2.AttachedDisk.DiskMode value) {
      * 
* * .google.cloud.tpu.v2.AttachedDisk.DiskMode mode = 4; + * * @return This builder for chaining. */ public Builder clearMode() { - + mode_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -815,12 +892,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.AttachedDisk) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.AttachedDisk) private static final com.google.cloud.tpu.v2.AttachedDisk DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.AttachedDisk(); } @@ -829,27 +906,27 @@ public static com.google.cloud.tpu.v2.AttachedDisk getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AttachedDisk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttachedDisk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -864,6 +941,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.AttachedDisk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AttachedDiskOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AttachedDiskOrBuilder.java similarity index 65% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AttachedDiskOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AttachedDiskOrBuilder.java index c01d3356cc9b..013905493c57 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AttachedDiskOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AttachedDiskOrBuilder.java @@ -1,35 +1,58 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface AttachedDiskOrBuilder extends +public interface AttachedDiskOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.AttachedDisk) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specifies the full path to an existing disk.
    * For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
    * 
* * string source_disk = 3; + * * @return The sourceDisk. */ java.lang.String getSourceDisk(); /** + * + * *
    * Specifies the full path to an existing disk.
    * For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
    * 
* * string source_disk = 3; + * * @return The bytes for sourceDisk. */ - com.google.protobuf.ByteString - getSourceDiskBytes(); + com.google.protobuf.ByteString getSourceDiskBytes(); /** + * + * *
    * The mode in which to attach this disk.
    * If not specified, the default is READ_WRITE mode.
@@ -37,10 +60,13 @@ public interface AttachedDiskOrBuilder extends
    * 
* * .google.cloud.tpu.v2.AttachedDisk.DiskMode mode = 4; + * * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** + * + * *
    * The mode in which to attach this disk.
    * If not specified, the default is READ_WRITE mode.
@@ -48,6 +74,7 @@ public interface AttachedDiskOrBuilder extends
    * 
* * .google.cloud.tpu.v2.AttachedDisk.DiskMode mode = 4; + * * @return The mode. */ com.google.cloud.tpu.v2.AttachedDisk.DiskMode getMode(); diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CloudTpuProto.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CloudTpuProto.java new file mode 100644 index 000000000000..ea0bce53b174 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CloudTpuProto.java @@ -0,0 +1,733 @@ +/* + * 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/tpu/v2/cloud_tpu.proto + +package com.google.cloud.tpu.v2; + +public final class CloudTpuProto { + private CloudTpuProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_GuestAttributes_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_GuestAttributes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_GuestAttributesValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_GuestAttributesValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_GuestAttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_GuestAttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_AttachedDisk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_AttachedDisk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_SchedulingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_SchedulingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_NetworkEndpoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_NetworkEndpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_AccessConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_AccessConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_NetworkConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_NetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_ServiceAccount_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_ServiceAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_Node_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_Node_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_Node_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_Node_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_Node_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_Node_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_ListNodesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_ListNodesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_ListNodesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_ListNodesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_GetNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_GetNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_CreateNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_CreateNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_DeleteNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_DeleteNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_StopNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_StopNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_StartNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_StartNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_UpdateNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_UpdateNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_ServiceIdentity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_ServiceIdentity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_GenerateServiceIdentityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_GenerateServiceIdentityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_GenerateServiceIdentityResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_GenerateServiceIdentityResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_AcceleratorType_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_AcceleratorType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_GetAcceleratorTypeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_GetAcceleratorTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_ListAcceleratorTypesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_ListAcceleratorTypesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_ListAcceleratorTypesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_ListAcceleratorTypesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_RuntimeVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_RuntimeVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_GetRuntimeVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_GetRuntimeVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_ListRuntimeVersionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_ListRuntimeVersionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_ListRuntimeVersionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_ListRuntimeVersionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_Symptom_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_Symptom_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_GetGuestAttributesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_GetGuestAttributesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_GetGuestAttributesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_GetGuestAttributesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_ShieldedInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_ShieldedInstanceConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n#google/cloud/tpu/v2/cloud_tpu.proto\022\023g" + + "oogle.cloud.tpu.v2\032\034google/api/annotatio" + + "ns.proto\032\027google/api/client.proto\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/r" + + "esource.proto\032#google/longrunning/operat" + + "ions.proto\032 google/protobuf/field_mask.p" + + "roto\032\037google/protobuf/timestamp.proto\"e\n" + + "\017GuestAttributes\022\022\n\nquery_path\030\001 \001(\t\022>\n\013" + + "query_value\030\002 \001(\0132).google.cloud.tpu.v2." + + "GuestAttributesValue\"P\n\024GuestAttributesV" + + "alue\0228\n\005items\030\001 \003(\0132).google.cloud.tpu.v" + + "2.GuestAttributesEntry\"E\n\024GuestAttribute" + + "sEntry\022\021\n\tnamespace\030\001 \001(\t\022\013\n\003key\030\002 \001(\t\022\r" + + "\n\005value\030\003 \001(\t\"\243\001\n\014AttachedDisk\022\023\n\013source" + + "_disk\030\003 \001(\t\0228\n\004mode\030\004 \001(\0162*.google.cloud" + + ".tpu.v2.AttachedDisk.DiskMode\"D\n\010DiskMod" + + "e\022\031\n\025DISK_MODE_UNSPECIFIED\020\000\022\016\n\nREAD_WRI" + + "TE\020\001\022\r\n\tREAD_ONLY\020\002\"9\n\020SchedulingConfig\022" + + "\023\n\013preemptible\030\001 \001(\010\022\020\n\010reserved\030\002 \001(\010\"m" + + "\n\017NetworkEndpoint\022\022\n\nip_address\030\001 \001(\t\022\014\n" + + "\004port\030\002 \001(\005\0228\n\raccess_config\030\005 \001(\0132!.goo" + + "gle.cloud.tpu.v2.AccessConfig\"(\n\014AccessC" + + "onfig\022\030\n\013external_ip\030\001 \001(\tB\003\340A\003\"i\n\rNetwo" + + "rkConfig\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030" + + "\002 \001(\t\022\033\n\023enable_external_ips\030\003 \001(\010\022\026\n\016ca" + + "n_ip_forward\030\004 \001(\010\".\n\016ServiceAccount\022\r\n\005" + + "email\030\001 \001(\t\022\r\n\005scope\030\002 \003(\t\"\260\014\n\004Node\022\024\n\004n" + + "ame\030\001 \001(\tB\006\340A\003\340A\005\022\023\n\013description\030\003 \001(\t\022\035" + + "\n\020accelerator_type\030\005 \001(\tB\003\340A\002\0223\n\005state\030\t" + + " \001(\0162\037.google.cloud.tpu.v2.Node.StateB\003\340" + + "A\003\022\037\n\022health_description\030\n \001(\tB\003\340A\003\022\034\n\017r" + + "untime_version\030\013 \001(\tB\003\340A\002\022:\n\016network_con" + + "fig\030$ \001(\0132\".google.cloud.tpu.v2.NetworkC" + + "onfig\022\022\n\ncidr_block\030\r \001(\t\022<\n\017service_acc" + + "ount\030% \001(\0132#.google.cloud.tpu.v2.Service" + + "Account\0224\n\013create_time\030\020 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022@\n\021scheduling_conf" + + "ig\030\021 \001(\0132%.google.cloud.tpu.v2.Schedulin" + + "gConfig\022D\n\021network_endpoints\030\025 \003(\0132$.goo" + + "gle.cloud.tpu.v2.NetworkEndpointB\003\340A\003\0220\n" + + "\006health\030\026 \001(\0162 .google.cloud.tpu.v2.Node" + + ".Health\0225\n\006labels\030\030 \003(\0132%.google.cloud.t" + + "pu.v2.Node.LabelsEntry\0229\n\010metadata\030\" \003(\013" + + "2\'.google.cloud.tpu.v2.Node.MetadataEntr" + + "y\022\014\n\004tags\030( \003(\t\022\017\n\002id\030! \001(\003B\003\340A\003\0225\n\ndata" + + "_disks\030) \003(\0132!.google.cloud.tpu.v2.Attac" + + "hedDisk\022>\n\013api_version\030& \001(\0162$.google.cl" + + "oud.tpu.v2.Node.ApiVersionB\003\340A\003\0223\n\010sympt" + + "oms\030\' \003(\0132\034.google.cloud.tpu.v2.SymptomB" + + "\003\340A\003\022M\n\030shielded_instance_config\030- \001(\0132+" + + ".google.cloud.tpu.v2.ShieldedInstanceCon" + + "fig\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\"\341\001\n\005State\022\025\n\021STATE_U" + + "NSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\016\n" + + "\nRESTARTING\020\003\022\r\n\tREIMAGING\020\004\022\014\n\010DELETING" + + "\020\005\022\r\n\tREPAIRING\020\006\022\013\n\007STOPPED\020\010\022\014\n\010STOPPI" + + "NG\020\t\022\014\n\010STARTING\020\n\022\r\n\tPREEMPTED\020\013\022\016\n\nTER" + + "MINATED\020\014\022\n\n\006HIDING\020\r\022\n\n\006HIDDEN\020\016\022\014\n\010UNH" + + "IDING\020\017\"o\n\006Health\022\026\n\022HEALTH_UNSPECIFIED\020" + + "\000\022\013\n\007HEALTHY\020\001\022\013\n\007TIMEOUT\020\003\022\030\n\024UNHEALTHY" + + "_TENSORFLOW\020\004\022\031\n\025UNHEALTHY_MAINTENANCE\020\005" + + "\"W\n\nApiVersion\022\033\n\027API_VERSION_UNSPECIFIE" + + "D\020\000\022\r\n\tV1_ALPHA1\020\001\022\006\n\002V1\020\002\022\r\n\tV2_ALPHA1\020" + + "\003\022\006\n\002V2\020\004:R\352AO\n\027tpu.googleapis.com/Node\022" + + "4projects/{project}/locations/{location}" + + "/nodes/{node}\"j\n\020ListNodesRequest\022/\n\006par" + + "ent\030\001 \001(\tB\037\340A\002\372A\031\022\027tpu.googleapis.com/No" + + "de\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"k\n\021ListNodesResponse\022(\n\005nodes\030\001 \003(\0132\031." + + "google.cloud.tpu.v2.Node\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"?\n\016GetNod" + + "eRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.goog" + + "leapis.com/Node\"\215\001\n\021CreateNodeRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea" + + "pis.com/Location\022\017\n\007node_id\030\002 \001(\t\022,\n\004nod" + + "e\030\003 \001(\0132\031.google.cloud.tpu.v2.NodeB\003\340A\002\"" + + "B\n\021DeleteNodeRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372" + + "A\031\n\027tpu.googleapis.com/Node\"@\n\017StopNodeR" + + "equest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.google" + + "apis.com/Node\"A\n\020StartNodeRequest\022-\n\004nam" + + "e\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googleapis.com/Node" + + "\"w\n\021UpdateNodeRequest\0224\n\013update_mask\030\001 \001" + + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022,\n\004n" + + "ode\030\002 \001(\0132\031.google.cloud.tpu.v2.NodeB\003\340A" + + "\002\" \n\017ServiceIdentity\022\r\n\005email\030\001 \001(\t\"[\n\036G" + + "enerateServiceIdentityRequest\0229\n\006parent\030" + + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + + "Location\"Y\n\037GenerateServiceIdentityRespo" + + "nse\0226\n\010identity\030\001 \001(\0132$.google.cloud.tpu" + + ".v2.ServiceIdentity\"\243\001\n\017AcceleratorType\022" + + "\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 \001(\t:t\352Aq\n\"tpu.go" + + "ogleapis.com/AcceleratorType\022Kprojects/{" + + "project}/locations/{location}/accelerato" + + "rTypes/{accelerator_type}\"U\n\031GetAccelera" + + "torTypeRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"tp" + + "u.googleapis.com/AcceleratorType\"\242\001\n\033Lis" + + "tAcceleratorTypesRequest\022:\n\006parent\030\001 \001(\t" + + "B*\340A\002\372A$\022\"tpu.googleapis.com/Accelerator" + + "Type\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\022\016\n\006filter\030\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\215\001" + + "\n\034ListAcceleratorTypesResponse\022?\n\021accele" + + "rator_types\030\001 \003(\0132$.google.cloud.tpu.v2." + + "AcceleratorType\022\027\n\017next_page_token\030\002 \001(\t" + + "\022\023\n\013unreachable\030\003 \003(\t\"\242\001\n\016RuntimeVersion" + + "\022\014\n\004name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t:q\352An\n!tp" + + "u.googleapis.com/RuntimeVersion\022Iproject" + + "s/{project}/locations/{location}/runtime" + + "Versions/{runtime_version}\"S\n\030GetRuntime" + + "VersionRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!tp" + + "u.googleapis.com/RuntimeVersion\"\240\001\n\032List" + + "RuntimeVersionsRequest\0229\n\006parent\030\001 \001(\tB)" + + "\340A\002\372A#\022!tpu.googleapis.com/RuntimeVersio" + + "n\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + + "\022\016\n\006filter\030\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\212\001\n\033L" + + "istRuntimeVersionsResponse\022=\n\020runtime_ve" + + "rsions\030\001 \003(\0132#.google.cloud.tpu.v2.Runti" + + "meVersion\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" + + "reachable\030\003 \003(\t\"\326\001\n\021OperationMetadata\022/\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" + + "estamp\022,\n\010end_time\030\002 \001(\0132\032.google.protob" + + "uf.Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001" + + "(\t\022\025\n\rstatus_detail\030\005 \001(\t\022\030\n\020cancel_requ" + + "ested\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t\"\305\002\n\007Sym" + + "ptom\022/\n\013create_time\030\001 \001(\0132\032.google.proto" + + "buf.Timestamp\022>\n\014symptom_type\030\002 \001(\0162(.go" + + "ogle.cloud.tpu.v2.Symptom.SymptomType\022\017\n" + + "\007details\030\003 \001(\t\022\021\n\tworker_id\030\004 \001(\t\"\244\001\n\013Sy" + + "mptomType\022\034\n\030SYMPTOM_TYPE_UNSPECIFIED\020\000\022" + + "\016\n\nLOW_MEMORY\020\001\022\021\n\rOUT_OF_MEMORY\020\002\022\025\n\021EX" + + "ECUTE_TIMED_OUT\020\003\022\023\n\017MESH_BUILD_FAIL\020\004\022\025" + + "\n\021HBM_OUT_OF_MEMORY\020\005\022\021\n\rPROJECT_ABUSE\020\006" + + "\"r\n\031GetGuestAttributesRequest\022-\n\004name\030\001 " + + "\001(\tB\037\340A\002\372A\031\n\027tpu.googleapis.com/Node\022\022\n\n" + + "query_path\030\002 \001(\t\022\022\n\nworker_ids\030\003 \003(\t\"\\\n\032" + + "GetGuestAttributesResponse\022>\n\020guest_attr" + + "ibutes\030\001 \003(\0132$.google.cloud.tpu.v2.Guest" + + "Attributes\"4\n\026ShieldedInstanceConfig\022\032\n\022" + + "enable_secure_boot\030\001 \001(\0102\370\022\n\003Tpu\022\226\001\n\tLis" + + "tNodes\022%.google.cloud.tpu.v2.ListNodesRe" + + "quest\032&.google.cloud.tpu.v2.ListNodesRes" + + "ponse\":\202\323\344\223\002+\022)/v2/{parent=projects/*/lo" + + "cations/*}/nodes\332A\006parent\022\203\001\n\007GetNode\022#." + + "google.cloud.tpu.v2.GetNodeRequest\032\031.goo" + + "gle.cloud.tpu.v2.Node\"8\202\323\344\223\002+\022)/v2/{name" + + "=projects/*/locations/*/nodes/*}\332A\004name\022" + + "\276\001\n\nCreateNode\022&.google.cloud.tpu.v2.Cre" + + "ateNodeRequest\032\035.google.longrunning.Oper" + + "ation\"i\202\323\344\223\0021\")/v2/{parent=projects/*/lo" + + "cations/*}/nodes:\004node\332A\023parent,node,nod" + + "e_id\312A\031\n\004Node\022\021OperationMetadata\022\272\001\n\nDel" + + "eteNode\022&.google.cloud.tpu.v2.DeleteNode" + + "Request\032\035.google.longrunning.Operation\"e" + + "\202\323\344\223\002+*)/v2/{name=projects/*/locations/*" + + "/nodes/*}\332A\004name\312A*\n\025google.protobuf.Emp" + + "ty\022\021OperationMetadata\022\246\001\n\010StopNode\022$.goo" + + "gle.cloud.tpu.v2.StopNodeRequest\032\035.googl" + + "e.longrunning.Operation\"U\202\323\344\223\0023\"./v2/{na" + + "me=projects/*/locations/*/nodes/*}:stop:" + + "\001*\312A\031\n\004Node\022\021OperationMetadata\022\251\001\n\tStart" + + "Node\022%.google.cloud.tpu.v2.StartNodeRequ" + + "est\032\035.google.longrunning.Operation\"V\202\323\344\223" + + "\0024\"//v2/{name=projects/*/locations/*/nod" + + "es/*}:start:\001*\312A\031\n\004Node\022\021OperationMetada" + + "ta\022\300\001\n\nUpdateNode\022&.google.cloud.tpu.v2." + + "UpdateNodeRequest\032\035.google.longrunning.O" + + "peration\"k\202\323\344\223\00262./v2/{node.name=project" + + "s/*/locations/*/nodes/*}:\004node\332A\020node,up" + + "date_mask\312A\031\n\004Node\022\021OperationMetadata\022\314\001" + + "\n\027GenerateServiceIdentity\0223.google.cloud" + + ".tpu.v2.GenerateServiceIdentityRequest\0324" + + ".google.cloud.tpu.v2.GenerateServiceIden" + + "tityResponse\"F\202\323\344\223\002@\";/v2/{parent=projec" + + "ts/*/locations/*}:generateServiceIdentit" + + "y:\001*\022\302\001\n\024ListAcceleratorTypes\0220.google.c" + + "loud.tpu.v2.ListAcceleratorTypesRequest\032" + + "1.google.cloud.tpu.v2.ListAcceleratorTyp" + + "esResponse\"E\202\323\344\223\0026\0224/v2/{parent=projects" + + "/*/locations/*}/acceleratorTypes\332A\006paren" + + "t\022\257\001\n\022GetAcceleratorType\022..google.cloud." + + "tpu.v2.GetAcceleratorTypeRequest\032$.googl" + + "e.cloud.tpu.v2.AcceleratorType\"C\202\323\344\223\0026\0224" + + "/v2/{name=projects/*/locations/*/acceler" + + "atorTypes/*}\332A\004name\022\276\001\n\023ListRuntimeVersi" + + "ons\022/.google.cloud.tpu.v2.ListRuntimeVer" + + "sionsRequest\0320.google.cloud.tpu.v2.ListR" + + "untimeVersionsResponse\"D\202\323\344\223\0025\0223/v2/{par" + + "ent=projects/*/locations/*}/runtimeVersi" + + "ons\332A\006parent\022\253\001\n\021GetRuntimeVersion\022-.goo" + + "gle.cloud.tpu.v2.GetRuntimeVersionReques" + + "t\032#.google.cloud.tpu.v2.RuntimeVersion\"B" + + "\202\323\344\223\0025\0223/v2/{name=projects/*/locations/*" + + "/runtimeVersions/*}\332A\004name\022\276\001\n\022GetGuestA" + + "ttributes\022..google.cloud.tpu.v2.GetGuest" + + "AttributesRequest\032/.google.cloud.tpu.v2." + + "GetGuestAttributesResponse\"G\202\323\344\223\002A\" * Request for [CreateNode][google.cloud.tpu.v2.Tpu.CreateNode]. *
* * Protobuf type {@code google.cloud.tpu.v2.CreateNodeRequest} */ -public final class CreateNodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.CreateNodeRequest) CreateNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateNodeRequest.newBuilder() to construct. private CreateNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateNodeRequest() { parent_ = ""; nodeId_ = ""; @@ -26,37 +44,43 @@ private CreateNodeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateNodeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_CreateNodeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_CreateNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_CreateNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_CreateNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.CreateNodeRequest.class, com.google.cloud.tpu.v2.CreateNodeRequest.Builder.class); + com.google.cloud.tpu.v2.CreateNodeRequest.class, + com.google.cloud.tpu.v2.CreateNodeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -65,29 +89,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -98,11 +124,14 @@ public java.lang.String getParent() { public static final int NODE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object nodeId_; /** + * + * *
    * The unqualified resource name.
    * 
* * string node_id = 2; + * * @return The nodeId. */ @java.lang.Override @@ -111,29 +140,29 @@ public java.lang.String getNodeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeId_ = s; return s; } } /** + * + * *
    * The unqualified resource name.
    * 
* * string node_id = 2; + * * @return The bytes for nodeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getNodeIdBytes() { + public com.google.protobuf.ByteString getNodeIdBytes() { java.lang.Object ref = nodeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeId_ = b; return b; } else { @@ -144,11 +173,14 @@ public java.lang.String getNodeId() { public static final int NODE_FIELD_NUMBER = 3; private com.google.cloud.tpu.v2.Node node_; /** + * + * *
    * Required. The node.
    * 
* * .google.cloud.tpu.v2.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the node field is set. */ @java.lang.Override @@ -156,11 +188,14 @@ public boolean hasNode() { return node_ != null; } /** + * + * *
    * Required. The node.
    * 
* * .google.cloud.tpu.v2.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The node. */ @java.lang.Override @@ -168,6 +203,8 @@ public com.google.cloud.tpu.v2.Node getNode() { return node_ == null ? com.google.cloud.tpu.v2.Node.getDefaultInstance() : node_; } /** + * + * *
    * Required. The node.
    * 
@@ -180,6 +217,7 @@ public com.google.cloud.tpu.v2.NodeOrBuilder getNodeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +229,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -218,8 +255,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeId_); } if (node_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getNode()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNode()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -229,21 +265,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.CreateNodeRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2.CreateNodeRequest other = (com.google.cloud.tpu.v2.CreateNodeRequest) obj; + com.google.cloud.tpu.v2.CreateNodeRequest other = + (com.google.cloud.tpu.v2.CreateNodeRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getNodeId() - .equals(other.getNodeId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getNodeId().equals(other.getNodeId())) return false; if (hasNode() != other.hasNode()) return false; if (hasNode()) { - if (!getNode() - .equals(other.getNode())) return false; + if (!getNode().equals(other.getNode())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -269,130 +303,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.CreateNodeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.CreateNodeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.CreateNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.CreateNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.CreateNodeRequest 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.tpu.v2.CreateNodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.CreateNodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.CreateNodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.CreateNodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.CreateNodeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.CreateNodeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.CreateNodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.CreateNodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.CreateNodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.CreateNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [CreateNode][google.cloud.tpu.v2.Tpu.CreateNode].
    * 
* * Protobuf type {@code google.cloud.tpu.v2.CreateNodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.CreateNodeRequest) com.google.cloud.tpu.v2.CreateNodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_CreateNodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_CreateNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_CreateNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_CreateNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.CreateNodeRequest.class, com.google.cloud.tpu.v2.CreateNodeRequest.Builder.class); + com.google.cloud.tpu.v2.CreateNodeRequest.class, + com.google.cloud.tpu.v2.CreateNodeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2.CreateNodeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +450,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_CreateNodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_CreateNodeRequest_descriptor; } @java.lang.Override @@ -431,7 +471,8 @@ public com.google.cloud.tpu.v2.CreateNodeRequest build() { @java.lang.Override public com.google.cloud.tpu.v2.CreateNodeRequest buildPartial() { - com.google.cloud.tpu.v2.CreateNodeRequest result = new com.google.cloud.tpu.v2.CreateNodeRequest(this); + com.google.cloud.tpu.v2.CreateNodeRequest result = + new com.google.cloud.tpu.v2.CreateNodeRequest(this); result.parent_ = parent_; result.nodeId_ = nodeId_; if (nodeBuilder_ == null) { @@ -447,38 +488,39 @@ public com.google.cloud.tpu.v2.CreateNodeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.CreateNodeRequest) { - return mergeFrom((com.google.cloud.tpu.v2.CreateNodeRequest)other); + return mergeFrom((com.google.cloud.tpu.v2.CreateNodeRequest) other); } else { super.mergeFrom(other); return this; @@ -524,29 +566,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - nodeId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + nodeId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getNodeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getNodeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -559,18 +603,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -579,20 +627,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -600,54 +651,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -655,18 +719,20 @@ public Builder setParentBytes( private java.lang.Object nodeId_ = ""; /** + * + * *
      * The unqualified resource name.
      * 
* * string node_id = 2; + * * @return The nodeId. */ public java.lang.String getNodeId() { java.lang.Object ref = nodeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeId_ = s; return s; @@ -675,20 +741,21 @@ public java.lang.String getNodeId() { } } /** + * + * *
      * The unqualified resource name.
      * 
* * string node_id = 2; + * * @return The bytes for nodeId. */ - public com.google.protobuf.ByteString - getNodeIdBytes() { + public com.google.protobuf.ByteString getNodeIdBytes() { java.lang.Object ref = nodeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeId_ = b; return b; } else { @@ -696,54 +763,61 @@ public java.lang.String getNodeId() { } } /** + * + * *
      * The unqualified resource name.
      * 
* * string node_id = 2; + * * @param value The nodeId to set. * @return This builder for chaining. */ - public Builder setNodeId( - java.lang.String value) { + public Builder setNodeId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeId_ = value; onChanged(); return this; } /** + * + * *
      * The unqualified resource name.
      * 
* * string node_id = 2; + * * @return This builder for chaining. */ public Builder clearNodeId() { - + nodeId_ = getDefaultInstance().getNodeId(); onChanged(); return this; } /** + * + * *
      * The unqualified resource name.
      * 
* * string node_id = 2; + * * @param value The bytes for nodeId to set. * @return This builder for chaining. */ - public Builder setNodeIdBytes( - com.google.protobuf.ByteString value) { + public Builder setNodeIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeId_ = value; onChanged(); return this; @@ -751,24 +825,33 @@ public Builder setNodeIdBytes( private com.google.cloud.tpu.v2.Node node_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.Node, com.google.cloud.tpu.v2.Node.Builder, com.google.cloud.tpu.v2.NodeOrBuilder> nodeBuilder_; + com.google.cloud.tpu.v2.Node, + com.google.cloud.tpu.v2.Node.Builder, + com.google.cloud.tpu.v2.NodeOrBuilder> + nodeBuilder_; /** + * + * *
      * Required. The node.
      * 
* * .google.cloud.tpu.v2.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the node field is set. */ public boolean hasNode() { return nodeBuilder_ != null || node_ != null; } /** + * + * *
      * Required. The node.
      * 
* * .google.cloud.tpu.v2.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The node. */ public com.google.cloud.tpu.v2.Node getNode() { @@ -779,6 +862,8 @@ public com.google.cloud.tpu.v2.Node getNode() { } } /** + * + * *
      * Required. The node.
      * 
@@ -799,14 +884,15 @@ public Builder setNode(com.google.cloud.tpu.v2.Node value) { return this; } /** + * + * *
      * Required. The node.
      * 
* * .google.cloud.tpu.v2.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setNode( - com.google.cloud.tpu.v2.Node.Builder builderForValue) { + public Builder setNode(com.google.cloud.tpu.v2.Node.Builder builderForValue) { if (nodeBuilder_ == null) { node_ = builderForValue.build(); onChanged(); @@ -817,6 +903,8 @@ public Builder setNode( return this; } /** + * + * *
      * Required. The node.
      * 
@@ -826,8 +914,7 @@ public Builder setNode( public Builder mergeNode(com.google.cloud.tpu.v2.Node value) { if (nodeBuilder_ == null) { if (node_ != null) { - node_ = - com.google.cloud.tpu.v2.Node.newBuilder(node_).mergeFrom(value).buildPartial(); + node_ = com.google.cloud.tpu.v2.Node.newBuilder(node_).mergeFrom(value).buildPartial(); } else { node_ = value; } @@ -839,6 +926,8 @@ public Builder mergeNode(com.google.cloud.tpu.v2.Node value) { return this; } /** + * + * *
      * Required. The node.
      * 
@@ -857,6 +946,8 @@ public Builder clearNode() { return this; } /** + * + * *
      * Required. The node.
      * 
@@ -864,11 +955,13 @@ public Builder clearNode() { * .google.cloud.tpu.v2.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.tpu.v2.Node.Builder getNodeBuilder() { - + onChanged(); return getNodeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The node.
      * 
@@ -879,11 +972,12 @@ public com.google.cloud.tpu.v2.NodeOrBuilder getNodeOrBuilder() { if (nodeBuilder_ != null) { return nodeBuilder_.getMessageOrBuilder(); } else { - return node_ == null ? - com.google.cloud.tpu.v2.Node.getDefaultInstance() : node_; + return node_ == null ? com.google.cloud.tpu.v2.Node.getDefaultInstance() : node_; } } /** + * + * *
      * Required. The node.
      * 
@@ -891,21 +985,24 @@ public com.google.cloud.tpu.v2.NodeOrBuilder getNodeOrBuilder() { * .google.cloud.tpu.v2.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.Node, com.google.cloud.tpu.v2.Node.Builder, com.google.cloud.tpu.v2.NodeOrBuilder> + com.google.cloud.tpu.v2.Node, + com.google.cloud.tpu.v2.Node.Builder, + com.google.cloud.tpu.v2.NodeOrBuilder> getNodeFieldBuilder() { if (nodeBuilder_ == null) { - nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.Node, com.google.cloud.tpu.v2.Node.Builder, com.google.cloud.tpu.v2.NodeOrBuilder>( - getNode(), - getParentForChildren(), - isClean()); + nodeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.Node, + com.google.cloud.tpu.v2.Node.Builder, + com.google.cloud.tpu.v2.NodeOrBuilder>( + getNode(), getParentForChildren(), isClean()); node_ = null; } return nodeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -915,12 +1012,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.CreateNodeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.CreateNodeRequest) private static final com.google.cloud.tpu.v2.CreateNodeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.CreateNodeRequest(); } @@ -929,27 +1026,27 @@ public static com.google.cloud.tpu.v2.CreateNodeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateNodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -964,6 +1061,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.CreateNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CreateNodeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CreateNodeRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CreateNodeRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CreateNodeRequestOrBuilder.java index a97c5d99a641..f3894c0f6a26 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CreateNodeRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CreateNodeRequestOrBuilder.java @@ -1,71 +1,109 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface CreateNodeRequestOrBuilder extends +public interface CreateNodeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.CreateNodeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The unqualified resource name.
    * 
* * string node_id = 2; + * * @return The nodeId. */ java.lang.String getNodeId(); /** + * + * *
    * The unqualified resource name.
    * 
* * string node_id = 2; + * * @return The bytes for nodeId. */ - com.google.protobuf.ByteString - getNodeIdBytes(); + com.google.protobuf.ByteString getNodeIdBytes(); /** + * + * *
    * Required. The node.
    * 
* * .google.cloud.tpu.v2.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the node field is set. */ boolean hasNode(); /** + * + * *
    * Required. The node.
    * 
* * .google.cloud.tpu.v2.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The node. */ com.google.cloud.tpu.v2.Node getNode(); /** + * + * *
    * Required. The node.
    * 
diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/DeleteNodeRequest.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/DeleteNodeRequest.java similarity index 60% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/DeleteNodeRequest.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/DeleteNodeRequest.java index 7c32cd72d636..034cd57cc339 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/DeleteNodeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/DeleteNodeRequest.java @@ -1,61 +1,85 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Request for [DeleteNode][google.cloud.tpu.v2.Tpu.DeleteNode].
  * 
* * Protobuf type {@code google.cloud.tpu.v2.DeleteNodeRequest} */ -public final class DeleteNodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.DeleteNodeRequest) DeleteNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteNodeRequest.newBuilder() to construct. private DeleteNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteNodeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteNodeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_DeleteNodeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_DeleteNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_DeleteNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_DeleteNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.DeleteNodeRequest.class, com.google.cloud.tpu.v2.DeleteNodeRequest.Builder.class); + com.google.cloud.tpu.v2.DeleteNodeRequest.class, + com.google.cloud.tpu.v2.DeleteNodeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.DeleteNodeRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2.DeleteNodeRequest other = (com.google.cloud.tpu.v2.DeleteNodeRequest) obj; + com.google.cloud.tpu.v2.DeleteNodeRequest other = + (com.google.cloud.tpu.v2.DeleteNodeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +184,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.DeleteNodeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.DeleteNodeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.DeleteNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.DeleteNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.DeleteNodeRequest 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.tpu.v2.DeleteNodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.DeleteNodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.DeleteNodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.DeleteNodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.DeleteNodeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.DeleteNodeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.DeleteNodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.DeleteNodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.DeleteNodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.DeleteNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [DeleteNode][google.cloud.tpu.v2.Tpu.DeleteNode].
    * 
* * Protobuf type {@code google.cloud.tpu.v2.DeleteNodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.DeleteNodeRequest) com.google.cloud.tpu.v2.DeleteNodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_DeleteNodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_DeleteNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_DeleteNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_DeleteNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.DeleteNodeRequest.class, com.google.cloud.tpu.v2.DeleteNodeRequest.Builder.class); + com.google.cloud.tpu.v2.DeleteNodeRequest.class, + com.google.cloud.tpu.v2.DeleteNodeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2.DeleteNodeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_DeleteNodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_DeleteNodeRequest_descriptor; } @java.lang.Override @@ -312,7 +344,8 @@ public com.google.cloud.tpu.v2.DeleteNodeRequest build() { @java.lang.Override public com.google.cloud.tpu.v2.DeleteNodeRequest buildPartial() { - com.google.cloud.tpu.v2.DeleteNodeRequest result = new com.google.cloud.tpu.v2.DeleteNodeRequest(this); + com.google.cloud.tpu.v2.DeleteNodeRequest result = + new com.google.cloud.tpu.v2.DeleteNodeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +355,39 @@ public com.google.cloud.tpu.v2.DeleteNodeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.DeleteNodeRequest) { - return mergeFrom((com.google.cloud.tpu.v2.DeleteNodeRequest)other); + return mergeFrom((com.google.cloud.tpu.v2.DeleteNodeRequest) other); } else { super.mergeFrom(other); return this; @@ -392,17 +426,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +451,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -435,20 +475,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -456,61 +499,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +576,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.DeleteNodeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.DeleteNodeRequest) private static final com.google.cloud.tpu.v2.DeleteNodeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.DeleteNodeRequest(); } @@ -534,27 +590,27 @@ public static com.google.cloud.tpu.v2.DeleteNodeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteNodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteNodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +625,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.DeleteNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/DeleteNodeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/DeleteNodeRequestOrBuilder.java new file mode 100644 index 000000000000..e146d9dd5bea --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/DeleteNodeRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +package com.google.cloud.tpu.v2; + +public interface DeleteNodeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.DeleteNodeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityRequest.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityRequest.java similarity index 60% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityRequest.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityRequest.java index 447886de0992..e57334061c7b 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityRequest.java @@ -1,61 +1,86 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Request for [GenerateServiceIdentity][google.cloud.tpu.v2.Tpu.GenerateServiceIdentity].
  * 
* * Protobuf type {@code google.cloud.tpu.v2.GenerateServiceIdentityRequest} */ -public final class GenerateServiceIdentityRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateServiceIdentityRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.GenerateServiceIdentityRequest) GenerateServiceIdentityRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateServiceIdentityRequest.newBuilder() to construct. - private GenerateServiceIdentityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GenerateServiceIdentityRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateServiceIdentityRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateServiceIdentityRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GenerateServiceIdentityRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GenerateServiceIdentityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GenerateServiceIdentityRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GenerateServiceIdentityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GenerateServiceIdentityRequest.class, com.google.cloud.tpu.v2.GenerateServiceIdentityRequest.Builder.class); + com.google.cloud.tpu.v2.GenerateServiceIdentityRequest.class, + com.google.cloud.tpu.v2.GenerateServiceIdentityRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -64,29 +89,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -95,6 +122,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -131,15 +158,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.GenerateServiceIdentityRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2.GenerateServiceIdentityRequest other = (com.google.cloud.tpu.v2.GenerateServiceIdentityRequest) obj; + com.google.cloud.tpu.v2.GenerateServiceIdentityRequest other = + (com.google.cloud.tpu.v2.GenerateServiceIdentityRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,129 +186,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v2.GenerateServiceIdentityRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GenerateServiceIdentityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.GenerateServiceIdentityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GenerateServiceIdentityRequest 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.tpu.v2.GenerateServiceIdentityRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GenerateServiceIdentityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2.GenerateServiceIdentityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.GenerateServiceIdentityRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GenerateServiceIdentityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.GenerateServiceIdentityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.GenerateServiceIdentityRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GenerateServiceIdentityRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.GenerateServiceIdentityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GenerateServiceIdentityRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2.GenerateServiceIdentityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2.GenerateServiceIdentityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [GenerateServiceIdentity][google.cloud.tpu.v2.Tpu.GenerateServiceIdentity].
    * 
* * Protobuf type {@code google.cloud.tpu.v2.GenerateServiceIdentityRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.GenerateServiceIdentityRequest) com.google.cloud.tpu.v2.GenerateServiceIdentityRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GenerateServiceIdentityRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GenerateServiceIdentityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GenerateServiceIdentityRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GenerateServiceIdentityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GenerateServiceIdentityRequest.class, com.google.cloud.tpu.v2.GenerateServiceIdentityRequest.Builder.class); + com.google.cloud.tpu.v2.GenerateServiceIdentityRequest.class, + com.google.cloud.tpu.v2.GenerateServiceIdentityRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2.GenerateServiceIdentityRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GenerateServiceIdentityRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GenerateServiceIdentityRequest_descriptor; } @java.lang.Override @@ -312,7 +346,8 @@ public com.google.cloud.tpu.v2.GenerateServiceIdentityRequest build() { @java.lang.Override public com.google.cloud.tpu.v2.GenerateServiceIdentityRequest buildPartial() { - com.google.cloud.tpu.v2.GenerateServiceIdentityRequest result = new com.google.cloud.tpu.v2.GenerateServiceIdentityRequest(this); + com.google.cloud.tpu.v2.GenerateServiceIdentityRequest result = + new com.google.cloud.tpu.v2.GenerateServiceIdentityRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -322,38 +357,39 @@ public com.google.cloud.tpu.v2.GenerateServiceIdentityRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.GenerateServiceIdentityRequest) { - return mergeFrom((com.google.cloud.tpu.v2.GenerateServiceIdentityRequest)other); + return mergeFrom((com.google.cloud.tpu.v2.GenerateServiceIdentityRequest) other); } else { super.mergeFrom(other); return this; @@ -361,7 +397,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2.GenerateServiceIdentityRequest other) { - if (other == com.google.cloud.tpu.v2.GenerateServiceIdentityRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2.GenerateServiceIdentityRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -392,17 +429,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +454,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -435,20 +478,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -456,61 +502,74 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +579,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.GenerateServiceIdentityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.GenerateServiceIdentityRequest) private static final com.google.cloud.tpu.v2.GenerateServiceIdentityRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.GenerateServiceIdentityRequest(); } @@ -534,27 +593,27 @@ public static com.google.cloud.tpu.v2.GenerateServiceIdentityRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateServiceIdentityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateServiceIdentityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +628,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.tpu.v2.GenerateServiceIdentityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityRequestOrBuilder.java new file mode 100644 index 000000000000..0de9c57228a2 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +package com.google.cloud.tpu.v2; + +public interface GenerateServiceIdentityRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.GenerateServiceIdentityRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityResponse.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityResponse.java similarity index 65% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityResponse.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityResponse.java index 89f3e581ea95..4b991aadb0a4 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityResponse.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityResponse.java @@ -1,60 +1,82 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Response for [GenerateServiceIdentity][google.cloud.tpu.v2.Tpu.GenerateServiceIdentity].
  * 
* * Protobuf type {@code google.cloud.tpu.v2.GenerateServiceIdentityResponse} */ -public final class GenerateServiceIdentityResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateServiceIdentityResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.GenerateServiceIdentityResponse) GenerateServiceIdentityResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateServiceIdentityResponse.newBuilder() to construct. - private GenerateServiceIdentityResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GenerateServiceIdentityResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateServiceIdentityResponse() { - } + + private GenerateServiceIdentityResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateServiceIdentityResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GenerateServiceIdentityResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GenerateServiceIdentityResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GenerateServiceIdentityResponse_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GenerateServiceIdentityResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GenerateServiceIdentityResponse.class, com.google.cloud.tpu.v2.GenerateServiceIdentityResponse.Builder.class); + com.google.cloud.tpu.v2.GenerateServiceIdentityResponse.class, + com.google.cloud.tpu.v2.GenerateServiceIdentityResponse.Builder.class); } public static final int IDENTITY_FIELD_NUMBER = 1; private com.google.cloud.tpu.v2.ServiceIdentity identity_; /** + * + * *
    * ServiceIdentity that was created or retrieved.
    * 
* * .google.cloud.tpu.v2.ServiceIdentity identity = 1; + * * @return Whether the identity field is set. */ @java.lang.Override @@ -62,18 +84,25 @@ public boolean hasIdentity() { return identity_ != null; } /** + * + * *
    * ServiceIdentity that was created or retrieved.
    * 
* * .google.cloud.tpu.v2.ServiceIdentity identity = 1; + * * @return The identity. */ @java.lang.Override public com.google.cloud.tpu.v2.ServiceIdentity getIdentity() { - return identity_ == null ? com.google.cloud.tpu.v2.ServiceIdentity.getDefaultInstance() : identity_; + return identity_ == null + ? com.google.cloud.tpu.v2.ServiceIdentity.getDefaultInstance() + : identity_; } /** + * + * *
    * ServiceIdentity that was created or retrieved.
    * 
@@ -86,6 +115,7 @@ public com.google.cloud.tpu.v2.ServiceIdentityOrBuilder getIdentityOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,8 +127,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (identity_ != null) { output.writeMessage(1, getIdentity()); } @@ -112,8 +141,7 @@ public int getSerializedSize() { size = 0; if (identity_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getIdentity()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIdentity()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -123,17 +151,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.GenerateServiceIdentityResponse)) { return super.equals(obj); } - com.google.cloud.tpu.v2.GenerateServiceIdentityResponse other = (com.google.cloud.tpu.v2.GenerateServiceIdentityResponse) obj; + com.google.cloud.tpu.v2.GenerateServiceIdentityResponse other = + (com.google.cloud.tpu.v2.GenerateServiceIdentityResponse) obj; if (hasIdentity() != other.hasIdentity()) return false; if (hasIdentity()) { - if (!getIdentity() - .equals(other.getIdentity())) return false; + if (!getIdentity().equals(other.getIdentity())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -156,129 +184,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v2.GenerateServiceIdentityResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GenerateServiceIdentityResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.GenerateServiceIdentityResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GenerateServiceIdentityResponse 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.tpu.v2.GenerateServiceIdentityResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GenerateServiceIdentityResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2.GenerateServiceIdentityResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.GenerateServiceIdentityResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GenerateServiceIdentityResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.GenerateServiceIdentityResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.GenerateServiceIdentityResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GenerateServiceIdentityResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.GenerateServiceIdentityResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GenerateServiceIdentityResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2.GenerateServiceIdentityResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2.GenerateServiceIdentityResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [GenerateServiceIdentity][google.cloud.tpu.v2.Tpu.GenerateServiceIdentity].
    * 
* * Protobuf type {@code google.cloud.tpu.v2.GenerateServiceIdentityResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.GenerateServiceIdentityResponse) com.google.cloud.tpu.v2.GenerateServiceIdentityResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GenerateServiceIdentityResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GenerateServiceIdentityResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GenerateServiceIdentityResponse_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GenerateServiceIdentityResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GenerateServiceIdentityResponse.class, com.google.cloud.tpu.v2.GenerateServiceIdentityResponse.Builder.class); + com.google.cloud.tpu.v2.GenerateServiceIdentityResponse.class, + com.google.cloud.tpu.v2.GenerateServiceIdentityResponse.Builder.class); } // Construct using com.google.cloud.tpu.v2.GenerateServiceIdentityResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +327,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GenerateServiceIdentityResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GenerateServiceIdentityResponse_descriptor; } @java.lang.Override @@ -313,7 +348,8 @@ public com.google.cloud.tpu.v2.GenerateServiceIdentityResponse build() { @java.lang.Override public com.google.cloud.tpu.v2.GenerateServiceIdentityResponse buildPartial() { - com.google.cloud.tpu.v2.GenerateServiceIdentityResponse result = new com.google.cloud.tpu.v2.GenerateServiceIdentityResponse(this); + com.google.cloud.tpu.v2.GenerateServiceIdentityResponse result = + new com.google.cloud.tpu.v2.GenerateServiceIdentityResponse(this); if (identityBuilder_ == null) { result.identity_ = identity_; } else { @@ -327,38 +363,39 @@ public com.google.cloud.tpu.v2.GenerateServiceIdentityResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.GenerateServiceIdentityResponse) { - return mergeFrom((com.google.cloud.tpu.v2.GenerateServiceIdentityResponse)other); + return mergeFrom((com.google.cloud.tpu.v2.GenerateServiceIdentityResponse) other); } else { super.mergeFrom(other); return this; @@ -366,7 +403,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2.GenerateServiceIdentityResponse other) { - if (other == com.google.cloud.tpu.v2.GenerateServiceIdentityResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2.GenerateServiceIdentityResponse.getDefaultInstance()) + return this; if (other.hasIdentity()) { mergeIdentity(other.getIdentity()); } @@ -396,19 +434,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getIdentityFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getIdentityFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,34 +459,47 @@ public Builder mergeFrom( private com.google.cloud.tpu.v2.ServiceIdentity identity_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.ServiceIdentity, com.google.cloud.tpu.v2.ServiceIdentity.Builder, com.google.cloud.tpu.v2.ServiceIdentityOrBuilder> identityBuilder_; + com.google.cloud.tpu.v2.ServiceIdentity, + com.google.cloud.tpu.v2.ServiceIdentity.Builder, + com.google.cloud.tpu.v2.ServiceIdentityOrBuilder> + identityBuilder_; /** + * + * *
      * ServiceIdentity that was created or retrieved.
      * 
* * .google.cloud.tpu.v2.ServiceIdentity identity = 1; + * * @return Whether the identity field is set. */ public boolean hasIdentity() { return identityBuilder_ != null || identity_ != null; } /** + * + * *
      * ServiceIdentity that was created or retrieved.
      * 
* * .google.cloud.tpu.v2.ServiceIdentity identity = 1; + * * @return The identity. */ public com.google.cloud.tpu.v2.ServiceIdentity getIdentity() { if (identityBuilder_ == null) { - return identity_ == null ? com.google.cloud.tpu.v2.ServiceIdentity.getDefaultInstance() : identity_; + return identity_ == null + ? com.google.cloud.tpu.v2.ServiceIdentity.getDefaultInstance() + : identity_; } else { return identityBuilder_.getMessage(); } } /** + * + * *
      * ServiceIdentity that was created or retrieved.
      * 
@@ -469,14 +520,15 @@ public Builder setIdentity(com.google.cloud.tpu.v2.ServiceIdentity value) { return this; } /** + * + * *
      * ServiceIdentity that was created or retrieved.
      * 
* * .google.cloud.tpu.v2.ServiceIdentity identity = 1; */ - public Builder setIdentity( - com.google.cloud.tpu.v2.ServiceIdentity.Builder builderForValue) { + public Builder setIdentity(com.google.cloud.tpu.v2.ServiceIdentity.Builder builderForValue) { if (identityBuilder_ == null) { identity_ = builderForValue.build(); onChanged(); @@ -487,6 +539,8 @@ public Builder setIdentity( return this; } /** + * + * *
      * ServiceIdentity that was created or retrieved.
      * 
@@ -497,7 +551,9 @@ public Builder mergeIdentity(com.google.cloud.tpu.v2.ServiceIdentity value) { if (identityBuilder_ == null) { if (identity_ != null) { identity_ = - com.google.cloud.tpu.v2.ServiceIdentity.newBuilder(identity_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v2.ServiceIdentity.newBuilder(identity_) + .mergeFrom(value) + .buildPartial(); } else { identity_ = value; } @@ -509,6 +565,8 @@ public Builder mergeIdentity(com.google.cloud.tpu.v2.ServiceIdentity value) { return this; } /** + * + * *
      * ServiceIdentity that was created or retrieved.
      * 
@@ -527,6 +585,8 @@ public Builder clearIdentity() { return this; } /** + * + * *
      * ServiceIdentity that was created or retrieved.
      * 
@@ -534,11 +594,13 @@ public Builder clearIdentity() { * .google.cloud.tpu.v2.ServiceIdentity identity = 1; */ public com.google.cloud.tpu.v2.ServiceIdentity.Builder getIdentityBuilder() { - + onChanged(); return getIdentityFieldBuilder().getBuilder(); } /** + * + * *
      * ServiceIdentity that was created or retrieved.
      * 
@@ -549,11 +611,14 @@ public com.google.cloud.tpu.v2.ServiceIdentityOrBuilder getIdentityOrBuilder() { if (identityBuilder_ != null) { return identityBuilder_.getMessageOrBuilder(); } else { - return identity_ == null ? - com.google.cloud.tpu.v2.ServiceIdentity.getDefaultInstance() : identity_; + return identity_ == null + ? com.google.cloud.tpu.v2.ServiceIdentity.getDefaultInstance() + : identity_; } } /** + * + * *
      * ServiceIdentity that was created or retrieved.
      * 
@@ -561,21 +626,24 @@ public com.google.cloud.tpu.v2.ServiceIdentityOrBuilder getIdentityOrBuilder() { * .google.cloud.tpu.v2.ServiceIdentity identity = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.ServiceIdentity, com.google.cloud.tpu.v2.ServiceIdentity.Builder, com.google.cloud.tpu.v2.ServiceIdentityOrBuilder> + com.google.cloud.tpu.v2.ServiceIdentity, + com.google.cloud.tpu.v2.ServiceIdentity.Builder, + com.google.cloud.tpu.v2.ServiceIdentityOrBuilder> getIdentityFieldBuilder() { if (identityBuilder_ == null) { - identityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.ServiceIdentity, com.google.cloud.tpu.v2.ServiceIdentity.Builder, com.google.cloud.tpu.v2.ServiceIdentityOrBuilder>( - getIdentity(), - getParentForChildren(), - isClean()); + identityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.ServiceIdentity, + com.google.cloud.tpu.v2.ServiceIdentity.Builder, + com.google.cloud.tpu.v2.ServiceIdentityOrBuilder>( + getIdentity(), getParentForChildren(), isClean()); identity_ = null; } return identityBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -585,12 +653,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.GenerateServiceIdentityResponse) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.GenerateServiceIdentityResponse) private static final com.google.cloud.tpu.v2.GenerateServiceIdentityResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.GenerateServiceIdentityResponse(); } @@ -599,27 +667,27 @@ public static com.google.cloud.tpu.v2.GenerateServiceIdentityResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateServiceIdentityResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateServiceIdentityResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,6 +702,4 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.tpu.v2.GenerateServiceIdentityResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityResponseOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityResponseOrBuilder.java similarity index 58% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityResponseOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityResponseOrBuilder.java index ac9ad964b6dd..420ea7741f40 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityResponseOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface GenerateServiceIdentityResponseOrBuilder extends +public interface GenerateServiceIdentityResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.GenerateServiceIdentityResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * ServiceIdentity that was created or retrieved.
    * 
* * .google.cloud.tpu.v2.ServiceIdentity identity = 1; + * * @return Whether the identity field is set. */ boolean hasIdentity(); /** + * + * *
    * ServiceIdentity that was created or retrieved.
    * 
* * .google.cloud.tpu.v2.ServiceIdentity identity = 1; + * * @return The identity. */ com.google.cloud.tpu.v2.ServiceIdentity getIdentity(); /** + * + * *
    * ServiceIdentity that was created or retrieved.
    * 
diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetAcceleratorTypeRequest.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetAcceleratorTypeRequest.java similarity index 61% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetAcceleratorTypeRequest.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetAcceleratorTypeRequest.java index bce547fba80c..de6c1a8ee7dd 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetAcceleratorTypeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetAcceleratorTypeRequest.java @@ -1,61 +1,85 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Request for [GetAcceleratorType][google.cloud.tpu.v2.Tpu.GetAcceleratorType].
  * 
* * Protobuf type {@code google.cloud.tpu.v2.GetAcceleratorTypeRequest} */ -public final class GetAcceleratorTypeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetAcceleratorTypeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.GetAcceleratorTypeRequest) GetAcceleratorTypeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetAcceleratorTypeRequest.newBuilder() to construct. private GetAcceleratorTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetAcceleratorTypeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetAcceleratorTypeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetAcceleratorTypeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetAcceleratorTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetAcceleratorTypeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetAcceleratorTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GetAcceleratorTypeRequest.class, com.google.cloud.tpu.v2.GetAcceleratorTypeRequest.Builder.class); + com.google.cloud.tpu.v2.GetAcceleratorTypeRequest.class, + com.google.cloud.tpu.v2.GetAcceleratorTypeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.GetAcceleratorTypeRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2.GetAcceleratorTypeRequest other = (com.google.cloud.tpu.v2.GetAcceleratorTypeRequest) obj; + com.google.cloud.tpu.v2.GetAcceleratorTypeRequest other = + (com.google.cloud.tpu.v2.GetAcceleratorTypeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,129 +185,135 @@ public int hashCode() { } public static com.google.cloud.tpu.v2.GetAcceleratorTypeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GetAcceleratorTypeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.GetAcceleratorTypeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GetAcceleratorTypeRequest 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.tpu.v2.GetAcceleratorTypeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GetAcceleratorTypeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2.GetAcceleratorTypeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.GetAcceleratorTypeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GetAcceleratorTypeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.GetAcceleratorTypeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.GetAcceleratorTypeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GetAcceleratorTypeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.GetAcceleratorTypeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GetAcceleratorTypeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.GetAcceleratorTypeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [GetAcceleratorType][google.cloud.tpu.v2.Tpu.GetAcceleratorType].
    * 
* * Protobuf type {@code google.cloud.tpu.v2.GetAcceleratorTypeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.GetAcceleratorTypeRequest) com.google.cloud.tpu.v2.GetAcceleratorTypeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetAcceleratorTypeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetAcceleratorTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetAcceleratorTypeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetAcceleratorTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GetAcceleratorTypeRequest.class, com.google.cloud.tpu.v2.GetAcceleratorTypeRequest.Builder.class); + com.google.cloud.tpu.v2.GetAcceleratorTypeRequest.class, + com.google.cloud.tpu.v2.GetAcceleratorTypeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2.GetAcceleratorTypeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetAcceleratorTypeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetAcceleratorTypeRequest_descriptor; } @java.lang.Override @@ -312,7 +344,8 @@ public com.google.cloud.tpu.v2.GetAcceleratorTypeRequest build() { @java.lang.Override public com.google.cloud.tpu.v2.GetAcceleratorTypeRequest buildPartial() { - com.google.cloud.tpu.v2.GetAcceleratorTypeRequest result = new com.google.cloud.tpu.v2.GetAcceleratorTypeRequest(this); + com.google.cloud.tpu.v2.GetAcceleratorTypeRequest result = + new com.google.cloud.tpu.v2.GetAcceleratorTypeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +355,39 @@ public com.google.cloud.tpu.v2.GetAcceleratorTypeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.GetAcceleratorTypeRequest) { - return mergeFrom((com.google.cloud.tpu.v2.GetAcceleratorTypeRequest)other); + return mergeFrom((com.google.cloud.tpu.v2.GetAcceleratorTypeRequest) other); } else { super.mergeFrom(other); return this; @@ -361,7 +395,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2.GetAcceleratorTypeRequest other) { - if (other == com.google.cloud.tpu.v2.GetAcceleratorTypeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2.GetAcceleratorTypeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -392,17 +427,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +452,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -435,20 +476,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -456,61 +500,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +577,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.GetAcceleratorTypeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.GetAcceleratorTypeRequest) private static final com.google.cloud.tpu.v2.GetAcceleratorTypeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.GetAcceleratorTypeRequest(); } @@ -534,27 +591,27 @@ public static com.google.cloud.tpu.v2.GetAcceleratorTypeRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAcceleratorTypeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAcceleratorTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +626,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.tpu.v2.GetAcceleratorTypeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetAcceleratorTypeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetAcceleratorTypeRequestOrBuilder.java new file mode 100644 index 000000000000..7c96b0611f1b --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetAcceleratorTypeRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +package com.google.cloud.tpu.v2; + +public interface GetAcceleratorTypeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.GetAcceleratorTypeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesRequest.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesRequest.java similarity index 67% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesRequest.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesRequest.java index 4bdfdc99eef5..3d2f75e81c1a 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesRequest.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Request for [GetGuestAttributes][google.cloud.tpu.v2.Tpu.GetGuestAttributes].
  * 
* * Protobuf type {@code google.cloud.tpu.v2.GetGuestAttributesRequest} */ -public final class GetGuestAttributesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetGuestAttributesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.GetGuestAttributesRequest) GetGuestAttributesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetGuestAttributesRequest.newBuilder() to construct. private GetGuestAttributesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetGuestAttributesRequest() { name_ = ""; queryPath_ = ""; @@ -27,37 +45,43 @@ private GetGuestAttributesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetGuestAttributesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetGuestAttributesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetGuestAttributesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetGuestAttributesRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetGuestAttributesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GetGuestAttributesRequest.class, com.google.cloud.tpu.v2.GetGuestAttributesRequest.Builder.class); + com.google.cloud.tpu.v2.GetGuestAttributesRequest.class, + com.google.cloud.tpu.v2.GetGuestAttributesRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -99,11 +125,14 @@ public java.lang.String getName() { public static final int QUERY_PATH_FIELD_NUMBER = 2; private volatile java.lang.Object queryPath_; /** + * + * *
    * The guest attributes path to be queried.
    * 
* * string query_path = 2; + * * @return The queryPath. */ @java.lang.Override @@ -112,29 +141,29 @@ public java.lang.String getQueryPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryPath_ = s; return s; } } /** + * + * *
    * The guest attributes path to be queried.
    * 
* * string query_path = 2; + * * @return The bytes for queryPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryPathBytes() { + public com.google.protobuf.ByteString getQueryPathBytes() { java.lang.Object ref = queryPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queryPath_ = b; return b; } else { @@ -145,37 +174,45 @@ public java.lang.String getQueryPath() { public static final int WORKER_IDS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList workerIds_; /** + * + * *
    * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
    * returned.
    * 
* * repeated string worker_ids = 3; + * * @return A list containing the workerIds. */ - public com.google.protobuf.ProtocolStringList - getWorkerIdsList() { + public com.google.protobuf.ProtocolStringList getWorkerIdsList() { return workerIds_; } /** + * + * *
    * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
    * returned.
    * 
* * repeated string worker_ids = 3; + * * @return The count of workerIds. */ public int getWorkerIdsCount() { return workerIds_.size(); } /** + * + * *
    * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
    * returned.
    * 
* * repeated string worker_ids = 3; + * * @param index The index of the element to return. * @return The workerIds at the given index. */ @@ -183,21 +220,24 @@ public java.lang.String getWorkerIds(int index) { return workerIds_.get(index); } /** + * + * *
    * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
    * returned.
    * 
* * repeated string worker_ids = 3; + * * @param index The index of the value to return. * @return The bytes of the workerIds at the given index. */ - public com.google.protobuf.ByteString - getWorkerIdsBytes(int index) { + public com.google.protobuf.ByteString getWorkerIdsBytes(int index) { return workerIds_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +249,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -251,19 +290,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.GetGuestAttributesRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2.GetGuestAttributesRequest other = (com.google.cloud.tpu.v2.GetGuestAttributesRequest) obj; + com.google.cloud.tpu.v2.GetGuestAttributesRequest other = + (com.google.cloud.tpu.v2.GetGuestAttributesRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getQueryPath() - .equals(other.getQueryPath())) return false; - if (!getWorkerIdsList() - .equals(other.getWorkerIdsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getQueryPath().equals(other.getQueryPath())) return false; + if (!getWorkerIdsList().equals(other.getWorkerIdsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -289,129 +326,135 @@ public int hashCode() { } public static com.google.cloud.tpu.v2.GetGuestAttributesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GetGuestAttributesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.GetGuestAttributesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GetGuestAttributesRequest 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.tpu.v2.GetGuestAttributesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GetGuestAttributesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2.GetGuestAttributesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.GetGuestAttributesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GetGuestAttributesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.GetGuestAttributesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.GetGuestAttributesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GetGuestAttributesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.GetGuestAttributesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GetGuestAttributesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.GetGuestAttributesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [GetGuestAttributes][google.cloud.tpu.v2.Tpu.GetGuestAttributes].
    * 
* * Protobuf type {@code google.cloud.tpu.v2.GetGuestAttributesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.GetGuestAttributesRequest) com.google.cloud.tpu.v2.GetGuestAttributesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetGuestAttributesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetGuestAttributesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetGuestAttributesRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetGuestAttributesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GetGuestAttributesRequest.class, com.google.cloud.tpu.v2.GetGuestAttributesRequest.Builder.class); + com.google.cloud.tpu.v2.GetGuestAttributesRequest.class, + com.google.cloud.tpu.v2.GetGuestAttributesRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2.GetGuestAttributesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +468,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetGuestAttributesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetGuestAttributesRequest_descriptor; } @java.lang.Override @@ -446,7 +489,8 @@ public com.google.cloud.tpu.v2.GetGuestAttributesRequest build() { @java.lang.Override public com.google.cloud.tpu.v2.GetGuestAttributesRequest buildPartial() { - com.google.cloud.tpu.v2.GetGuestAttributesRequest result = new com.google.cloud.tpu.v2.GetGuestAttributesRequest(this); + com.google.cloud.tpu.v2.GetGuestAttributesRequest result = + new com.google.cloud.tpu.v2.GetGuestAttributesRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.queryPath_ = queryPath_; @@ -463,38 +507,39 @@ public com.google.cloud.tpu.v2.GetGuestAttributesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.GetGuestAttributesRequest) { - return mergeFrom((com.google.cloud.tpu.v2.GetGuestAttributesRequest)other); + return mergeFrom((com.google.cloud.tpu.v2.GetGuestAttributesRequest) other); } else { super.mergeFrom(other); return this; @@ -502,7 +547,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2.GetGuestAttributesRequest other) { - if (other == com.google.cloud.tpu.v2.GetGuestAttributesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2.GetGuestAttributesRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -547,28 +593,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); + case 10: + { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - queryPath_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + queryPath_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureWorkerIdsIsMutable(); - workerIds_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureWorkerIdsIsMutable(); + workerIds_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -578,22 +628,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -602,20 +657,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -623,54 +681,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -678,18 +749,20 @@ public Builder setNameBytes( private java.lang.Object queryPath_ = ""; /** + * + * *
      * The guest attributes path to be queried.
      * 
* * string query_path = 2; + * * @return The queryPath. */ public java.lang.String getQueryPath() { java.lang.Object ref = queryPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryPath_ = s; return s; @@ -698,20 +771,21 @@ public java.lang.String getQueryPath() { } } /** + * + * *
      * The guest attributes path to be queried.
      * 
* * string query_path = 2; + * * @return The bytes for queryPath. */ - public com.google.protobuf.ByteString - getQueryPathBytes() { + public com.google.protobuf.ByteString getQueryPathBytes() { java.lang.Object ref = queryPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queryPath_ = b; return b; } else { @@ -719,98 +793,115 @@ public java.lang.String getQueryPath() { } } /** + * + * *
      * The guest attributes path to be queried.
      * 
* * string query_path = 2; + * * @param value The queryPath to set. * @return This builder for chaining. */ - public Builder setQueryPath( - java.lang.String value) { + public Builder setQueryPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + queryPath_ = value; onChanged(); return this; } /** + * + * *
      * The guest attributes path to be queried.
      * 
* * string query_path = 2; + * * @return This builder for chaining. */ public Builder clearQueryPath() { - + queryPath_ = getDefaultInstance().getQueryPath(); onChanged(); return this; } /** + * + * *
      * The guest attributes path to be queried.
      * 
* * string query_path = 2; + * * @param value The bytes for queryPath to set. * @return This builder for chaining. */ - public Builder setQueryPathBytes( - com.google.protobuf.ByteString value) { + public Builder setQueryPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryPath_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList workerIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList workerIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureWorkerIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { workerIds_ = new com.google.protobuf.LazyStringArrayList(workerIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
      * returned.
      * 
* * repeated string worker_ids = 3; + * * @return A list containing the workerIds. */ - public com.google.protobuf.ProtocolStringList - getWorkerIdsList() { + public com.google.protobuf.ProtocolStringList getWorkerIdsList() { return workerIds_.getUnmodifiableView(); } /** + * + * *
      * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
      * returned.
      * 
* * repeated string worker_ids = 3; + * * @return The count of workerIds. */ public int getWorkerIdsCount() { return workerIds_.size(); } /** + * + * *
      * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
      * returned.
      * 
* * repeated string worker_ids = 3; + * * @param index The index of the element to return. * @return The workerIds at the given index. */ @@ -818,85 +909,95 @@ public java.lang.String getWorkerIds(int index) { return workerIds_.get(index); } /** + * + * *
      * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
      * returned.
      * 
* * repeated string worker_ids = 3; + * * @param index The index of the value to return. * @return The bytes of the workerIds at the given index. */ - public com.google.protobuf.ByteString - getWorkerIdsBytes(int index) { + public com.google.protobuf.ByteString getWorkerIdsBytes(int index) { return workerIds_.getByteString(index); } /** + * + * *
      * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
      * returned.
      * 
* * repeated string worker_ids = 3; + * * @param index The index to set the value at. * @param value The workerIds to set. * @return This builder for chaining. */ - public Builder setWorkerIds( - int index, java.lang.String value) { + public Builder setWorkerIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWorkerIdsIsMutable(); + throw new NullPointerException(); + } + ensureWorkerIdsIsMutable(); workerIds_.set(index, value); onChanged(); return this; } /** + * + * *
      * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
      * returned.
      * 
* * repeated string worker_ids = 3; + * * @param value The workerIds to add. * @return This builder for chaining. */ - public Builder addWorkerIds( - java.lang.String value) { + public Builder addWorkerIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWorkerIdsIsMutable(); + throw new NullPointerException(); + } + ensureWorkerIdsIsMutable(); workerIds_.add(value); onChanged(); return this; } /** + * + * *
      * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
      * returned.
      * 
* * repeated string worker_ids = 3; + * * @param values The workerIds to add. * @return This builder for chaining. */ - public Builder addAllWorkerIds( - java.lang.Iterable values) { + public Builder addAllWorkerIds(java.lang.Iterable values) { ensureWorkerIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workerIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workerIds_); onChanged(); return this; } /** + * + * *
      * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
      * returned.
      * 
* * repeated string worker_ids = 3; + * * @return This builder for chaining. */ public Builder clearWorkerIds() { @@ -906,29 +1007,31 @@ public Builder clearWorkerIds() { return this; } /** + * + * *
      * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
      * returned.
      * 
* * repeated string worker_ids = 3; + * * @param value The bytes of the workerIds to add. * @return This builder for chaining. */ - public Builder addWorkerIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addWorkerIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureWorkerIdsIsMutable(); workerIds_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -938,12 +1041,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.GetGuestAttributesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.GetGuestAttributesRequest) private static final com.google.cloud.tpu.v2.GetGuestAttributesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.GetGuestAttributesRequest(); } @@ -952,27 +1055,27 @@ public static com.google.cloud.tpu.v2.GetGuestAttributesRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGuestAttributesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGuestAttributesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -987,6 +1090,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.tpu.v2.GetGuestAttributesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesRequestOrBuilder.java index 44bbc25641b8..40b183f26e4c 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesRequestOrBuilder.java @@ -1,94 +1,134 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface GetGuestAttributesRequestOrBuilder extends +public interface GetGuestAttributesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.GetGuestAttributesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The guest attributes path to be queried.
    * 
* * string query_path = 2; + * * @return The queryPath. */ java.lang.String getQueryPath(); /** + * + * *
    * The guest attributes path to be queried.
    * 
* * string query_path = 2; + * * @return The bytes for queryPath. */ - com.google.protobuf.ByteString - getQueryPathBytes(); + com.google.protobuf.ByteString getQueryPathBytes(); /** + * + * *
    * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
    * returned.
    * 
* * repeated string worker_ids = 3; + * * @return A list containing the workerIds. */ - java.util.List - getWorkerIdsList(); + java.util.List getWorkerIdsList(); /** + * + * *
    * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
    * returned.
    * 
* * repeated string worker_ids = 3; + * * @return The count of workerIds. */ int getWorkerIdsCount(); /** + * + * *
    * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
    * returned.
    * 
* * repeated string worker_ids = 3; + * * @param index The index of the element to return. * @return The workerIds at the given index. */ java.lang.String getWorkerIds(int index); /** + * + * *
    * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
    * returned.
    * 
* * repeated string worker_ids = 3; + * * @param index The index of the value to return. * @return The bytes of the workerIds at the given index. */ - com.google.protobuf.ByteString - getWorkerIdsBytes(int index); + com.google.protobuf.ByteString getWorkerIdsBytes(int index); } diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesResponse.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesResponse.java similarity index 71% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesResponse.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesResponse.java index 080f0d24b494..6741daf273ca 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesResponse.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesResponse.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Response for [GetGuestAttributes][google.cloud.tpu.v2.Tpu.GetGuestAttributes].
  * 
* * Protobuf type {@code google.cloud.tpu.v2.GetGuestAttributesResponse} */ -public final class GetGuestAttributesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetGuestAttributesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.GetGuestAttributesResponse) GetGuestAttributesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetGuestAttributesResponse.newBuilder() to construct. private GetGuestAttributesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetGuestAttributesResponse() { guestAttributes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetGuestAttributesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetGuestAttributesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetGuestAttributesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetGuestAttributesResponse_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetGuestAttributesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GetGuestAttributesResponse.class, com.google.cloud.tpu.v2.GetGuestAttributesResponse.Builder.class); + com.google.cloud.tpu.v2.GetGuestAttributesResponse.class, + com.google.cloud.tpu.v2.GetGuestAttributesResponse.Builder.class); } public static final int GUEST_ATTRIBUTES_FIELD_NUMBER = 1; private java.util.List guestAttributes_; /** + * + * *
    * The guest attributes for the TPU workers.
    * 
@@ -62,6 +83,8 @@ public java.util.List getGuestAttribute return guestAttributes_; } /** + * + * *
    * The guest attributes for the TPU workers.
    * 
@@ -69,11 +92,13 @@ public java.util.List getGuestAttribute * repeated .google.cloud.tpu.v2.GuestAttributes guest_attributes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getGuestAttributesOrBuilderList() { return guestAttributes_; } /** + * + * *
    * The guest attributes for the TPU workers.
    * 
@@ -85,6 +110,8 @@ public int getGuestAttributesCount() { return guestAttributes_.size(); } /** + * + * *
    * The guest attributes for the TPU workers.
    * 
@@ -96,6 +123,8 @@ public com.google.cloud.tpu.v2.GuestAttributes getGuestAttributes(int index) { return guestAttributes_.get(index); } /** + * + * *
    * The guest attributes for the TPU workers.
    * 
@@ -103,12 +132,12 @@ public com.google.cloud.tpu.v2.GuestAttributes getGuestAttributes(int index) { * repeated .google.cloud.tpu.v2.GuestAttributes guest_attributes = 1; */ @java.lang.Override - public com.google.cloud.tpu.v2.GuestAttributesOrBuilder getGuestAttributesOrBuilder( - int index) { + public com.google.cloud.tpu.v2.GuestAttributesOrBuilder getGuestAttributesOrBuilder(int index) { return guestAttributes_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +149,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < guestAttributes_.size(); i++) { output.writeMessage(1, guestAttributes_.get(i)); } @@ -135,8 +163,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < guestAttributes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, guestAttributes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, guestAttributes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -146,15 +173,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.GetGuestAttributesResponse)) { return super.equals(obj); } - com.google.cloud.tpu.v2.GetGuestAttributesResponse other = (com.google.cloud.tpu.v2.GetGuestAttributesResponse) obj; + com.google.cloud.tpu.v2.GetGuestAttributesResponse other = + (com.google.cloud.tpu.v2.GetGuestAttributesResponse) obj; - if (!getGuestAttributesList() - .equals(other.getGuestAttributesList())) return false; + if (!getGuestAttributesList().equals(other.getGuestAttributesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -176,129 +203,135 @@ public int hashCode() { } public static com.google.cloud.tpu.v2.GetGuestAttributesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GetGuestAttributesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.GetGuestAttributesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GetGuestAttributesResponse 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.tpu.v2.GetGuestAttributesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GetGuestAttributesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2.GetGuestAttributesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.GetGuestAttributesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GetGuestAttributesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.GetGuestAttributesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.GetGuestAttributesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GetGuestAttributesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.GetGuestAttributesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GetGuestAttributesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.GetGuestAttributesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [GetGuestAttributes][google.cloud.tpu.v2.Tpu.GetGuestAttributes].
    * 
* * Protobuf type {@code google.cloud.tpu.v2.GetGuestAttributesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.GetGuestAttributesResponse) com.google.cloud.tpu.v2.GetGuestAttributesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetGuestAttributesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetGuestAttributesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetGuestAttributesResponse_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetGuestAttributesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GetGuestAttributesResponse.class, com.google.cloud.tpu.v2.GetGuestAttributesResponse.Builder.class); + com.google.cloud.tpu.v2.GetGuestAttributesResponse.class, + com.google.cloud.tpu.v2.GetGuestAttributesResponse.Builder.class); } // Construct using com.google.cloud.tpu.v2.GetGuestAttributesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -313,9 +346,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetGuestAttributesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetGuestAttributesResponse_descriptor; } @java.lang.Override @@ -334,7 +367,8 @@ public com.google.cloud.tpu.v2.GetGuestAttributesResponse build() { @java.lang.Override public com.google.cloud.tpu.v2.GetGuestAttributesResponse buildPartial() { - com.google.cloud.tpu.v2.GetGuestAttributesResponse result = new com.google.cloud.tpu.v2.GetGuestAttributesResponse(this); + com.google.cloud.tpu.v2.GetGuestAttributesResponse result = + new com.google.cloud.tpu.v2.GetGuestAttributesResponse(this); int from_bitField0_ = bitField0_; if (guestAttributesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -353,38 +387,39 @@ public com.google.cloud.tpu.v2.GetGuestAttributesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.GetGuestAttributesResponse) { - return mergeFrom((com.google.cloud.tpu.v2.GetGuestAttributesResponse)other); + return mergeFrom((com.google.cloud.tpu.v2.GetGuestAttributesResponse) other); } else { super.mergeFrom(other); return this; @@ -392,7 +427,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2.GetGuestAttributesResponse other) { - if (other == com.google.cloud.tpu.v2.GetGuestAttributesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2.GetGuestAttributesResponse.getDefaultInstance()) + return this; if (guestAttributesBuilder_ == null) { if (!other.guestAttributes_.isEmpty()) { if (guestAttributes_.isEmpty()) { @@ -411,9 +447,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.GetGuestAttributesResponse othe guestAttributesBuilder_ = null; guestAttributes_ = other.guestAttributes_; bitField0_ = (bitField0_ & ~0x00000001); - guestAttributesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGuestAttributesFieldBuilder() : null; + guestAttributesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGuestAttributesFieldBuilder() + : null; } else { guestAttributesBuilder_.addAllMessages(other.guestAttributes_); } @@ -445,25 +482,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.tpu.v2.GuestAttributes m = - input.readMessage( - com.google.cloud.tpu.v2.GuestAttributes.parser(), - extensionRegistry); - if (guestAttributesBuilder_ == null) { - ensureGuestAttributesIsMutable(); - guestAttributes_.add(m); - } else { - guestAttributesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.tpu.v2.GuestAttributes m = + input.readMessage( + com.google.cloud.tpu.v2.GuestAttributes.parser(), extensionRegistry); + if (guestAttributesBuilder_ == null) { + ensureGuestAttributesIsMutable(); + guestAttributes_.add(m); + } else { + guestAttributesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -473,21 +511,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List guestAttributes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureGuestAttributesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - guestAttributes_ = new java.util.ArrayList(guestAttributes_); + guestAttributes_ = + new java.util.ArrayList(guestAttributes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.GuestAttributes, com.google.cloud.tpu.v2.GuestAttributes.Builder, com.google.cloud.tpu.v2.GuestAttributesOrBuilder> guestAttributesBuilder_; + com.google.cloud.tpu.v2.GuestAttributes, + com.google.cloud.tpu.v2.GuestAttributes.Builder, + com.google.cloud.tpu.v2.GuestAttributesOrBuilder> + guestAttributesBuilder_; /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -502,6 +548,8 @@ public java.util.List getGuestAttribute } } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -516,6 +564,8 @@ public int getGuestAttributesCount() { } } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -530,14 +580,15 @@ public com.google.cloud.tpu.v2.GuestAttributes getGuestAttributes(int index) { } } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
* * repeated .google.cloud.tpu.v2.GuestAttributes guest_attributes = 1; */ - public Builder setGuestAttributes( - int index, com.google.cloud.tpu.v2.GuestAttributes value) { + public Builder setGuestAttributes(int index, com.google.cloud.tpu.v2.GuestAttributes value) { if (guestAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -551,6 +602,8 @@ public Builder setGuestAttributes( return this; } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -569,6 +622,8 @@ public Builder setGuestAttributes( return this; } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -589,14 +644,15 @@ public Builder addGuestAttributes(com.google.cloud.tpu.v2.GuestAttributes value) return this; } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
* * repeated .google.cloud.tpu.v2.GuestAttributes guest_attributes = 1; */ - public Builder addGuestAttributes( - int index, com.google.cloud.tpu.v2.GuestAttributes value) { + public Builder addGuestAttributes(int index, com.google.cloud.tpu.v2.GuestAttributes value) { if (guestAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -610,6 +666,8 @@ public Builder addGuestAttributes( return this; } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -628,6 +686,8 @@ public Builder addGuestAttributes( return this; } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -646,6 +706,8 @@ public Builder addGuestAttributes( return this; } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -656,8 +718,7 @@ public Builder addAllGuestAttributes( java.lang.Iterable values) { if (guestAttributesBuilder_ == null) { ensureGuestAttributesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, guestAttributes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, guestAttributes_); onChanged(); } else { guestAttributesBuilder_.addAllMessages(values); @@ -665,6 +726,8 @@ public Builder addAllGuestAttributes( return this; } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -682,6 +745,8 @@ public Builder clearGuestAttributes() { return this; } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -699,39 +764,44 @@ public Builder removeGuestAttributes(int index) { return this; } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
* * repeated .google.cloud.tpu.v2.GuestAttributes guest_attributes = 1; */ - public com.google.cloud.tpu.v2.GuestAttributes.Builder getGuestAttributesBuilder( - int index) { + public com.google.cloud.tpu.v2.GuestAttributes.Builder getGuestAttributesBuilder(int index) { return getGuestAttributesFieldBuilder().getBuilder(index); } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
* * repeated .google.cloud.tpu.v2.GuestAttributes guest_attributes = 1; */ - public com.google.cloud.tpu.v2.GuestAttributesOrBuilder getGuestAttributesOrBuilder( - int index) { + public com.google.cloud.tpu.v2.GuestAttributesOrBuilder getGuestAttributesOrBuilder(int index) { if (guestAttributesBuilder_ == null) { - return guestAttributes_.get(index); } else { + return guestAttributes_.get(index); + } else { return guestAttributesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
* * repeated .google.cloud.tpu.v2.GuestAttributes guest_attributes = 1; */ - public java.util.List - getGuestAttributesOrBuilderList() { + public java.util.List + getGuestAttributesOrBuilderList() { if (guestAttributesBuilder_ != null) { return guestAttributesBuilder_.getMessageOrBuilderList(); } else { @@ -739,6 +809,8 @@ public com.google.cloud.tpu.v2.GuestAttributesOrBuilder getGuestAttributesOrBuil } } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -746,38 +818,47 @@ public com.google.cloud.tpu.v2.GuestAttributesOrBuilder getGuestAttributesOrBuil * repeated .google.cloud.tpu.v2.GuestAttributes guest_attributes = 1; */ public com.google.cloud.tpu.v2.GuestAttributes.Builder addGuestAttributesBuilder() { - return getGuestAttributesFieldBuilder().addBuilder( - com.google.cloud.tpu.v2.GuestAttributes.getDefaultInstance()); + return getGuestAttributesFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2.GuestAttributes.getDefaultInstance()); } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
* * repeated .google.cloud.tpu.v2.GuestAttributes guest_attributes = 1; */ - public com.google.cloud.tpu.v2.GuestAttributes.Builder addGuestAttributesBuilder( - int index) { - return getGuestAttributesFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v2.GuestAttributes.getDefaultInstance()); + public com.google.cloud.tpu.v2.GuestAttributes.Builder addGuestAttributesBuilder(int index) { + return getGuestAttributesFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2.GuestAttributes.getDefaultInstance()); } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
* * repeated .google.cloud.tpu.v2.GuestAttributes guest_attributes = 1; */ - public java.util.List - getGuestAttributesBuilderList() { + public java.util.List + getGuestAttributesBuilderList() { return getGuestAttributesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.GuestAttributes, com.google.cloud.tpu.v2.GuestAttributes.Builder, com.google.cloud.tpu.v2.GuestAttributesOrBuilder> + com.google.cloud.tpu.v2.GuestAttributes, + com.google.cloud.tpu.v2.GuestAttributes.Builder, + com.google.cloud.tpu.v2.GuestAttributesOrBuilder> getGuestAttributesFieldBuilder() { if (guestAttributesBuilder_ == null) { - guestAttributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.GuestAttributes, com.google.cloud.tpu.v2.GuestAttributes.Builder, com.google.cloud.tpu.v2.GuestAttributesOrBuilder>( + guestAttributesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2.GuestAttributes, + com.google.cloud.tpu.v2.GuestAttributes.Builder, + com.google.cloud.tpu.v2.GuestAttributesOrBuilder>( guestAttributes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -786,9 +867,9 @@ public com.google.cloud.tpu.v2.GuestAttributes.Builder addGuestAttributesBuilder } return guestAttributesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -798,12 +879,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.GetGuestAttributesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.GetGuestAttributesResponse) private static final com.google.cloud.tpu.v2.GetGuestAttributesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.GetGuestAttributesResponse(); } @@ -812,27 +893,27 @@ public static com.google.cloud.tpu.v2.GetGuestAttributesResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGuestAttributesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGuestAttributesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -847,6 +928,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.tpu.v2.GetGuestAttributesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesResponseOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesResponseOrBuilder.java similarity index 63% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesResponseOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesResponseOrBuilder.java index afa7ad329188..97e57f40ae01 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesResponseOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetGuestAttributesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface GetGuestAttributesResponseOrBuilder extends +public interface GetGuestAttributesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.GetGuestAttributesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The guest attributes for the TPU workers.
    * 
* * repeated .google.cloud.tpu.v2.GuestAttributes guest_attributes = 1; */ - java.util.List - getGuestAttributesList(); + java.util.List getGuestAttributesList(); /** + * + * *
    * The guest attributes for the TPU workers.
    * 
@@ -25,6 +44,8 @@ public interface GetGuestAttributesResponseOrBuilder extends */ com.google.cloud.tpu.v2.GuestAttributes getGuestAttributes(int index); /** + * + * *
    * The guest attributes for the TPU workers.
    * 
@@ -33,21 +54,24 @@ public interface GetGuestAttributesResponseOrBuilder extends */ int getGuestAttributesCount(); /** + * + * *
    * The guest attributes for the TPU workers.
    * 
* * repeated .google.cloud.tpu.v2.GuestAttributes guest_attributes = 1; */ - java.util.List + java.util.List getGuestAttributesOrBuilderList(); /** + * + * *
    * The guest attributes for the TPU workers.
    * 
* * repeated .google.cloud.tpu.v2.GuestAttributes guest_attributes = 1; */ - com.google.cloud.tpu.v2.GuestAttributesOrBuilder getGuestAttributesOrBuilder( - int index); + com.google.cloud.tpu.v2.GuestAttributesOrBuilder getGuestAttributesOrBuilder(int index); } diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetNodeRequest.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetNodeRequest.java similarity index 61% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetNodeRequest.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetNodeRequest.java index b6e746766547..8817756db9b6 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetNodeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetNodeRequest.java @@ -1,61 +1,85 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Request for [GetNode][google.cloud.tpu.v2.Tpu.GetNode].
  * 
* * Protobuf type {@code google.cloud.tpu.v2.GetNodeRequest} */ -public final class GetNodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.GetNodeRequest) GetNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetNodeRequest.newBuilder() to construct. private GetNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetNodeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNodeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetNodeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GetNodeRequest.class, com.google.cloud.tpu.v2.GetNodeRequest.Builder.class); + com.google.cloud.tpu.v2.GetNodeRequest.class, + com.google.cloud.tpu.v2.GetNodeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +157,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.GetNodeRequest)) { return super.equals(obj); } com.google.cloud.tpu.v2.GetNodeRequest other = (com.google.cloud.tpu.v2.GetNodeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +183,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.GetNodeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.GetNodeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GetNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.GetNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GetNodeRequest 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.tpu.v2.GetNodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GetNodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.GetNodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GetNodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.GetNodeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GetNodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.GetNodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GetNodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.GetNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [GetNode][google.cloud.tpu.v2.Tpu.GetNode].
    * 
* * Protobuf type {@code google.cloud.tpu.v2.GetNodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.GetNodeRequest) com.google.cloud.tpu.v2.GetNodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetNodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GetNodeRequest.class, com.google.cloud.tpu.v2.GetNodeRequest.Builder.class); + com.google.cloud.tpu.v2.GetNodeRequest.class, + com.google.cloud.tpu.v2.GetNodeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2.GetNodeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetNodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetNodeRequest_descriptor; } @java.lang.Override @@ -312,7 +343,8 @@ public com.google.cloud.tpu.v2.GetNodeRequest build() { @java.lang.Override public com.google.cloud.tpu.v2.GetNodeRequest buildPartial() { - com.google.cloud.tpu.v2.GetNodeRequest result = new com.google.cloud.tpu.v2.GetNodeRequest(this); + com.google.cloud.tpu.v2.GetNodeRequest result = + new com.google.cloud.tpu.v2.GetNodeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +354,39 @@ public com.google.cloud.tpu.v2.GetNodeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.GetNodeRequest) { - return mergeFrom((com.google.cloud.tpu.v2.GetNodeRequest)other); + return mergeFrom((com.google.cloud.tpu.v2.GetNodeRequest) other); } else { super.mergeFrom(other); return this; @@ -392,17 +425,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +450,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -435,20 +474,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -456,61 +498,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +575,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.GetNodeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.GetNodeRequest) private static final com.google.cloud.tpu.v2.GetNodeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.GetNodeRequest(); } @@ -534,27 +589,27 @@ public static com.google.cloud.tpu.v2.GetNodeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +624,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.GetNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetNodeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetNodeRequestOrBuilder.java new file mode 100644 index 000000000000..db08fdb1a071 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetNodeRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +package com.google.cloud.tpu.v2; + +public interface GetNodeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.GetNodeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetRuntimeVersionRequest.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetRuntimeVersionRequest.java similarity index 61% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetRuntimeVersionRequest.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetRuntimeVersionRequest.java index 805545e30ac8..0865bf530fca 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetRuntimeVersionRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetRuntimeVersionRequest.java @@ -1,61 +1,85 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Request for [GetRuntimeVersion][google.cloud.tpu.v2.Tpu.GetRuntimeVersion].
  * 
* * Protobuf type {@code google.cloud.tpu.v2.GetRuntimeVersionRequest} */ -public final class GetRuntimeVersionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetRuntimeVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.GetRuntimeVersionRequest) GetRuntimeVersionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetRuntimeVersionRequest.newBuilder() to construct. private GetRuntimeVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetRuntimeVersionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetRuntimeVersionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetRuntimeVersionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetRuntimeVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetRuntimeVersionRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetRuntimeVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GetRuntimeVersionRequest.class, com.google.cloud.tpu.v2.GetRuntimeVersionRequest.Builder.class); + com.google.cloud.tpu.v2.GetRuntimeVersionRequest.class, + com.google.cloud.tpu.v2.GetRuntimeVersionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.GetRuntimeVersionRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2.GetRuntimeVersionRequest other = (com.google.cloud.tpu.v2.GetRuntimeVersionRequest) obj; + com.google.cloud.tpu.v2.GetRuntimeVersionRequest other = + (com.google.cloud.tpu.v2.GetRuntimeVersionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +184,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.GetRuntimeVersionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.GetRuntimeVersionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GetRuntimeVersionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.GetRuntimeVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GetRuntimeVersionRequest 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.tpu.v2.GetRuntimeVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GetRuntimeVersionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2.GetRuntimeVersionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.GetRuntimeVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GetRuntimeVersionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.GetRuntimeVersionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.GetRuntimeVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GetRuntimeVersionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.GetRuntimeVersionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GetRuntimeVersionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.GetRuntimeVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [GetRuntimeVersion][google.cloud.tpu.v2.Tpu.GetRuntimeVersion].
    * 
* * Protobuf type {@code google.cloud.tpu.v2.GetRuntimeVersionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.GetRuntimeVersionRequest) com.google.cloud.tpu.v2.GetRuntimeVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetRuntimeVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetRuntimeVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetRuntimeVersionRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetRuntimeVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GetRuntimeVersionRequest.class, com.google.cloud.tpu.v2.GetRuntimeVersionRequest.Builder.class); + com.google.cloud.tpu.v2.GetRuntimeVersionRequest.class, + com.google.cloud.tpu.v2.GetRuntimeVersionRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2.GetRuntimeVersionRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GetRuntimeVersionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetRuntimeVersionRequest_descriptor; } @java.lang.Override @@ -312,7 +344,8 @@ public com.google.cloud.tpu.v2.GetRuntimeVersionRequest build() { @java.lang.Override public com.google.cloud.tpu.v2.GetRuntimeVersionRequest buildPartial() { - com.google.cloud.tpu.v2.GetRuntimeVersionRequest result = new com.google.cloud.tpu.v2.GetRuntimeVersionRequest(this); + com.google.cloud.tpu.v2.GetRuntimeVersionRequest result = + new com.google.cloud.tpu.v2.GetRuntimeVersionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +355,39 @@ public com.google.cloud.tpu.v2.GetRuntimeVersionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.GetRuntimeVersionRequest) { - return mergeFrom((com.google.cloud.tpu.v2.GetRuntimeVersionRequest)other); + return mergeFrom((com.google.cloud.tpu.v2.GetRuntimeVersionRequest) other); } else { super.mergeFrom(other); return this; @@ -361,7 +395,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2.GetRuntimeVersionRequest other) { - if (other == com.google.cloud.tpu.v2.GetRuntimeVersionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2.GetRuntimeVersionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -392,17 +427,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +452,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -435,20 +476,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -456,61 +500,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +577,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.GetRuntimeVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.GetRuntimeVersionRequest) private static final com.google.cloud.tpu.v2.GetRuntimeVersionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.GetRuntimeVersionRequest(); } @@ -534,27 +591,27 @@ public static com.google.cloud.tpu.v2.GetRuntimeVersionRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRuntimeVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRuntimeVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +626,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.GetRuntimeVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetRuntimeVersionRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetRuntimeVersionRequestOrBuilder.java new file mode 100644 index 000000000000..644774bdf54f --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetRuntimeVersionRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +package com.google.cloud.tpu.v2; + +public interface GetRuntimeVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.GetRuntimeVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributes.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributes.java similarity index 69% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributes.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributes.java index 05f9ed11afa2..661fe653e2ec 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributes.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributes.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * A guest attributes.
  * 
* * Protobuf type {@code google.cloud.tpu.v2.GuestAttributes} */ -public final class GuestAttributes extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GuestAttributes extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.GuestAttributes) GuestAttributesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GuestAttributes.newBuilder() to construct. private GuestAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GuestAttributes() { queryPath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GuestAttributes(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GuestAttributes_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GuestAttributes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GuestAttributes_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GuestAttributes_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GuestAttributes.class, com.google.cloud.tpu.v2.GuestAttributes.Builder.class); + com.google.cloud.tpu.v2.GuestAttributes.class, + com.google.cloud.tpu.v2.GuestAttributes.Builder.class); } public static final int QUERY_PATH_FIELD_NUMBER = 1; private volatile java.lang.Object queryPath_; /** + * + * *
    * The path to be queried. This can be the default namespace ('/') or a
    * nested namespace ('/\<namespace\>/') or a specified key
@@ -58,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string query_path = 1; + * * @return The queryPath. */ @java.lang.Override @@ -66,14 +88,15 @@ public java.lang.String getQueryPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryPath_ = s; return s; } } /** + * + * *
    * The path to be queried. This can be the default namespace ('/') or a
    * nested namespace ('/\<namespace\>/') or a specified key
@@ -81,16 +104,15 @@ public java.lang.String getQueryPath() {
    * 
* * string query_path = 1; + * * @return The bytes for queryPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryPathBytes() { + public com.google.protobuf.ByteString getQueryPathBytes() { java.lang.Object ref = queryPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queryPath_ = b; return b; } else { @@ -101,11 +123,14 @@ public java.lang.String getQueryPath() { public static final int QUERY_VALUE_FIELD_NUMBER = 2; private com.google.cloud.tpu.v2.GuestAttributesValue queryValue_; /** + * + * *
    * The value of the requested queried path.
    * 
* * .google.cloud.tpu.v2.GuestAttributesValue query_value = 2; + * * @return Whether the queryValue field is set. */ @java.lang.Override @@ -113,18 +138,25 @@ public boolean hasQueryValue() { return queryValue_ != null; } /** + * + * *
    * The value of the requested queried path.
    * 
* * .google.cloud.tpu.v2.GuestAttributesValue query_value = 2; + * * @return The queryValue. */ @java.lang.Override public com.google.cloud.tpu.v2.GuestAttributesValue getQueryValue() { - return queryValue_ == null ? com.google.cloud.tpu.v2.GuestAttributesValue.getDefaultInstance() : queryValue_; + return queryValue_ == null + ? com.google.cloud.tpu.v2.GuestAttributesValue.getDefaultInstance() + : queryValue_; } /** + * + * *
    * The value of the requested queried path.
    * 
@@ -137,6 +169,7 @@ public com.google.cloud.tpu.v2.GuestAttributesValueOrBuilder getQueryValueOrBuil } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryPath_); } @@ -169,8 +201,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queryPath_); } if (queryValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getQueryValue()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQueryValue()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -180,19 +211,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.GuestAttributes)) { return super.equals(obj); } com.google.cloud.tpu.v2.GuestAttributes other = (com.google.cloud.tpu.v2.GuestAttributes) obj; - if (!getQueryPath() - .equals(other.getQueryPath())) return false; + if (!getQueryPath().equals(other.getQueryPath())) return false; if (hasQueryValue() != other.hasQueryValue()) return false; if (hasQueryValue()) { - if (!getQueryValue() - .equals(other.getQueryValue())) return false; + if (!getQueryValue().equals(other.getQueryValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -216,130 +245,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.GuestAttributes parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.GuestAttributes parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GuestAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.GuestAttributes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GuestAttributes 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.tpu.v2.GuestAttributes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GuestAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.GuestAttributes parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GuestAttributes parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.GuestAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.GuestAttributes parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GuestAttributes parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.GuestAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GuestAttributes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.GuestAttributes prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A guest attributes.
    * 
* * Protobuf type {@code google.cloud.tpu.v2.GuestAttributes} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.GuestAttributes) com.google.cloud.tpu.v2.GuestAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GuestAttributes_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GuestAttributes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GuestAttributes_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GuestAttributes_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GuestAttributes.class, com.google.cloud.tpu.v2.GuestAttributes.Builder.class); + com.google.cloud.tpu.v2.GuestAttributes.class, + com.google.cloud.tpu.v2.GuestAttributes.Builder.class); } // Construct using com.google.cloud.tpu.v2.GuestAttributes.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +390,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GuestAttributes_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GuestAttributes_descriptor; } @java.lang.Override @@ -376,7 +411,8 @@ public com.google.cloud.tpu.v2.GuestAttributes build() { @java.lang.Override public com.google.cloud.tpu.v2.GuestAttributes buildPartial() { - com.google.cloud.tpu.v2.GuestAttributes result = new com.google.cloud.tpu.v2.GuestAttributes(this); + com.google.cloud.tpu.v2.GuestAttributes result = + new com.google.cloud.tpu.v2.GuestAttributes(this); result.queryPath_ = queryPath_; if (queryValueBuilder_ == null) { result.queryValue_ = queryValue_; @@ -391,38 +427,39 @@ public com.google.cloud.tpu.v2.GuestAttributes buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.GuestAttributes) { - return mergeFrom((com.google.cloud.tpu.v2.GuestAttributes)other); + return mergeFrom((com.google.cloud.tpu.v2.GuestAttributes) other); } else { super.mergeFrom(other); return this; @@ -464,24 +501,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - queryPath_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getQueryValueFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + queryPath_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getQueryValueFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,6 +532,8 @@ public Builder mergeFrom( private java.lang.Object queryPath_ = ""; /** + * + * *
      * The path to be queried. This can be the default namespace ('/') or a
      * nested namespace ('/\<namespace\>/') or a specified key
@@ -501,13 +541,13 @@ public Builder mergeFrom(
      * 
* * string query_path = 1; + * * @return The queryPath. */ public java.lang.String getQueryPath() { java.lang.Object ref = queryPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryPath_ = s; return s; @@ -516,6 +556,8 @@ public java.lang.String getQueryPath() { } } /** + * + * *
      * The path to be queried. This can be the default namespace ('/') or a
      * nested namespace ('/\<namespace\>/') or a specified key
@@ -523,15 +565,14 @@ public java.lang.String getQueryPath() {
      * 
* * string query_path = 1; + * * @return The bytes for queryPath. */ - public com.google.protobuf.ByteString - getQueryPathBytes() { + public com.google.protobuf.ByteString getQueryPathBytes() { java.lang.Object ref = queryPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queryPath_ = b; return b; } else { @@ -539,6 +580,8 @@ public java.lang.String getQueryPath() { } } /** + * + * *
      * The path to be queried. This can be the default namespace ('/') or a
      * nested namespace ('/\<namespace\>/') or a specified key
@@ -546,20 +589,22 @@ public java.lang.String getQueryPath() {
      * 
* * string query_path = 1; + * * @param value The queryPath to set. * @return This builder for chaining. */ - public Builder setQueryPath( - java.lang.String value) { + public Builder setQueryPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + queryPath_ = value; onChanged(); return this; } /** + * + * *
      * The path to be queried. This can be the default namespace ('/') or a
      * nested namespace ('/\<namespace\>/') or a specified key
@@ -567,15 +612,18 @@ public Builder setQueryPath(
      * 
* * string query_path = 1; + * * @return This builder for chaining. */ public Builder clearQueryPath() { - + queryPath_ = getDefaultInstance().getQueryPath(); onChanged(); return this; } /** + * + * *
      * The path to be queried. This can be the default namespace ('/') or a
      * nested namespace ('/\<namespace\>/') or a specified key
@@ -583,16 +631,16 @@ public Builder clearQueryPath() {
      * 
* * string query_path = 1; + * * @param value The bytes for queryPath to set. * @return This builder for chaining. */ - public Builder setQueryPathBytes( - com.google.protobuf.ByteString value) { + public Builder setQueryPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryPath_ = value; onChanged(); return this; @@ -600,34 +648,47 @@ public Builder setQueryPathBytes( private com.google.cloud.tpu.v2.GuestAttributesValue queryValue_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.GuestAttributesValue, com.google.cloud.tpu.v2.GuestAttributesValue.Builder, com.google.cloud.tpu.v2.GuestAttributesValueOrBuilder> queryValueBuilder_; + com.google.cloud.tpu.v2.GuestAttributesValue, + com.google.cloud.tpu.v2.GuestAttributesValue.Builder, + com.google.cloud.tpu.v2.GuestAttributesValueOrBuilder> + queryValueBuilder_; /** + * + * *
      * The value of the requested queried path.
      * 
* * .google.cloud.tpu.v2.GuestAttributesValue query_value = 2; + * * @return Whether the queryValue field is set. */ public boolean hasQueryValue() { return queryValueBuilder_ != null || queryValue_ != null; } /** + * + * *
      * The value of the requested queried path.
      * 
* * .google.cloud.tpu.v2.GuestAttributesValue query_value = 2; + * * @return The queryValue. */ public com.google.cloud.tpu.v2.GuestAttributesValue getQueryValue() { if (queryValueBuilder_ == null) { - return queryValue_ == null ? com.google.cloud.tpu.v2.GuestAttributesValue.getDefaultInstance() : queryValue_; + return queryValue_ == null + ? com.google.cloud.tpu.v2.GuestAttributesValue.getDefaultInstance() + : queryValue_; } else { return queryValueBuilder_.getMessage(); } } /** + * + * *
      * The value of the requested queried path.
      * 
@@ -648,6 +709,8 @@ public Builder setQueryValue(com.google.cloud.tpu.v2.GuestAttributesValue value) return this; } /** + * + * *
      * The value of the requested queried path.
      * 
@@ -666,6 +729,8 @@ public Builder setQueryValue( return this; } /** + * + * *
      * The value of the requested queried path.
      * 
@@ -676,7 +741,9 @@ public Builder mergeQueryValue(com.google.cloud.tpu.v2.GuestAttributesValue valu if (queryValueBuilder_ == null) { if (queryValue_ != null) { queryValue_ = - com.google.cloud.tpu.v2.GuestAttributesValue.newBuilder(queryValue_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v2.GuestAttributesValue.newBuilder(queryValue_) + .mergeFrom(value) + .buildPartial(); } else { queryValue_ = value; } @@ -688,6 +755,8 @@ public Builder mergeQueryValue(com.google.cloud.tpu.v2.GuestAttributesValue valu return this; } /** + * + * *
      * The value of the requested queried path.
      * 
@@ -706,6 +775,8 @@ public Builder clearQueryValue() { return this; } /** + * + * *
      * The value of the requested queried path.
      * 
@@ -713,11 +784,13 @@ public Builder clearQueryValue() { * .google.cloud.tpu.v2.GuestAttributesValue query_value = 2; */ public com.google.cloud.tpu.v2.GuestAttributesValue.Builder getQueryValueBuilder() { - + onChanged(); return getQueryValueFieldBuilder().getBuilder(); } /** + * + * *
      * The value of the requested queried path.
      * 
@@ -728,11 +801,14 @@ public com.google.cloud.tpu.v2.GuestAttributesValueOrBuilder getQueryValueOrBuil if (queryValueBuilder_ != null) { return queryValueBuilder_.getMessageOrBuilder(); } else { - return queryValue_ == null ? - com.google.cloud.tpu.v2.GuestAttributesValue.getDefaultInstance() : queryValue_; + return queryValue_ == null + ? com.google.cloud.tpu.v2.GuestAttributesValue.getDefaultInstance() + : queryValue_; } } /** + * + * *
      * The value of the requested queried path.
      * 
@@ -740,21 +816,24 @@ public com.google.cloud.tpu.v2.GuestAttributesValueOrBuilder getQueryValueOrBuil * .google.cloud.tpu.v2.GuestAttributesValue query_value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.GuestAttributesValue, com.google.cloud.tpu.v2.GuestAttributesValue.Builder, com.google.cloud.tpu.v2.GuestAttributesValueOrBuilder> + com.google.cloud.tpu.v2.GuestAttributesValue, + com.google.cloud.tpu.v2.GuestAttributesValue.Builder, + com.google.cloud.tpu.v2.GuestAttributesValueOrBuilder> getQueryValueFieldBuilder() { if (queryValueBuilder_ == null) { - queryValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.GuestAttributesValue, com.google.cloud.tpu.v2.GuestAttributesValue.Builder, com.google.cloud.tpu.v2.GuestAttributesValueOrBuilder>( - getQueryValue(), - getParentForChildren(), - isClean()); + queryValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.GuestAttributesValue, + com.google.cloud.tpu.v2.GuestAttributesValue.Builder, + com.google.cloud.tpu.v2.GuestAttributesValueOrBuilder>( + getQueryValue(), getParentForChildren(), isClean()); queryValue_ = null; } return queryValueBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -764,12 +843,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.GuestAttributes) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.GuestAttributes) private static final com.google.cloud.tpu.v2.GuestAttributes DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.GuestAttributes(); } @@ -778,27 +857,27 @@ public static com.google.cloud.tpu.v2.GuestAttributes getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GuestAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GuestAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -813,6 +892,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.GuestAttributes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesEntry.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesEntry.java similarity index 67% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesEntry.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesEntry.java index d00e6eb7eb3e..b3b257e8d071 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesEntry.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesEntry.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * A guest attributes namespace/key/value entry.
  * 
* * Protobuf type {@code google.cloud.tpu.v2.GuestAttributesEntry} */ -public final class GuestAttributesEntry extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GuestAttributesEntry extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.GuestAttributesEntry) GuestAttributesEntryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GuestAttributesEntry.newBuilder() to construct. private GuestAttributesEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GuestAttributesEntry() { namespace_ = ""; key_ = ""; @@ -27,37 +45,41 @@ private GuestAttributesEntry() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GuestAttributesEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GuestAttributesEntry_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GuestAttributesEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GuestAttributesEntry_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GuestAttributesEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GuestAttributesEntry.class, com.google.cloud.tpu.v2.GuestAttributesEntry.Builder.class); + com.google.cloud.tpu.v2.GuestAttributesEntry.class, + com.google.cloud.tpu.v2.GuestAttributesEntry.Builder.class); } public static final int NAMESPACE_FIELD_NUMBER = 1; private volatile java.lang.Object namespace_; /** + * + * *
    * Namespace for the guest attribute entry.
    * 
* * string namespace = 1; + * * @return The namespace. */ @java.lang.Override @@ -66,29 +88,29 @@ public java.lang.String getNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } } /** + * + * *
    * Namespace for the guest attribute entry.
    * 
* * string namespace = 1; + * * @return The bytes for namespace. */ @java.lang.Override - public com.google.protobuf.ByteString - getNamespaceBytes() { + public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { @@ -99,11 +121,14 @@ public java.lang.String getNamespace() { public static final int KEY_FIELD_NUMBER = 2; private volatile java.lang.Object key_; /** + * + * *
    * Key for the guest attribute entry.
    * 
* * string key = 2; + * * @return The key. */ @java.lang.Override @@ -112,29 +137,29 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** + * + * *
    * Key for the guest attribute entry.
    * 
* * string key = 2; + * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -145,11 +170,14 @@ public java.lang.String getKey() { public static final int VALUE_FIELD_NUMBER = 3; private volatile java.lang.Object value_; /** + * + * *
    * Value for the guest attribute entry.
    * 
* * string value = 3; + * * @return The value. */ @java.lang.Override @@ -158,29 +186,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
    * Value for the guest attribute entry.
    * 
* * string value = 3; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -189,6 +217,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +229,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); } @@ -237,19 +265,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.GuestAttributesEntry)) { return super.equals(obj); } - com.google.cloud.tpu.v2.GuestAttributesEntry other = (com.google.cloud.tpu.v2.GuestAttributesEntry) obj; + com.google.cloud.tpu.v2.GuestAttributesEntry other = + (com.google.cloud.tpu.v2.GuestAttributesEntry) obj; - if (!getNamespace() - .equals(other.getNamespace())) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; + if (!getNamespace().equals(other.getNamespace())) return false; + if (!getKey().equals(other.getKey())) return false; + if (!getValue().equals(other.getValue())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -272,130 +298,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.GuestAttributesEntry parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.GuestAttributesEntry parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GuestAttributesEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.GuestAttributesEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GuestAttributesEntry 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.tpu.v2.GuestAttributesEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GuestAttributesEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.GuestAttributesEntry parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GuestAttributesEntry parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.GuestAttributesEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.GuestAttributesEntry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GuestAttributesEntry parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.GuestAttributesEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GuestAttributesEntry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.GuestAttributesEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A guest attributes namespace/key/value entry.
    * 
* * Protobuf type {@code google.cloud.tpu.v2.GuestAttributesEntry} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.GuestAttributesEntry) com.google.cloud.tpu.v2.GuestAttributesEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GuestAttributesEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GuestAttributesEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GuestAttributesEntry_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GuestAttributesEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GuestAttributesEntry.class, com.google.cloud.tpu.v2.GuestAttributesEntry.Builder.class); + com.google.cloud.tpu.v2.GuestAttributesEntry.class, + com.google.cloud.tpu.v2.GuestAttributesEntry.Builder.class); } // Construct using com.google.cloud.tpu.v2.GuestAttributesEntry.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +441,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GuestAttributesEntry_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GuestAttributesEntry_descriptor; } @java.lang.Override @@ -430,7 +462,8 @@ public com.google.cloud.tpu.v2.GuestAttributesEntry build() { @java.lang.Override public com.google.cloud.tpu.v2.GuestAttributesEntry buildPartial() { - com.google.cloud.tpu.v2.GuestAttributesEntry result = new com.google.cloud.tpu.v2.GuestAttributesEntry(this); + com.google.cloud.tpu.v2.GuestAttributesEntry result = + new com.google.cloud.tpu.v2.GuestAttributesEntry(this); result.namespace_ = namespace_; result.key_ = key_; result.value_ = value_; @@ -442,38 +475,39 @@ public com.google.cloud.tpu.v2.GuestAttributesEntry buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.GuestAttributesEntry) { - return mergeFrom((com.google.cloud.tpu.v2.GuestAttributesEntry)other); + return mergeFrom((com.google.cloud.tpu.v2.GuestAttributesEntry) other); } else { super.mergeFrom(other); return this; @@ -520,27 +554,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - namespace_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - key_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - value_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + namespace_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + key_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + value_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -553,18 +591,20 @@ public Builder mergeFrom( private java.lang.Object namespace_ = ""; /** + * + * *
      * Namespace for the guest attribute entry.
      * 
* * string namespace = 1; + * * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; @@ -573,20 +613,21 @@ public java.lang.String getNamespace() { } } /** + * + * *
      * Namespace for the guest attribute entry.
      * 
* * string namespace = 1; + * * @return The bytes for namespace. */ - public com.google.protobuf.ByteString - getNamespaceBytes() { + public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { @@ -594,54 +635,61 @@ public java.lang.String getNamespace() { } } /** + * + * *
      * Namespace for the guest attribute entry.
      * 
* * string namespace = 1; + * * @param value The namespace to set. * @return This builder for chaining. */ - public Builder setNamespace( - java.lang.String value) { + public Builder setNamespace(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + namespace_ = value; onChanged(); return this; } /** + * + * *
      * Namespace for the guest attribute entry.
      * 
* * string namespace = 1; + * * @return This builder for chaining. */ public Builder clearNamespace() { - + namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** + * + * *
      * Namespace for the guest attribute entry.
      * 
* * string namespace = 1; + * * @param value The bytes for namespace to set. * @return This builder for chaining. */ - public Builder setNamespaceBytes( - com.google.protobuf.ByteString value) { + public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namespace_ = value; onChanged(); return this; @@ -649,18 +697,20 @@ public Builder setNamespaceBytes( private java.lang.Object key_ = ""; /** + * + * *
      * Key for the guest attribute entry.
      * 
* * string key = 2; + * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -669,20 +719,21 @@ public java.lang.String getKey() { } } /** + * + * *
      * Key for the guest attribute entry.
      * 
* * string key = 2; + * * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -690,54 +741,61 @@ public java.lang.String getKey() { } } /** + * + * *
      * Key for the guest attribute entry.
      * 
* * string key = 2; + * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey( - java.lang.String value) { + public Builder setKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** + * + * *
      * Key for the guest attribute entry.
      * 
* * string key = 2; + * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** + * + * *
      * Key for the guest attribute entry.
      * 
* * string key = 2; + * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; @@ -745,18 +803,20 @@ public Builder setKeyBytes( private java.lang.Object value_ = ""; /** + * + * *
      * Value for the guest attribute entry.
      * 
* * string value = 3; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -765,20 +825,21 @@ public java.lang.String getValue() { } } /** + * + * *
      * Value for the guest attribute entry.
      * 
* * string value = 3; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -786,61 +847,68 @@ public java.lang.String getValue() { } } /** + * + * *
      * Value for the guest attribute entry.
      * 
* * string value = 3; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
      * Value for the guest attribute entry.
      * 
* * string value = 3; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
      * Value for the guest attribute entry.
      * 
* * string value = 3; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -850,12 +918,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.GuestAttributesEntry) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.GuestAttributesEntry) private static final com.google.cloud.tpu.v2.GuestAttributesEntry DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.GuestAttributesEntry(); } @@ -864,27 +932,27 @@ public static com.google.cloud.tpu.v2.GuestAttributesEntry getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GuestAttributesEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GuestAttributesEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -899,6 +967,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.GuestAttributesEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesEntryOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesEntryOrBuilder.java similarity index 58% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesEntryOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesEntryOrBuilder.java index bb3037857cb7..3e862f99218c 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesEntryOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesEntryOrBuilder.java @@ -1,69 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface GuestAttributesEntryOrBuilder extends +public interface GuestAttributesEntryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.GuestAttributesEntry) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Namespace for the guest attribute entry.
    * 
* * string namespace = 1; + * * @return The namespace. */ java.lang.String getNamespace(); /** + * + * *
    * Namespace for the guest attribute entry.
    * 
* * string namespace = 1; + * * @return The bytes for namespace. */ - com.google.protobuf.ByteString - getNamespaceBytes(); + com.google.protobuf.ByteString getNamespaceBytes(); /** + * + * *
    * Key for the guest attribute entry.
    * 
* * string key = 2; + * * @return The key. */ java.lang.String getKey(); /** + * + * *
    * Key for the guest attribute entry.
    * 
* * string key = 2; + * * @return The bytes for key. */ - com.google.protobuf.ByteString - getKeyBytes(); + com.google.protobuf.ByteString getKeyBytes(); /** + * + * *
    * Value for the guest attribute entry.
    * 
* * string value = 3; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
    * Value for the guest attribute entry.
    * 
* * string value = 3; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); } diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesOrBuilder.java similarity index 68% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesOrBuilder.java index fab75582bff6..800a4bcd0147 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface GuestAttributesOrBuilder extends +public interface GuestAttributesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.GuestAttributes) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The path to be queried. This can be the default namespace ('/') or a
    * nested namespace ('/\<namespace\>/') or a specified key
@@ -15,10 +33,13 @@ public interface GuestAttributesOrBuilder extends
    * 
* * string query_path = 1; + * * @return The queryPath. */ java.lang.String getQueryPath(); /** + * + * *
    * The path to be queried. This can be the default namespace ('/') or a
    * nested namespace ('/\<namespace\>/') or a specified key
@@ -26,30 +47,38 @@ public interface GuestAttributesOrBuilder extends
    * 
* * string query_path = 1; + * * @return The bytes for queryPath. */ - com.google.protobuf.ByteString - getQueryPathBytes(); + com.google.protobuf.ByteString getQueryPathBytes(); /** + * + * *
    * The value of the requested queried path.
    * 
* * .google.cloud.tpu.v2.GuestAttributesValue query_value = 2; + * * @return Whether the queryValue field is set. */ boolean hasQueryValue(); /** + * + * *
    * The value of the requested queried path.
    * 
* * .google.cloud.tpu.v2.GuestAttributesValue query_value = 2; + * * @return The queryValue. */ com.google.cloud.tpu.v2.GuestAttributesValue getQueryValue(); /** + * + * *
    * The value of the requested queried path.
    * 
diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesValue.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesValue.java similarity index 70% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesValue.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesValue.java index 985aa2058120..7d67cf28d68e 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesValue.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesValue.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Array of guest attribute namespace/key/value tuples.
  * 
* * Protobuf type {@code google.cloud.tpu.v2.GuestAttributesValue} */ -public final class GuestAttributesValue extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GuestAttributesValue extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.GuestAttributesValue) GuestAttributesValueOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GuestAttributesValue.newBuilder() to construct. private GuestAttributesValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GuestAttributesValue() { items_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GuestAttributesValue(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GuestAttributesValue_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GuestAttributesValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GuestAttributesValue_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GuestAttributesValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GuestAttributesValue.class, com.google.cloud.tpu.v2.GuestAttributesValue.Builder.class); + com.google.cloud.tpu.v2.GuestAttributesValue.class, + com.google.cloud.tpu.v2.GuestAttributesValue.Builder.class); } public static final int ITEMS_FIELD_NUMBER = 1; private java.util.List items_; /** + * + * *
    * The list of guest attributes entries.
    * 
@@ -62,6 +83,8 @@ public java.util.List getItemsList return items_; } /** + * + * *
    * The list of guest attributes entries.
    * 
@@ -69,11 +92,13 @@ public java.util.List getItemsList * repeated .google.cloud.tpu.v2.GuestAttributesEntry items = 1; */ @java.lang.Override - public java.util.List + public java.util.List getItemsOrBuilderList() { return items_; } /** + * + * *
    * The list of guest attributes entries.
    * 
@@ -85,6 +110,8 @@ public int getItemsCount() { return items_.size(); } /** + * + * *
    * The list of guest attributes entries.
    * 
@@ -96,6 +123,8 @@ public com.google.cloud.tpu.v2.GuestAttributesEntry getItems(int index) { return items_.get(index); } /** + * + * *
    * The list of guest attributes entries.
    * 
@@ -103,12 +132,12 @@ public com.google.cloud.tpu.v2.GuestAttributesEntry getItems(int index) { * repeated .google.cloud.tpu.v2.GuestAttributesEntry items = 1; */ @java.lang.Override - public com.google.cloud.tpu.v2.GuestAttributesEntryOrBuilder getItemsOrBuilder( - int index) { + public com.google.cloud.tpu.v2.GuestAttributesEntryOrBuilder getItemsOrBuilder(int index) { return items_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +149,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < items_.size(); i++) { output.writeMessage(1, items_.get(i)); } @@ -135,8 +163,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, items_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, items_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -146,15 +173,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.GuestAttributesValue)) { return super.equals(obj); } - com.google.cloud.tpu.v2.GuestAttributesValue other = (com.google.cloud.tpu.v2.GuestAttributesValue) obj; + com.google.cloud.tpu.v2.GuestAttributesValue other = + (com.google.cloud.tpu.v2.GuestAttributesValue) obj; - if (!getItemsList() - .equals(other.getItemsList())) return false; + if (!getItemsList().equals(other.getItemsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -175,130 +202,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.GuestAttributesValue parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.GuestAttributesValue parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GuestAttributesValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.GuestAttributesValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GuestAttributesValue 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.tpu.v2.GuestAttributesValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.GuestAttributesValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.GuestAttributesValue parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GuestAttributesValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.GuestAttributesValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.GuestAttributesValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GuestAttributesValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.GuestAttributesValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.GuestAttributesValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.GuestAttributesValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Array of guest attribute namespace/key/value tuples.
    * 
* * Protobuf type {@code google.cloud.tpu.v2.GuestAttributesValue} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.GuestAttributesValue) com.google.cloud.tpu.v2.GuestAttributesValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GuestAttributesValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GuestAttributesValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GuestAttributesValue_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GuestAttributesValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.GuestAttributesValue.class, com.google.cloud.tpu.v2.GuestAttributesValue.Builder.class); + com.google.cloud.tpu.v2.GuestAttributesValue.class, + com.google.cloud.tpu.v2.GuestAttributesValue.Builder.class); } // Construct using com.google.cloud.tpu.v2.GuestAttributesValue.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -313,9 +346,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_GuestAttributesValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GuestAttributesValue_descriptor; } @java.lang.Override @@ -334,7 +367,8 @@ public com.google.cloud.tpu.v2.GuestAttributesValue build() { @java.lang.Override public com.google.cloud.tpu.v2.GuestAttributesValue buildPartial() { - com.google.cloud.tpu.v2.GuestAttributesValue result = new com.google.cloud.tpu.v2.GuestAttributesValue(this); + com.google.cloud.tpu.v2.GuestAttributesValue result = + new com.google.cloud.tpu.v2.GuestAttributesValue(this); int from_bitField0_ = bitField0_; if (itemsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -353,38 +387,39 @@ public com.google.cloud.tpu.v2.GuestAttributesValue buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.GuestAttributesValue) { - return mergeFrom((com.google.cloud.tpu.v2.GuestAttributesValue)other); + return mergeFrom((com.google.cloud.tpu.v2.GuestAttributesValue) other); } else { super.mergeFrom(other); return this; @@ -411,9 +446,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.GuestAttributesValue other) { itemsBuilder_ = null; items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000001); - itemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemsFieldBuilder() : null; + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getItemsFieldBuilder() + : null; } else { itemsBuilder_.addAllMessages(other.items_); } @@ -445,25 +481,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.tpu.v2.GuestAttributesEntry m = - input.readMessage( - com.google.cloud.tpu.v2.GuestAttributesEntry.parser(), - extensionRegistry); - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(m); - } else { - itemsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.tpu.v2.GuestAttributesEntry m = + input.readMessage( + com.google.cloud.tpu.v2.GuestAttributesEntry.parser(), extensionRegistry); + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(m); + } else { + itemsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -473,21 +510,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List items_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.GuestAttributesEntry, com.google.cloud.tpu.v2.GuestAttributesEntry.Builder, com.google.cloud.tpu.v2.GuestAttributesEntryOrBuilder> itemsBuilder_; + com.google.cloud.tpu.v2.GuestAttributesEntry, + com.google.cloud.tpu.v2.GuestAttributesEntry.Builder, + com.google.cloud.tpu.v2.GuestAttributesEntryOrBuilder> + itemsBuilder_; /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -502,6 +546,8 @@ public java.util.List getItemsList } } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -516,6 +562,8 @@ public int getItemsCount() { } } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -530,14 +578,15 @@ public com.google.cloud.tpu.v2.GuestAttributesEntry getItems(int index) { } } /** + * + * *
      * The list of guest attributes entries.
      * 
* * repeated .google.cloud.tpu.v2.GuestAttributesEntry items = 1; */ - public Builder setItems( - int index, com.google.cloud.tpu.v2.GuestAttributesEntry value) { + public Builder setItems(int index, com.google.cloud.tpu.v2.GuestAttributesEntry value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -551,6 +600,8 @@ public Builder setItems( return this; } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -569,6 +620,8 @@ public Builder setItems( return this; } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -589,14 +642,15 @@ public Builder addItems(com.google.cloud.tpu.v2.GuestAttributesEntry value) { return this; } /** + * + * *
      * The list of guest attributes entries.
      * 
* * repeated .google.cloud.tpu.v2.GuestAttributesEntry items = 1; */ - public Builder addItems( - int index, com.google.cloud.tpu.v2.GuestAttributesEntry value) { + public Builder addItems(int index, com.google.cloud.tpu.v2.GuestAttributesEntry value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -610,14 +664,15 @@ public Builder addItems( return this; } /** + * + * *
      * The list of guest attributes entries.
      * 
* * repeated .google.cloud.tpu.v2.GuestAttributesEntry items = 1; */ - public Builder addItems( - com.google.cloud.tpu.v2.GuestAttributesEntry.Builder builderForValue) { + public Builder addItems(com.google.cloud.tpu.v2.GuestAttributesEntry.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); @@ -628,6 +683,8 @@ public Builder addItems( return this; } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -646,6 +703,8 @@ public Builder addItems( return this; } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -656,8 +715,7 @@ public Builder addAllItems( java.lang.Iterable values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, items_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); @@ -665,6 +723,8 @@ public Builder addAllItems( return this; } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -682,6 +742,8 @@ public Builder clearItems() { return this; } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -699,39 +761,44 @@ public Builder removeItems(int index) { return this; } /** + * + * *
      * The list of guest attributes entries.
      * 
* * repeated .google.cloud.tpu.v2.GuestAttributesEntry items = 1; */ - public com.google.cloud.tpu.v2.GuestAttributesEntry.Builder getItemsBuilder( - int index) { + public com.google.cloud.tpu.v2.GuestAttributesEntry.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of guest attributes entries.
      * 
* * repeated .google.cloud.tpu.v2.GuestAttributesEntry items = 1; */ - public com.google.cloud.tpu.v2.GuestAttributesEntryOrBuilder getItemsOrBuilder( - int index) { + public com.google.cloud.tpu.v2.GuestAttributesEntryOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { - return items_.get(index); } else { + return items_.get(index); + } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of guest attributes entries.
      * 
* * repeated .google.cloud.tpu.v2.GuestAttributesEntry items = 1; */ - public java.util.List - getItemsOrBuilderList() { + public java.util.List + getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { @@ -739,6 +806,8 @@ public com.google.cloud.tpu.v2.GuestAttributesEntryOrBuilder getItemsOrBuilder( } } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -746,49 +815,55 @@ public com.google.cloud.tpu.v2.GuestAttributesEntryOrBuilder getItemsOrBuilder( * repeated .google.cloud.tpu.v2.GuestAttributesEntry items = 1; */ public com.google.cloud.tpu.v2.GuestAttributesEntry.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - com.google.cloud.tpu.v2.GuestAttributesEntry.getDefaultInstance()); + return getItemsFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2.GuestAttributesEntry.getDefaultInstance()); } /** + * + * *
      * The list of guest attributes entries.
      * 
* * repeated .google.cloud.tpu.v2.GuestAttributesEntry items = 1; */ - public com.google.cloud.tpu.v2.GuestAttributesEntry.Builder addItemsBuilder( - int index) { - return getItemsFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v2.GuestAttributesEntry.getDefaultInstance()); + public com.google.cloud.tpu.v2.GuestAttributesEntry.Builder addItemsBuilder(int index) { + return getItemsFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2.GuestAttributesEntry.getDefaultInstance()); } /** + * + * *
      * The list of guest attributes entries.
      * 
* * repeated .google.cloud.tpu.v2.GuestAttributesEntry items = 1; */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.GuestAttributesEntry, com.google.cloud.tpu.v2.GuestAttributesEntry.Builder, com.google.cloud.tpu.v2.GuestAttributesEntryOrBuilder> + com.google.cloud.tpu.v2.GuestAttributesEntry, + com.google.cloud.tpu.v2.GuestAttributesEntry.Builder, + com.google.cloud.tpu.v2.GuestAttributesEntryOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.GuestAttributesEntry, com.google.cloud.tpu.v2.GuestAttributesEntry.Builder, com.google.cloud.tpu.v2.GuestAttributesEntryOrBuilder>( - items_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + itemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2.GuestAttributesEntry, + com.google.cloud.tpu.v2.GuestAttributesEntry.Builder, + com.google.cloud.tpu.v2.GuestAttributesEntryOrBuilder>( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -798,12 +873,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.GuestAttributesValue) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.GuestAttributesValue) private static final com.google.cloud.tpu.v2.GuestAttributesValue DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.GuestAttributesValue(); } @@ -812,27 +887,27 @@ public static com.google.cloud.tpu.v2.GuestAttributesValue getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GuestAttributesValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GuestAttributesValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -847,6 +922,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.GuestAttributesValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesValueOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesValueOrBuilder.java similarity index 62% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesValueOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesValueOrBuilder.java index cae80b862b1d..fb75e87660b2 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesValueOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GuestAttributesValueOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface GuestAttributesValueOrBuilder extends +public interface GuestAttributesValueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.GuestAttributesValue) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of guest attributes entries.
    * 
* * repeated .google.cloud.tpu.v2.GuestAttributesEntry items = 1; */ - java.util.List - getItemsList(); + java.util.List getItemsList(); /** + * + * *
    * The list of guest attributes entries.
    * 
@@ -25,6 +44,8 @@ public interface GuestAttributesValueOrBuilder extends */ com.google.cloud.tpu.v2.GuestAttributesEntry getItems(int index); /** + * + * *
    * The list of guest attributes entries.
    * 
@@ -33,21 +54,24 @@ public interface GuestAttributesValueOrBuilder extends */ int getItemsCount(); /** + * + * *
    * The list of guest attributes entries.
    * 
* * repeated .google.cloud.tpu.v2.GuestAttributesEntry items = 1; */ - java.util.List + java.util.List getItemsOrBuilderList(); /** + * + * *
    * The list of guest attributes entries.
    * 
* * repeated .google.cloud.tpu.v2.GuestAttributesEntry items = 1; */ - com.google.cloud.tpu.v2.GuestAttributesEntryOrBuilder getItemsOrBuilder( - int index); + com.google.cloud.tpu.v2.GuestAttributesEntryOrBuilder getItemsOrBuilder(int index); } diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesRequest.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesRequest.java similarity index 67% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesRequest.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesRequest.java index 74c4a0b10262..7b3165b2cccb 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesRequest.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Request for [ListAcceleratorTypes][google.cloud.tpu.v2.Tpu.ListAcceleratorTypes].
  * 
* * Protobuf type {@code google.cloud.tpu.v2.ListAcceleratorTypesRequest} */ -public final class ListAcceleratorTypesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAcceleratorTypesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.ListAcceleratorTypesRequest) ListAcceleratorTypesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAcceleratorTypesRequest.newBuilder() to construct. private ListAcceleratorTypesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAcceleratorTypesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,37 +46,43 @@ private ListAcceleratorTypesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAcceleratorTypesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListAcceleratorTypesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListAcceleratorTypesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListAcceleratorTypesRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListAcceleratorTypesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.ListAcceleratorTypesRequest.class, com.google.cloud.tpu.v2.ListAcceleratorTypesRequest.Builder.class); + com.google.cloud.tpu.v2.ListAcceleratorTypesRequest.class, + com.google.cloud.tpu.v2.ListAcceleratorTypesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,29 +91,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -100,11 +126,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -115,11 +144,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -128,29 +160,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -161,11 +193,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ @java.lang.Override @@ -174,29 +209,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -207,11 +242,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 6; private volatile java.lang.Object orderBy_; /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The orderBy. */ @java.lang.Override @@ -220,29 +258,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -251,6 +289,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,8 +301,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -292,8 +330,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -312,23 +349,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.ListAcceleratorTypesRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2.ListAcceleratorTypesRequest other = (com.google.cloud.tpu.v2.ListAcceleratorTypesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.tpu.v2.ListAcceleratorTypesRequest other = + (com.google.cloud.tpu.v2.ListAcceleratorTypesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -356,129 +389,135 @@ public int hashCode() { } public static com.google.cloud.tpu.v2.ListAcceleratorTypesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ListAcceleratorTypesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.ListAcceleratorTypesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ListAcceleratorTypesRequest 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.tpu.v2.ListAcceleratorTypesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ListAcceleratorTypesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2.ListAcceleratorTypesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.ListAcceleratorTypesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ListAcceleratorTypesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.ListAcceleratorTypesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.ListAcceleratorTypesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ListAcceleratorTypesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.ListAcceleratorTypesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ListAcceleratorTypesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.ListAcceleratorTypesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [ListAcceleratorTypes][google.cloud.tpu.v2.Tpu.ListAcceleratorTypes].
    * 
* * Protobuf type {@code google.cloud.tpu.v2.ListAcceleratorTypesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.ListAcceleratorTypesRequest) com.google.cloud.tpu.v2.ListAcceleratorTypesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListAcceleratorTypesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListAcceleratorTypesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListAcceleratorTypesRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListAcceleratorTypesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.ListAcceleratorTypesRequest.class, com.google.cloud.tpu.v2.ListAcceleratorTypesRequest.Builder.class); + com.google.cloud.tpu.v2.ListAcceleratorTypesRequest.class, + com.google.cloud.tpu.v2.ListAcceleratorTypesRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2.ListAcceleratorTypesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +535,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListAcceleratorTypesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListAcceleratorTypesRequest_descriptor; } @java.lang.Override @@ -517,7 +556,8 @@ public com.google.cloud.tpu.v2.ListAcceleratorTypesRequest build() { @java.lang.Override public com.google.cloud.tpu.v2.ListAcceleratorTypesRequest buildPartial() { - com.google.cloud.tpu.v2.ListAcceleratorTypesRequest result = new com.google.cloud.tpu.v2.ListAcceleratorTypesRequest(this); + com.google.cloud.tpu.v2.ListAcceleratorTypesRequest result = + new com.google.cloud.tpu.v2.ListAcceleratorTypesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -531,38 +571,39 @@ public com.google.cloud.tpu.v2.ListAcceleratorTypesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.ListAcceleratorTypesRequest) { - return mergeFrom((com.google.cloud.tpu.v2.ListAcceleratorTypesRequest)other); + return mergeFrom((com.google.cloud.tpu.v2.ListAcceleratorTypesRequest) other); } else { super.mergeFrom(other); return this; @@ -570,7 +611,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2.ListAcceleratorTypesRequest other) { - if (other == com.google.cloud.tpu.v2.ListAcceleratorTypesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2.ListAcceleratorTypesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -616,37 +658,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 42: { - filter_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 42: + { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - case 50: { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 42 + case 50: + { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,18 +707,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -679,20 +731,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -700,66 +755,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -767,30 +838,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -798,18 +875,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -818,20 +897,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -839,54 +919,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -894,18 +981,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -914,20 +1003,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -935,54 +1025,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -990,18 +1087,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1010,20 +1109,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1031,61 +1131,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1095,12 +1202,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.ListAcceleratorTypesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.ListAcceleratorTypesRequest) private static final com.google.cloud.tpu.v2.ListAcceleratorTypesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.ListAcceleratorTypesRequest(); } @@ -1109,27 +1216,27 @@ public static com.google.cloud.tpu.v2.ListAcceleratorTypesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAcceleratorTypesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAcceleratorTypesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,6 +1251,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.tpu.v2.ListAcceleratorTypesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesRequestOrBuilder.java index 7a66cbd04c02..60fd80c81c46 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface ListAcceleratorTypesRequestOrBuilder extends +public interface ListAcceleratorTypesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.ListAcceleratorTypesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesResponse.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesResponse.java similarity index 73% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesResponse.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesResponse.java index a3dfac70421e..8551301ef104 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesResponse.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesResponse.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Response for [ListAcceleratorTypes][google.cloud.tpu.v2.Tpu.ListAcceleratorTypes].
  * 
* * Protobuf type {@code google.cloud.tpu.v2.ListAcceleratorTypesResponse} */ -public final class ListAcceleratorTypesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAcceleratorTypesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.ListAcceleratorTypesResponse) ListAcceleratorTypesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAcceleratorTypesResponse.newBuilder() to construct. private ListAcceleratorTypesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAcceleratorTypesResponse() { acceleratorTypes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +45,35 @@ private ListAcceleratorTypesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAcceleratorTypesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListAcceleratorTypesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListAcceleratorTypesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListAcceleratorTypesResponse_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListAcceleratorTypesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.ListAcceleratorTypesResponse.class, com.google.cloud.tpu.v2.ListAcceleratorTypesResponse.Builder.class); + com.google.cloud.tpu.v2.ListAcceleratorTypesResponse.class, + com.google.cloud.tpu.v2.ListAcceleratorTypesResponse.Builder.class); } public static final int ACCELERATOR_TYPES_FIELD_NUMBER = 1; private java.util.List acceleratorTypes_; /** + * + * *
    * The listed nodes.
    * 
@@ -64,6 +85,8 @@ public java.util.List getAcceleratorTyp return acceleratorTypes_; } /** + * + * *
    * The listed nodes.
    * 
@@ -71,11 +94,13 @@ public java.util.List getAcceleratorTyp * repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; */ @java.lang.Override - public java.util.List + public java.util.List getAcceleratorTypesOrBuilderList() { return acceleratorTypes_; } /** + * + * *
    * The listed nodes.
    * 
@@ -87,6 +112,8 @@ public int getAcceleratorTypesCount() { return acceleratorTypes_.size(); } /** + * + * *
    * The listed nodes.
    * 
@@ -98,6 +125,8 @@ public com.google.cloud.tpu.v2.AcceleratorType getAcceleratorTypes(int index) { return acceleratorTypes_.get(index); } /** + * + * *
    * The listed nodes.
    * 
@@ -105,19 +134,21 @@ public com.google.cloud.tpu.v2.AcceleratorType getAcceleratorTypes(int index) { * repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; */ @java.lang.Override - public com.google.cloud.tpu.v2.AcceleratorTypeOrBuilder getAcceleratorTypesOrBuilder( - int index) { + public com.google.cloud.tpu.v2.AcceleratorTypeOrBuilder getAcceleratorTypesOrBuilder(int index) { return acceleratorTypes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,29 +157,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -159,34 +190,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -194,20 +233,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < acceleratorTypes_.size(); i++) { output.writeMessage(1, acceleratorTypes_.get(i)); } @@ -240,8 +281,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < acceleratorTypes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, acceleratorTypes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, acceleratorTypes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -262,19 +302,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.ListAcceleratorTypesResponse)) { return super.equals(obj); } - com.google.cloud.tpu.v2.ListAcceleratorTypesResponse other = (com.google.cloud.tpu.v2.ListAcceleratorTypesResponse) obj; + com.google.cloud.tpu.v2.ListAcceleratorTypesResponse other = + (com.google.cloud.tpu.v2.ListAcceleratorTypesResponse) obj; - if (!getAcceleratorTypesList() - .equals(other.getAcceleratorTypesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getAcceleratorTypesList().equals(other.getAcceleratorTypesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -302,129 +340,135 @@ public int hashCode() { } public static com.google.cloud.tpu.v2.ListAcceleratorTypesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ListAcceleratorTypesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.ListAcceleratorTypesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ListAcceleratorTypesResponse 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.tpu.v2.ListAcceleratorTypesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ListAcceleratorTypesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2.ListAcceleratorTypesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.ListAcceleratorTypesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ListAcceleratorTypesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.ListAcceleratorTypesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.ListAcceleratorTypesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ListAcceleratorTypesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.ListAcceleratorTypesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ListAcceleratorTypesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.ListAcceleratorTypesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [ListAcceleratorTypes][google.cloud.tpu.v2.Tpu.ListAcceleratorTypes].
    * 
* * Protobuf type {@code google.cloud.tpu.v2.ListAcceleratorTypesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.ListAcceleratorTypesResponse) com.google.cloud.tpu.v2.ListAcceleratorTypesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListAcceleratorTypesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListAcceleratorTypesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListAcceleratorTypesResponse_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListAcceleratorTypesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.ListAcceleratorTypesResponse.class, com.google.cloud.tpu.v2.ListAcceleratorTypesResponse.Builder.class); + com.google.cloud.tpu.v2.ListAcceleratorTypesResponse.class, + com.google.cloud.tpu.v2.ListAcceleratorTypesResponse.Builder.class); } // Construct using com.google.cloud.tpu.v2.ListAcceleratorTypesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListAcceleratorTypesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListAcceleratorTypesResponse_descriptor; } @java.lang.Override @@ -464,7 +508,8 @@ public com.google.cloud.tpu.v2.ListAcceleratorTypesResponse build() { @java.lang.Override public com.google.cloud.tpu.v2.ListAcceleratorTypesResponse buildPartial() { - com.google.cloud.tpu.v2.ListAcceleratorTypesResponse result = new com.google.cloud.tpu.v2.ListAcceleratorTypesResponse(this); + com.google.cloud.tpu.v2.ListAcceleratorTypesResponse result = + new com.google.cloud.tpu.v2.ListAcceleratorTypesResponse(this); int from_bitField0_ = bitField0_; if (acceleratorTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -489,38 +534,39 @@ public com.google.cloud.tpu.v2.ListAcceleratorTypesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.ListAcceleratorTypesResponse) { - return mergeFrom((com.google.cloud.tpu.v2.ListAcceleratorTypesResponse)other); + return mergeFrom((com.google.cloud.tpu.v2.ListAcceleratorTypesResponse) other); } else { super.mergeFrom(other); return this; @@ -528,7 +574,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2.ListAcceleratorTypesResponse other) { - if (other == com.google.cloud.tpu.v2.ListAcceleratorTypesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2.ListAcceleratorTypesResponse.getDefaultInstance()) + return this; if (acceleratorTypesBuilder_ == null) { if (!other.acceleratorTypes_.isEmpty()) { if (acceleratorTypes_.isEmpty()) { @@ -547,9 +594,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.ListAcceleratorTypesResponse ot acceleratorTypesBuilder_ = null; acceleratorTypes_ = other.acceleratorTypes_; bitField0_ = (bitField0_ & ~0x00000001); - acceleratorTypesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAcceleratorTypesFieldBuilder() : null; + acceleratorTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAcceleratorTypesFieldBuilder() + : null; } else { acceleratorTypesBuilder_.addAllMessages(other.acceleratorTypes_); } @@ -595,36 +643,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.tpu.v2.AcceleratorType m = - input.readMessage( - com.google.cloud.tpu.v2.AcceleratorType.parser(), - extensionRegistry); - if (acceleratorTypesBuilder_ == null) { - ensureAcceleratorTypesIsMutable(); - acceleratorTypes_.add(m); - } else { - acceleratorTypesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.tpu.v2.AcceleratorType m = + input.readMessage( + com.google.cloud.tpu.v2.AcceleratorType.parser(), extensionRegistry); + if (acceleratorTypesBuilder_ == null) { + ensureAcceleratorTypesIsMutable(); + acceleratorTypes_.add(m); + } else { + acceleratorTypesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -634,21 +685,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List acceleratorTypes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAcceleratorTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - acceleratorTypes_ = new java.util.ArrayList(acceleratorTypes_); + acceleratorTypes_ = + new java.util.ArrayList(acceleratorTypes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.AcceleratorType, com.google.cloud.tpu.v2.AcceleratorType.Builder, com.google.cloud.tpu.v2.AcceleratorTypeOrBuilder> acceleratorTypesBuilder_; + com.google.cloud.tpu.v2.AcceleratorType, + com.google.cloud.tpu.v2.AcceleratorType.Builder, + com.google.cloud.tpu.v2.AcceleratorTypeOrBuilder> + acceleratorTypesBuilder_; /** + * + * *
      * The listed nodes.
      * 
@@ -663,6 +722,8 @@ public java.util.List getAcceleratorTyp } } /** + * + * *
      * The listed nodes.
      * 
@@ -677,6 +738,8 @@ public int getAcceleratorTypesCount() { } } /** + * + * *
      * The listed nodes.
      * 
@@ -691,14 +754,15 @@ public com.google.cloud.tpu.v2.AcceleratorType getAcceleratorTypes(int index) { } } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; */ - public Builder setAcceleratorTypes( - int index, com.google.cloud.tpu.v2.AcceleratorType value) { + public Builder setAcceleratorTypes(int index, com.google.cloud.tpu.v2.AcceleratorType value) { if (acceleratorTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -712,6 +776,8 @@ public Builder setAcceleratorTypes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -730,6 +796,8 @@ public Builder setAcceleratorTypes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -750,14 +818,15 @@ public Builder addAcceleratorTypes(com.google.cloud.tpu.v2.AcceleratorType value return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; */ - public Builder addAcceleratorTypes( - int index, com.google.cloud.tpu.v2.AcceleratorType value) { + public Builder addAcceleratorTypes(int index, com.google.cloud.tpu.v2.AcceleratorType value) { if (acceleratorTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -771,6 +840,8 @@ public Builder addAcceleratorTypes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -789,6 +860,8 @@ public Builder addAcceleratorTypes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -807,6 +880,8 @@ public Builder addAcceleratorTypes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -817,8 +892,7 @@ public Builder addAllAcceleratorTypes( java.lang.Iterable values) { if (acceleratorTypesBuilder_ == null) { ensureAcceleratorTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, acceleratorTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, acceleratorTypes_); onChanged(); } else { acceleratorTypesBuilder_.addAllMessages(values); @@ -826,6 +900,8 @@ public Builder addAllAcceleratorTypes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -843,6 +919,8 @@ public Builder clearAcceleratorTypes() { return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -860,17 +938,20 @@ public Builder removeAcceleratorTypes(int index) { return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; */ - public com.google.cloud.tpu.v2.AcceleratorType.Builder getAcceleratorTypesBuilder( - int index) { + public com.google.cloud.tpu.v2.AcceleratorType.Builder getAcceleratorTypesBuilder(int index) { return getAcceleratorTypesFieldBuilder().getBuilder(index); } /** + * + * *
      * The listed nodes.
      * 
@@ -880,19 +961,22 @@ public com.google.cloud.tpu.v2.AcceleratorType.Builder getAcceleratorTypesBuilde public com.google.cloud.tpu.v2.AcceleratorTypeOrBuilder getAcceleratorTypesOrBuilder( int index) { if (acceleratorTypesBuilder_ == null) { - return acceleratorTypes_.get(index); } else { + return acceleratorTypes_.get(index); + } else { return acceleratorTypesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; */ - public java.util.List - getAcceleratorTypesOrBuilderList() { + public java.util.List + getAcceleratorTypesOrBuilderList() { if (acceleratorTypesBuilder_ != null) { return acceleratorTypesBuilder_.getMessageOrBuilderList(); } else { @@ -900,6 +984,8 @@ public com.google.cloud.tpu.v2.AcceleratorTypeOrBuilder getAcceleratorTypesOrBui } } /** + * + * *
      * The listed nodes.
      * 
@@ -907,38 +993,47 @@ public com.google.cloud.tpu.v2.AcceleratorTypeOrBuilder getAcceleratorTypesOrBui * repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; */ public com.google.cloud.tpu.v2.AcceleratorType.Builder addAcceleratorTypesBuilder() { - return getAcceleratorTypesFieldBuilder().addBuilder( - com.google.cloud.tpu.v2.AcceleratorType.getDefaultInstance()); + return getAcceleratorTypesFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2.AcceleratorType.getDefaultInstance()); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; */ - public com.google.cloud.tpu.v2.AcceleratorType.Builder addAcceleratorTypesBuilder( - int index) { - return getAcceleratorTypesFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v2.AcceleratorType.getDefaultInstance()); + public com.google.cloud.tpu.v2.AcceleratorType.Builder addAcceleratorTypesBuilder(int index) { + return getAcceleratorTypesFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2.AcceleratorType.getDefaultInstance()); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; */ - public java.util.List - getAcceleratorTypesBuilderList() { + public java.util.List + getAcceleratorTypesBuilderList() { return getAcceleratorTypesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.AcceleratorType, com.google.cloud.tpu.v2.AcceleratorType.Builder, com.google.cloud.tpu.v2.AcceleratorTypeOrBuilder> + com.google.cloud.tpu.v2.AcceleratorType, + com.google.cloud.tpu.v2.AcceleratorType.Builder, + com.google.cloud.tpu.v2.AcceleratorTypeOrBuilder> getAcceleratorTypesFieldBuilder() { if (acceleratorTypesBuilder_ == null) { - acceleratorTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.AcceleratorType, com.google.cloud.tpu.v2.AcceleratorType.Builder, com.google.cloud.tpu.v2.AcceleratorTypeOrBuilder>( + acceleratorTypesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2.AcceleratorType, + com.google.cloud.tpu.v2.AcceleratorType.Builder, + com.google.cloud.tpu.v2.AcceleratorTypeOrBuilder>( acceleratorTypes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -950,18 +1045,20 @@ public com.google.cloud.tpu.v2.AcceleratorType.Builder addAcceleratorTypesBuilde private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -970,20 +1067,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -991,95 +1089,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1087,80 +1202,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1170,28 +1295,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1201,12 +1328,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.ListAcceleratorTypesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.ListAcceleratorTypesResponse) private static final com.google.cloud.tpu.v2.ListAcceleratorTypesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.ListAcceleratorTypesResponse(); } @@ -1215,27 +1342,27 @@ public static com.google.cloud.tpu.v2.ListAcceleratorTypesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAcceleratorTypesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAcceleratorTypesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1250,6 +1377,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.tpu.v2.ListAcceleratorTypesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesResponseOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesResponseOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesResponseOrBuilder.java index fe3ae29a5f41..49b166c69189 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesResponseOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListAcceleratorTypesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface ListAcceleratorTypesResponseOrBuilder extends +public interface ListAcceleratorTypesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.ListAcceleratorTypesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; */ - java.util.List - getAcceleratorTypesList(); + java.util.List getAcceleratorTypesList(); /** + * + * *
    * The listed nodes.
    * 
@@ -25,6 +44,8 @@ public interface ListAcceleratorTypesResponseOrBuilder extends */ com.google.cloud.tpu.v2.AcceleratorType getAcceleratorTypes(int index); /** + * + * *
    * The listed nodes.
    * 
@@ -33,82 +54,100 @@ public interface ListAcceleratorTypesResponseOrBuilder extends */ int getAcceleratorTypesCount(); /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; */ - java.util.List + java.util.List getAcceleratorTypesOrBuilderList(); /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; */ - com.google.cloud.tpu.v2.AcceleratorTypeOrBuilder getAcceleratorTypesOrBuilder( - int index); + com.google.cloud.tpu.v2.AcceleratorTypeOrBuilder getAcceleratorTypesOrBuilder(int index); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesRequest.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesRequest.java similarity index 65% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesRequest.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesRequest.java index 0e3ae8518b37..9b4216ce1d11 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesRequest.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Request for [ListNodes][google.cloud.tpu.v2.Tpu.ListNodes].
  * 
* * Protobuf type {@code google.cloud.tpu.v2.ListNodesRequest} */ -public final class ListNodesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNodesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.ListNodesRequest) ListNodesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNodesRequest.newBuilder() to construct. private ListNodesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNodesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,37 +44,43 @@ private ListNodesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNodesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListNodesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListNodesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListNodesRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListNodesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.ListNodesRequest.class, com.google.cloud.tpu.v2.ListNodesRequest.Builder.class); + com.google.cloud.tpu.v2.ListNodesRequest.class, + com.google.cloud.tpu.v2.ListNodesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -65,29 +89,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -98,11 +124,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -113,11 +142,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -126,29 +158,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -157,6 +189,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -192,8 +224,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -206,19 +237,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.ListNodesRequest)) { return super.equals(obj); } com.google.cloud.tpu.v2.ListNodesRequest other = (com.google.cloud.tpu.v2.ListNodesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,130 +269,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.ListNodesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.ListNodesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ListNodesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.ListNodesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ListNodesRequest 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.tpu.v2.ListNodesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ListNodesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.ListNodesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ListNodesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.ListNodesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.ListNodesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ListNodesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.ListNodesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ListNodesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.ListNodesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [ListNodes][google.cloud.tpu.v2.Tpu.ListNodes].
    * 
* * Protobuf type {@code google.cloud.tpu.v2.ListNodesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.ListNodesRequest) com.google.cloud.tpu.v2.ListNodesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListNodesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListNodesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListNodesRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListNodesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.ListNodesRequest.class, com.google.cloud.tpu.v2.ListNodesRequest.Builder.class); + com.google.cloud.tpu.v2.ListNodesRequest.class, + com.google.cloud.tpu.v2.ListNodesRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2.ListNodesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListNodesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListNodesRequest_descriptor; } @java.lang.Override @@ -399,7 +433,8 @@ public com.google.cloud.tpu.v2.ListNodesRequest build() { @java.lang.Override public com.google.cloud.tpu.v2.ListNodesRequest buildPartial() { - com.google.cloud.tpu.v2.ListNodesRequest result = new com.google.cloud.tpu.v2.ListNodesRequest(this); + com.google.cloud.tpu.v2.ListNodesRequest result = + new com.google.cloud.tpu.v2.ListNodesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -411,38 +446,39 @@ public com.google.cloud.tpu.v2.ListNodesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.ListNodesRequest) { - return mergeFrom((com.google.cloud.tpu.v2.ListNodesRequest)other); + return mergeFrom((com.google.cloud.tpu.v2.ListNodesRequest) other); } else { super.mergeFrom(other); return this; @@ -488,27 +524,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -521,18 +561,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -541,20 +585,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -562,66 +609,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -629,30 +692,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -660,18 +729,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -680,20 +751,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -701,61 +773,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -765,12 +844,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.ListNodesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.ListNodesRequest) private static final com.google.cloud.tpu.v2.ListNodesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.ListNodesRequest(); } @@ -779,27 +858,27 @@ public static com.google.cloud.tpu.v2.ListNodesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNodesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNodesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -814,6 +893,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.ListNodesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesRequestOrBuilder.java index 0db2dea1af0a..210748b76069 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesRequestOrBuilder.java @@ -1,59 +1,92 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface ListNodesRequestOrBuilder extends +public interface ListNodesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.ListNodesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesResponse.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesResponse.java similarity index 71% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesResponse.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesResponse.java index 31abf8cb6992..e938a12853e6 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesResponse.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesResponse.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Response for [ListNodes][google.cloud.tpu.v2.Tpu.ListNodes].
  * 
* * Protobuf type {@code google.cloud.tpu.v2.ListNodesResponse} */ -public final class ListNodesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNodesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.ListNodesResponse) ListNodesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNodesResponse.newBuilder() to construct. private ListNodesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNodesResponse() { nodes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +45,35 @@ private ListNodesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNodesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListNodesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListNodesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListNodesResponse_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListNodesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.ListNodesResponse.class, com.google.cloud.tpu.v2.ListNodesResponse.Builder.class); + com.google.cloud.tpu.v2.ListNodesResponse.class, + com.google.cloud.tpu.v2.ListNodesResponse.Builder.class); } public static final int NODES_FIELD_NUMBER = 1; private java.util.List nodes_; /** + * + * *
    * The listed nodes.
    * 
@@ -64,6 +85,8 @@ public java.util.List getNodesList() { return nodes_; } /** + * + * *
    * The listed nodes.
    * 
@@ -71,11 +94,12 @@ public java.util.List getNodesList() { * repeated .google.cloud.tpu.v2.Node nodes = 1; */ @java.lang.Override - public java.util.List - getNodesOrBuilderList() { + public java.util.List getNodesOrBuilderList() { return nodes_; } /** + * + * *
    * The listed nodes.
    * 
@@ -87,6 +111,8 @@ public int getNodesCount() { return nodes_.size(); } /** + * + * *
    * The listed nodes.
    * 
@@ -98,6 +124,8 @@ public com.google.cloud.tpu.v2.Node getNodes(int index) { return nodes_.get(index); } /** + * + * *
    * The listed nodes.
    * 
@@ -105,19 +133,21 @@ public com.google.cloud.tpu.v2.Node getNodes(int index) { * repeated .google.cloud.tpu.v2.Node nodes = 1; */ @java.lang.Override - public com.google.cloud.tpu.v2.NodeOrBuilder getNodesOrBuilder( - int index) { + public com.google.cloud.tpu.v2.NodeOrBuilder getNodesOrBuilder(int index) { return nodes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,29 +156,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -159,34 +189,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -194,20 +232,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < nodes_.size(); i++) { output.writeMessage(1, nodes_.get(i)); } @@ -240,8 +280,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nodes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nodes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -262,19 +301,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.ListNodesResponse)) { return super.equals(obj); } - com.google.cloud.tpu.v2.ListNodesResponse other = (com.google.cloud.tpu.v2.ListNodesResponse) obj; + com.google.cloud.tpu.v2.ListNodesResponse other = + (com.google.cloud.tpu.v2.ListNodesResponse) obj; - if (!getNodesList() - .equals(other.getNodesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getNodesList().equals(other.getNodesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -301,130 +338,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.ListNodesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.ListNodesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ListNodesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.ListNodesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ListNodesResponse 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.tpu.v2.ListNodesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ListNodesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.ListNodesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ListNodesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.ListNodesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.ListNodesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ListNodesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.ListNodesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ListNodesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.ListNodesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [ListNodes][google.cloud.tpu.v2.Tpu.ListNodes].
    * 
* * Protobuf type {@code google.cloud.tpu.v2.ListNodesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.ListNodesResponse) com.google.cloud.tpu.v2.ListNodesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListNodesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListNodesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListNodesResponse_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListNodesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.ListNodesResponse.class, com.google.cloud.tpu.v2.ListNodesResponse.Builder.class); + com.google.cloud.tpu.v2.ListNodesResponse.class, + com.google.cloud.tpu.v2.ListNodesResponse.Builder.class); } // Construct using com.google.cloud.tpu.v2.ListNodesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +486,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListNodesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListNodesResponse_descriptor; } @java.lang.Override @@ -464,7 +507,8 @@ public com.google.cloud.tpu.v2.ListNodesResponse build() { @java.lang.Override public com.google.cloud.tpu.v2.ListNodesResponse buildPartial() { - com.google.cloud.tpu.v2.ListNodesResponse result = new com.google.cloud.tpu.v2.ListNodesResponse(this); + com.google.cloud.tpu.v2.ListNodesResponse result = + new com.google.cloud.tpu.v2.ListNodesResponse(this); int from_bitField0_ = bitField0_; if (nodesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -489,38 +533,39 @@ public com.google.cloud.tpu.v2.ListNodesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.ListNodesResponse) { - return mergeFrom((com.google.cloud.tpu.v2.ListNodesResponse)other); + return mergeFrom((com.google.cloud.tpu.v2.ListNodesResponse) other); } else { super.mergeFrom(other); return this; @@ -547,9 +592,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.ListNodesResponse other) { nodesBuilder_ = null; nodes_ = other.nodes_; bitField0_ = (bitField0_ & ~0x00000001); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodesFieldBuilder() : null; + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodesFieldBuilder() + : null; } else { nodesBuilder_.addAllMessages(other.nodes_); } @@ -595,36 +641,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.tpu.v2.Node m = - input.readMessage( - com.google.cloud.tpu.v2.Node.parser(), - extensionRegistry); - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(m); - } else { - nodesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.tpu.v2.Node m = + input.readMessage(com.google.cloud.tpu.v2.Node.parser(), extensionRegistry); + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(m); + } else { + nodesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -634,21 +682,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List nodes_ = - java.util.Collections.emptyList(); + private java.util.List nodes_ = java.util.Collections.emptyList(); + private void ensureNodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nodes_ = new java.util.ArrayList(nodes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.Node, com.google.cloud.tpu.v2.Node.Builder, com.google.cloud.tpu.v2.NodeOrBuilder> nodesBuilder_; + com.google.cloud.tpu.v2.Node, + com.google.cloud.tpu.v2.Node.Builder, + com.google.cloud.tpu.v2.NodeOrBuilder> + nodesBuilder_; /** + * + * *
      * The listed nodes.
      * 
@@ -663,6 +717,8 @@ public java.util.List getNodesList() { } } /** + * + * *
      * The listed nodes.
      * 
@@ -677,6 +733,8 @@ public int getNodesCount() { } } /** + * + * *
      * The listed nodes.
      * 
@@ -691,14 +749,15 @@ public com.google.cloud.tpu.v2.Node getNodes(int index) { } } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.Node nodes = 1; */ - public Builder setNodes( - int index, com.google.cloud.tpu.v2.Node value) { + public Builder setNodes(int index, com.google.cloud.tpu.v2.Node value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -712,14 +771,15 @@ public Builder setNodes( return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.Node nodes = 1; */ - public Builder setNodes( - int index, com.google.cloud.tpu.v2.Node.Builder builderForValue) { + public Builder setNodes(int index, com.google.cloud.tpu.v2.Node.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.set(index, builderForValue.build()); @@ -730,6 +790,8 @@ public Builder setNodes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -750,14 +812,15 @@ public Builder addNodes(com.google.cloud.tpu.v2.Node value) { return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.Node nodes = 1; */ - public Builder addNodes( - int index, com.google.cloud.tpu.v2.Node value) { + public Builder addNodes(int index, com.google.cloud.tpu.v2.Node value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -771,14 +834,15 @@ public Builder addNodes( return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.Node nodes = 1; */ - public Builder addNodes( - com.google.cloud.tpu.v2.Node.Builder builderForValue) { + public Builder addNodes(com.google.cloud.tpu.v2.Node.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(builderForValue.build()); @@ -789,14 +853,15 @@ public Builder addNodes( return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.Node nodes = 1; */ - public Builder addNodes( - int index, com.google.cloud.tpu.v2.Node.Builder builderForValue) { + public Builder addNodes(int index, com.google.cloud.tpu.v2.Node.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(index, builderForValue.build()); @@ -807,18 +872,18 @@ public Builder addNodes( return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.Node nodes = 1; */ - public Builder addAllNodes( - java.lang.Iterable values) { + public Builder addAllNodes(java.lang.Iterable values) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); onChanged(); } else { nodesBuilder_.addAllMessages(values); @@ -826,6 +891,8 @@ public Builder addAllNodes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -843,6 +910,8 @@ public Builder clearNodes() { return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -860,39 +929,43 @@ public Builder removeNodes(int index) { return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.Node nodes = 1; */ - public com.google.cloud.tpu.v2.Node.Builder getNodesBuilder( - int index) { + public com.google.cloud.tpu.v2.Node.Builder getNodesBuilder(int index) { return getNodesFieldBuilder().getBuilder(index); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.Node nodes = 1; */ - public com.google.cloud.tpu.v2.NodeOrBuilder getNodesOrBuilder( - int index) { + public com.google.cloud.tpu.v2.NodeOrBuilder getNodesOrBuilder(int index) { if (nodesBuilder_ == null) { - return nodes_.get(index); } else { + return nodes_.get(index); + } else { return nodesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.Node nodes = 1; */ - public java.util.List - getNodesOrBuilderList() { + public java.util.List getNodesOrBuilderList() { if (nodesBuilder_ != null) { return nodesBuilder_.getMessageOrBuilderList(); } else { @@ -900,6 +973,8 @@ public com.google.cloud.tpu.v2.NodeOrBuilder getNodesOrBuilder( } } /** + * + * *
      * The listed nodes.
      * 
@@ -907,42 +982,46 @@ public com.google.cloud.tpu.v2.NodeOrBuilder getNodesOrBuilder( * repeated .google.cloud.tpu.v2.Node nodes = 1; */ public com.google.cloud.tpu.v2.Node.Builder addNodesBuilder() { - return getNodesFieldBuilder().addBuilder( - com.google.cloud.tpu.v2.Node.getDefaultInstance()); + return getNodesFieldBuilder().addBuilder(com.google.cloud.tpu.v2.Node.getDefaultInstance()); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.Node nodes = 1; */ - public com.google.cloud.tpu.v2.Node.Builder addNodesBuilder( - int index) { - return getNodesFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v2.Node.getDefaultInstance()); + public com.google.cloud.tpu.v2.Node.Builder addNodesBuilder(int index) { + return getNodesFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2.Node.getDefaultInstance()); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.Node nodes = 1; */ - public java.util.List - getNodesBuilderList() { + public java.util.List getNodesBuilderList() { return getNodesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.Node, com.google.cloud.tpu.v2.Node.Builder, com.google.cloud.tpu.v2.NodeOrBuilder> + com.google.cloud.tpu.v2.Node, + com.google.cloud.tpu.v2.Node.Builder, + com.google.cloud.tpu.v2.NodeOrBuilder> getNodesFieldBuilder() { if (nodesBuilder_ == null) { - nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.Node, com.google.cloud.tpu.v2.Node.Builder, com.google.cloud.tpu.v2.NodeOrBuilder>( - nodes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + nodesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2.Node, + com.google.cloud.tpu.v2.Node.Builder, + com.google.cloud.tpu.v2.NodeOrBuilder>( + nodes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); nodes_ = null; } return nodesBuilder_; @@ -950,18 +1029,20 @@ public com.google.cloud.tpu.v2.Node.Builder addNodesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -970,20 +1051,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -991,95 +1073,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1087,80 +1186,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1170,28 +1279,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1201,12 +1312,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.ListNodesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.ListNodesResponse) private static final com.google.cloud.tpu.v2.ListNodesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.ListNodesResponse(); } @@ -1215,27 +1326,27 @@ public static com.google.cloud.tpu.v2.ListNodesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNodesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNodesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1250,6 +1361,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.ListNodesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesResponseOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesResponseOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesResponseOrBuilder.java index 181e3d7fab71..4ec319767836 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesResponseOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListNodesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface ListNodesResponseOrBuilder extends +public interface ListNodesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.ListNodesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v2.Node nodes = 1; */ - java.util.List - getNodesList(); + java.util.List getNodesList(); /** + * + * *
    * The listed nodes.
    * 
@@ -25,6 +44,8 @@ public interface ListNodesResponseOrBuilder extends */ com.google.cloud.tpu.v2.Node getNodes(int index); /** + * + * *
    * The listed nodes.
    * 
@@ -33,82 +54,99 @@ public interface ListNodesResponseOrBuilder extends */ int getNodesCount(); /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v2.Node nodes = 1; */ - java.util.List - getNodesOrBuilderList(); + java.util.List getNodesOrBuilderList(); /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v2.Node nodes = 1; */ - com.google.cloud.tpu.v2.NodeOrBuilder getNodesOrBuilder( - int index); + com.google.cloud.tpu.v2.NodeOrBuilder getNodesOrBuilder(int index); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsRequest.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsRequest.java similarity index 67% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsRequest.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsRequest.java index 2e48ffbfa327..2b5fcfaca69f 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsRequest.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Request for [ListRuntimeVersions][google.cloud.tpu.v2.Tpu.ListRuntimeVersions].
  * 
* * Protobuf type {@code google.cloud.tpu.v2.ListRuntimeVersionsRequest} */ -public final class ListRuntimeVersionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRuntimeVersionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.ListRuntimeVersionsRequest) ListRuntimeVersionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRuntimeVersionsRequest.newBuilder() to construct. private ListRuntimeVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRuntimeVersionsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,37 +46,43 @@ private ListRuntimeVersionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimeVersionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListRuntimeVersionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListRuntimeVersionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListRuntimeVersionsRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListRuntimeVersionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.ListRuntimeVersionsRequest.class, com.google.cloud.tpu.v2.ListRuntimeVersionsRequest.Builder.class); + com.google.cloud.tpu.v2.ListRuntimeVersionsRequest.class, + com.google.cloud.tpu.v2.ListRuntimeVersionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,29 +91,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -100,11 +126,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -115,11 +144,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -128,29 +160,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -161,11 +193,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ @java.lang.Override @@ -174,29 +209,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -207,11 +242,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 6; private volatile java.lang.Object orderBy_; /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The orderBy. */ @java.lang.Override @@ -220,29 +258,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -251,6 +289,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,8 +301,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -292,8 +330,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -312,23 +349,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.ListRuntimeVersionsRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2.ListRuntimeVersionsRequest other = (com.google.cloud.tpu.v2.ListRuntimeVersionsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.tpu.v2.ListRuntimeVersionsRequest other = + (com.google.cloud.tpu.v2.ListRuntimeVersionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -356,129 +389,135 @@ public int hashCode() { } public static com.google.cloud.tpu.v2.ListRuntimeVersionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ListRuntimeVersionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.ListRuntimeVersionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ListRuntimeVersionsRequest 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.tpu.v2.ListRuntimeVersionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ListRuntimeVersionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2.ListRuntimeVersionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.ListRuntimeVersionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ListRuntimeVersionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.ListRuntimeVersionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.ListRuntimeVersionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ListRuntimeVersionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.ListRuntimeVersionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ListRuntimeVersionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.ListRuntimeVersionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [ListRuntimeVersions][google.cloud.tpu.v2.Tpu.ListRuntimeVersions].
    * 
* * Protobuf type {@code google.cloud.tpu.v2.ListRuntimeVersionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.ListRuntimeVersionsRequest) com.google.cloud.tpu.v2.ListRuntimeVersionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListRuntimeVersionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListRuntimeVersionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListRuntimeVersionsRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListRuntimeVersionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.ListRuntimeVersionsRequest.class, com.google.cloud.tpu.v2.ListRuntimeVersionsRequest.Builder.class); + com.google.cloud.tpu.v2.ListRuntimeVersionsRequest.class, + com.google.cloud.tpu.v2.ListRuntimeVersionsRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2.ListRuntimeVersionsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +535,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListRuntimeVersionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListRuntimeVersionsRequest_descriptor; } @java.lang.Override @@ -517,7 +556,8 @@ public com.google.cloud.tpu.v2.ListRuntimeVersionsRequest build() { @java.lang.Override public com.google.cloud.tpu.v2.ListRuntimeVersionsRequest buildPartial() { - com.google.cloud.tpu.v2.ListRuntimeVersionsRequest result = new com.google.cloud.tpu.v2.ListRuntimeVersionsRequest(this); + com.google.cloud.tpu.v2.ListRuntimeVersionsRequest result = + new com.google.cloud.tpu.v2.ListRuntimeVersionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -531,38 +571,39 @@ public com.google.cloud.tpu.v2.ListRuntimeVersionsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.ListRuntimeVersionsRequest) { - return mergeFrom((com.google.cloud.tpu.v2.ListRuntimeVersionsRequest)other); + return mergeFrom((com.google.cloud.tpu.v2.ListRuntimeVersionsRequest) other); } else { super.mergeFrom(other); return this; @@ -570,7 +611,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2.ListRuntimeVersionsRequest other) { - if (other == com.google.cloud.tpu.v2.ListRuntimeVersionsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2.ListRuntimeVersionsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -616,37 +658,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 42: { - filter_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 42: + { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - case 50: { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 42 + case 50: + { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,18 +707,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -679,20 +731,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -700,66 +755,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -767,30 +838,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -798,18 +875,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -818,20 +897,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -839,54 +919,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -894,18 +981,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -914,20 +1003,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -935,54 +1025,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -990,18 +1087,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1010,20 +1109,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1031,61 +1131,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1095,12 +1202,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.ListRuntimeVersionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.ListRuntimeVersionsRequest) private static final com.google.cloud.tpu.v2.ListRuntimeVersionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.ListRuntimeVersionsRequest(); } @@ -1109,27 +1216,27 @@ public static com.google.cloud.tpu.v2.ListRuntimeVersionsRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuntimeVersionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuntimeVersionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,6 +1251,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.tpu.v2.ListRuntimeVersionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsRequestOrBuilder.java index 546dcebb3803..5ffc73a137a0 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface ListRuntimeVersionsRequestOrBuilder extends +public interface ListRuntimeVersionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.ListRuntimeVersionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsResponse.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsResponse.java similarity index 72% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsResponse.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsResponse.java index 3ad210342788..dd598d0e083c 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsResponse.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsResponse.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Response for [ListRuntimeVersions][google.cloud.tpu.v2.Tpu.ListRuntimeVersions].
  * 
* * Protobuf type {@code google.cloud.tpu.v2.ListRuntimeVersionsResponse} */ -public final class ListRuntimeVersionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRuntimeVersionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.ListRuntimeVersionsResponse) ListRuntimeVersionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRuntimeVersionsResponse.newBuilder() to construct. private ListRuntimeVersionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRuntimeVersionsResponse() { runtimeVersions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +45,35 @@ private ListRuntimeVersionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimeVersionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListRuntimeVersionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListRuntimeVersionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListRuntimeVersionsResponse_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListRuntimeVersionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.ListRuntimeVersionsResponse.class, com.google.cloud.tpu.v2.ListRuntimeVersionsResponse.Builder.class); + com.google.cloud.tpu.v2.ListRuntimeVersionsResponse.class, + com.google.cloud.tpu.v2.ListRuntimeVersionsResponse.Builder.class); } public static final int RUNTIME_VERSIONS_FIELD_NUMBER = 1; private java.util.List runtimeVersions_; /** + * + * *
    * The listed nodes.
    * 
@@ -64,6 +85,8 @@ public java.util.List getRuntimeVersions return runtimeVersions_; } /** + * + * *
    * The listed nodes.
    * 
@@ -71,11 +94,13 @@ public java.util.List getRuntimeVersions * repeated .google.cloud.tpu.v2.RuntimeVersion runtime_versions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRuntimeVersionsOrBuilderList() { return runtimeVersions_; } /** + * + * *
    * The listed nodes.
    * 
@@ -87,6 +112,8 @@ public int getRuntimeVersionsCount() { return runtimeVersions_.size(); } /** + * + * *
    * The listed nodes.
    * 
@@ -98,6 +125,8 @@ public com.google.cloud.tpu.v2.RuntimeVersion getRuntimeVersions(int index) { return runtimeVersions_.get(index); } /** + * + * *
    * The listed nodes.
    * 
@@ -105,19 +134,21 @@ public com.google.cloud.tpu.v2.RuntimeVersion getRuntimeVersions(int index) { * repeated .google.cloud.tpu.v2.RuntimeVersion runtime_versions = 1; */ @java.lang.Override - public com.google.cloud.tpu.v2.RuntimeVersionOrBuilder getRuntimeVersionsOrBuilder( - int index) { + public com.google.cloud.tpu.v2.RuntimeVersionOrBuilder getRuntimeVersionsOrBuilder(int index) { return runtimeVersions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,29 +157,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -159,34 +190,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -194,20 +233,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < runtimeVersions_.size(); i++) { output.writeMessage(1, runtimeVersions_.get(i)); } @@ -240,8 +281,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < runtimeVersions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, runtimeVersions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, runtimeVersions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -262,19 +302,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.ListRuntimeVersionsResponse)) { return super.equals(obj); } - com.google.cloud.tpu.v2.ListRuntimeVersionsResponse other = (com.google.cloud.tpu.v2.ListRuntimeVersionsResponse) obj; + com.google.cloud.tpu.v2.ListRuntimeVersionsResponse other = + (com.google.cloud.tpu.v2.ListRuntimeVersionsResponse) obj; - if (!getRuntimeVersionsList() - .equals(other.getRuntimeVersionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getRuntimeVersionsList().equals(other.getRuntimeVersionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -302,129 +340,135 @@ public int hashCode() { } public static com.google.cloud.tpu.v2.ListRuntimeVersionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ListRuntimeVersionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.ListRuntimeVersionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ListRuntimeVersionsResponse 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.tpu.v2.ListRuntimeVersionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ListRuntimeVersionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2.ListRuntimeVersionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.ListRuntimeVersionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ListRuntimeVersionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.ListRuntimeVersionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.ListRuntimeVersionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ListRuntimeVersionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.ListRuntimeVersionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ListRuntimeVersionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.ListRuntimeVersionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [ListRuntimeVersions][google.cloud.tpu.v2.Tpu.ListRuntimeVersions].
    * 
* * Protobuf type {@code google.cloud.tpu.v2.ListRuntimeVersionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.ListRuntimeVersionsResponse) com.google.cloud.tpu.v2.ListRuntimeVersionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListRuntimeVersionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListRuntimeVersionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListRuntimeVersionsResponse_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListRuntimeVersionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.ListRuntimeVersionsResponse.class, com.google.cloud.tpu.v2.ListRuntimeVersionsResponse.Builder.class); + com.google.cloud.tpu.v2.ListRuntimeVersionsResponse.class, + com.google.cloud.tpu.v2.ListRuntimeVersionsResponse.Builder.class); } // Construct using com.google.cloud.tpu.v2.ListRuntimeVersionsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ListRuntimeVersionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListRuntimeVersionsResponse_descriptor; } @java.lang.Override @@ -464,7 +508,8 @@ public com.google.cloud.tpu.v2.ListRuntimeVersionsResponse build() { @java.lang.Override public com.google.cloud.tpu.v2.ListRuntimeVersionsResponse buildPartial() { - com.google.cloud.tpu.v2.ListRuntimeVersionsResponse result = new com.google.cloud.tpu.v2.ListRuntimeVersionsResponse(this); + com.google.cloud.tpu.v2.ListRuntimeVersionsResponse result = + new com.google.cloud.tpu.v2.ListRuntimeVersionsResponse(this); int from_bitField0_ = bitField0_; if (runtimeVersionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -489,38 +534,39 @@ public com.google.cloud.tpu.v2.ListRuntimeVersionsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.ListRuntimeVersionsResponse) { - return mergeFrom((com.google.cloud.tpu.v2.ListRuntimeVersionsResponse)other); + return mergeFrom((com.google.cloud.tpu.v2.ListRuntimeVersionsResponse) other); } else { super.mergeFrom(other); return this; @@ -528,7 +574,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2.ListRuntimeVersionsResponse other) { - if (other == com.google.cloud.tpu.v2.ListRuntimeVersionsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2.ListRuntimeVersionsResponse.getDefaultInstance()) + return this; if (runtimeVersionsBuilder_ == null) { if (!other.runtimeVersions_.isEmpty()) { if (runtimeVersions_.isEmpty()) { @@ -547,9 +594,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.ListRuntimeVersionsResponse oth runtimeVersionsBuilder_ = null; runtimeVersions_ = other.runtimeVersions_; bitField0_ = (bitField0_ & ~0x00000001); - runtimeVersionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRuntimeVersionsFieldBuilder() : null; + runtimeVersionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRuntimeVersionsFieldBuilder() + : null; } else { runtimeVersionsBuilder_.addAllMessages(other.runtimeVersions_); } @@ -595,36 +643,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.tpu.v2.RuntimeVersion m = - input.readMessage( - com.google.cloud.tpu.v2.RuntimeVersion.parser(), - extensionRegistry); - if (runtimeVersionsBuilder_ == null) { - ensureRuntimeVersionsIsMutable(); - runtimeVersions_.add(m); - } else { - runtimeVersionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.tpu.v2.RuntimeVersion m = + input.readMessage( + com.google.cloud.tpu.v2.RuntimeVersion.parser(), extensionRegistry); + if (runtimeVersionsBuilder_ == null) { + ensureRuntimeVersionsIsMutable(); + runtimeVersions_.add(m); + } else { + runtimeVersionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -634,21 +685,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List runtimeVersions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRuntimeVersionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - runtimeVersions_ = new java.util.ArrayList(runtimeVersions_); + runtimeVersions_ = + new java.util.ArrayList(runtimeVersions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.RuntimeVersion, com.google.cloud.tpu.v2.RuntimeVersion.Builder, com.google.cloud.tpu.v2.RuntimeVersionOrBuilder> runtimeVersionsBuilder_; + com.google.cloud.tpu.v2.RuntimeVersion, + com.google.cloud.tpu.v2.RuntimeVersion.Builder, + com.google.cloud.tpu.v2.RuntimeVersionOrBuilder> + runtimeVersionsBuilder_; /** + * + * *
      * The listed nodes.
      * 
@@ -663,6 +722,8 @@ public java.util.List getRuntimeVersions } } /** + * + * *
      * The listed nodes.
      * 
@@ -677,6 +738,8 @@ public int getRuntimeVersionsCount() { } } /** + * + * *
      * The listed nodes.
      * 
@@ -691,14 +754,15 @@ public com.google.cloud.tpu.v2.RuntimeVersion getRuntimeVersions(int index) { } } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.RuntimeVersion runtime_versions = 1; */ - public Builder setRuntimeVersions( - int index, com.google.cloud.tpu.v2.RuntimeVersion value) { + public Builder setRuntimeVersions(int index, com.google.cloud.tpu.v2.RuntimeVersion value) { if (runtimeVersionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -712,6 +776,8 @@ public Builder setRuntimeVersions( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -730,6 +796,8 @@ public Builder setRuntimeVersions( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -750,14 +818,15 @@ public Builder addRuntimeVersions(com.google.cloud.tpu.v2.RuntimeVersion value) return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.RuntimeVersion runtime_versions = 1; */ - public Builder addRuntimeVersions( - int index, com.google.cloud.tpu.v2.RuntimeVersion value) { + public Builder addRuntimeVersions(int index, com.google.cloud.tpu.v2.RuntimeVersion value) { if (runtimeVersionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -771,6 +840,8 @@ public Builder addRuntimeVersions( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -789,6 +860,8 @@ public Builder addRuntimeVersions( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -807,6 +880,8 @@ public Builder addRuntimeVersions( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -817,8 +892,7 @@ public Builder addAllRuntimeVersions( java.lang.Iterable values) { if (runtimeVersionsBuilder_ == null) { ensureRuntimeVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, runtimeVersions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, runtimeVersions_); onChanged(); } else { runtimeVersionsBuilder_.addAllMessages(values); @@ -826,6 +900,8 @@ public Builder addAllRuntimeVersions( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -843,6 +919,8 @@ public Builder clearRuntimeVersions() { return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -860,39 +938,44 @@ public Builder removeRuntimeVersions(int index) { return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.RuntimeVersion runtime_versions = 1; */ - public com.google.cloud.tpu.v2.RuntimeVersion.Builder getRuntimeVersionsBuilder( - int index) { + public com.google.cloud.tpu.v2.RuntimeVersion.Builder getRuntimeVersionsBuilder(int index) { return getRuntimeVersionsFieldBuilder().getBuilder(index); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.RuntimeVersion runtime_versions = 1; */ - public com.google.cloud.tpu.v2.RuntimeVersionOrBuilder getRuntimeVersionsOrBuilder( - int index) { + public com.google.cloud.tpu.v2.RuntimeVersionOrBuilder getRuntimeVersionsOrBuilder(int index) { if (runtimeVersionsBuilder_ == null) { - return runtimeVersions_.get(index); } else { + return runtimeVersions_.get(index); + } else { return runtimeVersionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.RuntimeVersion runtime_versions = 1; */ - public java.util.List - getRuntimeVersionsOrBuilderList() { + public java.util.List + getRuntimeVersionsOrBuilderList() { if (runtimeVersionsBuilder_ != null) { return runtimeVersionsBuilder_.getMessageOrBuilderList(); } else { @@ -900,6 +983,8 @@ public com.google.cloud.tpu.v2.RuntimeVersionOrBuilder getRuntimeVersionsOrBuild } } /** + * + * *
      * The listed nodes.
      * 
@@ -907,38 +992,47 @@ public com.google.cloud.tpu.v2.RuntimeVersionOrBuilder getRuntimeVersionsOrBuild * repeated .google.cloud.tpu.v2.RuntimeVersion runtime_versions = 1; */ public com.google.cloud.tpu.v2.RuntimeVersion.Builder addRuntimeVersionsBuilder() { - return getRuntimeVersionsFieldBuilder().addBuilder( - com.google.cloud.tpu.v2.RuntimeVersion.getDefaultInstance()); + return getRuntimeVersionsFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2.RuntimeVersion.getDefaultInstance()); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.RuntimeVersion runtime_versions = 1; */ - public com.google.cloud.tpu.v2.RuntimeVersion.Builder addRuntimeVersionsBuilder( - int index) { - return getRuntimeVersionsFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v2.RuntimeVersion.getDefaultInstance()); + public com.google.cloud.tpu.v2.RuntimeVersion.Builder addRuntimeVersionsBuilder(int index) { + return getRuntimeVersionsFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2.RuntimeVersion.getDefaultInstance()); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2.RuntimeVersion runtime_versions = 1; */ - public java.util.List - getRuntimeVersionsBuilderList() { + public java.util.List + getRuntimeVersionsBuilderList() { return getRuntimeVersionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.RuntimeVersion, com.google.cloud.tpu.v2.RuntimeVersion.Builder, com.google.cloud.tpu.v2.RuntimeVersionOrBuilder> + com.google.cloud.tpu.v2.RuntimeVersion, + com.google.cloud.tpu.v2.RuntimeVersion.Builder, + com.google.cloud.tpu.v2.RuntimeVersionOrBuilder> getRuntimeVersionsFieldBuilder() { if (runtimeVersionsBuilder_ == null) { - runtimeVersionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.RuntimeVersion, com.google.cloud.tpu.v2.RuntimeVersion.Builder, com.google.cloud.tpu.v2.RuntimeVersionOrBuilder>( + runtimeVersionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2.RuntimeVersion, + com.google.cloud.tpu.v2.RuntimeVersion.Builder, + com.google.cloud.tpu.v2.RuntimeVersionOrBuilder>( runtimeVersions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -950,18 +1044,20 @@ public com.google.cloud.tpu.v2.RuntimeVersion.Builder addRuntimeVersionsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -970,20 +1066,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -991,95 +1088,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1087,80 +1201,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1170,28 +1294,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1201,12 +1327,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.ListRuntimeVersionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.ListRuntimeVersionsResponse) private static final com.google.cloud.tpu.v2.ListRuntimeVersionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.ListRuntimeVersionsResponse(); } @@ -1215,27 +1341,27 @@ public static com.google.cloud.tpu.v2.ListRuntimeVersionsResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuntimeVersionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuntimeVersionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1250,6 +1376,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.tpu.v2.ListRuntimeVersionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsResponseOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsResponseOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsResponseOrBuilder.java index 2e32e1a34fc1..ba15692d5d8b 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsResponseOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListRuntimeVersionsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface ListRuntimeVersionsResponseOrBuilder extends +public interface ListRuntimeVersionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.ListRuntimeVersionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v2.RuntimeVersion runtime_versions = 1; */ - java.util.List - getRuntimeVersionsList(); + java.util.List getRuntimeVersionsList(); /** + * + * *
    * The listed nodes.
    * 
@@ -25,6 +44,8 @@ public interface ListRuntimeVersionsResponseOrBuilder extends */ com.google.cloud.tpu.v2.RuntimeVersion getRuntimeVersions(int index); /** + * + * *
    * The listed nodes.
    * 
@@ -33,82 +54,100 @@ public interface ListRuntimeVersionsResponseOrBuilder extends */ int getRuntimeVersionsCount(); /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v2.RuntimeVersion runtime_versions = 1; */ - java.util.List + java.util.List getRuntimeVersionsOrBuilderList(); /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v2.RuntimeVersion runtime_versions = 1; */ - com.google.cloud.tpu.v2.RuntimeVersionOrBuilder getRuntimeVersionsOrBuilder( - int index); + com.google.cloud.tpu.v2.RuntimeVersionOrBuilder getRuntimeVersionsOrBuilder(int index); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/LocationName.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/LocationName.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/LocationName.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/LocationName.java diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfig.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfig.java similarity index 71% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfig.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfig.java index 61d3f71f546f..79d5355d7b4b 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfig.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfig.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Network related configurations.
  * 
* * Protobuf type {@code google.cloud.tpu.v2.NetworkConfig} */ -public final class NetworkConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NetworkConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.NetworkConfig) NetworkConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NetworkConfig.newBuilder() to construct. private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NetworkConfig() { network_ = ""; subnetwork_ = ""; @@ -26,38 +44,42 @@ private NetworkConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NetworkConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_NetworkConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_NetworkConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_NetworkConfig_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_NetworkConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.NetworkConfig.class, com.google.cloud.tpu.v2.NetworkConfig.Builder.class); + com.google.cloud.tpu.v2.NetworkConfig.class, + com.google.cloud.tpu.v2.NetworkConfig.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private volatile java.lang.Object network_; /** + * + * *
    * The name of the network for the TPU node. It must be a preexisting Google
    * Compute Engine network. If none is provided, "default" will be used.
    * 
* * string network = 1; + * * @return The network. */ @java.lang.Override @@ -66,30 +88,30 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** + * + * *
    * The name of the network for the TPU node. It must be a preexisting Google
    * Compute Engine network. If none is provided, "default" will be used.
    * 
* * string network = 1; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -100,6 +122,8 @@ public java.lang.String getNetwork() { public static final int SUBNETWORK_FIELD_NUMBER = 2; private volatile java.lang.Object subnetwork_; /** + * + * *
    * The name of the subnetwork for the TPU node. It must be a preexisting
    * Google Compute Engine subnetwork. If none is provided, "default" will be
@@ -107,6 +131,7 @@ public java.lang.String getNetwork() {
    * 
* * string subnetwork = 2; + * * @return The subnetwork. */ @java.lang.Override @@ -115,14 +140,15 @@ public java.lang.String getSubnetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; } } /** + * + * *
    * The name of the subnetwork for the TPU node. It must be a preexisting
    * Google Compute Engine subnetwork. If none is provided, "default" will be
@@ -130,16 +156,15 @@ public java.lang.String getSubnetwork() {
    * 
* * string subnetwork = 2; + * * @return The bytes for subnetwork. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubnetworkBytes() { + public com.google.protobuf.ByteString getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -150,6 +175,8 @@ public java.lang.String getSubnetwork() { public static final int ENABLE_EXTERNAL_IPS_FIELD_NUMBER = 3; private boolean enableExternalIps_; /** + * + * *
    * Indicates that external IP addresses would be associated with the TPU
    * workers. If set to false, the specified subnetwork or network should have
@@ -157,6 +184,7 @@ public java.lang.String getSubnetwork() {
    * 
* * bool enable_external_ips = 3; + * * @return The enableExternalIps. */ @java.lang.Override @@ -167,6 +195,8 @@ public boolean getEnableExternalIps() { public static final int CAN_IP_FORWARD_FIELD_NUMBER = 4; private boolean canIpForward_; /** + * + * *
    * Allows the TPU node to send and receive packets with non-matching
    * destination or source IPs. This is required if you plan to use the TPU
@@ -174,6 +204,7 @@ public boolean getEnableExternalIps() {
    * 
* * bool can_ip_forward = 4; + * * @return The canIpForward. */ @java.lang.Override @@ -182,6 +213,7 @@ public boolean getCanIpForward() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,8 +225,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); } @@ -223,12 +254,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetwork_); } if (enableExternalIps_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, enableExternalIps_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableExternalIps_); } if (canIpForward_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, canIpForward_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, canIpForward_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -238,21 +267,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.NetworkConfig)) { return super.equals(obj); } com.google.cloud.tpu.v2.NetworkConfig other = (com.google.cloud.tpu.v2.NetworkConfig) obj; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getSubnetwork() - .equals(other.getSubnetwork())) return false; - if (getEnableExternalIps() - != other.getEnableExternalIps()) return false; - if (getCanIpForward() - != other.getCanIpForward()) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getSubnetwork().equals(other.getSubnetwork())) return false; + if (getEnableExternalIps() != other.getEnableExternalIps()) return false; + if (getCanIpForward() != other.getCanIpForward()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -269,140 +294,143 @@ public int hashCode() { hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; hash = (53 * hash) + getSubnetwork().hashCode(); hash = (37 * hash) + ENABLE_EXTERNAL_IPS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableExternalIps()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableExternalIps()); hash = (37 * hash) + CAN_IP_FORWARD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCanIpForward()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCanIpForward()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.tpu.v2.NetworkConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.NetworkConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.NetworkConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2.NetworkConfig parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.tpu.v2.NetworkConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.NetworkConfig 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.tpu.v2.NetworkConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.NetworkConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.NetworkConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.NetworkConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.NetworkConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.NetworkConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.NetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.NetworkConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.NetworkConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Network related configurations.
    * 
* * Protobuf type {@code google.cloud.tpu.v2.NetworkConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.NetworkConfig) com.google.cloud.tpu.v2.NetworkConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_NetworkConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_NetworkConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_NetworkConfig_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_NetworkConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.NetworkConfig.class, com.google.cloud.tpu.v2.NetworkConfig.Builder.class); + com.google.cloud.tpu.v2.NetworkConfig.class, + com.google.cloud.tpu.v2.NetworkConfig.Builder.class); } // Construct using com.google.cloud.tpu.v2.NetworkConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -418,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_NetworkConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_NetworkConfig_descriptor; } @java.lang.Override @@ -439,7 +467,8 @@ public com.google.cloud.tpu.v2.NetworkConfig build() { @java.lang.Override public com.google.cloud.tpu.v2.NetworkConfig buildPartial() { - com.google.cloud.tpu.v2.NetworkConfig result = new com.google.cloud.tpu.v2.NetworkConfig(this); + com.google.cloud.tpu.v2.NetworkConfig result = + new com.google.cloud.tpu.v2.NetworkConfig(this); result.network_ = network_; result.subnetwork_ = subnetwork_; result.enableExternalIps_ = enableExternalIps_; @@ -452,38 +481,39 @@ public com.google.cloud.tpu.v2.NetworkConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.NetworkConfig) { - return mergeFrom((com.google.cloud.tpu.v2.NetworkConfig)other); + return mergeFrom((com.google.cloud.tpu.v2.NetworkConfig) other); } else { super.mergeFrom(other); return this; @@ -532,32 +562,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - network_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - subnetwork_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - enableExternalIps_ = input.readBool(); - - break; - } // case 24 - case 32: { - canIpForward_ = input.readBool(); - - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + network_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + subnetwork_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + enableExternalIps_ = input.readBool(); + + break; + } // case 24 + case 32: + { + canIpForward_ = input.readBool(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -570,19 +605,21 @@ public Builder mergeFrom( private java.lang.Object network_ = ""; /** + * + * *
      * The name of the network for the TPU node. It must be a preexisting Google
      * Compute Engine network. If none is provided, "default" will be used.
      * 
* * string network = 1; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -591,21 +628,22 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * The name of the network for the TPU node. It must be a preexisting Google
      * Compute Engine network. If none is provided, "default" will be used.
      * 
* * string network = 1; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -613,57 +651,64 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * The name of the network for the TPU node. It must be a preexisting Google
      * Compute Engine network. If none is provided, "default" will be used.
      * 
* * string network = 1; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { + public Builder setNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** + * + * *
      * The name of the network for the TPU node. It must be a preexisting Google
      * Compute Engine network. If none is provided, "default" will be used.
      * 
* * string network = 1; + * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** + * + * *
      * The name of the network for the TPU node. It must be a preexisting Google
      * Compute Engine network. If none is provided, "default" will be used.
      * 
* * string network = 1; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -671,6 +716,8 @@ public Builder setNetworkBytes( private java.lang.Object subnetwork_ = ""; /** + * + * *
      * The name of the subnetwork for the TPU node. It must be a preexisting
      * Google Compute Engine subnetwork. If none is provided, "default" will be
@@ -678,13 +725,13 @@ public Builder setNetworkBytes(
      * 
* * string subnetwork = 2; + * * @return The subnetwork. */ public java.lang.String getSubnetwork() { java.lang.Object ref = subnetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; @@ -693,6 +740,8 @@ public java.lang.String getSubnetwork() { } } /** + * + * *
      * The name of the subnetwork for the TPU node. It must be a preexisting
      * Google Compute Engine subnetwork. If none is provided, "default" will be
@@ -700,15 +749,14 @@ public java.lang.String getSubnetwork() {
      * 
* * string subnetwork = 2; + * * @return The bytes for subnetwork. */ - public com.google.protobuf.ByteString - getSubnetworkBytes() { + public com.google.protobuf.ByteString getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -716,6 +764,8 @@ public java.lang.String getSubnetwork() { } } /** + * + * *
      * The name of the subnetwork for the TPU node. It must be a preexisting
      * Google Compute Engine subnetwork. If none is provided, "default" will be
@@ -723,20 +773,22 @@ public java.lang.String getSubnetwork() {
      * 
* * string subnetwork = 2; + * * @param value The subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetwork( - java.lang.String value) { + public Builder setSubnetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subnetwork_ = value; onChanged(); return this; } /** + * + * *
      * The name of the subnetwork for the TPU node. It must be a preexisting
      * Google Compute Engine subnetwork. If none is provided, "default" will be
@@ -744,15 +796,18 @@ public Builder setSubnetwork(
      * 
* * string subnetwork = 2; + * * @return This builder for chaining. */ public Builder clearSubnetwork() { - + subnetwork_ = getDefaultInstance().getSubnetwork(); onChanged(); return this; } /** + * + * *
      * The name of the subnetwork for the TPU node. It must be a preexisting
      * Google Compute Engine subnetwork. If none is provided, "default" will be
@@ -760,23 +815,25 @@ public Builder clearSubnetwork() {
      * 
* * string subnetwork = 2; + * * @param value The bytes for subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnetwork_ = value; onChanged(); return this; } - private boolean enableExternalIps_ ; + private boolean enableExternalIps_; /** + * + * *
      * Indicates that external IP addresses would be associated with the TPU
      * workers. If set to false, the specified subnetwork or network should have
@@ -784,6 +841,7 @@ public Builder setSubnetworkBytes(
      * 
* * bool enable_external_ips = 3; + * * @return The enableExternalIps. */ @java.lang.Override @@ -791,6 +849,8 @@ public boolean getEnableExternalIps() { return enableExternalIps_; } /** + * + * *
      * Indicates that external IP addresses would be associated with the TPU
      * workers. If set to false, the specified subnetwork or network should have
@@ -798,16 +858,19 @@ public boolean getEnableExternalIps() {
      * 
* * bool enable_external_ips = 3; + * * @param value The enableExternalIps to set. * @return This builder for chaining. */ public Builder setEnableExternalIps(boolean value) { - + enableExternalIps_ = value; onChanged(); return this; } /** + * + * *
      * Indicates that external IP addresses would be associated with the TPU
      * workers. If set to false, the specified subnetwork or network should have
@@ -815,17 +878,20 @@ public Builder setEnableExternalIps(boolean value) {
      * 
* * bool enable_external_ips = 3; + * * @return This builder for chaining. */ public Builder clearEnableExternalIps() { - + enableExternalIps_ = false; onChanged(); return this; } - private boolean canIpForward_ ; + private boolean canIpForward_; /** + * + * *
      * Allows the TPU node to send and receive packets with non-matching
      * destination or source IPs. This is required if you plan to use the TPU
@@ -833,6 +899,7 @@ public Builder clearEnableExternalIps() {
      * 
* * bool can_ip_forward = 4; + * * @return The canIpForward. */ @java.lang.Override @@ -840,6 +907,8 @@ public boolean getCanIpForward() { return canIpForward_; } /** + * + * *
      * Allows the TPU node to send and receive packets with non-matching
      * destination or source IPs. This is required if you plan to use the TPU
@@ -847,16 +916,19 @@ public boolean getCanIpForward() {
      * 
* * bool can_ip_forward = 4; + * * @param value The canIpForward to set. * @return This builder for chaining. */ public Builder setCanIpForward(boolean value) { - + canIpForward_ = value; onChanged(); return this; } /** + * + * *
      * Allows the TPU node to send and receive packets with non-matching
      * destination or source IPs. This is required if you plan to use the TPU
@@ -864,17 +936,18 @@ public Builder setCanIpForward(boolean value) {
      * 
* * bool can_ip_forward = 4; + * * @return This builder for chaining. */ public Builder clearCanIpForward() { - + canIpForward_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -884,12 +957,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.NetworkConfig) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.NetworkConfig) private static final com.google.cloud.tpu.v2.NetworkConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.NetworkConfig(); } @@ -898,27 +971,27 @@ public static com.google.cloud.tpu.v2.NetworkConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -933,6 +1006,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.NetworkConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfigOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfigOrBuilder.java similarity index 71% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfigOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfigOrBuilder.java index 6835c260f7d5..e8489117651c 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfigOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfigOrBuilder.java @@ -1,35 +1,58 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface NetworkConfigOrBuilder extends +public interface NetworkConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.NetworkConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the network for the TPU node. It must be a preexisting Google
    * Compute Engine network. If none is provided, "default" will be used.
    * 
* * string network = 1; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
    * The name of the network for the TPU node. It must be a preexisting Google
    * Compute Engine network. If none is provided, "default" will be used.
    * 
* * string network = 1; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
    * The name of the subnetwork for the TPU node. It must be a preexisting
    * Google Compute Engine subnetwork. If none is provided, "default" will be
@@ -37,10 +60,13 @@ public interface NetworkConfigOrBuilder extends
    * 
* * string subnetwork = 2; + * * @return The subnetwork. */ java.lang.String getSubnetwork(); /** + * + * *
    * The name of the subnetwork for the TPU node. It must be a preexisting
    * Google Compute Engine subnetwork. If none is provided, "default" will be
@@ -48,12 +74,14 @@ public interface NetworkConfigOrBuilder extends
    * 
* * string subnetwork = 2; + * * @return The bytes for subnetwork. */ - com.google.protobuf.ByteString - getSubnetworkBytes(); + com.google.protobuf.ByteString getSubnetworkBytes(); /** + * + * *
    * Indicates that external IP addresses would be associated with the TPU
    * workers. If set to false, the specified subnetwork or network should have
@@ -61,11 +89,14 @@ public interface NetworkConfigOrBuilder extends
    * 
* * bool enable_external_ips = 3; + * * @return The enableExternalIps. */ boolean getEnableExternalIps(); /** + * + * *
    * Allows the TPU node to send and receive packets with non-matching
    * destination or source IPs. This is required if you plan to use the TPU
@@ -73,6 +104,7 @@ public interface NetworkConfigOrBuilder extends
    * 
* * bool can_ip_forward = 4; + * * @return The canIpForward. */ boolean getCanIpForward(); diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkEndpoint.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkEndpoint.java similarity index 68% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkEndpoint.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkEndpoint.java index a8c6fc25b876..9c03e5288f92 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkEndpoint.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkEndpoint.java @@ -1,61 +1,83 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * A network endpoint over which a TPU worker can be reached.
  * 
* * Protobuf type {@code google.cloud.tpu.v2.NetworkEndpoint} */ -public final class NetworkEndpoint extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NetworkEndpoint extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.NetworkEndpoint) NetworkEndpointOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NetworkEndpoint.newBuilder() to construct. private NetworkEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NetworkEndpoint() { ipAddress_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NetworkEndpoint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_NetworkEndpoint_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_NetworkEndpoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_NetworkEndpoint_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_NetworkEndpoint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.NetworkEndpoint.class, com.google.cloud.tpu.v2.NetworkEndpoint.Builder.class); + com.google.cloud.tpu.v2.NetworkEndpoint.class, + com.google.cloud.tpu.v2.NetworkEndpoint.Builder.class); } public static final int IP_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object ipAddress_; /** + * + * *
    * The internal IP address of this network endpoint.
    * 
* * string ip_address = 1; + * * @return The ipAddress. */ @java.lang.Override @@ -64,29 +86,29 @@ public java.lang.String getIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** + * + * *
    * The internal IP address of this network endpoint.
    * 
* * string ip_address = 1; + * * @return The bytes for ipAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -97,11 +119,14 @@ public java.lang.String getIpAddress() { public static final int PORT_FIELD_NUMBER = 2; private int port_; /** + * + * *
    * The port of this network endpoint.
    * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -112,11 +137,14 @@ public int getPort() { public static final int ACCESS_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.tpu.v2.AccessConfig accessConfig_; /** + * + * *
    * The access config for the TPU worker.
    * 
* * .google.cloud.tpu.v2.AccessConfig access_config = 5; + * * @return Whether the accessConfig field is set. */ @java.lang.Override @@ -124,18 +152,25 @@ public boolean hasAccessConfig() { return accessConfig_ != null; } /** + * + * *
    * The access config for the TPU worker.
    * 
* * .google.cloud.tpu.v2.AccessConfig access_config = 5; + * * @return The accessConfig. */ @java.lang.Override public com.google.cloud.tpu.v2.AccessConfig getAccessConfig() { - return accessConfig_ == null ? com.google.cloud.tpu.v2.AccessConfig.getDefaultInstance() : accessConfig_; + return accessConfig_ == null + ? com.google.cloud.tpu.v2.AccessConfig.getDefaultInstance() + : accessConfig_; } /** + * + * *
    * The access config for the TPU worker.
    * 
@@ -148,6 +183,7 @@ public com.google.cloud.tpu.v2.AccessConfigOrBuilder getAccessConfigOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +195,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipAddress_); } @@ -183,12 +218,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ipAddress_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); } if (accessConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAccessConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAccessConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -198,21 +231,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.NetworkEndpoint)) { return super.equals(obj); } com.google.cloud.tpu.v2.NetworkEndpoint other = (com.google.cloud.tpu.v2.NetworkEndpoint) obj; - if (!getIpAddress() - .equals(other.getIpAddress())) return false; - if (getPort() - != other.getPort()) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (getPort() != other.getPort()) return false; if (hasAccessConfig() != other.hasAccessConfig()) return false; if (hasAccessConfig()) { - if (!getAccessConfig() - .equals(other.getAccessConfig())) return false; + if (!getAccessConfig().equals(other.getAccessConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -238,130 +268,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.NetworkEndpoint parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.NetworkEndpoint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.NetworkEndpoint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.NetworkEndpoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.NetworkEndpoint 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.tpu.v2.NetworkEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.NetworkEndpoint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.NetworkEndpoint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.NetworkEndpoint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.NetworkEndpoint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.NetworkEndpoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.NetworkEndpoint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.NetworkEndpoint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.NetworkEndpoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.NetworkEndpoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A network endpoint over which a TPU worker can be reached.
    * 
* * Protobuf type {@code google.cloud.tpu.v2.NetworkEndpoint} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.NetworkEndpoint) com.google.cloud.tpu.v2.NetworkEndpointOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_NetworkEndpoint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_NetworkEndpoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_NetworkEndpoint_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_NetworkEndpoint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.NetworkEndpoint.class, com.google.cloud.tpu.v2.NetworkEndpoint.Builder.class); + com.google.cloud.tpu.v2.NetworkEndpoint.class, + com.google.cloud.tpu.v2.NetworkEndpoint.Builder.class); } // Construct using com.google.cloud.tpu.v2.NetworkEndpoint.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +415,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_NetworkEndpoint_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_NetworkEndpoint_descriptor; } @java.lang.Override @@ -400,7 +436,8 @@ public com.google.cloud.tpu.v2.NetworkEndpoint build() { @java.lang.Override public com.google.cloud.tpu.v2.NetworkEndpoint buildPartial() { - com.google.cloud.tpu.v2.NetworkEndpoint result = new com.google.cloud.tpu.v2.NetworkEndpoint(this); + com.google.cloud.tpu.v2.NetworkEndpoint result = + new com.google.cloud.tpu.v2.NetworkEndpoint(this); result.ipAddress_ = ipAddress_; result.port_ = port_; if (accessConfigBuilder_ == null) { @@ -416,38 +453,39 @@ public com.google.cloud.tpu.v2.NetworkEndpoint buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.NetworkEndpoint) { - return mergeFrom((com.google.cloud.tpu.v2.NetworkEndpoint)other); + return mergeFrom((com.google.cloud.tpu.v2.NetworkEndpoint) other); } else { super.mergeFrom(other); return this; @@ -492,29 +530,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - ipAddress_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - port_ = input.readInt32(); - - break; - } // case 16 - case 42: { - input.readMessage( - getAccessConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + ipAddress_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + port_ = input.readInt32(); + + break; + } // case 16 + case 42: + { + input.readMessage(getAccessConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -527,18 +567,20 @@ public Builder mergeFrom( private java.lang.Object ipAddress_ = ""; /** + * + * *
      * The internal IP address of this network endpoint.
      * 
* * string ip_address = 1; + * * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -547,20 +589,21 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The internal IP address of this network endpoint.
      * 
* * string ip_address = 1; + * * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -568,66 +611,76 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The internal IP address of this network endpoint.
      * 
* * string ip_address = 1; + * * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddress( - java.lang.String value) { + public Builder setIpAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipAddress_ = value; onChanged(); return this; } /** + * + * *
      * The internal IP address of this network endpoint.
      * 
* * string ip_address = 1; + * * @return This builder for chaining. */ public Builder clearIpAddress() { - + ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** + * + * *
      * The internal IP address of this network endpoint.
      * 
* * string ip_address = 1; + * * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; onChanged(); return this; } - private int port_ ; + private int port_; /** + * + * *
      * The port of this network endpoint.
      * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -635,30 +688,36 @@ public int getPort() { return port_; } /** + * + * *
      * The port of this network endpoint.
      * 
* * int32 port = 2; + * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; onChanged(); return this; } /** + * + * *
      * The port of this network endpoint.
      * 
* * int32 port = 2; + * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -666,34 +725,47 @@ public Builder clearPort() { private com.google.cloud.tpu.v2.AccessConfig accessConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.AccessConfig, com.google.cloud.tpu.v2.AccessConfig.Builder, com.google.cloud.tpu.v2.AccessConfigOrBuilder> accessConfigBuilder_; + com.google.cloud.tpu.v2.AccessConfig, + com.google.cloud.tpu.v2.AccessConfig.Builder, + com.google.cloud.tpu.v2.AccessConfigOrBuilder> + accessConfigBuilder_; /** + * + * *
      * The access config for the TPU worker.
      * 
* * .google.cloud.tpu.v2.AccessConfig access_config = 5; + * * @return Whether the accessConfig field is set. */ public boolean hasAccessConfig() { return accessConfigBuilder_ != null || accessConfig_ != null; } /** + * + * *
      * The access config for the TPU worker.
      * 
* * .google.cloud.tpu.v2.AccessConfig access_config = 5; + * * @return The accessConfig. */ public com.google.cloud.tpu.v2.AccessConfig getAccessConfig() { if (accessConfigBuilder_ == null) { - return accessConfig_ == null ? com.google.cloud.tpu.v2.AccessConfig.getDefaultInstance() : accessConfig_; + return accessConfig_ == null + ? com.google.cloud.tpu.v2.AccessConfig.getDefaultInstance() + : accessConfig_; } else { return accessConfigBuilder_.getMessage(); } } /** + * + * *
      * The access config for the TPU worker.
      * 
@@ -714,14 +786,15 @@ public Builder setAccessConfig(com.google.cloud.tpu.v2.AccessConfig value) { return this; } /** + * + * *
      * The access config for the TPU worker.
      * 
* * .google.cloud.tpu.v2.AccessConfig access_config = 5; */ - public Builder setAccessConfig( - com.google.cloud.tpu.v2.AccessConfig.Builder builderForValue) { + public Builder setAccessConfig(com.google.cloud.tpu.v2.AccessConfig.Builder builderForValue) { if (accessConfigBuilder_ == null) { accessConfig_ = builderForValue.build(); onChanged(); @@ -732,6 +805,8 @@ public Builder setAccessConfig( return this; } /** + * + * *
      * The access config for the TPU worker.
      * 
@@ -742,7 +817,9 @@ public Builder mergeAccessConfig(com.google.cloud.tpu.v2.AccessConfig value) { if (accessConfigBuilder_ == null) { if (accessConfig_ != null) { accessConfig_ = - com.google.cloud.tpu.v2.AccessConfig.newBuilder(accessConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v2.AccessConfig.newBuilder(accessConfig_) + .mergeFrom(value) + .buildPartial(); } else { accessConfig_ = value; } @@ -754,6 +831,8 @@ public Builder mergeAccessConfig(com.google.cloud.tpu.v2.AccessConfig value) { return this; } /** + * + * *
      * The access config for the TPU worker.
      * 
@@ -772,6 +851,8 @@ public Builder clearAccessConfig() { return this; } /** + * + * *
      * The access config for the TPU worker.
      * 
@@ -779,11 +860,13 @@ public Builder clearAccessConfig() { * .google.cloud.tpu.v2.AccessConfig access_config = 5; */ public com.google.cloud.tpu.v2.AccessConfig.Builder getAccessConfigBuilder() { - + onChanged(); return getAccessConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The access config for the TPU worker.
      * 
@@ -794,11 +877,14 @@ public com.google.cloud.tpu.v2.AccessConfigOrBuilder getAccessConfigOrBuilder() if (accessConfigBuilder_ != null) { return accessConfigBuilder_.getMessageOrBuilder(); } else { - return accessConfig_ == null ? - com.google.cloud.tpu.v2.AccessConfig.getDefaultInstance() : accessConfig_; + return accessConfig_ == null + ? com.google.cloud.tpu.v2.AccessConfig.getDefaultInstance() + : accessConfig_; } } /** + * + * *
      * The access config for the TPU worker.
      * 
@@ -806,21 +892,24 @@ public com.google.cloud.tpu.v2.AccessConfigOrBuilder getAccessConfigOrBuilder() * .google.cloud.tpu.v2.AccessConfig access_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.AccessConfig, com.google.cloud.tpu.v2.AccessConfig.Builder, com.google.cloud.tpu.v2.AccessConfigOrBuilder> + com.google.cloud.tpu.v2.AccessConfig, + com.google.cloud.tpu.v2.AccessConfig.Builder, + com.google.cloud.tpu.v2.AccessConfigOrBuilder> getAccessConfigFieldBuilder() { if (accessConfigBuilder_ == null) { - accessConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.AccessConfig, com.google.cloud.tpu.v2.AccessConfig.Builder, com.google.cloud.tpu.v2.AccessConfigOrBuilder>( - getAccessConfig(), - getParentForChildren(), - isClean()); + accessConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.AccessConfig, + com.google.cloud.tpu.v2.AccessConfig.Builder, + com.google.cloud.tpu.v2.AccessConfigOrBuilder>( + getAccessConfig(), getParentForChildren(), isClean()); accessConfig_ = null; } return accessConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -830,12 +919,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.NetworkEndpoint) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.NetworkEndpoint) private static final com.google.cloud.tpu.v2.NetworkEndpoint DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.NetworkEndpoint(); } @@ -844,27 +933,27 @@ public static com.google.cloud.tpu.v2.NetworkEndpoint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkEndpoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkEndpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -879,6 +968,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.NetworkEndpoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkEndpointOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkEndpointOrBuilder.java similarity index 65% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkEndpointOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkEndpointOrBuilder.java index 73e837baae12..9f14e96890a9 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkEndpointOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkEndpointOrBuilder.java @@ -1,61 +1,93 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface NetworkEndpointOrBuilder extends +public interface NetworkEndpointOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.NetworkEndpoint) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The internal IP address of this network endpoint.
    * 
* * string ip_address = 1; + * * @return The ipAddress. */ java.lang.String getIpAddress(); /** + * + * *
    * The internal IP address of this network endpoint.
    * 
* * string ip_address = 1; + * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString - getIpAddressBytes(); + com.google.protobuf.ByteString getIpAddressBytes(); /** + * + * *
    * The port of this network endpoint.
    * 
* * int32 port = 2; + * * @return The port. */ int getPort(); /** + * + * *
    * The access config for the TPU worker.
    * 
* * .google.cloud.tpu.v2.AccessConfig access_config = 5; + * * @return Whether the accessConfig field is set. */ boolean hasAccessConfig(); /** + * + * *
    * The access config for the TPU worker.
    * 
* * .google.cloud.tpu.v2.AccessConfig access_config = 5; + * * @return The accessConfig. */ com.google.cloud.tpu.v2.AccessConfig getAccessConfig(); /** + * + * *
    * The access config for the TPU worker.
    * 
diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/Node.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/Node.java similarity index 71% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/Node.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/Node.java index 0b15a3c1e59f..a79a8252ec90 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/Node.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/Node.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * A TPU instance.
  * 
* * Protobuf type {@code google.cloud.tpu.v2.Node} */ -public final class Node extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Node extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.Node) NodeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Node.newBuilder() to construct. private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Node() { name_ = ""; description_ = ""; @@ -37,53 +55,55 @@ private Node() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Node(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_Node_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_Node_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 24: return internalGetLabels(); case 34: return internalGetMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_Node_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.tpu.v2.Node.class, com.google.cloud.tpu.v2.Node.Builder.class); } /** + * + * *
    * Represents the different states of a TPU node during its lifecycle.
    * 
* * Protobuf enum {@code google.cloud.tpu.v2.Node.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * TPU node state is not known/set.
      * 
@@ -92,6 +112,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * TPU node is being created.
      * 
@@ -100,6 +122,8 @@ public enum State */ CREATING(1), /** + * + * *
      * TPU node has been created.
      * 
@@ -108,6 +132,8 @@ public enum State */ READY(2), /** + * + * *
      * TPU node is restarting.
      * 
@@ -116,6 +142,8 @@ public enum State */ RESTARTING(3), /** + * + * *
      * TPU node is undergoing reimaging.
      * 
@@ -124,6 +152,8 @@ public enum State */ REIMAGING(4), /** + * + * *
      * TPU node is being deleted.
      * 
@@ -132,6 +162,8 @@ public enum State */ DELETING(5), /** + * + * *
      * TPU node is being repaired and may be unusable. Details can be
      * found in the `help_description` field.
@@ -141,6 +173,8 @@ public enum State
      */
     REPAIRING(6),
     /**
+     *
+     *
      * 
      * TPU node is stopped.
      * 
@@ -149,6 +183,8 @@ public enum State */ STOPPED(8), /** + * + * *
      * TPU node is currently stopping.
      * 
@@ -157,6 +193,8 @@ public enum State */ STOPPING(9), /** + * + * *
      * TPU node is currently starting.
      * 
@@ -165,6 +203,8 @@ public enum State */ STARTING(10), /** + * + * *
      * TPU node has been preempted. Only applies to Preemptible TPU Nodes.
      * 
@@ -173,6 +213,8 @@ public enum State */ PREEMPTED(11), /** + * + * *
      * TPU node has been terminated due to maintenance or has reached the end of
      * its life cycle (for preemptible nodes).
@@ -182,6 +224,8 @@ public enum State
      */
     TERMINATED(12),
     /**
+     *
+     *
      * 
      * TPU node is currently hiding.
      * 
@@ -190,6 +234,8 @@ public enum State */ HIDING(13), /** + * + * *
      * TPU node has been hidden.
      * 
@@ -198,6 +244,8 @@ public enum State */ HIDDEN(14), /** + * + * *
      * TPU node is currently unhiding.
      * 
@@ -209,6 +257,8 @@ public enum State ; /** + * + * *
      * TPU node state is not known/set.
      * 
@@ -217,6 +267,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * TPU node is being created.
      * 
@@ -225,6 +277,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * TPU node has been created.
      * 
@@ -233,6 +287,8 @@ public enum State */ public static final int READY_VALUE = 2; /** + * + * *
      * TPU node is restarting.
      * 
@@ -241,6 +297,8 @@ public enum State */ public static final int RESTARTING_VALUE = 3; /** + * + * *
      * TPU node is undergoing reimaging.
      * 
@@ -249,6 +307,8 @@ public enum State */ public static final int REIMAGING_VALUE = 4; /** + * + * *
      * TPU node is being deleted.
      * 
@@ -257,6 +317,8 @@ public enum State */ public static final int DELETING_VALUE = 5; /** + * + * *
      * TPU node is being repaired and may be unusable. Details can be
      * found in the `help_description` field.
@@ -266,6 +328,8 @@ public enum State
      */
     public static final int REPAIRING_VALUE = 6;
     /**
+     *
+     *
      * 
      * TPU node is stopped.
      * 
@@ -274,6 +338,8 @@ public enum State */ public static final int STOPPED_VALUE = 8; /** + * + * *
      * TPU node is currently stopping.
      * 
@@ -282,6 +348,8 @@ public enum State */ public static final int STOPPING_VALUE = 9; /** + * + * *
      * TPU node is currently starting.
      * 
@@ -290,6 +358,8 @@ public enum State */ public static final int STARTING_VALUE = 10; /** + * + * *
      * TPU node has been preempted. Only applies to Preemptible TPU Nodes.
      * 
@@ -298,6 +368,8 @@ public enum State */ public static final int PREEMPTED_VALUE = 11; /** + * + * *
      * TPU node has been terminated due to maintenance or has reached the end of
      * its life cycle (for preemptible nodes).
@@ -307,6 +379,8 @@ public enum State
      */
     public static final int TERMINATED_VALUE = 12;
     /**
+     *
+     *
      * 
      * TPU node is currently hiding.
      * 
@@ -315,6 +389,8 @@ public enum State */ public static final int HIDING_VALUE = 13; /** + * + * *
      * TPU node has been hidden.
      * 
@@ -323,6 +399,8 @@ public enum State */ public static final int HIDDEN_VALUE = 14; /** + * + * *
      * TPU node is currently unhiding.
      * 
@@ -331,7 +409,6 @@ public enum State */ public static final int UNHIDING_VALUE = 15; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -356,61 +433,73 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 2: return READY; - case 3: return RESTARTING; - case 4: return REIMAGING; - case 5: return DELETING; - case 6: return REPAIRING; - case 8: return STOPPED; - case 9: return STOPPING; - case 10: return STARTING; - case 11: return PREEMPTED; - case 12: return TERMINATED; - case 13: return HIDING; - case 14: return HIDDEN; - case 15: return UNHIDING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return RESTARTING; + case 4: + return REIMAGING; + case 5: + return DELETING; + case 6: + return REPAIRING; + case 8: + return STOPPED; + case 9: + return STOPPING; + case 10: + return STARTING; + case 11: + return PREEMPTED; + case 12: + return TERMINATED; + case 13: + return HIDING; + case 14: + return HIDDEN; + case 15: + return UNHIDING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + 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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.tpu.v2.Node.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + 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."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -428,6 +517,8 @@ private State(int value) { } /** + * + * *
    * Health defines the status of a TPU node as reported by
    * Health Monitor.
@@ -435,9 +526,10 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.tpu.v2.Node.Health}
    */
-  public enum Health
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Health implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Health status is unknown: not initialized or failed to retrieve.
      * 
@@ -446,6 +538,8 @@ public enum Health */ HEALTH_UNSPECIFIED(0), /** + * + * *
      * The resource is healthy.
      * 
@@ -454,6 +548,8 @@ public enum Health */ HEALTHY(1), /** + * + * *
      * The resource is unresponsive.
      * 
@@ -462,6 +558,8 @@ public enum Health */ TIMEOUT(3), /** + * + * *
      * The in-guest ML stack is unhealthy.
      * 
@@ -470,6 +568,8 @@ public enum Health */ UNHEALTHY_TENSORFLOW(4), /** + * + * *
      * The node is under maintenance/priority boost caused rescheduling and
      * will resume running once rescheduled.
@@ -482,6 +582,8 @@ public enum Health
     ;
 
     /**
+     *
+     *
      * 
      * Health status is unknown: not initialized or failed to retrieve.
      * 
@@ -490,6 +592,8 @@ public enum Health */ public static final int HEALTH_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The resource is healthy.
      * 
@@ -498,6 +602,8 @@ public enum Health */ public static final int HEALTHY_VALUE = 1; /** + * + * *
      * The resource is unresponsive.
      * 
@@ -506,6 +612,8 @@ public enum Health */ public static final int TIMEOUT_VALUE = 3; /** + * + * *
      * The in-guest ML stack is unhealthy.
      * 
@@ -514,6 +622,8 @@ public enum Health */ public static final int UNHEALTHY_TENSORFLOW_VALUE = 4; /** + * + * *
      * The node is under maintenance/priority boost caused rescheduling and
      * will resume running once rescheduled.
@@ -523,7 +633,6 @@ public enum Health
      */
     public static final int UNHEALTHY_MAINTENANCE_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -548,51 +657,53 @@ public static Health valueOf(int value) {
      */
     public static Health forNumber(int value) {
       switch (value) {
-        case 0: return HEALTH_UNSPECIFIED;
-        case 1: return HEALTHY;
-        case 3: return TIMEOUT;
-        case 4: return UNHEALTHY_TENSORFLOW;
-        case 5: return UNHEALTHY_MAINTENANCE;
-        default: return null;
+        case 0:
+          return HEALTH_UNSPECIFIED;
+        case 1:
+          return HEALTHY;
+        case 3:
+          return TIMEOUT;
+        case 4:
+          return UNHEALTHY_TENSORFLOW;
+        case 5:
+          return UNHEALTHY_MAINTENANCE;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        Health> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Health findValueByNumber(int number) {
-              return Health.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Health findValueByNumber(int number) {
+            return Health.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() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.tpu.v2.Node.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Health[] VALUES = values();
 
-    public static Health valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Health valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -610,15 +721,18 @@ private Health(int value) {
   }
 
   /**
+   *
+   *
    * 
    * TPU API Version.
    * 
* * Protobuf enum {@code google.cloud.tpu.v2.Node.ApiVersion} */ - public enum ApiVersion - implements com.google.protobuf.ProtocolMessageEnum { + public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * API version is unknown.
      * 
@@ -627,6 +741,8 @@ public enum ApiVersion */ API_VERSION_UNSPECIFIED(0), /** + * + * *
      * TPU API V1Alpha1 version.
      * 
@@ -635,6 +751,8 @@ public enum ApiVersion */ V1_ALPHA1(1), /** + * + * *
      * TPU API V1 version.
      * 
@@ -643,6 +761,8 @@ public enum ApiVersion */ V1(2), /** + * + * *
      * TPU API V2Alpha1 version.
      * 
@@ -651,6 +771,8 @@ public enum ApiVersion */ V2_ALPHA1(3), /** + * + * *
      * TPU API V2 version.
      * 
@@ -662,6 +784,8 @@ public enum ApiVersion ; /** + * + * *
      * API version is unknown.
      * 
@@ -670,6 +794,8 @@ public enum ApiVersion */ public static final int API_VERSION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * TPU API V1Alpha1 version.
      * 
@@ -678,6 +804,8 @@ public enum ApiVersion */ public static final int V1_ALPHA1_VALUE = 1; /** + * + * *
      * TPU API V1 version.
      * 
@@ -686,6 +814,8 @@ public enum ApiVersion */ public static final int V1_VALUE = 2; /** + * + * *
      * TPU API V2Alpha1 version.
      * 
@@ -694,6 +824,8 @@ public enum ApiVersion */ public static final int V2_ALPHA1_VALUE = 3; /** + * + * *
      * TPU API V2 version.
      * 
@@ -702,7 +834,6 @@ public enum ApiVersion */ public static final int V2_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -727,51 +858,53 @@ public static ApiVersion valueOf(int value) { */ public static ApiVersion forNumber(int value) { switch (value) { - case 0: return API_VERSION_UNSPECIFIED; - case 1: return V1_ALPHA1; - case 2: return V1; - case 3: return V2_ALPHA1; - case 4: return V2; - default: return null; + case 0: + return API_VERSION_UNSPECIFIED; + case 1: + return V1_ALPHA1; + case 2: + return V1; + case 3: + return V2_ALPHA1; + case 4: + return V2; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ApiVersion> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ApiVersion findValueByNumber(int number) { - return ApiVersion.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ApiVersion findValueByNumber(int number) { + return ApiVersion.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.tpu.v2.Node.getDescriptor().getEnumTypes().get(2); } private static final ApiVersion[] VALUES = values(); - public static ApiVersion valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ApiVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -791,11 +924,16 @@ private ApiVersion(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. Immutable. The name of the TPU.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The name. */ @java.lang.Override @@ -804,29 +942,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Immutable. The name of the TPU.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -837,11 +977,14 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * The user-supplied description of the TPU. Maximum of 512 characters.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -850,29 +993,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * The user-supplied description of the TPU. Maximum of 512 characters.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -883,11 +1026,14 @@ public java.lang.String getDescription() { public static final int ACCELERATOR_TYPE_FIELD_NUMBER = 5; private volatile java.lang.Object acceleratorType_; /** + * + * *
    * Required. The type of hardware accelerators associated with this node.
    * 
* * string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The acceleratorType. */ @java.lang.Override @@ -896,29 +1042,29 @@ public java.lang.String getAcceleratorType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); acceleratorType_ = s; return s; } } /** + * + * *
    * Required. The type of hardware accelerators associated with this node.
    * 
* * string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for acceleratorType. */ @java.lang.Override - public com.google.protobuf.ByteString - getAcceleratorTypeBytes() { + public com.google.protobuf.ByteString getAcceleratorTypeBytes() { java.lang.Object ref = acceleratorType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); acceleratorType_ = b; return b; } else { @@ -929,25 +1075,35 @@ public java.lang.String getAcceleratorType() { public static final int STATE_FIELD_NUMBER = 9; private int state_; /** + * + * *
    * Output only. The current state for the TPU Node.
    * 
* - * .google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current state for the TPU Node.
    * 
* - * .google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.tpu.v2.Node.State getState() { + @java.lang.Override + public com.google.cloud.tpu.v2.Node.State getState() { @SuppressWarnings("deprecation") com.google.cloud.tpu.v2.Node.State result = com.google.cloud.tpu.v2.Node.State.valueOf(state_); return result == null ? com.google.cloud.tpu.v2.Node.State.UNRECOGNIZED : result; @@ -956,12 +1112,15 @@ public java.lang.String getAcceleratorType() { public static final int HEALTH_DESCRIPTION_FIELD_NUMBER = 10; private volatile java.lang.Object healthDescription_; /** + * + * *
    * Output only. If this field is populated, it contains a description of why the TPU Node
    * is unhealthy.
    * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The healthDescription. */ @java.lang.Override @@ -970,30 +1129,30 @@ public java.lang.String getHealthDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); healthDescription_ = s; return s; } } /** + * + * *
    * Output only. If this field is populated, it contains a description of why the TPU Node
    * is unhealthy.
    * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for healthDescription. */ @java.lang.Override - public com.google.protobuf.ByteString - getHealthDescriptionBytes() { + public com.google.protobuf.ByteString getHealthDescriptionBytes() { java.lang.Object ref = healthDescription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); healthDescription_ = b; return b; } else { @@ -1004,11 +1163,14 @@ public java.lang.String getHealthDescription() { public static final int RUNTIME_VERSION_FIELD_NUMBER = 11; private volatile java.lang.Object runtimeVersion_; /** + * + * *
    * Required. The runtime version running in the Node.
    * 
* * string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The runtimeVersion. */ @java.lang.Override @@ -1017,29 +1179,29 @@ public java.lang.String getRuntimeVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtimeVersion_ = s; return s; } } /** + * + * *
    * Required. The runtime version running in the Node.
    * 
* * string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for runtimeVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getRuntimeVersionBytes() { + public com.google.protobuf.ByteString getRuntimeVersionBytes() { java.lang.Object ref = runtimeVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); runtimeVersion_ = b; return b; } else { @@ -1050,11 +1212,14 @@ public java.lang.String getRuntimeVersion() { public static final int NETWORK_CONFIG_FIELD_NUMBER = 36; private com.google.cloud.tpu.v2.NetworkConfig networkConfig_; /** + * + * *
    * Network configurations for the TPU node.
    * 
* * .google.cloud.tpu.v2.NetworkConfig network_config = 36; + * * @return Whether the networkConfig field is set. */ @java.lang.Override @@ -1062,18 +1227,25 @@ public boolean hasNetworkConfig() { return networkConfig_ != null; } /** + * + * *
    * Network configurations for the TPU node.
    * 
* * .google.cloud.tpu.v2.NetworkConfig network_config = 36; + * * @return The networkConfig. */ @java.lang.Override public com.google.cloud.tpu.v2.NetworkConfig getNetworkConfig() { - return networkConfig_ == null ? com.google.cloud.tpu.v2.NetworkConfig.getDefaultInstance() : networkConfig_; + return networkConfig_ == null + ? com.google.cloud.tpu.v2.NetworkConfig.getDefaultInstance() + : networkConfig_; } /** + * + * *
    * Network configurations for the TPU node.
    * 
@@ -1088,6 +1260,8 @@ public com.google.cloud.tpu.v2.NetworkConfigOrBuilder getNetworkConfigOrBuilder( public static final int CIDR_BLOCK_FIELD_NUMBER = 13; private volatile java.lang.Object cidrBlock_; /** + * + * *
    * The CIDR block that the TPU node will use when selecting an IP address.
    * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -1100,6 +1274,7 @@ public com.google.cloud.tpu.v2.NetworkConfigOrBuilder getNetworkConfigOrBuilder(
    * 
* * string cidr_block = 13; + * * @return The cidrBlock. */ @java.lang.Override @@ -1108,14 +1283,15 @@ public java.lang.String getCidrBlock() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cidrBlock_ = s; return s; } } /** + * + * *
    * The CIDR block that the TPU node will use when selecting an IP address.
    * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -1128,16 +1304,15 @@ public java.lang.String getCidrBlock() {
    * 
* * string cidr_block = 13; + * * @return The bytes for cidrBlock. */ @java.lang.Override - public com.google.protobuf.ByteString - getCidrBlockBytes() { + public com.google.protobuf.ByteString getCidrBlockBytes() { java.lang.Object ref = cidrBlock_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cidrBlock_ = b; return b; } else { @@ -1148,12 +1323,15 @@ public java.lang.String getCidrBlock() { public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 37; private com.google.cloud.tpu.v2.ServiceAccount serviceAccount_; /** + * + * *
    * The Google Cloud Platform Service Account to be used by the TPU node VMs.
    * If None is specified, the default compute service account will be used.
    * 
* * .google.cloud.tpu.v2.ServiceAccount service_account = 37; + * * @return Whether the serviceAccount field is set. */ @java.lang.Override @@ -1161,19 +1339,26 @@ public boolean hasServiceAccount() { return serviceAccount_ != null; } /** + * + * *
    * The Google Cloud Platform Service Account to be used by the TPU node VMs.
    * If None is specified, the default compute service account will be used.
    * 
* * .google.cloud.tpu.v2.ServiceAccount service_account = 37; + * * @return The serviceAccount. */ @java.lang.Override public com.google.cloud.tpu.v2.ServiceAccount getServiceAccount() { - return serviceAccount_ == null ? com.google.cloud.tpu.v2.ServiceAccount.getDefaultInstance() : serviceAccount_; + return serviceAccount_ == null + ? com.google.cloud.tpu.v2.ServiceAccount.getDefaultInstance() + : serviceAccount_; } /** + * + * *
    * The Google Cloud Platform Service Account to be used by the TPU node VMs.
    * If None is specified, the default compute service account will be used.
@@ -1189,11 +1374,15 @@ public com.google.cloud.tpu.v2.ServiceAccountOrBuilder getServiceAccountOrBuilde
   public static final int CREATE_TIME_FIELD_NUMBER = 16;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. The time when the node was created.
    * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1201,11 +1390,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the node was created.
    * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1213,11 +1406,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the node was created.
    * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1227,11 +1423,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int SCHEDULING_CONFIG_FIELD_NUMBER = 17; private com.google.cloud.tpu.v2.SchedulingConfig schedulingConfig_; /** + * + * *
    * The scheduling options for this node.
    * 
* * .google.cloud.tpu.v2.SchedulingConfig scheduling_config = 17; + * * @return Whether the schedulingConfig field is set. */ @java.lang.Override @@ -1239,18 +1438,25 @@ public boolean hasSchedulingConfig() { return schedulingConfig_ != null; } /** + * + * *
    * The scheduling options for this node.
    * 
* * .google.cloud.tpu.v2.SchedulingConfig scheduling_config = 17; + * * @return The schedulingConfig. */ @java.lang.Override public com.google.cloud.tpu.v2.SchedulingConfig getSchedulingConfig() { - return schedulingConfig_ == null ? com.google.cloud.tpu.v2.SchedulingConfig.getDefaultInstance() : schedulingConfig_; + return schedulingConfig_ == null + ? com.google.cloud.tpu.v2.SchedulingConfig.getDefaultInstance() + : schedulingConfig_; } /** + * + * *
    * The scheduling options for this node.
    * 
@@ -1265,119 +1471,146 @@ public com.google.cloud.tpu.v2.SchedulingConfigOrBuilder getSchedulingConfigOrBu public static final int NETWORK_ENDPOINTS_FIELD_NUMBER = 21; private java.util.List networkEndpoints_; /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getNetworkEndpointsList() { return networkEndpoints_; } /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getNetworkEndpointsOrBuilderList() { return networkEndpoints_; } /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getNetworkEndpointsCount() { return networkEndpoints_.size(); } /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.tpu.v2.NetworkEndpoint getNetworkEndpoints(int index) { return networkEndpoints_.get(index); } /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.tpu.v2.NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder( - int index) { + public com.google.cloud.tpu.v2.NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder(int index) { return networkEndpoints_.get(index); } public static final int HEALTH_FIELD_NUMBER = 22; private int health_; /** + * + * *
    * The health status of the TPU node.
    * 
* * .google.cloud.tpu.v2.Node.Health health = 22; + * * @return The enum numeric value on the wire for health. */ - @java.lang.Override public int getHealthValue() { + @java.lang.Override + public int getHealthValue() { return health_; } /** + * + * *
    * The health status of the TPU node.
    * 
* * .google.cloud.tpu.v2.Node.Health health = 22; + * * @return The health. */ - @java.lang.Override public com.google.cloud.tpu.v2.Node.Health getHealth() { + @java.lang.Override + public com.google.cloud.tpu.v2.Node.Health getHealth() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2.Node.Health result = com.google.cloud.tpu.v2.Node.Health.valueOf(health_); + com.google.cloud.tpu.v2.Node.Health result = + com.google.cloud.tpu.v2.Node.Health.valueOf(health_); return result == null ? com.google.cloud.tpu.v2.Node.Health.UNRECOGNIZED : result; } public static final int LABELS_FIELD_NUMBER = 24; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_Node_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_Node_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1386,28 +1619,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
* * map<string, string> labels = 24; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
@@ -1415,11 +1650,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 24; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
@@ -1427,16 +1663,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 24; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
@@ -1444,12 +1680,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 24; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1457,24 +1692,23 @@ public java.lang.String getLabelsOrThrow( } public static final int METADATA_FIELD_NUMBER = 34; + private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_Node_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_Node_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } @@ -1483,6 +1717,8 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
    * Custom metadata to apply to the TPU Node.
    * Can set startup-script and shutdown-script
@@ -1490,22 +1726,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 34;
    */
-
   @java.lang.Override
-  public boolean containsMetadata(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsMetadata(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
+   *
+   *
    * 
    * Custom metadata to apply to the TPU Node.
    * Can set startup-script and shutdown-script
@@ -1514,11 +1750,12 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 34;
    */
   @java.lang.Override
-
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
+   *
+   *
    * 
    * Custom metadata to apply to the TPU Node.
    * Can set startup-script and shutdown-script
@@ -1527,16 +1764,17 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 34;
    */
   @java.lang.Override
-
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Custom metadata to apply to the TPU Node.
    * Can set startup-script and shutdown-script
@@ -1545,12 +1783,11 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 34;
    */
   @java.lang.Override
-
-  public java.lang.String getMetadataOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+  public java.lang.String getMetadataOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1560,37 +1797,45 @@ public java.lang.String getMetadataOrThrow(
   public static final int TAGS_FIELD_NUMBER = 40;
   private com.google.protobuf.LazyStringList tags_;
   /**
+   *
+   *
    * 
    * Tags to apply to the TPU Node. Tags are used to identify valid sources or
    * targets for network firewalls.
    * 
* * repeated string tags = 40; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** + * + * *
    * Tags to apply to the TPU Node. Tags are used to identify valid sources or
    * targets for network firewalls.
    * 
* * repeated string tags = 40; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
    * Tags to apply to the TPU Node. Tags are used to identify valid sources or
    * targets for network firewalls.
    * 
* * repeated string tags = 40; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -1598,28 +1843,33 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
    * Tags to apply to the TPU Node. Tags are used to identify valid sources or
    * targets for network firewalls.
    * 
* * repeated string tags = 40; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int ID_FIELD_NUMBER = 33; private long id_; /** + * + * *
    * Output only. The unique identifier for the TPU Node.
    * 
* * int64 id = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ @java.lang.Override @@ -1630,6 +1880,8 @@ public long getId() { public static final int DATA_DISKS_FIELD_NUMBER = 41; private java.util.List dataDisks_; /** + * + * *
    * The additional data disks for the Node.
    * 
@@ -1641,6 +1893,8 @@ public java.util.List getDataDisksList() { return dataDisks_; } /** + * + * *
    * The additional data disks for the Node.
    * 
@@ -1648,11 +1902,13 @@ public java.util.List getDataDisksList() { * repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41; */ @java.lang.Override - public java.util.List + public java.util.List getDataDisksOrBuilderList() { return dataDisks_; } /** + * + * *
    * The additional data disks for the Node.
    * 
@@ -1664,6 +1920,8 @@ public int getDataDisksCount() { return dataDisks_.size(); } /** + * + * *
    * The additional data disks for the Node.
    * 
@@ -1675,6 +1933,8 @@ public com.google.cloud.tpu.v2.AttachedDisk getDataDisks(int index) { return dataDisks_.get(index); } /** + * + * *
    * The additional data disks for the Node.
    * 
@@ -1682,106 +1942,140 @@ public com.google.cloud.tpu.v2.AttachedDisk getDataDisks(int index) { * repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41; */ @java.lang.Override - public com.google.cloud.tpu.v2.AttachedDiskOrBuilder getDataDisksOrBuilder( - int index) { + public com.google.cloud.tpu.v2.AttachedDiskOrBuilder getDataDisksOrBuilder(int index) { return dataDisks_.get(index); } public static final int API_VERSION_FIELD_NUMBER = 38; private int apiVersion_; /** + * + * *
    * Output only. The API version that created this Node.
    * 
* - * .google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for apiVersion. */ - @java.lang.Override public int getApiVersionValue() { + @java.lang.Override + public int getApiVersionValue() { return apiVersion_; } /** + * + * *
    * Output only. The API version that created this Node.
    * 
* - * .google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The apiVersion. */ - @java.lang.Override public com.google.cloud.tpu.v2.Node.ApiVersion getApiVersion() { + @java.lang.Override + public com.google.cloud.tpu.v2.Node.ApiVersion getApiVersion() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2.Node.ApiVersion result = com.google.cloud.tpu.v2.Node.ApiVersion.valueOf(apiVersion_); + com.google.cloud.tpu.v2.Node.ApiVersion result = + com.google.cloud.tpu.v2.Node.ApiVersion.valueOf(apiVersion_); return result == null ? com.google.cloud.tpu.v2.Node.ApiVersion.UNRECOGNIZED : result; } public static final int SYMPTOMS_FIELD_NUMBER = 39; private java.util.List symptoms_; /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getSymptomsList() { return symptoms_; } /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getSymptomsOrBuilderList() { return symptoms_; } /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getSymptomsCount() { return symptoms_.size(); } /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.tpu.v2.Symptom getSymptoms(int index) { return symptoms_.get(index); } /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.tpu.v2.SymptomOrBuilder getSymptomsOrBuilder( - int index) { + public com.google.cloud.tpu.v2.SymptomOrBuilder getSymptomsOrBuilder(int index) { return symptoms_.get(index); } public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 45; private com.google.cloud.tpu.v2.ShieldedInstanceConfig shieldedInstanceConfig_; /** + * + * *
    * Shielded Instance options.
    * 
* * .google.cloud.tpu.v2.ShieldedInstanceConfig shielded_instance_config = 45; + * * @return Whether the shieldedInstanceConfig field is set. */ @java.lang.Override @@ -1789,18 +2083,25 @@ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfig_ != null; } /** + * + * *
    * Shielded Instance options.
    * 
* * .google.cloud.tpu.v2.ShieldedInstanceConfig shielded_instance_config = 45; + * * @return The shieldedInstanceConfig. */ @java.lang.Override public com.google.cloud.tpu.v2.ShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null ? com.google.cloud.tpu.v2.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.tpu.v2.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } /** + * + * *
    * Shielded Instance options.
    * 
@@ -1808,11 +2109,13 @@ public com.google.cloud.tpu.v2.ShieldedInstanceConfig getShieldedInstanceConfig( * .google.cloud.tpu.v2.ShieldedInstanceConfig shielded_instance_config = 45; */ @java.lang.Override - public com.google.cloud.tpu.v2.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.tpu.v2.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { return getShieldedInstanceConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1824,8 +2127,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1859,28 +2161,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (health_ != com.google.cloud.tpu.v2.Node.Health.HEALTH_UNSPECIFIED.getNumber()) { output.writeEnum(22, health_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 24); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 24); if (id_ != 0L) { output.writeInt64(33, id_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMetadata(), - MetadataDefaultEntryHolder.defaultEntry, - 34); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 34); if (networkConfig_ != null) { output.writeMessage(36, getNetworkConfig()); } if (serviceAccount_ != null) { output.writeMessage(37, getServiceAccount()); } - if (apiVersion_ != com.google.cloud.tpu.v2.Node.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) { + if (apiVersion_ + != com.google.cloud.tpu.v2.Node.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) { output.writeEnum(38, apiVersion_); } for (int i = 0; i < symptoms_.size(); i++) { @@ -1914,8 +2209,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, acceleratorType_); } if (state_ != com.google.cloud.tpu.v2.Node.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthDescription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, healthDescription_); @@ -1927,60 +2221,53 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, cidrBlock_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getCreateTime()); } if (schedulingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getSchedulingConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getSchedulingConfig()); } for (int i = 0; i < networkEndpoints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, networkEndpoints_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(21, networkEndpoints_.get(i)); } if (health_ != com.google.cloud.tpu.v2.Node.Health.HEALTH_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(22, health_); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, labels__); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, health_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, labels__); } if (id_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(33, id_); - } - for (java.util.Map.Entry entry - : internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(34, metadata__); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(33, id_); + } + for (java.util.Map.Entry entry : + internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry metadata__ = + MetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, metadata__); } if (networkConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(36, getNetworkConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(36, getNetworkConfig()); } if (serviceAccount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(37, getServiceAccount()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getServiceAccount()); } - if (apiVersion_ != com.google.cloud.tpu.v2.Node.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(38, apiVersion_); + if (apiVersion_ + != com.google.cloud.tpu.v2.Node.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(38, apiVersion_); } for (int i = 0; i < symptoms_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(39, symptoms_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(39, symptoms_.get(i)); } { int dataSize = 0; @@ -1991,12 +2278,11 @@ public int getSerializedSize() { size += 2 * getTagsList().size(); } for (int i = 0; i < dataDisks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(41, dataDisks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(41, dataDisks_.get(i)); } if (shieldedInstanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(45, getShieldedInstanceConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(45, getShieldedInstanceConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2006,66 +2292,48 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.Node)) { return super.equals(obj); } com.google.cloud.tpu.v2.Node other = (com.google.cloud.tpu.v2.Node) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getAcceleratorType() - .equals(other.getAcceleratorType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getAcceleratorType().equals(other.getAcceleratorType())) return false; if (state_ != other.state_) return false; - if (!getHealthDescription() - .equals(other.getHealthDescription())) return false; - if (!getRuntimeVersion() - .equals(other.getRuntimeVersion())) return false; + if (!getHealthDescription().equals(other.getHealthDescription())) return false; + if (!getRuntimeVersion().equals(other.getRuntimeVersion())) return false; if (hasNetworkConfig() != other.hasNetworkConfig()) return false; if (hasNetworkConfig()) { - if (!getNetworkConfig() - .equals(other.getNetworkConfig())) return false; + if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; } - if (!getCidrBlock() - .equals(other.getCidrBlock())) return false; + if (!getCidrBlock().equals(other.getCidrBlock())) return false; if (hasServiceAccount() != other.hasServiceAccount()) return false; if (hasServiceAccount()) { - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasSchedulingConfig() != other.hasSchedulingConfig()) return false; if (hasSchedulingConfig()) { - if (!getSchedulingConfig() - .equals(other.getSchedulingConfig())) return false; + if (!getSchedulingConfig().equals(other.getSchedulingConfig())) return false; } - if (!getNetworkEndpointsList() - .equals(other.getNetworkEndpointsList())) return false; + if (!getNetworkEndpointsList().equals(other.getNetworkEndpointsList())) return false; if (health_ != other.health_) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!internalGetMetadata().equals( - other.internalGetMetadata())) return false; - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (getId() - != other.getId()) return false; - if (!getDataDisksList() - .equals(other.getDataDisksList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; + if (!getTagsList().equals(other.getTagsList())) return false; + if (getId() != other.getId()) return false; + if (!getDataDisksList().equals(other.getDataDisksList())) return false; if (apiVersion_ != other.apiVersion_) return false; - if (!getSymptomsList() - .equals(other.getSymptomsList())) return false; + if (!getSymptomsList().equals(other.getSymptomsList())) return false; if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; if (hasShieldedInstanceConfig()) { - if (!getShieldedInstanceConfig() - .equals(other.getShieldedInstanceConfig())) return false; + if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2127,8 +2395,7 @@ public int hashCode() { hash = (53 * hash) + getTagsList().hashCode(); } hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId()); if (getDataDisksCount() > 0) { hash = (37 * hash) + DATA_DISKS_FIELD_NUMBER; hash = (53 * hash) + getDataDisksList().hashCode(); @@ -2148,156 +2415,158 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.Node parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.Node parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.Node parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2.Node parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.tpu.v2.Node parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.Node 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.tpu.v2.Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.Node parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.Node parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.Node parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.Node parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.Node parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.Node parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.cloud.tpu.v2.Node parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.Node parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.Node prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A TPU instance.
    * 
* * Protobuf type {@code google.cloud.tpu.v2.Node} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.Node) com.google.cloud.tpu.v2.NodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_Node_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_Node_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 24: return internalGetLabels(); case 34: return internalGetMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 24: return internalGetMutableLabels(); case 34: return internalGetMutableMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_Node_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.tpu.v2.Node.class, com.google.cloud.tpu.v2.Node.Builder.class); } // Construct using com.google.cloud.tpu.v2.Node.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2380,9 +2649,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_Node_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_Node_descriptor; } @java.lang.Override @@ -2482,38 +2751,39 @@ public com.google.cloud.tpu.v2.Node buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.Node) { - return mergeFrom((com.google.cloud.tpu.v2.Node)other); + return mergeFrom((com.google.cloud.tpu.v2.Node) other); } else { super.mergeFrom(other); return this; @@ -2579,9 +2849,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.Node other) { networkEndpointsBuilder_ = null; networkEndpoints_ = other.networkEndpoints_; bitField0_ = (bitField0_ & ~0x00000001); - networkEndpointsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNetworkEndpointsFieldBuilder() : null; + networkEndpointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworkEndpointsFieldBuilder() + : null; } else { networkEndpointsBuilder_.addAllMessages(other.networkEndpoints_); } @@ -2590,10 +2861,8 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.Node other) { if (other.health_ != 0) { setHealthValue(other.getHealthValue()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); - internalGetMutableMetadata().mergeFrom( - other.internalGetMetadata()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; @@ -2625,9 +2894,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.Node other) { dataDisksBuilder_ = null; dataDisks_ = other.dataDisks_; bitField0_ = (bitField0_ & ~0x00000010); - dataDisksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataDisksFieldBuilder() : null; + dataDisksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataDisksFieldBuilder() + : null; } else { dataDisksBuilder_.addAllMessages(other.dataDisks_); } @@ -2654,9 +2924,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.Node other) { symptomsBuilder_ = null; symptoms_ = other.symptoms_; bitField0_ = (bitField0_ & ~0x00000020); - symptomsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSymptomsFieldBuilder() : null; + symptomsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSymptomsFieldBuilder() + : null; } else { symptomsBuilder_.addAllMessages(other.symptoms_); } @@ -2691,158 +2962,172 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 26: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 42: { - acceleratorType_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 72: { - state_ = input.readEnum(); - - break; - } // case 72 - case 82: { - healthDescription_ = input.readStringRequireUtf8(); - - break; - } // case 82 - case 90: { - runtimeVersion_ = input.readStringRequireUtf8(); - - break; - } // case 90 - case 106: { - cidrBlock_ = input.readStringRequireUtf8(); - - break; - } // case 106 - case 130: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 130 - case 138: { - input.readMessage( - getSchedulingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 138 - case 170: { - com.google.cloud.tpu.v2.NetworkEndpoint m = - input.readMessage( - com.google.cloud.tpu.v2.NetworkEndpoint.parser(), - extensionRegistry); - if (networkEndpointsBuilder_ == null) { - ensureNetworkEndpointsIsMutable(); - networkEndpoints_.add(m); - } else { - networkEndpointsBuilder_.addMessage(m); - } - break; - } // case 170 - case 176: { - health_ = input.readEnum(); - - break; - } // case 176 - case 194: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 194 - case 264: { - id_ = input.readInt64(); - - break; - } // case 264 - case 274: { - com.google.protobuf.MapEntry - metadata__ = input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableMetadata().getMutableMap().put( - metadata__.getKey(), metadata__.getValue()); - break; - } // case 274 - case 290: { - input.readMessage( - getNetworkConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 290 - case 298: { - input.readMessage( - getServiceAccountFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 298 - case 304: { - apiVersion_ = input.readEnum(); - - break; - } // case 304 - case 314: { - com.google.cloud.tpu.v2.Symptom m = - input.readMessage( - com.google.cloud.tpu.v2.Symptom.parser(), - extensionRegistry); - if (symptomsBuilder_ == null) { - ensureSymptomsIsMutable(); - symptoms_.add(m); - } else { - symptomsBuilder_.addMessage(m); - } - break; - } // case 314 - case 322: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 322 - case 330: { - com.google.cloud.tpu.v2.AttachedDisk m = - input.readMessage( - com.google.cloud.tpu.v2.AttachedDisk.parser(), - extensionRegistry); - if (dataDisksBuilder_ == null) { - ensureDataDisksIsMutable(); - dataDisks_.add(m); - } else { - dataDisksBuilder_.addMessage(m); - } - break; - } // case 330 - case 362: { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 362 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 42: + { + acceleratorType_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 72: + { + state_ = input.readEnum(); + + break; + } // case 72 + case 82: + { + healthDescription_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: + { + runtimeVersion_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 106: + { + cidrBlock_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 130: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 130 + case 138: + { + input.readMessage( + getSchedulingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 138 + case 170: + { + com.google.cloud.tpu.v2.NetworkEndpoint m = + input.readMessage( + com.google.cloud.tpu.v2.NetworkEndpoint.parser(), extensionRegistry); + if (networkEndpointsBuilder_ == null) { + ensureNetworkEndpointsIsMutable(); + networkEndpoints_.add(m); + } else { + networkEndpointsBuilder_.addMessage(m); + } + break; + } // case 170 + case 176: + { + health_ = input.readEnum(); + + break; + } // case 176 + case 194: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 194 + case 264: + { + id_ = input.readInt64(); + + break; + } // case 264 + case 274: + { + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + break; + } // case 274 + case 290: + { + input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 290 + case 298: + { + input.readMessage(getServiceAccountFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 298 + case 304: + { + apiVersion_ = input.readEnum(); + + break; + } // case 304 + case 314: + { + com.google.cloud.tpu.v2.Symptom m = + input.readMessage(com.google.cloud.tpu.v2.Symptom.parser(), extensionRegistry); + if (symptomsBuilder_ == null) { + ensureSymptomsIsMutable(); + symptoms_.add(m); + } else { + symptomsBuilder_.addMessage(m); + } + break; + } // case 314 + case 322: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 322 + case 330: + { + com.google.cloud.tpu.v2.AttachedDisk m = + input.readMessage( + com.google.cloud.tpu.v2.AttachedDisk.parser(), extensionRegistry); + if (dataDisksBuilder_ == null) { + ensureDataDisksIsMutable(); + dataDisks_.add(m); + } else { + dataDisksBuilder_.addMessage(m); + } + break; + } // case 330 + case 362: + { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 362 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2852,22 +3137,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Immutable. The name of the TPU.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2876,20 +3166,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Immutable. The name of the TPU.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2897,54 +3190,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Immutable. The name of the TPU.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Immutable. The name of the TPU.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Immutable. The name of the TPU.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2952,18 +3258,20 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * The user-supplied description of the TPU. Maximum of 512 characters.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2972,20 +3280,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The user-supplied description of the TPU. Maximum of 512 characters.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -2993,54 +3302,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The user-supplied description of the TPU. Maximum of 512 characters.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * The user-supplied description of the TPU. Maximum of 512 characters.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * The user-supplied description of the TPU. Maximum of 512 characters.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -3048,18 +3364,20 @@ public Builder setDescriptionBytes( private java.lang.Object acceleratorType_ = ""; /** + * + * *
      * Required. The type of hardware accelerators associated with this node.
      * 
* * string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The acceleratorType. */ public java.lang.String getAcceleratorType() { java.lang.Object ref = acceleratorType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); acceleratorType_ = s; return s; @@ -3068,20 +3386,21 @@ public java.lang.String getAcceleratorType() { } } /** + * + * *
      * Required. The type of hardware accelerators associated with this node.
      * 
* * string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for acceleratorType. */ - public com.google.protobuf.ByteString - getAcceleratorTypeBytes() { + public com.google.protobuf.ByteString getAcceleratorTypeBytes() { java.lang.Object ref = acceleratorType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); acceleratorType_ = b; return b; } else { @@ -3089,54 +3408,61 @@ public java.lang.String getAcceleratorType() { } } /** + * + * *
      * Required. The type of hardware accelerators associated with this node.
      * 
* * string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The acceleratorType to set. * @return This builder for chaining. */ - public Builder setAcceleratorType( - java.lang.String value) { + public Builder setAcceleratorType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + acceleratorType_ = value; onChanged(); return this; } /** + * + * *
      * Required. The type of hardware accelerators associated with this node.
      * 
* * string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAcceleratorType() { - + acceleratorType_ = getDefaultInstance().getAcceleratorType(); onChanged(); return this; } /** + * + * *
      * Required. The type of hardware accelerators associated with this node.
      * 
* * string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for acceleratorType to set. * @return This builder for chaining. */ - public Builder setAcceleratorTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setAcceleratorTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + acceleratorType_ = value; onChanged(); return this; @@ -3144,51 +3470,69 @@ public Builder setAcceleratorTypeBytes( private int state_ = 0; /** + * + * *
      * Output only. The current state for the TPU Node.
      * 
* - * .google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current state for the TPU Node.
      * 
* - * .google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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; } /** + * + * *
      * Output only. The current state for the TPU Node.
      * 
* - * .google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.tpu.v2.Node.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2.Node.State result = com.google.cloud.tpu.v2.Node.State.valueOf(state_); + com.google.cloud.tpu.v2.Node.State result = + com.google.cloud.tpu.v2.Node.State.valueOf(state_); return result == null ? com.google.cloud.tpu.v2.Node.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The current state for the TPU Node.
      * 
* - * .google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -3196,21 +3540,25 @@ public Builder setState(com.google.cloud.tpu.v2.Node.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The current state for the TPU Node.
      * 
* - * .google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -3218,19 +3566,21 @@ public Builder clearState() { private java.lang.Object healthDescription_ = ""; /** + * + * *
      * Output only. If this field is populated, it contains a description of why the TPU Node
      * is unhealthy.
      * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The healthDescription. */ public java.lang.String getHealthDescription() { java.lang.Object ref = healthDescription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); healthDescription_ = s; return s; @@ -3239,21 +3589,22 @@ public java.lang.String getHealthDescription() { } } /** + * + * *
      * Output only. If this field is populated, it contains a description of why the TPU Node
      * is unhealthy.
      * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for healthDescription. */ - public com.google.protobuf.ByteString - getHealthDescriptionBytes() { + public com.google.protobuf.ByteString getHealthDescriptionBytes() { java.lang.Object ref = healthDescription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); healthDescription_ = b; return b; } else { @@ -3261,57 +3612,64 @@ public java.lang.String getHealthDescription() { } } /** + * + * *
      * Output only. If this field is populated, it contains a description of why the TPU Node
      * is unhealthy.
      * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The healthDescription to set. * @return This builder for chaining. */ - public Builder setHealthDescription( - java.lang.String value) { + public Builder setHealthDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + healthDescription_ = value; onChanged(); return this; } /** + * + * *
      * Output only. If this field is populated, it contains a description of why the TPU Node
      * is unhealthy.
      * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearHealthDescription() { - + healthDescription_ = getDefaultInstance().getHealthDescription(); onChanged(); return this; } /** + * + * *
      * Output only. If this field is populated, it contains a description of why the TPU Node
      * is unhealthy.
      * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for healthDescription to set. * @return This builder for chaining. */ - public Builder setHealthDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setHealthDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + healthDescription_ = value; onChanged(); return this; @@ -3319,18 +3677,20 @@ public Builder setHealthDescriptionBytes( private java.lang.Object runtimeVersion_ = ""; /** + * + * *
      * Required. The runtime version running in the Node.
      * 
* * string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The runtimeVersion. */ public java.lang.String getRuntimeVersion() { java.lang.Object ref = runtimeVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtimeVersion_ = s; return s; @@ -3339,20 +3699,21 @@ public java.lang.String getRuntimeVersion() { } } /** + * + * *
      * Required. The runtime version running in the Node.
      * 
* * string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for runtimeVersion. */ - public com.google.protobuf.ByteString - getRuntimeVersionBytes() { + public com.google.protobuf.ByteString getRuntimeVersionBytes() { java.lang.Object ref = runtimeVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); runtimeVersion_ = b; return b; } else { @@ -3360,54 +3721,61 @@ public java.lang.String getRuntimeVersion() { } } /** + * + * *
      * Required. The runtime version running in the Node.
      * 
* * string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The runtimeVersion to set. * @return This builder for chaining. */ - public Builder setRuntimeVersion( - java.lang.String value) { + public Builder setRuntimeVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + runtimeVersion_ = value; onChanged(); return this; } /** + * + * *
      * Required. The runtime version running in the Node.
      * 
* * string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRuntimeVersion() { - + runtimeVersion_ = getDefaultInstance().getRuntimeVersion(); onChanged(); return this; } /** + * + * *
      * Required. The runtime version running in the Node.
      * 
* * string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for runtimeVersion to set. * @return This builder for chaining. */ - public Builder setRuntimeVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setRuntimeVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + runtimeVersion_ = value; onChanged(); return this; @@ -3415,34 +3783,47 @@ public Builder setRuntimeVersionBytes( private com.google.cloud.tpu.v2.NetworkConfig networkConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.NetworkConfig, com.google.cloud.tpu.v2.NetworkConfig.Builder, com.google.cloud.tpu.v2.NetworkConfigOrBuilder> networkConfigBuilder_; + com.google.cloud.tpu.v2.NetworkConfig, + com.google.cloud.tpu.v2.NetworkConfig.Builder, + com.google.cloud.tpu.v2.NetworkConfigOrBuilder> + networkConfigBuilder_; /** + * + * *
      * Network configurations for the TPU node.
      * 
* * .google.cloud.tpu.v2.NetworkConfig network_config = 36; + * * @return Whether the networkConfig field is set. */ public boolean hasNetworkConfig() { return networkConfigBuilder_ != null || networkConfig_ != null; } /** + * + * *
      * Network configurations for the TPU node.
      * 
* * .google.cloud.tpu.v2.NetworkConfig network_config = 36; + * * @return The networkConfig. */ public com.google.cloud.tpu.v2.NetworkConfig getNetworkConfig() { if (networkConfigBuilder_ == null) { - return networkConfig_ == null ? com.google.cloud.tpu.v2.NetworkConfig.getDefaultInstance() : networkConfig_; + return networkConfig_ == null + ? com.google.cloud.tpu.v2.NetworkConfig.getDefaultInstance() + : networkConfig_; } else { return networkConfigBuilder_.getMessage(); } } /** + * + * *
      * Network configurations for the TPU node.
      * 
@@ -3463,14 +3844,15 @@ public Builder setNetworkConfig(com.google.cloud.tpu.v2.NetworkConfig value) { return this; } /** + * + * *
      * Network configurations for the TPU node.
      * 
* * .google.cloud.tpu.v2.NetworkConfig network_config = 36; */ - public Builder setNetworkConfig( - com.google.cloud.tpu.v2.NetworkConfig.Builder builderForValue) { + public Builder setNetworkConfig(com.google.cloud.tpu.v2.NetworkConfig.Builder builderForValue) { if (networkConfigBuilder_ == null) { networkConfig_ = builderForValue.build(); onChanged(); @@ -3481,6 +3863,8 @@ public Builder setNetworkConfig( return this; } /** + * + * *
      * Network configurations for the TPU node.
      * 
@@ -3491,7 +3875,9 @@ public Builder mergeNetworkConfig(com.google.cloud.tpu.v2.NetworkConfig value) { if (networkConfigBuilder_ == null) { if (networkConfig_ != null) { networkConfig_ = - com.google.cloud.tpu.v2.NetworkConfig.newBuilder(networkConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v2.NetworkConfig.newBuilder(networkConfig_) + .mergeFrom(value) + .buildPartial(); } else { networkConfig_ = value; } @@ -3503,6 +3889,8 @@ public Builder mergeNetworkConfig(com.google.cloud.tpu.v2.NetworkConfig value) { return this; } /** + * + * *
      * Network configurations for the TPU node.
      * 
@@ -3521,6 +3909,8 @@ public Builder clearNetworkConfig() { return this; } /** + * + * *
      * Network configurations for the TPU node.
      * 
@@ -3528,11 +3918,13 @@ public Builder clearNetworkConfig() { * .google.cloud.tpu.v2.NetworkConfig network_config = 36; */ public com.google.cloud.tpu.v2.NetworkConfig.Builder getNetworkConfigBuilder() { - + onChanged(); return getNetworkConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Network configurations for the TPU node.
      * 
@@ -3543,11 +3935,14 @@ public com.google.cloud.tpu.v2.NetworkConfigOrBuilder getNetworkConfigOrBuilder( if (networkConfigBuilder_ != null) { return networkConfigBuilder_.getMessageOrBuilder(); } else { - return networkConfig_ == null ? - com.google.cloud.tpu.v2.NetworkConfig.getDefaultInstance() : networkConfig_; + return networkConfig_ == null + ? com.google.cloud.tpu.v2.NetworkConfig.getDefaultInstance() + : networkConfig_; } } /** + * + * *
      * Network configurations for the TPU node.
      * 
@@ -3555,14 +3950,17 @@ public com.google.cloud.tpu.v2.NetworkConfigOrBuilder getNetworkConfigOrBuilder( * .google.cloud.tpu.v2.NetworkConfig network_config = 36; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.NetworkConfig, com.google.cloud.tpu.v2.NetworkConfig.Builder, com.google.cloud.tpu.v2.NetworkConfigOrBuilder> + com.google.cloud.tpu.v2.NetworkConfig, + com.google.cloud.tpu.v2.NetworkConfig.Builder, + com.google.cloud.tpu.v2.NetworkConfigOrBuilder> getNetworkConfigFieldBuilder() { if (networkConfigBuilder_ == null) { - networkConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.NetworkConfig, com.google.cloud.tpu.v2.NetworkConfig.Builder, com.google.cloud.tpu.v2.NetworkConfigOrBuilder>( - getNetworkConfig(), - getParentForChildren(), - isClean()); + networkConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.NetworkConfig, + com.google.cloud.tpu.v2.NetworkConfig.Builder, + com.google.cloud.tpu.v2.NetworkConfigOrBuilder>( + getNetworkConfig(), getParentForChildren(), isClean()); networkConfig_ = null; } return networkConfigBuilder_; @@ -3570,6 +3968,8 @@ public com.google.cloud.tpu.v2.NetworkConfigOrBuilder getNetworkConfigOrBuilder( private java.lang.Object cidrBlock_ = ""; /** + * + * *
      * The CIDR block that the TPU node will use when selecting an IP address.
      * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -3582,13 +3982,13 @@ public com.google.cloud.tpu.v2.NetworkConfigOrBuilder getNetworkConfigOrBuilder(
      * 
* * string cidr_block = 13; + * * @return The cidrBlock. */ public java.lang.String getCidrBlock() { java.lang.Object ref = cidrBlock_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cidrBlock_ = s; return s; @@ -3597,6 +3997,8 @@ public java.lang.String getCidrBlock() { } } /** + * + * *
      * The CIDR block that the TPU node will use when selecting an IP address.
      * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -3609,15 +4011,14 @@ public java.lang.String getCidrBlock() {
      * 
* * string cidr_block = 13; + * * @return The bytes for cidrBlock. */ - public com.google.protobuf.ByteString - getCidrBlockBytes() { + public com.google.protobuf.ByteString getCidrBlockBytes() { java.lang.Object ref = cidrBlock_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cidrBlock_ = b; return b; } else { @@ -3625,6 +4026,8 @@ public java.lang.String getCidrBlock() { } } /** + * + * *
      * The CIDR block that the TPU node will use when selecting an IP address.
      * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -3637,20 +4040,22 @@ public java.lang.String getCidrBlock() {
      * 
* * string cidr_block = 13; + * * @param value The cidrBlock to set. * @return This builder for chaining. */ - public Builder setCidrBlock( - java.lang.String value) { + public Builder setCidrBlock(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cidrBlock_ = value; onChanged(); return this; } /** + * + * *
      * The CIDR block that the TPU node will use when selecting an IP address.
      * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -3663,15 +4068,18 @@ public Builder setCidrBlock(
      * 
* * string cidr_block = 13; + * * @return This builder for chaining. */ public Builder clearCidrBlock() { - + cidrBlock_ = getDefaultInstance().getCidrBlock(); onChanged(); return this; } /** + * + * *
      * The CIDR block that the TPU node will use when selecting an IP address.
      * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -3684,16 +4092,16 @@ public Builder clearCidrBlock() {
      * 
* * string cidr_block = 13; + * * @param value The bytes for cidrBlock to set. * @return This builder for chaining. */ - public Builder setCidrBlockBytes( - com.google.protobuf.ByteString value) { + public Builder setCidrBlockBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cidrBlock_ = value; onChanged(); return this; @@ -3701,36 +4109,49 @@ public Builder setCidrBlockBytes( private com.google.cloud.tpu.v2.ServiceAccount serviceAccount_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.ServiceAccount, com.google.cloud.tpu.v2.ServiceAccount.Builder, com.google.cloud.tpu.v2.ServiceAccountOrBuilder> serviceAccountBuilder_; + com.google.cloud.tpu.v2.ServiceAccount, + com.google.cloud.tpu.v2.ServiceAccount.Builder, + com.google.cloud.tpu.v2.ServiceAccountOrBuilder> + serviceAccountBuilder_; /** + * + * *
      * The Google Cloud Platform Service Account to be used by the TPU node VMs.
      * If None is specified, the default compute service account will be used.
      * 
* * .google.cloud.tpu.v2.ServiceAccount service_account = 37; + * * @return Whether the serviceAccount field is set. */ public boolean hasServiceAccount() { return serviceAccountBuilder_ != null || serviceAccount_ != null; } /** + * + * *
      * The Google Cloud Platform Service Account to be used by the TPU node VMs.
      * If None is specified, the default compute service account will be used.
      * 
* * .google.cloud.tpu.v2.ServiceAccount service_account = 37; + * * @return The serviceAccount. */ public com.google.cloud.tpu.v2.ServiceAccount getServiceAccount() { if (serviceAccountBuilder_ == null) { - return serviceAccount_ == null ? com.google.cloud.tpu.v2.ServiceAccount.getDefaultInstance() : serviceAccount_; + return serviceAccount_ == null + ? com.google.cloud.tpu.v2.ServiceAccount.getDefaultInstance() + : serviceAccount_; } else { return serviceAccountBuilder_.getMessage(); } } /** + * + * *
      * The Google Cloud Platform Service Account to be used by the TPU node VMs.
      * If None is specified, the default compute service account will be used.
@@ -3752,6 +4173,8 @@ public Builder setServiceAccount(com.google.cloud.tpu.v2.ServiceAccount value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Platform Service Account to be used by the TPU node VMs.
      * If None is specified, the default compute service account will be used.
@@ -3771,6 +4194,8 @@ public Builder setServiceAccount(
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Platform Service Account to be used by the TPU node VMs.
      * If None is specified, the default compute service account will be used.
@@ -3782,7 +4207,9 @@ public Builder mergeServiceAccount(com.google.cloud.tpu.v2.ServiceAccount value)
       if (serviceAccountBuilder_ == null) {
         if (serviceAccount_ != null) {
           serviceAccount_ =
-            com.google.cloud.tpu.v2.ServiceAccount.newBuilder(serviceAccount_).mergeFrom(value).buildPartial();
+              com.google.cloud.tpu.v2.ServiceAccount.newBuilder(serviceAccount_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           serviceAccount_ = value;
         }
@@ -3794,6 +4221,8 @@ public Builder mergeServiceAccount(com.google.cloud.tpu.v2.ServiceAccount value)
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Platform Service Account to be used by the TPU node VMs.
      * If None is specified, the default compute service account will be used.
@@ -3813,6 +4242,8 @@ public Builder clearServiceAccount() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Platform Service Account to be used by the TPU node VMs.
      * If None is specified, the default compute service account will be used.
@@ -3821,11 +4252,13 @@ public Builder clearServiceAccount() {
      * .google.cloud.tpu.v2.ServiceAccount service_account = 37;
      */
     public com.google.cloud.tpu.v2.ServiceAccount.Builder getServiceAccountBuilder() {
-      
+
       onChanged();
       return getServiceAccountFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Platform Service Account to be used by the TPU node VMs.
      * If None is specified, the default compute service account will be used.
@@ -3837,11 +4270,14 @@ public com.google.cloud.tpu.v2.ServiceAccountOrBuilder getServiceAccountOrBuilde
       if (serviceAccountBuilder_ != null) {
         return serviceAccountBuilder_.getMessageOrBuilder();
       } else {
-        return serviceAccount_ == null ?
-            com.google.cloud.tpu.v2.ServiceAccount.getDefaultInstance() : serviceAccount_;
+        return serviceAccount_ == null
+            ? com.google.cloud.tpu.v2.ServiceAccount.getDefaultInstance()
+            : serviceAccount_;
       }
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Platform Service Account to be used by the TPU node VMs.
      * If None is specified, the default compute service account will be used.
@@ -3850,14 +4286,17 @@ public com.google.cloud.tpu.v2.ServiceAccountOrBuilder getServiceAccountOrBuilde
      * .google.cloud.tpu.v2.ServiceAccount service_account = 37;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.tpu.v2.ServiceAccount, com.google.cloud.tpu.v2.ServiceAccount.Builder, com.google.cloud.tpu.v2.ServiceAccountOrBuilder> 
+            com.google.cloud.tpu.v2.ServiceAccount,
+            com.google.cloud.tpu.v2.ServiceAccount.Builder,
+            com.google.cloud.tpu.v2.ServiceAccountOrBuilder>
         getServiceAccountFieldBuilder() {
       if (serviceAccountBuilder_ == null) {
-        serviceAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.tpu.v2.ServiceAccount, com.google.cloud.tpu.v2.ServiceAccount.Builder, com.google.cloud.tpu.v2.ServiceAccountOrBuilder>(
-                getServiceAccount(),
-                getParentForChildren(),
-                isClean());
+        serviceAccountBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.tpu.v2.ServiceAccount,
+                com.google.cloud.tpu.v2.ServiceAccount.Builder,
+                com.google.cloud.tpu.v2.ServiceAccountOrBuilder>(
+                getServiceAccount(), getParentForChildren(), isClean());
         serviceAccount_ = null;
       }
       return serviceAccountBuilder_;
@@ -3865,39 +4304,58 @@ public com.google.cloud.tpu.v2.ServiceAccountOrBuilder getServiceAccountOrBuilde
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3913,14 +4371,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3931,17 +4392,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3953,11 +4418,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3971,48 +4440,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_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> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -4020,34 +4505,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.cloud.tpu.v2.SchedulingConfig schedulingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.SchedulingConfig, com.google.cloud.tpu.v2.SchedulingConfig.Builder, com.google.cloud.tpu.v2.SchedulingConfigOrBuilder> schedulingConfigBuilder_; + com.google.cloud.tpu.v2.SchedulingConfig, + com.google.cloud.tpu.v2.SchedulingConfig.Builder, + com.google.cloud.tpu.v2.SchedulingConfigOrBuilder> + schedulingConfigBuilder_; /** + * + * *
      * The scheduling options for this node.
      * 
* * .google.cloud.tpu.v2.SchedulingConfig scheduling_config = 17; + * * @return Whether the schedulingConfig field is set. */ public boolean hasSchedulingConfig() { return schedulingConfigBuilder_ != null || schedulingConfig_ != null; } /** + * + * *
      * The scheduling options for this node.
      * 
* * .google.cloud.tpu.v2.SchedulingConfig scheduling_config = 17; + * * @return The schedulingConfig. */ public com.google.cloud.tpu.v2.SchedulingConfig getSchedulingConfig() { if (schedulingConfigBuilder_ == null) { - return schedulingConfig_ == null ? com.google.cloud.tpu.v2.SchedulingConfig.getDefaultInstance() : schedulingConfig_; + return schedulingConfig_ == null + ? com.google.cloud.tpu.v2.SchedulingConfig.getDefaultInstance() + : schedulingConfig_; } else { return schedulingConfigBuilder_.getMessage(); } } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -4068,6 +4566,8 @@ public Builder setSchedulingConfig(com.google.cloud.tpu.v2.SchedulingConfig valu return this; } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -4086,6 +4586,8 @@ public Builder setSchedulingConfig( return this; } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -4096,7 +4598,9 @@ public Builder mergeSchedulingConfig(com.google.cloud.tpu.v2.SchedulingConfig va if (schedulingConfigBuilder_ == null) { if (schedulingConfig_ != null) { schedulingConfig_ = - com.google.cloud.tpu.v2.SchedulingConfig.newBuilder(schedulingConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v2.SchedulingConfig.newBuilder(schedulingConfig_) + .mergeFrom(value) + .buildPartial(); } else { schedulingConfig_ = value; } @@ -4108,6 +4612,8 @@ public Builder mergeSchedulingConfig(com.google.cloud.tpu.v2.SchedulingConfig va return this; } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -4126,6 +4632,8 @@ public Builder clearSchedulingConfig() { return this; } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -4133,11 +4641,13 @@ public Builder clearSchedulingConfig() { * .google.cloud.tpu.v2.SchedulingConfig scheduling_config = 17; */ public com.google.cloud.tpu.v2.SchedulingConfig.Builder getSchedulingConfigBuilder() { - + onChanged(); return getSchedulingConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -4148,11 +4658,14 @@ public com.google.cloud.tpu.v2.SchedulingConfigOrBuilder getSchedulingConfigOrBu if (schedulingConfigBuilder_ != null) { return schedulingConfigBuilder_.getMessageOrBuilder(); } else { - return schedulingConfig_ == null ? - com.google.cloud.tpu.v2.SchedulingConfig.getDefaultInstance() : schedulingConfig_; + return schedulingConfig_ == null + ? com.google.cloud.tpu.v2.SchedulingConfig.getDefaultInstance() + : schedulingConfig_; } } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -4160,39 +4673,51 @@ public com.google.cloud.tpu.v2.SchedulingConfigOrBuilder getSchedulingConfigOrBu * .google.cloud.tpu.v2.SchedulingConfig scheduling_config = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.SchedulingConfig, com.google.cloud.tpu.v2.SchedulingConfig.Builder, com.google.cloud.tpu.v2.SchedulingConfigOrBuilder> + com.google.cloud.tpu.v2.SchedulingConfig, + com.google.cloud.tpu.v2.SchedulingConfig.Builder, + com.google.cloud.tpu.v2.SchedulingConfigOrBuilder> getSchedulingConfigFieldBuilder() { if (schedulingConfigBuilder_ == null) { - schedulingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.SchedulingConfig, com.google.cloud.tpu.v2.SchedulingConfig.Builder, com.google.cloud.tpu.v2.SchedulingConfigOrBuilder>( - getSchedulingConfig(), - getParentForChildren(), - isClean()); + schedulingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.SchedulingConfig, + com.google.cloud.tpu.v2.SchedulingConfig.Builder, + com.google.cloud.tpu.v2.SchedulingConfigOrBuilder>( + getSchedulingConfig(), getParentForChildren(), isClean()); schedulingConfig_ = null; } return schedulingConfigBuilder_; } private java.util.List networkEndpoints_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNetworkEndpointsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - networkEndpoints_ = new java.util.ArrayList(networkEndpoints_); + networkEndpoints_ = + new java.util.ArrayList(networkEndpoints_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.NetworkEndpoint, com.google.cloud.tpu.v2.NetworkEndpoint.Builder, com.google.cloud.tpu.v2.NetworkEndpointOrBuilder> networkEndpointsBuilder_; + com.google.cloud.tpu.v2.NetworkEndpoint, + com.google.cloud.tpu.v2.NetworkEndpoint.Builder, + com.google.cloud.tpu.v2.NetworkEndpointOrBuilder> + networkEndpointsBuilder_; /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getNetworkEndpointsList() { if (networkEndpointsBuilder_ == null) { @@ -4202,13 +4727,17 @@ public java.util.List getNetworkEndpoin } } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getNetworkEndpointsCount() { if (networkEndpointsBuilder_ == null) { @@ -4218,13 +4747,17 @@ public int getNetworkEndpointsCount() { } } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v2.NetworkEndpoint getNetworkEndpoints(int index) { if (networkEndpointsBuilder_ == null) { @@ -4234,16 +4767,19 @@ public com.google.cloud.tpu.v2.NetworkEndpoint getNetworkEndpoints(int index) { } } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNetworkEndpoints( - int index, com.google.cloud.tpu.v2.NetworkEndpoint value) { + public Builder setNetworkEndpoints(int index, com.google.cloud.tpu.v2.NetworkEndpoint value) { if (networkEndpointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4257,13 +4793,17 @@ public Builder setNetworkEndpoints( return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setNetworkEndpoints( int index, com.google.cloud.tpu.v2.NetworkEndpoint.Builder builderForValue) { @@ -4277,13 +4817,17 @@ public Builder setNetworkEndpoints( return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addNetworkEndpoints(com.google.cloud.tpu.v2.NetworkEndpoint value) { if (networkEndpointsBuilder_ == null) { @@ -4299,16 +4843,19 @@ public Builder addNetworkEndpoints(com.google.cloud.tpu.v2.NetworkEndpoint value return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addNetworkEndpoints( - int index, com.google.cloud.tpu.v2.NetworkEndpoint value) { + public Builder addNetworkEndpoints(int index, com.google.cloud.tpu.v2.NetworkEndpoint value) { if (networkEndpointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4322,13 +4869,17 @@ public Builder addNetworkEndpoints( return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addNetworkEndpoints( com.google.cloud.tpu.v2.NetworkEndpoint.Builder builderForValue) { @@ -4342,13 +4893,17 @@ public Builder addNetworkEndpoints( return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addNetworkEndpoints( int index, com.google.cloud.tpu.v2.NetworkEndpoint.Builder builderForValue) { @@ -4362,20 +4917,23 @@ public Builder addNetworkEndpoints( return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllNetworkEndpoints( java.lang.Iterable values) { if (networkEndpointsBuilder_ == null) { ensureNetworkEndpointsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, networkEndpoints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkEndpoints_); onChanged(); } else { networkEndpointsBuilder_.addAllMessages(values); @@ -4383,13 +4941,17 @@ public Builder addAllNetworkEndpoints( return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearNetworkEndpoints() { if (networkEndpointsBuilder_ == null) { @@ -4402,13 +4964,17 @@ public Builder clearNetworkEndpoints() { return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeNetworkEndpoints(int index) { if (networkEndpointsBuilder_ == null) { @@ -4421,45 +4987,57 @@ public Builder removeNetworkEndpoints(int index) { return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.tpu.v2.NetworkEndpoint.Builder getNetworkEndpointsBuilder( - int index) { + public com.google.cloud.tpu.v2.NetworkEndpoint.Builder getNetworkEndpointsBuilder(int index) { return getNetworkEndpointsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v2.NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder( int index) { if (networkEndpointsBuilder_ == null) { - return networkEndpoints_.get(index); } else { + return networkEndpoints_.get(index); + } else { return networkEndpointsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getNetworkEndpointsOrBuilderList() { + public java.util.List + getNetworkEndpointsOrBuilderList() { if (networkEndpointsBuilder_ != null) { return networkEndpointsBuilder_.getMessageOrBuilderList(); } else { @@ -4467,51 +5045,68 @@ public com.google.cloud.tpu.v2.NetworkEndpointOrBuilder getNetworkEndpointsOrBui } } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v2.NetworkEndpoint.Builder addNetworkEndpointsBuilder() { - return getNetworkEndpointsFieldBuilder().addBuilder( - com.google.cloud.tpu.v2.NetworkEndpoint.getDefaultInstance()); + return getNetworkEndpointsFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2.NetworkEndpoint.getDefaultInstance()); } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.tpu.v2.NetworkEndpoint.Builder addNetworkEndpointsBuilder( - int index) { - return getNetworkEndpointsFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v2.NetworkEndpoint.getDefaultInstance()); + public com.google.cloud.tpu.v2.NetworkEndpoint.Builder addNetworkEndpointsBuilder(int index) { + return getNetworkEndpointsFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2.NetworkEndpoint.getDefaultInstance()); } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getNetworkEndpointsBuilderList() { + public java.util.List + getNetworkEndpointsBuilderList() { return getNetworkEndpointsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.NetworkEndpoint, com.google.cloud.tpu.v2.NetworkEndpoint.Builder, com.google.cloud.tpu.v2.NetworkEndpointOrBuilder> + com.google.cloud.tpu.v2.NetworkEndpoint, + com.google.cloud.tpu.v2.NetworkEndpoint.Builder, + com.google.cloud.tpu.v2.NetworkEndpointOrBuilder> getNetworkEndpointsFieldBuilder() { if (networkEndpointsBuilder_ == null) { - networkEndpointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.NetworkEndpoint, com.google.cloud.tpu.v2.NetworkEndpoint.Builder, com.google.cloud.tpu.v2.NetworkEndpointOrBuilder>( + networkEndpointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2.NetworkEndpoint, + com.google.cloud.tpu.v2.NetworkEndpoint.Builder, + com.google.cloud.tpu.v2.NetworkEndpointOrBuilder>( networkEndpoints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -4523,51 +5118,65 @@ public com.google.cloud.tpu.v2.NetworkEndpoint.Builder addNetworkEndpointsBuilde private int health_ = 0; /** + * + * *
      * The health status of the TPU node.
      * 
* * .google.cloud.tpu.v2.Node.Health health = 22; + * * @return The enum numeric value on the wire for health. */ - @java.lang.Override public int getHealthValue() { + @java.lang.Override + public int getHealthValue() { return health_; } /** + * + * *
      * The health status of the TPU node.
      * 
* * .google.cloud.tpu.v2.Node.Health health = 22; + * * @param value The enum numeric value on the wire for health to set. * @return This builder for chaining. */ public Builder setHealthValue(int value) { - + health_ = value; onChanged(); return this; } /** + * + * *
      * The health status of the TPU node.
      * 
* * .google.cloud.tpu.v2.Node.Health health = 22; + * * @return The health. */ @java.lang.Override public com.google.cloud.tpu.v2.Node.Health getHealth() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2.Node.Health result = com.google.cloud.tpu.v2.Node.Health.valueOf(health_); + com.google.cloud.tpu.v2.Node.Health result = + com.google.cloud.tpu.v2.Node.Health.valueOf(health_); return result == null ? com.google.cloud.tpu.v2.Node.Health.UNRECOGNIZED : result; } /** + * + * *
      * The health status of the TPU node.
      * 
* * .google.cloud.tpu.v2.Node.Health health = 22; + * * @param value The health to set. * @return This builder for chaining. */ @@ -4575,42 +5184,44 @@ public Builder setHealth(com.google.cloud.tpu.v2.Node.Health value) { if (value == null) { throw new NullPointerException(); } - + health_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The health status of the TPU node.
      * 
* * .google.cloud.tpu.v2.Node.Health health = 22; + * * @return This builder for chaining. */ public Builder clearHealth() { - + health_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -4622,28 +5233,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
* * map<string, string> labels = 24; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
@@ -4651,11 +5264,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 24; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
@@ -4663,16 +5277,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 24; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
@@ -4680,12 +5295,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 24; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -4693,83 +5307,80 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
* * map<string, string> labels = 24; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
* * map<string, string> labels = 24; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
* * map<string, string> labels = 24; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } + private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged();; + internalGetMutableMetadata() { + onChanged(); + ; if (metadata_ == null) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); + metadata_ = + com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); @@ -4781,6 +5392,8 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
      * Custom metadata to apply to the TPU Node.
      * Can set startup-script and shutdown-script
@@ -4788,22 +5401,22 @@ public int getMetadataCount() {
      *
      * map<string, string> metadata = 34;
      */
-
     @java.lang.Override
-    public boolean containsMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetMetadata().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getMetadataMap()} instead.
-     */
+    /** Use {@link #getMetadataMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMetadata() {
       return getMetadataMap();
     }
     /**
+     *
+     *
      * 
      * Custom metadata to apply to the TPU Node.
      * Can set startup-script and shutdown-script
@@ -4812,11 +5425,12 @@ public java.util.Map getMetadata() {
      * map<string, string> metadata = 34;
      */
     @java.lang.Override
-
     public java.util.Map getMetadataMap() {
       return internalGetMetadata().getMap();
     }
     /**
+     *
+     *
      * 
      * Custom metadata to apply to the TPU Node.
      * Can set startup-script and shutdown-script
@@ -4825,16 +5439,17 @@ public java.util.Map getMetadataMap() {
      * map<string, string> metadata = 34;
      */
     @java.lang.Override
-
     public java.lang.String getMetadataOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Custom metadata to apply to the TPU Node.
      * Can set startup-script and shutdown-script
@@ -4843,12 +5458,11 @@ public java.lang.String getMetadataOrDefault(
      * map<string, string> metadata = 34;
      */
     @java.lang.Override
-
-    public java.lang.String getMetadataOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+    public java.lang.String getMetadataOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -4856,11 +5470,12 @@ public java.lang.String getMetadataOrThrow(
     }
 
     public Builder clearMetadata() {
-      internalGetMutableMetadata().getMutableMap()
-          .clear();
+      internalGetMutableMetadata().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Custom metadata to apply to the TPU Node.
      * Can set startup-script and shutdown-script
@@ -4868,23 +5483,21 @@ public Builder clearMetadata() {
      *
      * map<string, string> metadata = 34;
      */
-
-    public Builder removeMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableMetadata().getMutableMap()
-          .remove(key);
+    public Builder removeMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableMetadata().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableMetadata() {
+    public java.util.Map getMutableMetadata() {
       return internalGetMutableMetadata().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Custom metadata to apply to the TPU Node.
      * Can set startup-script and shutdown-script
@@ -4892,19 +5505,20 @@ public Builder removeMetadata(
      *
      * map<string, string> metadata = 34;
      */
-    public Builder putMetadata(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putMetadata(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableMetadata().getMutableMap()
-          .put(key, value);
+      internalGetMutableMetadata().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Custom metadata to apply to the TPU Node.
      * Can set startup-script and shutdown-script
@@ -4912,53 +5526,60 @@ public Builder putMetadata(
      *
      * map<string, string> metadata = 34;
      */
-
-    public Builder putAllMetadata(
-        java.util.Map values) {
-      internalGetMutableMetadata().getMutableMap()
-          .putAll(values);
+    public Builder putAllMetadata(java.util.Map values) {
+      internalGetMutableMetadata().getMutableMap().putAll(values);
       return this;
     }
 
-    private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList tags_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensureTagsIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
         tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
         bitField0_ |= 0x00000008;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * Tags to apply to the TPU Node. Tags are used to identify valid sources or
      * targets for network firewalls.
      * 
* * repeated string tags = 40; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** + * + * *
      * Tags to apply to the TPU Node. Tags are used to identify valid sources or
      * targets for network firewalls.
      * 
* * repeated string tags = 40; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
      * Tags to apply to the TPU Node. Tags are used to identify valid sources or
      * targets for network firewalls.
      * 
* * repeated string tags = 40; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -4966,85 +5587,95 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
      * Tags to apply to the TPU Node. Tags are used to identify valid sources or
      * targets for network firewalls.
      * 
* * repeated string tags = 40; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** + * + * *
      * Tags to apply to the TPU Node. Tags are used to identify valid sources or
      * targets for network firewalls.
      * 
* * repeated string tags = 40; + * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags( - int index, java.lang.String value) { + public Builder setTags(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** + * + * *
      * Tags to apply to the TPU Node. Tags are used to identify valid sources or
      * targets for network firewalls.
      * 
* * repeated string tags = 40; + * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags( - java.lang.String value) { + public Builder addTags(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** + * + * *
      * Tags to apply to the TPU Node. Tags are used to identify valid sources or
      * targets for network firewalls.
      * 
* * repeated string tags = 40; + * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags( - java.lang.Iterable values) { + public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); onChanged(); return this; } /** + * + * *
      * Tags to apply to the TPU Node. Tags are used to identify valid sources or
      * targets for network firewalls.
      * 
* * repeated string tags = 40; + * * @return This builder for chaining. */ public Builder clearTags() { @@ -5054,34 +5685,39 @@ public Builder clearTags() { return this; } /** + * + * *
      * Tags to apply to the TPU Node. Tags are used to identify valid sources or
      * targets for network firewalls.
      * 
* * repeated string tags = 40; + * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { + public Builder addTagsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } - private long id_ ; + private long id_; /** + * + * *
      * Output only. The unique identifier for the TPU Node.
      * 
* * int64 id = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ @java.lang.Override @@ -5089,48 +5725,60 @@ public long getId() { return id_; } /** + * + * *
      * Output only. The unique identifier for the TPU Node.
      * 
* * int64 id = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { - + id_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The unique identifier for the TPU Node.
      * 
* * int64 id = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = 0L; onChanged(); return this; } private java.util.List dataDisks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDataDisksIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { dataDisks_ = new java.util.ArrayList(dataDisks_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.AttachedDisk, com.google.cloud.tpu.v2.AttachedDisk.Builder, com.google.cloud.tpu.v2.AttachedDiskOrBuilder> dataDisksBuilder_; + com.google.cloud.tpu.v2.AttachedDisk, + com.google.cloud.tpu.v2.AttachedDisk.Builder, + com.google.cloud.tpu.v2.AttachedDiskOrBuilder> + dataDisksBuilder_; /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5145,6 +5793,8 @@ public java.util.List getDataDisksList() { } } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5159,6 +5809,8 @@ public int getDataDisksCount() { } } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5173,14 +5825,15 @@ public com.google.cloud.tpu.v2.AttachedDisk getDataDisks(int index) { } } /** + * + * *
      * The additional data disks for the Node.
      * 
* * repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41; */ - public Builder setDataDisks( - int index, com.google.cloud.tpu.v2.AttachedDisk value) { + public Builder setDataDisks(int index, com.google.cloud.tpu.v2.AttachedDisk value) { if (dataDisksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5194,6 +5847,8 @@ public Builder setDataDisks( return this; } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5212,6 +5867,8 @@ public Builder setDataDisks( return this; } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5232,14 +5889,15 @@ public Builder addDataDisks(com.google.cloud.tpu.v2.AttachedDisk value) { return this; } /** + * + * *
      * The additional data disks for the Node.
      * 
* * repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41; */ - public Builder addDataDisks( - int index, com.google.cloud.tpu.v2.AttachedDisk value) { + public Builder addDataDisks(int index, com.google.cloud.tpu.v2.AttachedDisk value) { if (dataDisksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5253,14 +5911,15 @@ public Builder addDataDisks( return this; } /** + * + * *
      * The additional data disks for the Node.
      * 
* * repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41; */ - public Builder addDataDisks( - com.google.cloud.tpu.v2.AttachedDisk.Builder builderForValue) { + public Builder addDataDisks(com.google.cloud.tpu.v2.AttachedDisk.Builder builderForValue) { if (dataDisksBuilder_ == null) { ensureDataDisksIsMutable(); dataDisks_.add(builderForValue.build()); @@ -5271,6 +5930,8 @@ public Builder addDataDisks( return this; } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5289,6 +5950,8 @@ public Builder addDataDisks( return this; } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5299,8 +5962,7 @@ public Builder addAllDataDisks( java.lang.Iterable values) { if (dataDisksBuilder_ == null) { ensureDataDisksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dataDisks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataDisks_); onChanged(); } else { dataDisksBuilder_.addAllMessages(values); @@ -5308,6 +5970,8 @@ public Builder addAllDataDisks( return this; } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5325,6 +5989,8 @@ public Builder clearDataDisks() { return this; } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5342,39 +6008,44 @@ public Builder removeDataDisks(int index) { return this; } /** + * + * *
      * The additional data disks for the Node.
      * 
* * repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41; */ - public com.google.cloud.tpu.v2.AttachedDisk.Builder getDataDisksBuilder( - int index) { + public com.google.cloud.tpu.v2.AttachedDisk.Builder getDataDisksBuilder(int index) { return getDataDisksFieldBuilder().getBuilder(index); } /** + * + * *
      * The additional data disks for the Node.
      * 
* * repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41; */ - public com.google.cloud.tpu.v2.AttachedDiskOrBuilder getDataDisksOrBuilder( - int index) { + public com.google.cloud.tpu.v2.AttachedDiskOrBuilder getDataDisksOrBuilder(int index) { if (dataDisksBuilder_ == null) { - return dataDisks_.get(index); } else { + return dataDisks_.get(index); + } else { return dataDisksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The additional data disks for the Node.
      * 
* * repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41; */ - public java.util.List - getDataDisksOrBuilderList() { + public java.util.List + getDataDisksOrBuilderList() { if (dataDisksBuilder_ != null) { return dataDisksBuilder_.getMessageOrBuilderList(); } else { @@ -5382,6 +6053,8 @@ public com.google.cloud.tpu.v2.AttachedDiskOrBuilder getDataDisksOrBuilder( } } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5389,42 +6062,47 @@ public com.google.cloud.tpu.v2.AttachedDiskOrBuilder getDataDisksOrBuilder( * repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41; */ public com.google.cloud.tpu.v2.AttachedDisk.Builder addDataDisksBuilder() { - return getDataDisksFieldBuilder().addBuilder( - com.google.cloud.tpu.v2.AttachedDisk.getDefaultInstance()); + return getDataDisksFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2.AttachedDisk.getDefaultInstance()); } /** + * + * *
      * The additional data disks for the Node.
      * 
* * repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41; */ - public com.google.cloud.tpu.v2.AttachedDisk.Builder addDataDisksBuilder( - int index) { - return getDataDisksFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v2.AttachedDisk.getDefaultInstance()); + public com.google.cloud.tpu.v2.AttachedDisk.Builder addDataDisksBuilder(int index) { + return getDataDisksFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2.AttachedDisk.getDefaultInstance()); } /** + * + * *
      * The additional data disks for the Node.
      * 
* * repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41; */ - public java.util.List - getDataDisksBuilderList() { + public java.util.List getDataDisksBuilderList() { return getDataDisksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.AttachedDisk, com.google.cloud.tpu.v2.AttachedDisk.Builder, com.google.cloud.tpu.v2.AttachedDiskOrBuilder> + com.google.cloud.tpu.v2.AttachedDisk, + com.google.cloud.tpu.v2.AttachedDisk.Builder, + com.google.cloud.tpu.v2.AttachedDiskOrBuilder> getDataDisksFieldBuilder() { if (dataDisksBuilder_ == null) { - dataDisksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.AttachedDisk, com.google.cloud.tpu.v2.AttachedDisk.Builder, com.google.cloud.tpu.v2.AttachedDiskOrBuilder>( - dataDisks_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); + dataDisksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2.AttachedDisk, + com.google.cloud.tpu.v2.AttachedDisk.Builder, + com.google.cloud.tpu.v2.AttachedDiskOrBuilder>( + dataDisks_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); dataDisks_ = null; } return dataDisksBuilder_; @@ -5432,51 +6110,73 @@ public com.google.cloud.tpu.v2.AttachedDisk.Builder addDataDisksBuilder( private int apiVersion_ = 0; /** + * + * *
      * Output only. The API version that created this Node.
      * 
* - * .google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for apiVersion. */ - @java.lang.Override public int getApiVersionValue() { + @java.lang.Override + public int getApiVersionValue() { return apiVersion_; } /** + * + * *
      * Output only. The API version that created this Node.
      * 
* - * .google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for apiVersion to set. * @return This builder for chaining. */ public Builder setApiVersionValue(int value) { - + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The API version that created this Node.
      * 
* - * .google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The apiVersion. */ @java.lang.Override public com.google.cloud.tpu.v2.Node.ApiVersion getApiVersion() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2.Node.ApiVersion result = com.google.cloud.tpu.v2.Node.ApiVersion.valueOf(apiVersion_); + com.google.cloud.tpu.v2.Node.ApiVersion result = + com.google.cloud.tpu.v2.Node.ApiVersion.valueOf(apiVersion_); return result == null ? com.google.cloud.tpu.v2.Node.ApiVersion.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The API version that created this Node.
      * 
* - * .google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The apiVersion to set. * @return This builder for chaining. */ @@ -5484,44 +6184,57 @@ public Builder setApiVersion(com.google.cloud.tpu.v2.Node.ApiVersion value) { if (value == null) { throw new NullPointerException(); } - + apiVersion_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The API version that created this Node.
      * 
* - * .google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = 0; onChanged(); return this; } private java.util.List symptoms_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSymptomsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { symptoms_ = new java.util.ArrayList(symptoms_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.Symptom, com.google.cloud.tpu.v2.Symptom.Builder, com.google.cloud.tpu.v2.SymptomOrBuilder> symptomsBuilder_; + com.google.cloud.tpu.v2.Symptom, + com.google.cloud.tpu.v2.Symptom.Builder, + com.google.cloud.tpu.v2.SymptomOrBuilder> + symptomsBuilder_; /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getSymptomsList() { if (symptomsBuilder_ == null) { @@ -5531,11 +6244,15 @@ public java.util.List getSymptomsList() { } } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getSymptomsCount() { if (symptomsBuilder_ == null) { @@ -5545,11 +6262,15 @@ public int getSymptomsCount() { } } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v2.Symptom getSymptoms(int index) { if (symptomsBuilder_ == null) { @@ -5559,14 +6280,17 @@ public com.google.cloud.tpu.v2.Symptom getSymptoms(int index) { } } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSymptoms( - int index, com.google.cloud.tpu.v2.Symptom value) { + public Builder setSymptoms(int index, com.google.cloud.tpu.v2.Symptom value) { if (symptomsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5580,14 +6304,17 @@ public Builder setSymptoms( return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSymptoms( - int index, com.google.cloud.tpu.v2.Symptom.Builder builderForValue) { + public Builder setSymptoms(int index, com.google.cloud.tpu.v2.Symptom.Builder builderForValue) { if (symptomsBuilder_ == null) { ensureSymptomsIsMutable(); symptoms_.set(index, builderForValue.build()); @@ -5598,11 +6325,15 @@ public Builder setSymptoms( return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addSymptoms(com.google.cloud.tpu.v2.Symptom value) { if (symptomsBuilder_ == null) { @@ -5618,14 +6349,17 @@ public Builder addSymptoms(com.google.cloud.tpu.v2.Symptom value) { return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addSymptoms( - int index, com.google.cloud.tpu.v2.Symptom value) { + public Builder addSymptoms(int index, com.google.cloud.tpu.v2.Symptom value) { if (symptomsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5639,14 +6373,17 @@ public Builder addSymptoms( return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addSymptoms( - com.google.cloud.tpu.v2.Symptom.Builder builderForValue) { + public Builder addSymptoms(com.google.cloud.tpu.v2.Symptom.Builder builderForValue) { if (symptomsBuilder_ == null) { ensureSymptomsIsMutable(); symptoms_.add(builderForValue.build()); @@ -5657,14 +6394,17 @@ public Builder addSymptoms( return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addSymptoms( - int index, com.google.cloud.tpu.v2.Symptom.Builder builderForValue) { + public Builder addSymptoms(int index, com.google.cloud.tpu.v2.Symptom.Builder builderForValue) { if (symptomsBuilder_ == null) { ensureSymptomsIsMutable(); symptoms_.add(index, builderForValue.build()); @@ -5675,18 +6415,21 @@ public Builder addSymptoms( return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllSymptoms( java.lang.Iterable values) { if (symptomsBuilder_ == null) { ensureSymptomsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, symptoms_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, symptoms_); onChanged(); } else { symptomsBuilder_.addAllMessages(values); @@ -5694,11 +6437,15 @@ public Builder addAllSymptoms( return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSymptoms() { if (symptomsBuilder_ == null) { @@ -5711,11 +6458,15 @@ public Builder clearSymptoms() { return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeSymptoms(int index) { if (symptomsBuilder_ == null) { @@ -5728,39 +6479,50 @@ public Builder removeSymptoms(int index) { return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.tpu.v2.Symptom.Builder getSymptomsBuilder( - int index) { + public com.google.cloud.tpu.v2.Symptom.Builder getSymptomsBuilder(int index) { return getSymptomsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.tpu.v2.SymptomOrBuilder getSymptomsOrBuilder( - int index) { + public com.google.cloud.tpu.v2.SymptomOrBuilder getSymptomsOrBuilder(int index) { if (symptomsBuilder_ == null) { - return symptoms_.get(index); } else { + return symptoms_.get(index); + } else { return symptomsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getSymptomsOrBuilderList() { + public java.util.List + getSymptomsOrBuilderList() { if (symptomsBuilder_ != null) { return symptomsBuilder_.getMessageOrBuilderList(); } else { @@ -5768,49 +6530,62 @@ public com.google.cloud.tpu.v2.SymptomOrBuilder getSymptomsOrBuilder( } } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v2.Symptom.Builder addSymptomsBuilder() { - return getSymptomsFieldBuilder().addBuilder( - com.google.cloud.tpu.v2.Symptom.getDefaultInstance()); + return getSymptomsFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2.Symptom.getDefaultInstance()); } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.tpu.v2.Symptom.Builder addSymptomsBuilder( - int index) { - return getSymptomsFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v2.Symptom.getDefaultInstance()); + public com.google.cloud.tpu.v2.Symptom.Builder addSymptomsBuilder(int index) { + return getSymptomsFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2.Symptom.getDefaultInstance()); } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getSymptomsBuilderList() { + public java.util.List getSymptomsBuilderList() { return getSymptomsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.Symptom, com.google.cloud.tpu.v2.Symptom.Builder, com.google.cloud.tpu.v2.SymptomOrBuilder> + com.google.cloud.tpu.v2.Symptom, + com.google.cloud.tpu.v2.Symptom.Builder, + com.google.cloud.tpu.v2.SymptomOrBuilder> getSymptomsFieldBuilder() { if (symptomsBuilder_ == null) { - symptomsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2.Symptom, com.google.cloud.tpu.v2.Symptom.Builder, com.google.cloud.tpu.v2.SymptomOrBuilder>( - symptoms_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); + symptomsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2.Symptom, + com.google.cloud.tpu.v2.Symptom.Builder, + com.google.cloud.tpu.v2.SymptomOrBuilder>( + symptoms_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); symptoms_ = null; } return symptomsBuilder_; @@ -5818,34 +6593,47 @@ public com.google.cloud.tpu.v2.Symptom.Builder addSymptomsBuilder( private com.google.cloud.tpu.v2.ShieldedInstanceConfig shieldedInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.ShieldedInstanceConfig, com.google.cloud.tpu.v2.ShieldedInstanceConfig.Builder, com.google.cloud.tpu.v2.ShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; + com.google.cloud.tpu.v2.ShieldedInstanceConfig, + com.google.cloud.tpu.v2.ShieldedInstanceConfig.Builder, + com.google.cloud.tpu.v2.ShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; /** + * + * *
      * Shielded Instance options.
      * 
* * .google.cloud.tpu.v2.ShieldedInstanceConfig shielded_instance_config = 45; + * * @return Whether the shieldedInstanceConfig field is set. */ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; } /** + * + * *
      * Shielded Instance options.
      * 
* * .google.cloud.tpu.v2.ShieldedInstanceConfig shielded_instance_config = 45; + * * @return The shieldedInstanceConfig. */ public com.google.cloud.tpu.v2.ShieldedInstanceConfig getShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null ? com.google.cloud.tpu.v2.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.tpu.v2.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } else { return shieldedInstanceConfigBuilder_.getMessage(); } } /** + * + * *
      * Shielded Instance options.
      * 
@@ -5866,6 +6654,8 @@ public Builder setShieldedInstanceConfig(com.google.cloud.tpu.v2.ShieldedInstanc return this; } /** + * + * *
      * Shielded Instance options.
      * 
@@ -5884,17 +6674,22 @@ public Builder setShieldedInstanceConfig( return this; } /** + * + * *
      * Shielded Instance options.
      * 
* * .google.cloud.tpu.v2.ShieldedInstanceConfig shielded_instance_config = 45; */ - public Builder mergeShieldedInstanceConfig(com.google.cloud.tpu.v2.ShieldedInstanceConfig value) { + public Builder mergeShieldedInstanceConfig( + com.google.cloud.tpu.v2.ShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { if (shieldedInstanceConfig_ != null) { shieldedInstanceConfig_ = - com.google.cloud.tpu.v2.ShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v2.ShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_) + .mergeFrom(value) + .buildPartial(); } else { shieldedInstanceConfig_ = value; } @@ -5906,6 +6701,8 @@ public Builder mergeShieldedInstanceConfig(com.google.cloud.tpu.v2.ShieldedInsta return this; } /** + * + * *
      * Shielded Instance options.
      * 
@@ -5924,33 +6721,42 @@ public Builder clearShieldedInstanceConfig() { return this; } /** + * + * *
      * Shielded Instance options.
      * 
* * .google.cloud.tpu.v2.ShieldedInstanceConfig shielded_instance_config = 45; */ - public com.google.cloud.tpu.v2.ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { - + public com.google.cloud.tpu.v2.ShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { + onChanged(); return getShieldedInstanceConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Shielded Instance options.
      * 
* * .google.cloud.tpu.v2.ShieldedInstanceConfig shielded_instance_config = 45; */ - public com.google.cloud.tpu.v2.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.tpu.v2.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { if (shieldedInstanceConfigBuilder_ != null) { return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return shieldedInstanceConfig_ == null ? - com.google.cloud.tpu.v2.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.tpu.v2.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } } /** + * + * *
      * Shielded Instance options.
      * 
@@ -5958,21 +6764,24 @@ public com.google.cloud.tpu.v2.ShieldedInstanceConfigOrBuilder getShieldedInstan * .google.cloud.tpu.v2.ShieldedInstanceConfig shielded_instance_config = 45; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.ShieldedInstanceConfig, com.google.cloud.tpu.v2.ShieldedInstanceConfig.Builder, com.google.cloud.tpu.v2.ShieldedInstanceConfigOrBuilder> + com.google.cloud.tpu.v2.ShieldedInstanceConfig, + com.google.cloud.tpu.v2.ShieldedInstanceConfig.Builder, + com.google.cloud.tpu.v2.ShieldedInstanceConfigOrBuilder> getShieldedInstanceConfigFieldBuilder() { if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.ShieldedInstanceConfig, com.google.cloud.tpu.v2.ShieldedInstanceConfig.Builder, com.google.cloud.tpu.v2.ShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), - getParentForChildren(), - isClean()); + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.ShieldedInstanceConfig, + com.google.cloud.tpu.v2.ShieldedInstanceConfig.Builder, + com.google.cloud.tpu.v2.ShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); shieldedInstanceConfig_ = null; } return shieldedInstanceConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5982,12 +6791,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.Node) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.Node) private static final com.google.cloud.tpu.v2.Node DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.Node(); } @@ -5996,27 +6805,27 @@ public static com.google.cloud.tpu.v2.Node getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Node parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Node parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6031,6 +6840,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.Node getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NodeName.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NodeName.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NodeName.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NodeName.java diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NodeOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NodeOrBuilder.java similarity index 75% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NodeOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NodeOrBuilder.java index 390e82da0dfd..7a4fff924999 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NodeOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NodeOrBuilder.java @@ -1,152 +1,213 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface NodeOrBuilder extends +public interface NodeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.Node) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Immutable. The name of the TPU.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Immutable. The name of the TPU.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The user-supplied description of the TPU. Maximum of 512 characters.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * The user-supplied description of the TPU. Maximum of 512 characters.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Required. The type of hardware accelerators associated with this node.
    * 
* * string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The acceleratorType. */ java.lang.String getAcceleratorType(); /** + * + * *
    * Required. The type of hardware accelerators associated with this node.
    * 
* * string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for acceleratorType. */ - com.google.protobuf.ByteString - getAcceleratorTypeBytes(); + com.google.protobuf.ByteString getAcceleratorTypeBytes(); /** + * + * *
    * Output only. The current state for the TPU Node.
    * 
* - * .google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current state for the TPU Node.
    * 
* - * .google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.tpu.v2.Node.State getState(); /** + * + * *
    * Output only. If this field is populated, it contains a description of why the TPU Node
    * is unhealthy.
    * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The healthDescription. */ java.lang.String getHealthDescription(); /** + * + * *
    * Output only. If this field is populated, it contains a description of why the TPU Node
    * is unhealthy.
    * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for healthDescription. */ - com.google.protobuf.ByteString - getHealthDescriptionBytes(); + com.google.protobuf.ByteString getHealthDescriptionBytes(); /** + * + * *
    * Required. The runtime version running in the Node.
    * 
* * string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The runtimeVersion. */ java.lang.String getRuntimeVersion(); /** + * + * *
    * Required. The runtime version running in the Node.
    * 
* * string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for runtimeVersion. */ - com.google.protobuf.ByteString - getRuntimeVersionBytes(); + com.google.protobuf.ByteString getRuntimeVersionBytes(); /** + * + * *
    * Network configurations for the TPU node.
    * 
* * .google.cloud.tpu.v2.NetworkConfig network_config = 36; + * * @return Whether the networkConfig field is set. */ boolean hasNetworkConfig(); /** + * + * *
    * Network configurations for the TPU node.
    * 
* * .google.cloud.tpu.v2.NetworkConfig network_config = 36; + * * @return The networkConfig. */ com.google.cloud.tpu.v2.NetworkConfig getNetworkConfig(); /** + * + * *
    * Network configurations for the TPU node.
    * 
@@ -156,6 +217,8 @@ public interface NodeOrBuilder extends com.google.cloud.tpu.v2.NetworkConfigOrBuilder getNetworkConfigOrBuilder(); /** + * + * *
    * The CIDR block that the TPU node will use when selecting an IP address.
    * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -168,10 +231,13 @@ public interface NodeOrBuilder extends
    * 
* * string cidr_block = 13; + * * @return The cidrBlock. */ java.lang.String getCidrBlock(); /** + * + * *
    * The CIDR block that the TPU node will use when selecting an IP address.
    * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -184,32 +250,40 @@ public interface NodeOrBuilder extends
    * 
* * string cidr_block = 13; + * * @return The bytes for cidrBlock. */ - com.google.protobuf.ByteString - getCidrBlockBytes(); + com.google.protobuf.ByteString getCidrBlockBytes(); /** + * + * *
    * The Google Cloud Platform Service Account to be used by the TPU node VMs.
    * If None is specified, the default compute service account will be used.
    * 
* * .google.cloud.tpu.v2.ServiceAccount service_account = 37; + * * @return Whether the serviceAccount field is set. */ boolean hasServiceAccount(); /** + * + * *
    * The Google Cloud Platform Service Account to be used by the TPU node VMs.
    * If None is specified, the default compute service account will be used.
    * 
* * .google.cloud.tpu.v2.ServiceAccount service_account = 37; + * * @return The serviceAccount. */ com.google.cloud.tpu.v2.ServiceAccount getServiceAccount(); /** + * + * *
    * The Google Cloud Platform Service Account to be used by the TPU node VMs.
    * If None is specified, the default compute service account will be used.
@@ -220,51 +294,70 @@ public interface NodeOrBuilder extends
   com.google.cloud.tpu.v2.ServiceAccountOrBuilder getServiceAccountOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The time when the node was created.
    * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time when the node was created.
    * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time when the node was created.
    * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The scheduling options for this node.
    * 
* * .google.cloud.tpu.v2.SchedulingConfig scheduling_config = 17; + * * @return Whether the schedulingConfig field is set. */ boolean hasSchedulingConfig(); /** + * + * *
    * The scheduling options for this node.
    * 
* * .google.cloud.tpu.v2.SchedulingConfig scheduling_config = 17; + * * @return The schedulingConfig. */ com.google.cloud.tpu.v2.SchedulingConfig getSchedulingConfig(); /** + * + * *
    * The scheduling options for this node.
    * 
@@ -274,79 +367,105 @@ public interface NodeOrBuilder extends com.google.cloud.tpu.v2.SchedulingConfigOrBuilder getSchedulingConfigOrBuilder(); /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getNetworkEndpointsList(); + java.util.List getNetworkEndpointsList(); /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.tpu.v2.NetworkEndpoint getNetworkEndpoints(int index); /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getNetworkEndpointsCount(); /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getNetworkEndpointsOrBuilderList(); /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.tpu.v2.NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder( - int index); + com.google.cloud.tpu.v2.NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder(int index); /** + * + * *
    * The health status of the TPU node.
    * 
* * .google.cloud.tpu.v2.Node.Health health = 22; + * * @return The enum numeric value on the wire for health. */ int getHealthValue(); /** + * + * *
    * The health status of the TPU node.
    * 
* * .google.cloud.tpu.v2.Node.Health health = 22; + * * @return The health. */ com.google.cloud.tpu.v2.Node.Health getHealth(); /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
@@ -355,30 +474,31 @@ com.google.cloud.tpu.v2.NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder( */ int getLabelsCount(); /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
* * map<string, string> labels = 24; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
* * map<string, string> labels = 24; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
@@ -387,22 +507,24 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
* * map<string, string> labels = 24; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Custom metadata to apply to the TPU Node.
    * Can set startup-script and shutdown-script
@@ -412,6 +534,8 @@ java.lang.String getLabelsOrThrow(
    */
   int getMetadataCount();
   /**
+   *
+   *
    * 
    * Custom metadata to apply to the TPU Node.
    * Can set startup-script and shutdown-script
@@ -419,15 +543,13 @@ java.lang.String getLabelsOrThrow(
    *
    * map<string, string> metadata = 34;
    */
-  boolean containsMetadata(
-      java.lang.String key);
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  boolean containsMetadata(java.lang.String key);
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getMetadata();
+  java.util.Map getMetadata();
   /**
+   *
+   *
    * 
    * Custom metadata to apply to the TPU Node.
    * Can set startup-script and shutdown-script
@@ -435,9 +557,10 @@ boolean containsMetadata(
    *
    * map<string, string> metadata = 34;
    */
-  java.util.Map
-  getMetadataMap();
+  java.util.Map getMetadataMap();
   /**
+   *
+   *
    * 
    * Custom metadata to apply to the TPU Node.
    * Can set startup-script and shutdown-script
@@ -447,11 +570,13 @@ boolean containsMetadata(
    */
 
   /* nullable */
-java.lang.String getMetadataOrDefault(
+  java.lang.String getMetadataOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Custom metadata to apply to the TPU Node.
    * Can set startup-script and shutdown-script
@@ -459,75 +584,89 @@ java.lang.String getMetadataOrDefault(
    *
    * map<string, string> metadata = 34;
    */
-
-  java.lang.String getMetadataOrThrow(
-      java.lang.String key);
+  java.lang.String getMetadataOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Tags to apply to the TPU Node. Tags are used to identify valid sources or
    * targets for network firewalls.
    * 
* * repeated string tags = 40; + * * @return A list containing the tags. */ - java.util.List - getTagsList(); + java.util.List getTagsList(); /** + * + * *
    * Tags to apply to the TPU Node. Tags are used to identify valid sources or
    * targets for network firewalls.
    * 
* * repeated string tags = 40; + * * @return The count of tags. */ int getTagsCount(); /** + * + * *
    * Tags to apply to the TPU Node. Tags are used to identify valid sources or
    * targets for network firewalls.
    * 
* * repeated string tags = 40; + * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** + * + * *
    * Tags to apply to the TPU Node. Tags are used to identify valid sources or
    * targets for network firewalls.
    * 
* * repeated string tags = 40; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString - getTagsBytes(int index); + com.google.protobuf.ByteString getTagsBytes(int index); /** + * + * *
    * Output only. The unique identifier for the TPU Node.
    * 
* * int64 id = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ long getId(); /** + * + * *
    * The additional data disks for the Node.
    * 
* * repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41; */ - java.util.List - getDataDisksList(); + java.util.List getDataDisksList(); /** + * + * *
    * The additional data disks for the Node.
    * 
@@ -536,6 +675,8 @@ java.lang.String getMetadataOrThrow( */ com.google.cloud.tpu.v2.AttachedDisk getDataDisks(int index); /** + * + * *
    * The additional data disks for the Node.
    * 
@@ -544,106 +685,144 @@ java.lang.String getMetadataOrThrow( */ int getDataDisksCount(); /** + * + * *
    * The additional data disks for the Node.
    * 
* * repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41; */ - java.util.List + java.util.List getDataDisksOrBuilderList(); /** + * + * *
    * The additional data disks for the Node.
    * 
* * repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41; */ - com.google.cloud.tpu.v2.AttachedDiskOrBuilder getDataDisksOrBuilder( - int index); + com.google.cloud.tpu.v2.AttachedDiskOrBuilder getDataDisksOrBuilder(int index); /** + * + * *
    * Output only. The API version that created this Node.
    * 
* - * .google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for apiVersion. */ int getApiVersionValue(); /** + * + * *
    * Output only. The API version that created this Node.
    * 
* - * .google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The apiVersion. */ com.google.cloud.tpu.v2.Node.ApiVersion getApiVersion(); /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getSymptomsList(); + java.util.List getSymptomsList(); /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.tpu.v2.Symptom getSymptoms(int index); /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getSymptomsCount(); /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getSymptomsOrBuilderList(); + java.util.List getSymptomsOrBuilderList(); /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.tpu.v2.SymptomOrBuilder getSymptomsOrBuilder( - int index); + com.google.cloud.tpu.v2.SymptomOrBuilder getSymptomsOrBuilder(int index); /** + * + * *
    * Shielded Instance options.
    * 
* * .google.cloud.tpu.v2.ShieldedInstanceConfig shielded_instance_config = 45; + * * @return Whether the shieldedInstanceConfig field is set. */ boolean hasShieldedInstanceConfig(); /** + * + * *
    * Shielded Instance options.
    * 
* * .google.cloud.tpu.v2.ShieldedInstanceConfig shielded_instance_config = 45; + * * @return The shieldedInstanceConfig. */ com.google.cloud.tpu.v2.ShieldedInstanceConfig getShieldedInstanceConfig(); /** + * + * *
    * Shielded Instance options.
    * 
diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/OperationMetadata.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/OperationMetadata.java similarity index 72% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/OperationMetadata.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/OperationMetadata.java index 1086172b1dff..3e108d545c8f 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/OperationMetadata.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Metadata describing an [Operation][google.longrunning.Operation]
  * 
* * Protobuf type {@code google.cloud.tpu.v2.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,37 +46,41 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.OperationMetadata.class, com.google.cloud.tpu.v2.OperationMetadata.Builder.class); + com.google.cloud.tpu.v2.OperationMetadata.class, + com.google.cloud.tpu.v2.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -66,11 +88,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -78,6 +103,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time the operation was created.
    * 
@@ -92,11 +119,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -104,11 +134,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -116,6 +149,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time the operation finished running.
    * 
@@ -130,12 +165,15 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Target of the operation - for example
    * projects/project-1/connectivityTests/test-1
    * 
* * string target = 3; + * * @return The target. */ @java.lang.Override @@ -144,30 +182,30 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Target of the operation - for example
    * projects/project-1/connectivityTests/test-1
    * 
* * string target = 3; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -178,11 +216,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The verb. */ @java.lang.Override @@ -191,29 +232,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -224,11 +265,14 @@ public java.lang.String getVerb() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_detail = 5; + * * @return The statusDetail. */ @java.lang.Override @@ -237,29 +281,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_detail = 5; + * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -270,11 +314,14 @@ public java.lang.String getStatusDetail() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** + * + * *
    * Specifies if cancellation was requested for the operation.
    * 
* * bool cancel_requested = 6; + * * @return The cancelRequested. */ @java.lang.Override @@ -285,11 +332,14 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * API version.
    * 
* * string api_version = 7; + * * @return The apiVersion. */ @java.lang.Override @@ -298,29 +348,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * API version.
    * 
* * string api_version = 7; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -329,6 +379,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -340,8 +391,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -373,12 +423,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -390,8 +438,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -404,33 +451,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.tpu.v2.OperationMetadata other = (com.google.cloud.tpu.v2.OperationMetadata) obj; + com.google.cloud.tpu.v2.OperationMetadata other = + (com.google.cloud.tpu.v2.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusDetail() - .equals(other.getStatusDetail())) return false; - if (getCancelRequested() - != other.getCancelRequested()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusDetail().equals(other.getStatusDetail())) return false; + if (getCancelRequested() != other.getCancelRequested()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -457,8 +498,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -466,130 +506,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.OperationMetadata 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.tpu.v2.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata describing an [Operation][google.longrunning.Operation]
    * 
* * Protobuf type {@code google.cloud.tpu.v2.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.OperationMetadata) com.google.cloud.tpu.v2.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.OperationMetadata.class, com.google.cloud.tpu.v2.OperationMetadata.Builder.class); + com.google.cloud.tpu.v2.OperationMetadata.class, + com.google.cloud.tpu.v2.OperationMetadata.Builder.class); } // Construct using com.google.cloud.tpu.v2.OperationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -619,9 +665,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_OperationMetadata_descriptor; } @java.lang.Override @@ -640,7 +686,8 @@ public com.google.cloud.tpu.v2.OperationMetadata build() { @java.lang.Override public com.google.cloud.tpu.v2.OperationMetadata buildPartial() { - com.google.cloud.tpu.v2.OperationMetadata result = new com.google.cloud.tpu.v2.OperationMetadata(this); + com.google.cloud.tpu.v2.OperationMetadata result = + new com.google.cloud.tpu.v2.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -664,38 +711,39 @@ public com.google.cloud.tpu.v2.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.OperationMetadata) { - return mergeFrom((com.google.cloud.tpu.v2.OperationMetadata)other); + return mergeFrom((com.google.cloud.tpu.v2.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -755,51 +803,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - statusDetail_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 48: { - cancelRequested_ = input.readBool(); - - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + statusDetail_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: + { + cancelRequested_ = input.readBool(); + + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -812,34 +864,47 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time the operation was created.
      * 
@@ -860,14 +925,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -878,6 +944,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -888,7 +956,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -900,6 +968,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -918,6 +988,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -925,11 +997,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation was created.
      * 
@@ -940,11 +1014,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time the operation was created.
      * 
@@ -952,14 +1029,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -967,24 +1047,33 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -995,6 +1084,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1015,14 +1106,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1033,6 +1125,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1043,7 +1137,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1055,6 +1149,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1073,6 +1169,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1080,11 +1178,13 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 2; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1095,11 +1195,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1107,14 +1208,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1122,19 +1226,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Target of the operation - for example
      * projects/project-1/connectivityTests/test-1
      * 
* * string target = 3; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1143,21 +1249,22 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Target of the operation - for example
      * projects/project-1/connectivityTests/test-1
      * 
* * string target = 3; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1165,57 +1272,64 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Target of the operation - for example
      * projects/project-1/connectivityTests/test-1
      * 
* * string target = 3; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Target of the operation - for example
      * projects/project-1/connectivityTests/test-1
      * 
* * string target = 3; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Target of the operation - for example
      * projects/project-1/connectivityTests/test-1
      * 
* * string target = 3; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1223,18 +1337,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1243,20 +1359,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1264,54 +1381,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1319,18 +1443,20 @@ public Builder setVerbBytes( private java.lang.Object statusDetail_ = ""; /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_detail = 5; + * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1339,20 +1465,21 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_detail = 5; + * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1360,66 +1487,76 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_detail = 5; + * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail( - java.lang.String value) { + public Builder setStatusDetail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_detail = 5; + * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_detail = 5; + * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_ ; + private boolean cancelRequested_; /** + * + * *
      * Specifies if cancellation was requested for the operation.
      * 
* * bool cancel_requested = 6; + * * @return The cancelRequested. */ @java.lang.Override @@ -1427,30 +1564,36 @@ public boolean getCancelRequested() { return cancelRequested_; } /** + * + * *
      * Specifies if cancellation was requested for the operation.
      * 
* * bool cancel_requested = 6; + * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** + * + * *
      * Specifies if cancellation was requested for the operation.
      * 
* * bool cancel_requested = 6; + * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1458,18 +1601,20 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1478,20 +1623,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1499,61 +1645,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1563,12 +1716,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.OperationMetadata) private static final com.google.cloud.tpu.v2.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.OperationMetadata(); } @@ -1577,27 +1730,27 @@ public static com.google.cloud.tpu.v2.OperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1612,6 +1765,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/OperationMetadataOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/OperationMetadataOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/OperationMetadataOrBuilder.java index 6fdfa9ec9b51..016c8388fb32 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/OperationMetadataOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/OperationMetadataOrBuilder.java @@ -1,31 +1,55 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
@@ -35,24 +59,32 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
@@ -62,94 +94,117 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Target of the operation - for example
    * projects/project-1/connectivityTests/test-1
    * 
* * string target = 3; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Target of the operation - for example
    * projects/project-1/connectivityTests/test-1
    * 
* * string target = 3; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_detail = 5; + * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_detail = 5; + * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString - getStatusDetailBytes(); + com.google.protobuf.ByteString getStatusDetailBytes(); /** + * + * *
    * Specifies if cancellation was requested for the operation.
    * 
* * bool cancel_requested = 6; + * * @return The cancelRequested. */ boolean getCancelRequested(); /** + * + * *
    * API version.
    * 
* * string api_version = 7; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * API version.
    * 
* * string api_version = 7; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersion.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersion.java similarity index 66% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersion.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersion.java index 67aea0b05dcf..4311b9619c67 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersion.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersion.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * A runtime version that a Node can be configured with.
  * 
* * Protobuf type {@code google.cloud.tpu.v2.RuntimeVersion} */ -public final class RuntimeVersion extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RuntimeVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.RuntimeVersion) RuntimeVersionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RuntimeVersion.newBuilder() to construct. private RuntimeVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RuntimeVersion() { name_ = ""; version_ = ""; @@ -26,37 +44,41 @@ private RuntimeVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RuntimeVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_RuntimeVersion_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_RuntimeVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_RuntimeVersion_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_RuntimeVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.RuntimeVersion.class, com.google.cloud.tpu.v2.RuntimeVersion.Builder.class); + com.google.cloud.tpu.v2.RuntimeVersion.class, + com.google.cloud.tpu.v2.RuntimeVersion.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -65,29 +87,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,11 +120,14 @@ public java.lang.String getName() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** + * + * *
    * The runtime version.
    * 
* * string version = 2; + * * @return The version. */ @java.lang.Override @@ -111,29 +136,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * The runtime version.
    * 
* * string version = 2; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -142,6 +167,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -184,17 +209,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.RuntimeVersion)) { return super.equals(obj); } com.google.cloud.tpu.v2.RuntimeVersion other = (com.google.cloud.tpu.v2.RuntimeVersion) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getName().equals(other.getName())) return false; + if (!getVersion().equals(other.getVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -215,130 +238,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.RuntimeVersion parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.RuntimeVersion parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.RuntimeVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.RuntimeVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.RuntimeVersion 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.tpu.v2.RuntimeVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.RuntimeVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.RuntimeVersion parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.RuntimeVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.RuntimeVersion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.RuntimeVersion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.RuntimeVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.RuntimeVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.RuntimeVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A runtime version that a Node can be configured with.
    * 
* * Protobuf type {@code google.cloud.tpu.v2.RuntimeVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.RuntimeVersion) com.google.cloud.tpu.v2.RuntimeVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_RuntimeVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_RuntimeVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_RuntimeVersion_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_RuntimeVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.RuntimeVersion.class, com.google.cloud.tpu.v2.RuntimeVersion.Builder.class); + com.google.cloud.tpu.v2.RuntimeVersion.class, + com.google.cloud.tpu.v2.RuntimeVersion.Builder.class); } // Construct using com.google.cloud.tpu.v2.RuntimeVersion.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_RuntimeVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_RuntimeVersion_descriptor; } @java.lang.Override @@ -371,7 +400,8 @@ public com.google.cloud.tpu.v2.RuntimeVersion build() { @java.lang.Override public com.google.cloud.tpu.v2.RuntimeVersion buildPartial() { - com.google.cloud.tpu.v2.RuntimeVersion result = new com.google.cloud.tpu.v2.RuntimeVersion(this); + com.google.cloud.tpu.v2.RuntimeVersion result = + new com.google.cloud.tpu.v2.RuntimeVersion(this); result.name_ = name_; result.version_ = version_; onBuilt(); @@ -382,38 +412,39 @@ public com.google.cloud.tpu.v2.RuntimeVersion buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.RuntimeVersion) { - return mergeFrom((com.google.cloud.tpu.v2.RuntimeVersion)other); + return mergeFrom((com.google.cloud.tpu.v2.RuntimeVersion) other); } else { super.mergeFrom(other); return this; @@ -456,22 +487,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - version_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -484,18 +518,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -504,20 +540,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -525,54 +562,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -580,18 +624,20 @@ public Builder setNameBytes( private java.lang.Object version_ = ""; /** + * + * *
      * The runtime version.
      * 
* * string version = 2; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -600,20 +646,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The runtime version.
      * 
* * string version = 2; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -621,61 +668,68 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The runtime version.
      * 
* * string version = 2; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * The runtime version.
      * 
* * string version = 2; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * The runtime version.
      * 
* * string version = 2; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -685,12 +739,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.RuntimeVersion) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.RuntimeVersion) private static final com.google.cloud.tpu.v2.RuntimeVersion DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.RuntimeVersion(); } @@ -699,27 +753,27 @@ public static com.google.cloud.tpu.v2.RuntimeVersion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuntimeVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -734,6 +788,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.RuntimeVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersionName.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersionName.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersionName.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersionName.java diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersionOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersionOrBuilder.java similarity index 51% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersionOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersionOrBuilder.java index 5f27a4e923cd..aef8c1340299 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersionOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersionOrBuilder.java @@ -1,49 +1,75 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface RuntimeVersionOrBuilder extends +public interface RuntimeVersionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.RuntimeVersion) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The runtime version.
    * 
* * string version = 2; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * The runtime version.
    * 
* * string version = 2; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); } diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfig.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfig.java similarity index 66% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfig.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfig.java index c3cd07e7f05e..e068fe5917a5 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfig.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfig.java @@ -1,60 +1,81 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Sets the scheduling options for this node.
  * 
* * Protobuf type {@code google.cloud.tpu.v2.SchedulingConfig} */ -public final class SchedulingConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SchedulingConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.SchedulingConfig) SchedulingConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SchedulingConfig.newBuilder() to construct. private SchedulingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SchedulingConfig() { - } + + private SchedulingConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SchedulingConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_SchedulingConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_SchedulingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_SchedulingConfig_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_SchedulingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.SchedulingConfig.class, com.google.cloud.tpu.v2.SchedulingConfig.Builder.class); + com.google.cloud.tpu.v2.SchedulingConfig.class, + com.google.cloud.tpu.v2.SchedulingConfig.Builder.class); } public static final int PREEMPTIBLE_FIELD_NUMBER = 1; private boolean preemptible_; /** + * + * *
    * Defines whether the node is preemptible.
    * 
* * bool preemptible = 1; + * * @return The preemptible. */ @java.lang.Override @@ -65,11 +86,14 @@ public boolean getPreemptible() { public static final int RESERVED_FIELD_NUMBER = 2; private boolean reserved_; /** + * + * *
    * Whether the node is created under a reservation.
    * 
* * bool reserved = 2; + * * @return The reserved. */ @java.lang.Override @@ -78,6 +102,7 @@ public boolean getReserved() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -89,8 +114,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (preemptible_ != false) { output.writeBool(1, preemptible_); } @@ -107,12 +131,10 @@ public int getSerializedSize() { size = 0; if (preemptible_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, preemptible_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, preemptible_); } if (reserved_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, reserved_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, reserved_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -122,17 +144,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.SchedulingConfig)) { return super.equals(obj); } com.google.cloud.tpu.v2.SchedulingConfig other = (com.google.cloud.tpu.v2.SchedulingConfig) obj; - if (getPreemptible() - != other.getPreemptible()) return false; - if (getReserved() - != other.getReserved()) return false; + if (getPreemptible() != other.getPreemptible()) return false; + if (getReserved() != other.getReserved()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -145,140 +165,144 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PREEMPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPreemptible()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreemptible()); hash = (37 * hash) + RESERVED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReserved()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReserved()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.tpu.v2.SchedulingConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.SchedulingConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.SchedulingConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.SchedulingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.SchedulingConfig 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.tpu.v2.SchedulingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.SchedulingConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.SchedulingConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.SchedulingConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.SchedulingConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.SchedulingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.SchedulingConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.SchedulingConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.SchedulingConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.SchedulingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Sets the scheduling options for this node.
    * 
* * Protobuf type {@code google.cloud.tpu.v2.SchedulingConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.SchedulingConfig) com.google.cloud.tpu.v2.SchedulingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_SchedulingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_SchedulingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_SchedulingConfig_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_SchedulingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.SchedulingConfig.class, com.google.cloud.tpu.v2.SchedulingConfig.Builder.class); + com.google.cloud.tpu.v2.SchedulingConfig.class, + com.google.cloud.tpu.v2.SchedulingConfig.Builder.class); } // Construct using com.google.cloud.tpu.v2.SchedulingConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -290,9 +314,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_SchedulingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_SchedulingConfig_descriptor; } @java.lang.Override @@ -311,7 +335,8 @@ public com.google.cloud.tpu.v2.SchedulingConfig build() { @java.lang.Override public com.google.cloud.tpu.v2.SchedulingConfig buildPartial() { - com.google.cloud.tpu.v2.SchedulingConfig result = new com.google.cloud.tpu.v2.SchedulingConfig(this); + com.google.cloud.tpu.v2.SchedulingConfig result = + new com.google.cloud.tpu.v2.SchedulingConfig(this); result.preemptible_ = preemptible_; result.reserved_ = reserved_; onBuilt(); @@ -322,38 +347,39 @@ public com.google.cloud.tpu.v2.SchedulingConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.SchedulingConfig) { - return mergeFrom((com.google.cloud.tpu.v2.SchedulingConfig)other); + return mergeFrom((com.google.cloud.tpu.v2.SchedulingConfig) other); } else { super.mergeFrom(other); return this; @@ -394,22 +420,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - preemptible_ = input.readBool(); - - break; - } // case 8 - case 16: { - reserved_ = input.readBool(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + preemptible_ = input.readBool(); + + break; + } // case 8 + case 16: + { + reserved_ = input.readBool(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,13 +449,16 @@ public Builder mergeFrom( return this; } - private boolean preemptible_ ; + private boolean preemptible_; /** + * + * *
      * Defines whether the node is preemptible.
      * 
* * bool preemptible = 1; + * * @return The preemptible. */ @java.lang.Override @@ -434,42 +466,51 @@ public boolean getPreemptible() { return preemptible_; } /** + * + * *
      * Defines whether the node is preemptible.
      * 
* * bool preemptible = 1; + * * @param value The preemptible to set. * @return This builder for chaining. */ public Builder setPreemptible(boolean value) { - + preemptible_ = value; onChanged(); return this; } /** + * + * *
      * Defines whether the node is preemptible.
      * 
* * bool preemptible = 1; + * * @return This builder for chaining. */ public Builder clearPreemptible() { - + preemptible_ = false; onChanged(); return this; } - private boolean reserved_ ; + private boolean reserved_; /** + * + * *
      * Whether the node is created under a reservation.
      * 
* * bool reserved = 2; + * * @return The reserved. */ @java.lang.Override @@ -477,37 +518,43 @@ public boolean getReserved() { return reserved_; } /** + * + * *
      * Whether the node is created under a reservation.
      * 
* * bool reserved = 2; + * * @param value The reserved to set. * @return This builder for chaining. */ public Builder setReserved(boolean value) { - + reserved_ = value; onChanged(); return this; } /** + * + * *
      * Whether the node is created under a reservation.
      * 
* * bool reserved = 2; + * * @return This builder for chaining. */ public Builder clearReserved() { - + reserved_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -517,12 +564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.SchedulingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.SchedulingConfig) private static final com.google.cloud.tpu.v2.SchedulingConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.SchedulingConfig(); } @@ -531,27 +578,27 @@ public static com.google.cloud.tpu.v2.SchedulingConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SchedulingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchedulingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -566,6 +613,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.SchedulingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfigOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfigOrBuilder.java new file mode 100644 index 000000000000..096d097ca4b5 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfigOrBuilder.java @@ -0,0 +1,51 @@ +/* + * 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/tpu/v2/cloud_tpu.proto + +package com.google.cloud.tpu.v2; + +public interface SchedulingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.SchedulingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Defines whether the node is preemptible.
+   * 
+ * + * bool preemptible = 1; + * + * @return The preemptible. + */ + boolean getPreemptible(); + + /** + * + * + *
+   * Whether the node is created under a reservation.
+   * 
+ * + * bool reserved = 2; + * + * @return The reserved. + */ + boolean getReserved(); +} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceAccount.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceAccount.java similarity index 70% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceAccount.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceAccount.java index 60b1333c6e4a..fce15b9c8d6d 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceAccount.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceAccount.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * A service account.
  * 
* * Protobuf type {@code google.cloud.tpu.v2.ServiceAccount} */ -public final class ServiceAccount extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ServiceAccount extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.ServiceAccount) ServiceAccountOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ServiceAccount.newBuilder() to construct. private ServiceAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ServiceAccount() { email_ = ""; scope_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,38 +44,42 @@ private ServiceAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ServiceAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ServiceAccount_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ServiceAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ServiceAccount_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ServiceAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.ServiceAccount.class, com.google.cloud.tpu.v2.ServiceAccount.Builder.class); + com.google.cloud.tpu.v2.ServiceAccount.class, + com.google.cloud.tpu.v2.ServiceAccount.Builder.class); } public static final int EMAIL_FIELD_NUMBER = 1; private volatile java.lang.Object email_; /** + * + * *
    * Email address of the service account. If empty, default Compute service
    * account will be used.
    * 
* * string email = 1; + * * @return The email. */ @java.lang.Override @@ -66,30 +88,30 @@ public java.lang.String getEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** + * + * *
    * Email address of the service account. If empty, default Compute service
    * account will be used.
    * 
* * string email = 1; + * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -100,37 +122,45 @@ public java.lang.String getEmail() { public static final int SCOPE_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList scope_; /** + * + * *
    * The list of scopes to be made available for this service account. If empty,
    * access to all Cloud APIs will be allowed.
    * 
* * repeated string scope = 2; + * * @return A list containing the scope. */ - public com.google.protobuf.ProtocolStringList - getScopeList() { + public com.google.protobuf.ProtocolStringList getScopeList() { return scope_; } /** + * + * *
    * The list of scopes to be made available for this service account. If empty,
    * access to all Cloud APIs will be allowed.
    * 
* * repeated string scope = 2; + * * @return The count of scope. */ public int getScopeCount() { return scope_.size(); } /** + * + * *
    * The list of scopes to be made available for this service account. If empty,
    * access to all Cloud APIs will be allowed.
    * 
* * repeated string scope = 2; + * * @param index The index of the element to return. * @return The scope at the given index. */ @@ -138,21 +168,24 @@ public java.lang.String getScope(int index) { return scope_.get(index); } /** + * + * *
    * The list of scopes to be made available for this service account. If empty,
    * access to all Cloud APIs will be allowed.
    * 
* * repeated string scope = 2; + * * @param index The index of the value to return. * @return The bytes of the scope at the given index. */ - public com.google.protobuf.ByteString - getScopeBytes(int index) { + public com.google.protobuf.ByteString getScopeBytes(int index) { return scope_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,8 +197,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, email_); } @@ -200,17 +232,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.ServiceAccount)) { return super.equals(obj); } com.google.cloud.tpu.v2.ServiceAccount other = (com.google.cloud.tpu.v2.ServiceAccount) obj; - if (!getEmail() - .equals(other.getEmail())) return false; - if (!getScopeList() - .equals(other.getScopeList())) return false; + if (!getEmail().equals(other.getEmail())) return false; + if (!getScopeList().equals(other.getScopeList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,130 +263,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.ServiceAccount parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.ServiceAccount parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ServiceAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.ServiceAccount parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ServiceAccount 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.tpu.v2.ServiceAccount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ServiceAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.ServiceAccount parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ServiceAccount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.ServiceAccount parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ServiceAccount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.ServiceAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ServiceAccount parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.ServiceAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A service account.
    * 
* * Protobuf type {@code google.cloud.tpu.v2.ServiceAccount} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.ServiceAccount) com.google.cloud.tpu.v2.ServiceAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ServiceAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ServiceAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ServiceAccount_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ServiceAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.ServiceAccount.class, com.google.cloud.tpu.v2.ServiceAccount.Builder.class); + com.google.cloud.tpu.v2.ServiceAccount.class, + com.google.cloud.tpu.v2.ServiceAccount.Builder.class); } // Construct using com.google.cloud.tpu.v2.ServiceAccount.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -368,9 +404,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ServiceAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ServiceAccount_descriptor; } @java.lang.Override @@ -389,7 +425,8 @@ public com.google.cloud.tpu.v2.ServiceAccount build() { @java.lang.Override public com.google.cloud.tpu.v2.ServiceAccount buildPartial() { - com.google.cloud.tpu.v2.ServiceAccount result = new com.google.cloud.tpu.v2.ServiceAccount(this); + com.google.cloud.tpu.v2.ServiceAccount result = + new com.google.cloud.tpu.v2.ServiceAccount(this); int from_bitField0_ = bitField0_; result.email_ = email_; if (((bitField0_ & 0x00000001) != 0)) { @@ -405,38 +442,39 @@ public com.google.cloud.tpu.v2.ServiceAccount buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.ServiceAccount) { - return mergeFrom((com.google.cloud.tpu.v2.ServiceAccount)other); + return mergeFrom((com.google.cloud.tpu.v2.ServiceAccount) other); } else { super.mergeFrom(other); return this; @@ -485,23 +523,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - email_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureScopeIsMutable(); - scope_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + email_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopeIsMutable(); + scope_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -511,23 +552,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object email_ = ""; /** + * + * *
      * Email address of the service account. If empty, default Compute service
      * account will be used.
      * 
* * string email = 1; + * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; @@ -536,21 +580,22 @@ public java.lang.String getEmail() { } } /** + * + * *
      * Email address of the service account. If empty, default Compute service
      * account will be used.
      * 
* * string email = 1; + * * @return The bytes for email. */ - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -558,101 +603,118 @@ public java.lang.String getEmail() { } } /** + * + * *
      * Email address of the service account. If empty, default Compute service
      * account will be used.
      * 
* * string email = 1; + * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail( - java.lang.String value) { + public Builder setEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + email_ = value; onChanged(); return this; } /** + * + * *
      * Email address of the service account. If empty, default Compute service
      * account will be used.
      * 
* * string email = 1; + * * @return This builder for chaining. */ public Builder clearEmail() { - + email_ = getDefaultInstance().getEmail(); onChanged(); return this; } /** + * + * *
      * Email address of the service account. If empty, default Compute service
      * account will be used.
      * 
* * string email = 1; + * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + email_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList scope_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList scope_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureScopeIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { scope_ = new com.google.protobuf.LazyStringArrayList(scope_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The list of scopes to be made available for this service account. If empty,
      * access to all Cloud APIs will be allowed.
      * 
* * repeated string scope = 2; + * * @return A list containing the scope. */ - public com.google.protobuf.ProtocolStringList - getScopeList() { + public com.google.protobuf.ProtocolStringList getScopeList() { return scope_.getUnmodifiableView(); } /** + * + * *
      * The list of scopes to be made available for this service account. If empty,
      * access to all Cloud APIs will be allowed.
      * 
* * repeated string scope = 2; + * * @return The count of scope. */ public int getScopeCount() { return scope_.size(); } /** + * + * *
      * The list of scopes to be made available for this service account. If empty,
      * access to all Cloud APIs will be allowed.
      * 
* * repeated string scope = 2; + * * @param index The index of the element to return. * @return The scope at the given index. */ @@ -660,85 +722,95 @@ public java.lang.String getScope(int index) { return scope_.get(index); } /** + * + * *
      * The list of scopes to be made available for this service account. If empty,
      * access to all Cloud APIs will be allowed.
      * 
* * repeated string scope = 2; + * * @param index The index of the value to return. * @return The bytes of the scope at the given index. */ - public com.google.protobuf.ByteString - getScopeBytes(int index) { + public com.google.protobuf.ByteString getScopeBytes(int index) { return scope_.getByteString(index); } /** + * + * *
      * The list of scopes to be made available for this service account. If empty,
      * access to all Cloud APIs will be allowed.
      * 
* * repeated string scope = 2; + * * @param index The index to set the value at. * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope( - int index, java.lang.String value) { + public Builder setScope(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureScopeIsMutable(); + throw new NullPointerException(); + } + ensureScopeIsMutable(); scope_.set(index, value); onChanged(); return this; } /** + * + * *
      * The list of scopes to be made available for this service account. If empty,
      * access to all Cloud APIs will be allowed.
      * 
* * repeated string scope = 2; + * * @param value The scope to add. * @return This builder for chaining. */ - public Builder addScope( - java.lang.String value) { + public Builder addScope(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureScopeIsMutable(); + throw new NullPointerException(); + } + ensureScopeIsMutable(); scope_.add(value); onChanged(); return this; } /** + * + * *
      * The list of scopes to be made available for this service account. If empty,
      * access to all Cloud APIs will be allowed.
      * 
* * repeated string scope = 2; + * * @param values The scope to add. * @return This builder for chaining. */ - public Builder addAllScope( - java.lang.Iterable values) { + public Builder addAllScope(java.lang.Iterable values) { ensureScopeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, scope_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scope_); onChanged(); return this; } /** + * + * *
      * The list of scopes to be made available for this service account. If empty,
      * access to all Cloud APIs will be allowed.
      * 
* * repeated string scope = 2; + * * @return This builder for chaining. */ public Builder clearScope() { @@ -748,29 +820,31 @@ public Builder clearScope() { return this; } /** + * + * *
      * The list of scopes to be made available for this service account. If empty,
      * access to all Cloud APIs will be allowed.
      * 
* * repeated string scope = 2; + * * @param value The bytes of the scope to add. * @return This builder for chaining. */ - public Builder addScopeBytes( - com.google.protobuf.ByteString value) { + public Builder addScopeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureScopeIsMutable(); scope_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -780,12 +854,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.ServiceAccount) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.ServiceAccount) private static final com.google.cloud.tpu.v2.ServiceAccount DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.ServiceAccount(); } @@ -794,27 +868,27 @@ public static com.google.cloud.tpu.v2.ServiceAccount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -829,6 +903,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.ServiceAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceAccountOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceAccountOrBuilder.java similarity index 68% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceAccountOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceAccountOrBuilder.java index f66e12c30098..c345475324a7 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceAccountOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceAccountOrBuilder.java @@ -1,76 +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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface ServiceAccountOrBuilder extends +public interface ServiceAccountOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.ServiceAccount) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Email address of the service account. If empty, default Compute service
    * account will be used.
    * 
* * string email = 1; + * * @return The email. */ java.lang.String getEmail(); /** + * + * *
    * Email address of the service account. If empty, default Compute service
    * account will be used.
    * 
* * string email = 1; + * * @return The bytes for email. */ - com.google.protobuf.ByteString - getEmailBytes(); + com.google.protobuf.ByteString getEmailBytes(); /** + * + * *
    * The list of scopes to be made available for this service account. If empty,
    * access to all Cloud APIs will be allowed.
    * 
* * repeated string scope = 2; + * * @return A list containing the scope. */ - java.util.List - getScopeList(); + java.util.List getScopeList(); /** + * + * *
    * The list of scopes to be made available for this service account. If empty,
    * access to all Cloud APIs will be allowed.
    * 
* * repeated string scope = 2; + * * @return The count of scope. */ int getScopeCount(); /** + * + * *
    * The list of scopes to be made available for this service account. If empty,
    * access to all Cloud APIs will be allowed.
    * 
* * repeated string scope = 2; + * * @param index The index of the element to return. * @return The scope at the given index. */ java.lang.String getScope(int index); /** + * + * *
    * The list of scopes to be made available for this service account. If empty,
    * access to all Cloud APIs will be allowed.
    * 
* * repeated string scope = 2; + * * @param index The index of the value to return. * @return The bytes of the scope at the given index. */ - com.google.protobuf.ByteString - getScopeBytes(int index); + com.google.protobuf.ByteString getScopeBytes(int index); } diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceIdentity.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceIdentity.java similarity index 65% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceIdentity.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceIdentity.java index d4af612e7257..f05cf2c82289 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceIdentity.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceIdentity.java @@ -1,61 +1,83 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * The per-product per-project service identity for Cloud TPU service.
  * 
* * Protobuf type {@code google.cloud.tpu.v2.ServiceIdentity} */ -public final class ServiceIdentity extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ServiceIdentity extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.ServiceIdentity) ServiceIdentityOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ServiceIdentity.newBuilder() to construct. private ServiceIdentity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ServiceIdentity() { email_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ServiceIdentity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ServiceIdentity_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ServiceIdentity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ServiceIdentity_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ServiceIdentity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.ServiceIdentity.class, com.google.cloud.tpu.v2.ServiceIdentity.Builder.class); + com.google.cloud.tpu.v2.ServiceIdentity.class, + com.google.cloud.tpu.v2.ServiceIdentity.Builder.class); } public static final int EMAIL_FIELD_NUMBER = 1; private volatile java.lang.Object email_; /** + * + * *
    * The email address of the service identity.
    * 
* * string email = 1; + * * @return The email. */ @java.lang.Override @@ -64,29 +86,29 @@ public java.lang.String getEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** + * + * *
    * The email address of the service identity.
    * 
* * string email = 1; + * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -95,6 +117,7 @@ public java.lang.String getEmail() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +129,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, email_); } @@ -131,15 +153,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.ServiceIdentity)) { return super.equals(obj); } com.google.cloud.tpu.v2.ServiceIdentity other = (com.google.cloud.tpu.v2.ServiceIdentity) obj; - if (!getEmail() - .equals(other.getEmail())) return false; + if (!getEmail().equals(other.getEmail())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +179,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.ServiceIdentity parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.ServiceIdentity parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ServiceIdentity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.ServiceIdentity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ServiceIdentity 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.tpu.v2.ServiceIdentity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ServiceIdentity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.ServiceIdentity parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ServiceIdentity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.ServiceIdentity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.ServiceIdentity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ServiceIdentity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.ServiceIdentity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ServiceIdentity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.ServiceIdentity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The per-product per-project service identity for Cloud TPU service.
    * 
* * Protobuf type {@code google.cloud.tpu.v2.ServiceIdentity} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.ServiceIdentity) com.google.cloud.tpu.v2.ServiceIdentityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ServiceIdentity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ServiceIdentity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ServiceIdentity_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ServiceIdentity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.ServiceIdentity.class, com.google.cloud.tpu.v2.ServiceIdentity.Builder.class); + com.google.cloud.tpu.v2.ServiceIdentity.class, + com.google.cloud.tpu.v2.ServiceIdentity.Builder.class); } // Construct using com.google.cloud.tpu.v2.ServiceIdentity.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +318,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ServiceIdentity_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ServiceIdentity_descriptor; } @java.lang.Override @@ -312,7 +339,8 @@ public com.google.cloud.tpu.v2.ServiceIdentity build() { @java.lang.Override public com.google.cloud.tpu.v2.ServiceIdentity buildPartial() { - com.google.cloud.tpu.v2.ServiceIdentity result = new com.google.cloud.tpu.v2.ServiceIdentity(this); + com.google.cloud.tpu.v2.ServiceIdentity result = + new com.google.cloud.tpu.v2.ServiceIdentity(this); result.email_ = email_; onBuilt(); return result; @@ -322,38 +350,39 @@ public com.google.cloud.tpu.v2.ServiceIdentity buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.ServiceIdentity) { - return mergeFrom((com.google.cloud.tpu.v2.ServiceIdentity)other); + return mergeFrom((com.google.cloud.tpu.v2.ServiceIdentity) other); } else { super.mergeFrom(other); return this; @@ -392,17 +421,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - email_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + email_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +446,20 @@ public Builder mergeFrom( private java.lang.Object email_ = ""; /** + * + * *
      * The email address of the service identity.
      * 
* * string email = 1; + * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; @@ -435,20 +468,21 @@ public java.lang.String getEmail() { } } /** + * + * *
      * The email address of the service identity.
      * 
* * string email = 1; + * * @return The bytes for email. */ - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -456,61 +490,68 @@ public java.lang.String getEmail() { } } /** + * + * *
      * The email address of the service identity.
      * 
* * string email = 1; + * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail( - java.lang.String value) { + public Builder setEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + email_ = value; onChanged(); return this; } /** + * + * *
      * The email address of the service identity.
      * 
* * string email = 1; + * * @return This builder for chaining. */ public Builder clearEmail() { - + email_ = getDefaultInstance().getEmail(); onChanged(); return this; } /** + * + * *
      * The email address of the service identity.
      * 
* * string email = 1; + * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + email_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +561,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.ServiceIdentity) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.ServiceIdentity) private static final com.google.cloud.tpu.v2.ServiceIdentity DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.ServiceIdentity(); } @@ -534,27 +575,27 @@ public static com.google.cloud.tpu.v2.ServiceIdentity getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceIdentity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceIdentity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +610,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.ServiceIdentity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceIdentityOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceIdentityOrBuilder.java new file mode 100644 index 000000000000..35c32f670401 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceIdentityOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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/tpu/v2/cloud_tpu.proto + +package com.google.cloud.tpu.v2; + +public interface ServiceIdentityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.ServiceIdentity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The email address of the service identity.
+   * 
+ * + * string email = 1; + * + * @return The email. + */ + java.lang.String getEmail(); + /** + * + * + *
+   * The email address of the service identity.
+   * 
+ * + * string email = 1; + * + * @return The bytes for email. + */ + com.google.protobuf.ByteString getEmailBytes(); +} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ShieldedInstanceConfig.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ShieldedInstanceConfig.java similarity index 64% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ShieldedInstanceConfig.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ShieldedInstanceConfig.java index 2705c705fbed..389991695086 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ShieldedInstanceConfig.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ShieldedInstanceConfig.java @@ -1,60 +1,81 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * A set of Shielded Instance options.
  * 
* * Protobuf type {@code google.cloud.tpu.v2.ShieldedInstanceConfig} */ -public final class ShieldedInstanceConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ShieldedInstanceConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.ShieldedInstanceConfig) ShieldedInstanceConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ShieldedInstanceConfig.newBuilder() to construct. private ShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ShieldedInstanceConfig() { - } + + private ShieldedInstanceConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ShieldedInstanceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ShieldedInstanceConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ShieldedInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ShieldedInstanceConfig_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ShieldedInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.ShieldedInstanceConfig.class, com.google.cloud.tpu.v2.ShieldedInstanceConfig.Builder.class); + com.google.cloud.tpu.v2.ShieldedInstanceConfig.class, + com.google.cloud.tpu.v2.ShieldedInstanceConfig.Builder.class); } public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1; private boolean enableSecureBoot_; /** + * + * *
    * Defines whether the instance has Secure Boot enabled.
    * 
* * bool enable_secure_boot = 1; + * * @return The enableSecureBoot. */ @java.lang.Override @@ -63,6 +84,7 @@ public boolean getEnableSecureBoot() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -74,8 +96,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enableSecureBoot_ != false) { output.writeBool(1, enableSecureBoot_); } @@ -89,8 +110,7 @@ public int getSerializedSize() { size = 0; if (enableSecureBoot_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableSecureBoot_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSecureBoot_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -100,15 +120,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.ShieldedInstanceConfig)) { return super.equals(obj); } - com.google.cloud.tpu.v2.ShieldedInstanceConfig other = (com.google.cloud.tpu.v2.ShieldedInstanceConfig) obj; + com.google.cloud.tpu.v2.ShieldedInstanceConfig other = + (com.google.cloud.tpu.v2.ShieldedInstanceConfig) obj; - if (getEnableSecureBoot() - != other.getEnableSecureBoot()) return false; + if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -121,137 +141,142 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_SECURE_BOOT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSecureBoot()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSecureBoot()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.tpu.v2.ShieldedInstanceConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.ShieldedInstanceConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ShieldedInstanceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.ShieldedInstanceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ShieldedInstanceConfig 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.tpu.v2.ShieldedInstanceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.ShieldedInstanceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.ShieldedInstanceConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ShieldedInstanceConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.ShieldedInstanceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.ShieldedInstanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ShieldedInstanceConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.ShieldedInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.ShieldedInstanceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.ShieldedInstanceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A set of Shielded Instance options.
    * 
* * Protobuf type {@code google.cloud.tpu.v2.ShieldedInstanceConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.ShieldedInstanceConfig) com.google.cloud.tpu.v2.ShieldedInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ShieldedInstanceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ShieldedInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ShieldedInstanceConfig_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ShieldedInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.ShieldedInstanceConfig.class, com.google.cloud.tpu.v2.ShieldedInstanceConfig.Builder.class); + com.google.cloud.tpu.v2.ShieldedInstanceConfig.class, + com.google.cloud.tpu.v2.ShieldedInstanceConfig.Builder.class); } // Construct using com.google.cloud.tpu.v2.ShieldedInstanceConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -261,9 +286,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_ShieldedInstanceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ShieldedInstanceConfig_descriptor; } @java.lang.Override @@ -282,7 +307,8 @@ public com.google.cloud.tpu.v2.ShieldedInstanceConfig build() { @java.lang.Override public com.google.cloud.tpu.v2.ShieldedInstanceConfig buildPartial() { - com.google.cloud.tpu.v2.ShieldedInstanceConfig result = new com.google.cloud.tpu.v2.ShieldedInstanceConfig(this); + com.google.cloud.tpu.v2.ShieldedInstanceConfig result = + new com.google.cloud.tpu.v2.ShieldedInstanceConfig(this); result.enableSecureBoot_ = enableSecureBoot_; onBuilt(); return result; @@ -292,38 +318,39 @@ public com.google.cloud.tpu.v2.ShieldedInstanceConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.ShieldedInstanceConfig) { - return mergeFrom((com.google.cloud.tpu.v2.ShieldedInstanceConfig)other); + return mergeFrom((com.google.cloud.tpu.v2.ShieldedInstanceConfig) other); } else { super.mergeFrom(other); return this; @@ -361,17 +388,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableSecureBoot_ = input.readBool(); - - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableSecureBoot_ = input.readBool(); + + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -382,13 +411,16 @@ public Builder mergeFrom( return this; } - private boolean enableSecureBoot_ ; + private boolean enableSecureBoot_; /** + * + * *
      * Defines whether the instance has Secure Boot enabled.
      * 
* * bool enable_secure_boot = 1; + * * @return The enableSecureBoot. */ @java.lang.Override @@ -396,37 +428,43 @@ public boolean getEnableSecureBoot() { return enableSecureBoot_; } /** + * + * *
      * Defines whether the instance has Secure Boot enabled.
      * 
* * bool enable_secure_boot = 1; + * * @param value The enableSecureBoot to set. * @return This builder for chaining. */ public Builder setEnableSecureBoot(boolean value) { - + enableSecureBoot_ = value; onChanged(); return this; } /** + * + * *
      * Defines whether the instance has Secure Boot enabled.
      * 
* * bool enable_secure_boot = 1; + * * @return This builder for chaining. */ public Builder clearEnableSecureBoot() { - + enableSecureBoot_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -436,12 +474,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.ShieldedInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.ShieldedInstanceConfig) private static final com.google.cloud.tpu.v2.ShieldedInstanceConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.ShieldedInstanceConfig(); } @@ -450,27 +488,27 @@ public static com.google.cloud.tpu.v2.ShieldedInstanceConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShieldedInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShieldedInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -485,6 +523,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.ShieldedInstanceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ShieldedInstanceConfigOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ShieldedInstanceConfigOrBuilder.java new file mode 100644 index 000000000000..59f73cb36744 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ShieldedInstanceConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * 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/tpu/v2/cloud_tpu.proto + +package com.google.cloud.tpu.v2; + +public interface ShieldedInstanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.ShieldedInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Defines whether the instance has Secure Boot enabled.
+   * 
+ * + * bool enable_secure_boot = 1; + * + * @return The enableSecureBoot. + */ + boolean getEnableSecureBoot(); +} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StartNodeRequest.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StartNodeRequest.java similarity index 61% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StartNodeRequest.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StartNodeRequest.java index cfe05a62201a..b4493e8e9905 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StartNodeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StartNodeRequest.java @@ -1,61 +1,85 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Request for [StartNode][google.cloud.tpu.v2.Tpu.StartNode].
  * 
* * Protobuf type {@code google.cloud.tpu.v2.StartNodeRequest} */ -public final class StartNodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.StartNodeRequest) StartNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartNodeRequest.newBuilder() to construct. private StartNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartNodeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartNodeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_StartNodeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_StartNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_StartNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_StartNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.StartNodeRequest.class, com.google.cloud.tpu.v2.StartNodeRequest.Builder.class); + com.google.cloud.tpu.v2.StartNodeRequest.class, + com.google.cloud.tpu.v2.StartNodeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +157,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.StartNodeRequest)) { return super.equals(obj); } com.google.cloud.tpu.v2.StartNodeRequest other = (com.google.cloud.tpu.v2.StartNodeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +183,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.StartNodeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.StartNodeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.StartNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.StartNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.StartNodeRequest 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.tpu.v2.StartNodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.StartNodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.StartNodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.StartNodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.StartNodeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.StartNodeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.StartNodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.StartNodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.StartNodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.StartNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [StartNode][google.cloud.tpu.v2.Tpu.StartNode].
    * 
* * Protobuf type {@code google.cloud.tpu.v2.StartNodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.StartNodeRequest) com.google.cloud.tpu.v2.StartNodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_StartNodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_StartNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_StartNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_StartNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.StartNodeRequest.class, com.google.cloud.tpu.v2.StartNodeRequest.Builder.class); + com.google.cloud.tpu.v2.StartNodeRequest.class, + com.google.cloud.tpu.v2.StartNodeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2.StartNodeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_StartNodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_StartNodeRequest_descriptor; } @java.lang.Override @@ -312,7 +343,8 @@ public com.google.cloud.tpu.v2.StartNodeRequest build() { @java.lang.Override public com.google.cloud.tpu.v2.StartNodeRequest buildPartial() { - com.google.cloud.tpu.v2.StartNodeRequest result = new com.google.cloud.tpu.v2.StartNodeRequest(this); + com.google.cloud.tpu.v2.StartNodeRequest result = + new com.google.cloud.tpu.v2.StartNodeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +354,39 @@ public com.google.cloud.tpu.v2.StartNodeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.StartNodeRequest) { - return mergeFrom((com.google.cloud.tpu.v2.StartNodeRequest)other); + return mergeFrom((com.google.cloud.tpu.v2.StartNodeRequest) other); } else { super.mergeFrom(other); return this; @@ -392,17 +425,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +450,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -435,20 +474,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -456,61 +498,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +575,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.StartNodeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.StartNodeRequest) private static final com.google.cloud.tpu.v2.StartNodeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.StartNodeRequest(); } @@ -534,27 +589,27 @@ public static com.google.cloud.tpu.v2.StartNodeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartNodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartNodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +624,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.StartNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StartNodeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StartNodeRequestOrBuilder.java new file mode 100644 index 000000000000..51ce756924c5 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StartNodeRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +package com.google.cloud.tpu.v2; + +public interface StartNodeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.StartNodeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StopNodeRequest.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StopNodeRequest.java similarity index 61% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StopNodeRequest.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StopNodeRequest.java index ecd8bcb09bf1..1abc63012d53 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StopNodeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StopNodeRequest.java @@ -1,61 +1,85 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Request for [StopNode][google.cloud.tpu.v2.Tpu.StopNode].
  * 
* * Protobuf type {@code google.cloud.tpu.v2.StopNodeRequest} */ -public final class StopNodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.StopNodeRequest) StopNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopNodeRequest.newBuilder() to construct. private StopNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StopNodeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopNodeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_StopNodeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_StopNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_StopNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_StopNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.StopNodeRequest.class, com.google.cloud.tpu.v2.StopNodeRequest.Builder.class); + com.google.cloud.tpu.v2.StopNodeRequest.class, + com.google.cloud.tpu.v2.StopNodeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +157,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.StopNodeRequest)) { return super.equals(obj); } com.google.cloud.tpu.v2.StopNodeRequest other = (com.google.cloud.tpu.v2.StopNodeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +183,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.StopNodeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.StopNodeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.StopNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.StopNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.StopNodeRequest 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.tpu.v2.StopNodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.StopNodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.StopNodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.StopNodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.StopNodeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.StopNodeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.StopNodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.StopNodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.StopNodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.StopNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [StopNode][google.cloud.tpu.v2.Tpu.StopNode].
    * 
* * Protobuf type {@code google.cloud.tpu.v2.StopNodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.StopNodeRequest) com.google.cloud.tpu.v2.StopNodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_StopNodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_StopNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_StopNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_StopNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.StopNodeRequest.class, com.google.cloud.tpu.v2.StopNodeRequest.Builder.class); + com.google.cloud.tpu.v2.StopNodeRequest.class, + com.google.cloud.tpu.v2.StopNodeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2.StopNodeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_StopNodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_StopNodeRequest_descriptor; } @java.lang.Override @@ -312,7 +343,8 @@ public com.google.cloud.tpu.v2.StopNodeRequest build() { @java.lang.Override public com.google.cloud.tpu.v2.StopNodeRequest buildPartial() { - com.google.cloud.tpu.v2.StopNodeRequest result = new com.google.cloud.tpu.v2.StopNodeRequest(this); + com.google.cloud.tpu.v2.StopNodeRequest result = + new com.google.cloud.tpu.v2.StopNodeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +354,39 @@ public com.google.cloud.tpu.v2.StopNodeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.StopNodeRequest) { - return mergeFrom((com.google.cloud.tpu.v2.StopNodeRequest)other); + return mergeFrom((com.google.cloud.tpu.v2.StopNodeRequest) other); } else { super.mergeFrom(other); return this; @@ -392,17 +425,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +450,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -435,20 +474,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -456,61 +498,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +575,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.StopNodeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.StopNodeRequest) private static final com.google.cloud.tpu.v2.StopNodeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.StopNodeRequest(); } @@ -534,27 +589,27 @@ public static com.google.cloud.tpu.v2.StopNodeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopNodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopNodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +624,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.StopNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StopNodeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StopNodeRequestOrBuilder.java new file mode 100644 index 000000000000..85a6ce1dd4f5 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StopNodeRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +package com.google.cloud.tpu.v2; + +public interface StopNodeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.StopNodeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/Symptom.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/Symptom.java similarity index 71% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/Symptom.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/Symptom.java index 6304982eaa99..10e7096ec9ef 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/Symptom.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/Symptom.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * A Symptom instance.
  * 
* * Protobuf type {@code google.cloud.tpu.v2.Symptom} */ -public final class Symptom extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Symptom extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.Symptom) SymptomOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Symptom.newBuilder() to construct. private Symptom(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Symptom() { symptomType_ = 0; details_ = ""; @@ -27,30 +45,32 @@ private Symptom() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Symptom(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_Symptom_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_Symptom_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_Symptom_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_Symptom_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.tpu.v2.Symptom.class, com.google.cloud.tpu.v2.Symptom.Builder.class); } /** + * + * *
    * SymptomType represents the different types of Symptoms that a TPU can be
    * at.
@@ -58,9 +78,10 @@ protected java.lang.Object newInstance(
    *
    * Protobuf enum {@code google.cloud.tpu.v2.Symptom.SymptomType}
    */
-  public enum SymptomType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum SymptomType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified symptom.
      * 
@@ -69,6 +90,8 @@ public enum SymptomType */ SYMPTOM_TYPE_UNSPECIFIED(0), /** + * + * *
      * TPU VM memory is low.
      * 
@@ -77,6 +100,8 @@ public enum SymptomType */ LOW_MEMORY(1), /** + * + * *
      * TPU runtime is out of memory.
      * 
@@ -85,6 +110,8 @@ public enum SymptomType */ OUT_OF_MEMORY(2), /** + * + * *
      * TPU runtime execution has timed out.
      * 
@@ -93,6 +120,8 @@ public enum SymptomType */ EXECUTE_TIMED_OUT(3), /** + * + * *
      * TPU runtime fails to construct a mesh that recognizes each TPU device's
      * neighbors.
@@ -102,6 +131,8 @@ public enum SymptomType
      */
     MESH_BUILD_FAIL(4),
     /**
+     *
+     *
      * 
      * TPU HBM is out of memory.
      * 
@@ -110,6 +141,8 @@ public enum SymptomType */ HBM_OUT_OF_MEMORY(5), /** + * + * *
      * Abusive behaviors have been identified on the current project.
      * 
@@ -121,6 +154,8 @@ public enum SymptomType ; /** + * + * *
      * Unspecified symptom.
      * 
@@ -129,6 +164,8 @@ public enum SymptomType */ public static final int SYMPTOM_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * TPU VM memory is low.
      * 
@@ -137,6 +174,8 @@ public enum SymptomType */ public static final int LOW_MEMORY_VALUE = 1; /** + * + * *
      * TPU runtime is out of memory.
      * 
@@ -145,6 +184,8 @@ public enum SymptomType */ public static final int OUT_OF_MEMORY_VALUE = 2; /** + * + * *
      * TPU runtime execution has timed out.
      * 
@@ -153,6 +194,8 @@ public enum SymptomType */ public static final int EXECUTE_TIMED_OUT_VALUE = 3; /** + * + * *
      * TPU runtime fails to construct a mesh that recognizes each TPU device's
      * neighbors.
@@ -162,6 +205,8 @@ public enum SymptomType
      */
     public static final int MESH_BUILD_FAIL_VALUE = 4;
     /**
+     *
+     *
      * 
      * TPU HBM is out of memory.
      * 
@@ -170,6 +215,8 @@ public enum SymptomType */ public static final int HBM_OUT_OF_MEMORY_VALUE = 5; /** + * + * *
      * Abusive behaviors have been identified on the current project.
      * 
@@ -178,7 +225,6 @@ public enum SymptomType */ public static final int PROJECT_ABUSE_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -203,53 +249,57 @@ public static SymptomType valueOf(int value) { */ public static SymptomType forNumber(int value) { switch (value) { - case 0: return SYMPTOM_TYPE_UNSPECIFIED; - case 1: return LOW_MEMORY; - case 2: return OUT_OF_MEMORY; - case 3: return EXECUTE_TIMED_OUT; - case 4: return MESH_BUILD_FAIL; - case 5: return HBM_OUT_OF_MEMORY; - case 6: return PROJECT_ABUSE; - default: return null; + case 0: + return SYMPTOM_TYPE_UNSPECIFIED; + case 1: + return LOW_MEMORY; + case 2: + return OUT_OF_MEMORY; + case 3: + return EXECUTE_TIMED_OUT; + case 4: + return MESH_BUILD_FAIL; + case 5: + return HBM_OUT_OF_MEMORY; + case 6: + return PROJECT_ABUSE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SymptomType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SymptomType findValueByNumber(int number) { - return SymptomType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SymptomType findValueByNumber(int number) { + return SymptomType.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.tpu.v2.Symptom.getDescriptor().getEnumTypes().get(0); } private static final SymptomType[] VALUES = values(); - public static SymptomType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SymptomType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -269,11 +319,14 @@ private SymptomType(int value) { public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Timestamp when the Symptom is created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -281,11 +334,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Timestamp when the Symptom is created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -293,6 +349,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Timestamp when the Symptom is created.
    * 
@@ -307,38 +365,50 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int SYMPTOM_TYPE_FIELD_NUMBER = 2; private int symptomType_; /** + * + * *
    * Type of the Symptom.
    * 
* * .google.cloud.tpu.v2.Symptom.SymptomType symptom_type = 2; + * * @return The enum numeric value on the wire for symptomType. */ - @java.lang.Override public int getSymptomTypeValue() { + @java.lang.Override + public int getSymptomTypeValue() { return symptomType_; } /** + * + * *
    * Type of the Symptom.
    * 
* * .google.cloud.tpu.v2.Symptom.SymptomType symptom_type = 2; + * * @return The symptomType. */ - @java.lang.Override public com.google.cloud.tpu.v2.Symptom.SymptomType getSymptomType() { + @java.lang.Override + public com.google.cloud.tpu.v2.Symptom.SymptomType getSymptomType() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2.Symptom.SymptomType result = com.google.cloud.tpu.v2.Symptom.SymptomType.valueOf(symptomType_); + com.google.cloud.tpu.v2.Symptom.SymptomType result = + com.google.cloud.tpu.v2.Symptom.SymptomType.valueOf(symptomType_); return result == null ? com.google.cloud.tpu.v2.Symptom.SymptomType.UNRECOGNIZED : result; } public static final int DETAILS_FIELD_NUMBER = 3; private volatile java.lang.Object details_; /** + * + * *
    * Detailed information of the current Symptom.
    * 
* * string details = 3; + * * @return The details. */ @java.lang.Override @@ -347,29 +417,29 @@ public java.lang.String getDetails() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; } } /** + * + * *
    * Detailed information of the current Symptom.
    * 
* * string details = 3; + * * @return The bytes for details. */ @java.lang.Override - public com.google.protobuf.ByteString - getDetailsBytes() { + public com.google.protobuf.ByteString getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); details_ = b; return b; } else { @@ -380,11 +450,14 @@ public java.lang.String getDetails() { public static final int WORKER_ID_FIELD_NUMBER = 4; private volatile java.lang.Object workerId_; /** + * + * *
    * A string used to uniquely distinguish a worker within a TPU node.
    * 
* * string worker_id = 4; + * * @return The workerId. */ @java.lang.Override @@ -393,29 +466,29 @@ public java.lang.String getWorkerId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workerId_ = s; return s; } } /** + * + * *
    * A string used to uniquely distinguish a worker within a TPU node.
    * 
* * string worker_id = 4; + * * @return The bytes for workerId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkerIdBytes() { + public com.google.protobuf.ByteString getWorkerIdBytes() { java.lang.Object ref = workerId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workerId_ = b; return b; } else { @@ -424,6 +497,7 @@ public java.lang.String getWorkerId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -435,12 +509,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } - if (symptomType_ != com.google.cloud.tpu.v2.Symptom.SymptomType.SYMPTOM_TYPE_UNSPECIFIED.getNumber()) { + if (symptomType_ + != com.google.cloud.tpu.v2.Symptom.SymptomType.SYMPTOM_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, symptomType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { @@ -459,12 +533,11 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } - if (symptomType_ != com.google.cloud.tpu.v2.Symptom.SymptomType.SYMPTOM_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, symptomType_); + if (symptomType_ + != com.google.cloud.tpu.v2.Symptom.SymptomType.SYMPTOM_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, symptomType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, details_); @@ -480,7 +553,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.Symptom)) { return super.equals(obj); @@ -489,14 +562,11 @@ public boolean equals(final java.lang.Object obj) { if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (symptomType_ != other.symptomType_) return false; - if (!getDetails() - .equals(other.getDetails())) return false; - if (!getWorkerId() - .equals(other.getWorkerId())) return false; + if (!getDetails().equals(other.getDetails())) return false; + if (!getWorkerId().equals(other.getWorkerId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -523,130 +593,134 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.Symptom parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.Symptom parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.Symptom parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2.Symptom parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.tpu.v2.Symptom parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.Symptom 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.tpu.v2.Symptom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.Symptom parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.Symptom parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.Symptom parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.Symptom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.Symptom parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.Symptom parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.Symptom parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.Symptom prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A Symptom instance.
    * 
* * Protobuf type {@code google.cloud.tpu.v2.Symptom} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.Symptom) com.google.cloud.tpu.v2.SymptomOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_Symptom_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_Symptom_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_Symptom_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_Symptom_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.tpu.v2.Symptom.class, com.google.cloud.tpu.v2.Symptom.Builder.class); } // Construct using com.google.cloud.tpu.v2.Symptom.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -666,9 +740,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_Symptom_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_Symptom_descriptor; } @java.lang.Override @@ -704,38 +778,39 @@ public com.google.cloud.tpu.v2.Symptom buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.Symptom) { - return mergeFrom((com.google.cloud.tpu.v2.Symptom)other); + return mergeFrom((com.google.cloud.tpu.v2.Symptom) other); } else { super.mergeFrom(other); return this; @@ -784,34 +859,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 16: { - symptomType_ = input.readEnum(); - - break; - } // case 16 - case 26: { - details_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - workerId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 16: + { + symptomType_ = input.readEnum(); + + break; + } // case 16 + case 26: + { + details_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + workerId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -824,34 +902,47 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Timestamp when the Symptom is created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
@@ -872,14 +963,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -890,6 +982,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
@@ -900,7 +994,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -912,6 +1006,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
@@ -930,6 +1026,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
@@ -937,11 +1035,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
@@ -952,11 +1052,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
@@ -964,14 +1067,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -979,51 +1085,65 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int symptomType_ = 0; /** + * + * *
      * Type of the Symptom.
      * 
* * .google.cloud.tpu.v2.Symptom.SymptomType symptom_type = 2; + * * @return The enum numeric value on the wire for symptomType. */ - @java.lang.Override public int getSymptomTypeValue() { + @java.lang.Override + public int getSymptomTypeValue() { return symptomType_; } /** + * + * *
      * Type of the Symptom.
      * 
* * .google.cloud.tpu.v2.Symptom.SymptomType symptom_type = 2; + * * @param value The enum numeric value on the wire for symptomType to set. * @return This builder for chaining. */ public Builder setSymptomTypeValue(int value) { - + symptomType_ = value; onChanged(); return this; } /** + * + * *
      * Type of the Symptom.
      * 
* * .google.cloud.tpu.v2.Symptom.SymptomType symptom_type = 2; + * * @return The symptomType. */ @java.lang.Override public com.google.cloud.tpu.v2.Symptom.SymptomType getSymptomType() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2.Symptom.SymptomType result = com.google.cloud.tpu.v2.Symptom.SymptomType.valueOf(symptomType_); + com.google.cloud.tpu.v2.Symptom.SymptomType result = + com.google.cloud.tpu.v2.Symptom.SymptomType.valueOf(symptomType_); return result == null ? com.google.cloud.tpu.v2.Symptom.SymptomType.UNRECOGNIZED : result; } /** + * + * *
      * Type of the Symptom.
      * 
* * .google.cloud.tpu.v2.Symptom.SymptomType symptom_type = 2; + * * @param value The symptomType to set. * @return This builder for chaining. */ @@ -1031,21 +1151,24 @@ public Builder setSymptomType(com.google.cloud.tpu.v2.Symptom.SymptomType value) if (value == null) { throw new NullPointerException(); } - + symptomType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Type of the Symptom.
      * 
* * .google.cloud.tpu.v2.Symptom.SymptomType symptom_type = 2; + * * @return This builder for chaining. */ public Builder clearSymptomType() { - + symptomType_ = 0; onChanged(); return this; @@ -1053,18 +1176,20 @@ public Builder clearSymptomType() { private java.lang.Object details_ = ""; /** + * + * *
      * Detailed information of the current Symptom.
      * 
* * string details = 3; + * * @return The details. */ public java.lang.String getDetails() { java.lang.Object ref = details_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; @@ -1073,20 +1198,21 @@ public java.lang.String getDetails() { } } /** + * + * *
      * Detailed information of the current Symptom.
      * 
* * string details = 3; + * * @return The bytes for details. */ - public com.google.protobuf.ByteString - getDetailsBytes() { + public com.google.protobuf.ByteString getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); details_ = b; return b; } else { @@ -1094,54 +1220,61 @@ public java.lang.String getDetails() { } } /** + * + * *
      * Detailed information of the current Symptom.
      * 
* * string details = 3; + * * @param value The details to set. * @return This builder for chaining. */ - public Builder setDetails( - java.lang.String value) { + public Builder setDetails(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + details_ = value; onChanged(); return this; } /** + * + * *
      * Detailed information of the current Symptom.
      * 
* * string details = 3; + * * @return This builder for chaining. */ public Builder clearDetails() { - + details_ = getDefaultInstance().getDetails(); onChanged(); return this; } /** + * + * *
      * Detailed information of the current Symptom.
      * 
* * string details = 3; + * * @param value The bytes for details to set. * @return This builder for chaining. */ - public Builder setDetailsBytes( - com.google.protobuf.ByteString value) { + public Builder setDetailsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + details_ = value; onChanged(); return this; @@ -1149,18 +1282,20 @@ public Builder setDetailsBytes( private java.lang.Object workerId_ = ""; /** + * + * *
      * A string used to uniquely distinguish a worker within a TPU node.
      * 
* * string worker_id = 4; + * * @return The workerId. */ public java.lang.String getWorkerId() { java.lang.Object ref = workerId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workerId_ = s; return s; @@ -1169,20 +1304,21 @@ public java.lang.String getWorkerId() { } } /** + * + * *
      * A string used to uniquely distinguish a worker within a TPU node.
      * 
* * string worker_id = 4; + * * @return The bytes for workerId. */ - public com.google.protobuf.ByteString - getWorkerIdBytes() { + public com.google.protobuf.ByteString getWorkerIdBytes() { java.lang.Object ref = workerId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workerId_ = b; return b; } else { @@ -1190,61 +1326,68 @@ public java.lang.String getWorkerId() { } } /** + * + * *
      * A string used to uniquely distinguish a worker within a TPU node.
      * 
* * string worker_id = 4; + * * @param value The workerId to set. * @return This builder for chaining. */ - public Builder setWorkerId( - java.lang.String value) { + public Builder setWorkerId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + workerId_ = value; onChanged(); return this; } /** + * + * *
      * A string used to uniquely distinguish a worker within a TPU node.
      * 
* * string worker_id = 4; + * * @return This builder for chaining. */ public Builder clearWorkerId() { - + workerId_ = getDefaultInstance().getWorkerId(); onChanged(); return this; } /** + * + * *
      * A string used to uniquely distinguish a worker within a TPU node.
      * 
* * string worker_id = 4; + * * @param value The bytes for workerId to set. * @return This builder for chaining. */ - public Builder setWorkerIdBytes( - com.google.protobuf.ByteString value) { + public Builder setWorkerIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workerId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1254,12 +1397,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.Symptom) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.Symptom) private static final com.google.cloud.tpu.v2.Symptom DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.Symptom(); } @@ -1268,27 +1411,27 @@ public static com.google.cloud.tpu.v2.Symptom getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Symptom parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Symptom parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1303,6 +1446,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.Symptom getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SymptomOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SymptomOrBuilder.java similarity index 71% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SymptomOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SymptomOrBuilder.java index e728f7778156..211b9dfd87b4 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SymptomOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SymptomOrBuilder.java @@ -1,31 +1,55 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface SymptomOrBuilder extends +public interface SymptomOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.Symptom) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Timestamp when the Symptom is created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Timestamp when the Symptom is created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Timestamp when the Symptom is created.
    * 
@@ -35,61 +59,77 @@ public interface SymptomOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Type of the Symptom.
    * 
* * .google.cloud.tpu.v2.Symptom.SymptomType symptom_type = 2; + * * @return The enum numeric value on the wire for symptomType. */ int getSymptomTypeValue(); /** + * + * *
    * Type of the Symptom.
    * 
* * .google.cloud.tpu.v2.Symptom.SymptomType symptom_type = 2; + * * @return The symptomType. */ com.google.cloud.tpu.v2.Symptom.SymptomType getSymptomType(); /** + * + * *
    * Detailed information of the current Symptom.
    * 
* * string details = 3; + * * @return The details. */ java.lang.String getDetails(); /** + * + * *
    * Detailed information of the current Symptom.
    * 
* * string details = 3; + * * @return The bytes for details. */ - com.google.protobuf.ByteString - getDetailsBytes(); + com.google.protobuf.ByteString getDetailsBytes(); /** + * + * *
    * A string used to uniquely distinguish a worker within a TPU node.
    * 
* * string worker_id = 4; + * * @return The workerId. */ java.lang.String getWorkerId(); /** + * + * *
    * A string used to uniquely distinguish a worker within a TPU node.
    * 
* * string worker_id = 4; + * * @return The bytes for workerId. */ - com.google.protobuf.ByteString - getWorkerIdBytes(); + com.google.protobuf.ByteString getWorkerIdBytes(); } diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/UpdateNodeRequest.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/UpdateNodeRequest.java similarity index 70% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/UpdateNodeRequest.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/UpdateNodeRequest.java index db80aac60088..72884c40b9ec 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/UpdateNodeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/UpdateNodeRequest.java @@ -1,62 +1,84 @@ +/* + * 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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; /** + * + * *
  * Request for [UpdateNode][google.cloud.tpu.v2.Tpu.UpdateNode].
  * 
* * Protobuf type {@code google.cloud.tpu.v2.UpdateNodeRequest} */ -public final class UpdateNodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.UpdateNodeRequest) UpdateNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateNodeRequest.newBuilder() to construct. private UpdateNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateNodeRequest() { - } + + private UpdateNodeRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateNodeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_UpdateNodeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_UpdateNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_UpdateNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_UpdateNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.UpdateNodeRequest.class, com.google.cloud.tpu.v2.UpdateNodeRequest.Builder.class); + com.google.cloud.tpu.v2.UpdateNodeRequest.class, + com.google.cloud.tpu.v2.UpdateNodeRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask of fields from [Node][Tpu.Node] to update.
    * Supported fields: [description, tags, labels, metadata,
    * network_config.enable_external_ips].
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -64,13 +86,17 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask of fields from [Node][Tpu.Node] to update.
    * Supported fields: [description, tags, labels, metadata,
    * network_config.enable_external_ips].
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -78,13 +104,16 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask of fields from [Node][Tpu.Node] to update.
    * Supported fields: [description, tags, labels, metadata,
    * network_config.enable_external_ips].
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -94,11 +123,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int NODE_FIELD_NUMBER = 2; private com.google.cloud.tpu.v2.Node node_; /** + * + * *
    * Required. The node. Only fields specified in update_mask are updated.
    * 
* * .google.cloud.tpu.v2.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the node field is set. */ @java.lang.Override @@ -106,11 +138,14 @@ public boolean hasNode() { return node_ != null; } /** + * + * *
    * Required. The node. Only fields specified in update_mask are updated.
    * 
* * .google.cloud.tpu.v2.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The node. */ @java.lang.Override @@ -118,6 +153,8 @@ public com.google.cloud.tpu.v2.Node getNode() { return node_ == null ? com.google.cloud.tpu.v2.Node.getDefaultInstance() : node_; } /** + * + * *
    * Required. The node. Only fields specified in update_mask are updated.
    * 
@@ -130,6 +167,7 @@ public com.google.cloud.tpu.v2.NodeOrBuilder getNodeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -159,12 +196,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (node_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getNode()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNode()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,22 +209,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2.UpdateNodeRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2.UpdateNodeRequest other = (com.google.cloud.tpu.v2.UpdateNodeRequest) obj; + com.google.cloud.tpu.v2.UpdateNodeRequest other = + (com.google.cloud.tpu.v2.UpdateNodeRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasNode() != other.hasNode()) return false; if (hasNode()) { - if (!getNode() - .equals(other.getNode())) return false; + if (!getNode().equals(other.getNode())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -215,130 +249,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2.UpdateNodeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2.UpdateNodeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.UpdateNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.UpdateNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.UpdateNodeRequest 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.tpu.v2.UpdateNodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2.UpdateNodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2.UpdateNodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.UpdateNodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2.UpdateNodeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2.UpdateNodeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.UpdateNodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2.UpdateNodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2.UpdateNodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2.UpdateNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [UpdateNode][google.cloud.tpu.v2.Tpu.UpdateNode].
    * 
* * Protobuf type {@code google.cloud.tpu.v2.UpdateNodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.UpdateNodeRequest) com.google.cloud.tpu.v2.UpdateNodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_UpdateNodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_UpdateNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_UpdateNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_UpdateNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2.UpdateNodeRequest.class, com.google.cloud.tpu.v2.UpdateNodeRequest.Builder.class); + com.google.cloud.tpu.v2.UpdateNodeRequest.class, + com.google.cloud.tpu.v2.UpdateNodeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2.UpdateNodeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -358,9 +398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2.CloudTpuProto.internal_static_google_cloud_tpu_v2_UpdateNodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_UpdateNodeRequest_descriptor; } @java.lang.Override @@ -379,7 +419,8 @@ public com.google.cloud.tpu.v2.UpdateNodeRequest build() { @java.lang.Override public com.google.cloud.tpu.v2.UpdateNodeRequest buildPartial() { - com.google.cloud.tpu.v2.UpdateNodeRequest result = new com.google.cloud.tpu.v2.UpdateNodeRequest(this); + com.google.cloud.tpu.v2.UpdateNodeRequest result = + new com.google.cloud.tpu.v2.UpdateNodeRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -398,38 +439,39 @@ public com.google.cloud.tpu.v2.UpdateNodeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2.UpdateNodeRequest) { - return mergeFrom((com.google.cloud.tpu.v2.UpdateNodeRequest)other); + return mergeFrom((com.google.cloud.tpu.v2.UpdateNodeRequest) other); } else { super.mergeFrom(other); return this; @@ -470,26 +512,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - input.readMessage( - getNodeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getNodeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -502,45 +543,61 @@ public Builder mergeFrom( private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. Mask of fields from [Node][Tpu.Node] to update.
      * Supported fields: [description, tags, labels, metadata,
      * network_config.enable_external_ips].
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Mask of fields from [Node][Tpu.Node] to update.
      * Supported fields: [description, tags, labels, metadata,
      * network_config.enable_external_ips].
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. Mask of fields from [Node][Tpu.Node] to update.
      * Supported fields: [description, tags, labels, metadata,
      * network_config.enable_external_ips].
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -556,16 +613,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields from [Node][Tpu.Node] to update.
      * Supported fields: [description, tags, labels, metadata,
      * network_config.enable_external_ips].
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -576,19 +635,22 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask of fields from [Node][Tpu.Node] to update.
      * Supported fields: [description, tags, labels, metadata,
      * network_config.enable_external_ips].
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -600,13 +662,16 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields from [Node][Tpu.Node] to update.
      * Supported fields: [description, tags, labels, metadata,
      * network_config.enable_external_ips].
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -620,54 +685,67 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask of fields from [Node][Tpu.Node] to update.
      * Supported fields: [description, tags, labels, metadata,
      * network_config.enable_external_ips].
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask of fields from [Node][Tpu.Node] to update.
      * Supported fields: [description, tags, labels, metadata,
      * network_config.enable_external_ips].
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. Mask of fields from [Node][Tpu.Node] to update.
      * Supported fields: [description, tags, labels, metadata,
      * network_config.enable_external_ips].
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -675,24 +753,33 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.tpu.v2.Node node_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.Node, com.google.cloud.tpu.v2.Node.Builder, com.google.cloud.tpu.v2.NodeOrBuilder> nodeBuilder_; + com.google.cloud.tpu.v2.Node, + com.google.cloud.tpu.v2.Node.Builder, + com.google.cloud.tpu.v2.NodeOrBuilder> + nodeBuilder_; /** + * + * *
      * Required. The node. Only fields specified in update_mask are updated.
      * 
* * .google.cloud.tpu.v2.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the node field is set. */ public boolean hasNode() { return nodeBuilder_ != null || node_ != null; } /** + * + * *
      * Required. The node. Only fields specified in update_mask are updated.
      * 
* * .google.cloud.tpu.v2.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The node. */ public com.google.cloud.tpu.v2.Node getNode() { @@ -703,6 +790,8 @@ public com.google.cloud.tpu.v2.Node getNode() { } } /** + * + * *
      * Required. The node. Only fields specified in update_mask are updated.
      * 
@@ -723,14 +812,15 @@ public Builder setNode(com.google.cloud.tpu.v2.Node value) { return this; } /** + * + * *
      * Required. The node. Only fields specified in update_mask are updated.
      * 
* * .google.cloud.tpu.v2.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setNode( - com.google.cloud.tpu.v2.Node.Builder builderForValue) { + public Builder setNode(com.google.cloud.tpu.v2.Node.Builder builderForValue) { if (nodeBuilder_ == null) { node_ = builderForValue.build(); onChanged(); @@ -741,6 +831,8 @@ public Builder setNode( return this; } /** + * + * *
      * Required. The node. Only fields specified in update_mask are updated.
      * 
@@ -750,8 +842,7 @@ public Builder setNode( public Builder mergeNode(com.google.cloud.tpu.v2.Node value) { if (nodeBuilder_ == null) { if (node_ != null) { - node_ = - com.google.cloud.tpu.v2.Node.newBuilder(node_).mergeFrom(value).buildPartial(); + node_ = com.google.cloud.tpu.v2.Node.newBuilder(node_).mergeFrom(value).buildPartial(); } else { node_ = value; } @@ -763,6 +854,8 @@ public Builder mergeNode(com.google.cloud.tpu.v2.Node value) { return this; } /** + * + * *
      * Required. The node. Only fields specified in update_mask are updated.
      * 
@@ -781,6 +874,8 @@ public Builder clearNode() { return this; } /** + * + * *
      * Required. The node. Only fields specified in update_mask are updated.
      * 
@@ -788,11 +883,13 @@ public Builder clearNode() { * .google.cloud.tpu.v2.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.tpu.v2.Node.Builder getNodeBuilder() { - + onChanged(); return getNodeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The node. Only fields specified in update_mask are updated.
      * 
@@ -803,11 +900,12 @@ public com.google.cloud.tpu.v2.NodeOrBuilder getNodeOrBuilder() { if (nodeBuilder_ != null) { return nodeBuilder_.getMessageOrBuilder(); } else { - return node_ == null ? - com.google.cloud.tpu.v2.Node.getDefaultInstance() : node_; + return node_ == null ? com.google.cloud.tpu.v2.Node.getDefaultInstance() : node_; } } /** + * + * *
      * Required. The node. Only fields specified in update_mask are updated.
      * 
@@ -815,21 +913,24 @@ public com.google.cloud.tpu.v2.NodeOrBuilder getNodeOrBuilder() { * .google.cloud.tpu.v2.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.Node, com.google.cloud.tpu.v2.Node.Builder, com.google.cloud.tpu.v2.NodeOrBuilder> + com.google.cloud.tpu.v2.Node, + com.google.cloud.tpu.v2.Node.Builder, + com.google.cloud.tpu.v2.NodeOrBuilder> getNodeFieldBuilder() { if (nodeBuilder_ == null) { - nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2.Node, com.google.cloud.tpu.v2.Node.Builder, com.google.cloud.tpu.v2.NodeOrBuilder>( - getNode(), - getParentForChildren(), - isClean()); + nodeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.Node, + com.google.cloud.tpu.v2.Node.Builder, + com.google.cloud.tpu.v2.NodeOrBuilder>( + getNode(), getParentForChildren(), isClean()); node_ = null; } return nodeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -839,12 +940,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.UpdateNodeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.UpdateNodeRequest) private static final com.google.cloud.tpu.v2.UpdateNodeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.UpdateNodeRequest(); } @@ -853,27 +954,27 @@ public static com.google.cloud.tpu.v2.UpdateNodeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateNodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateNodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -888,6 +989,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2.UpdateNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/UpdateNodeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/UpdateNodeRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/UpdateNodeRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/UpdateNodeRequestOrBuilder.java index e084b805aaaf..e896002d359c 100644 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/UpdateNodeRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/UpdateNodeRequestOrBuilder.java @@ -1,64 +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/tpu/v2/cloud_tpu.proto package com.google.cloud.tpu.v2; -public interface UpdateNodeRequestOrBuilder extends +public interface UpdateNodeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.UpdateNodeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Mask of fields from [Node][Tpu.Node] to update.
    * Supported fields: [description, tags, labels, metadata,
    * network_config.enable_external_ips].
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask of fields from [Node][Tpu.Node] to update.
    * Supported fields: [description, tags, labels, metadata,
    * network_config.enable_external_ips].
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask of fields from [Node][Tpu.Node] to update.
    * Supported fields: [description, tags, labels, metadata,
    * network_config.enable_external_ips].
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The node. Only fields specified in update_mask are updated.
    * 
* * .google.cloud.tpu.v2.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the node field is set. */ boolean hasNode(); /** + * + * *
    * Required. The node. Only fields specified in update_mask are updated.
    * 
* * .google.cloud.tpu.v2.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The node. */ com.google.cloud.tpu.v2.Node getNode(); /** + * + * *
    * Required. The node. Only fields specified in update_mask are updated.
    * 
diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/proto/google/cloud/tpu/v2/cloud_tpu.proto b/java-tpu/proto-google-cloud-tpu-v2/src/main/proto/google/cloud/tpu/v2/cloud_tpu.proto similarity index 100% rename from owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/proto/google/cloud/tpu/v2/cloud_tpu.proto rename to java-tpu/proto-google-cloud-tpu-v2/src/main/proto/google/cloud/tpu/v2/cloud_tpu.proto diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorType.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorType.java similarity index 66% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorType.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorType.java index 5d57eb174b0b..609a2944f2d8 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorType.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorType.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * A accelerator type that a Node can be configured with.
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.AcceleratorType} */ -public final class AcceleratorType extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AcceleratorType extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.AcceleratorType) AcceleratorTypeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AcceleratorType.newBuilder() to construct. private AcceleratorType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AcceleratorType() { name_ = ""; type_ = ""; @@ -26,37 +44,41 @@ private AcceleratorType() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AcceleratorType(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_AcceleratorType_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_AcceleratorType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_AcceleratorType_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_AcceleratorType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.AcceleratorType.class, com.google.cloud.tpu.v2alpha1.AcceleratorType.Builder.class); + com.google.cloud.tpu.v2alpha1.AcceleratorType.class, + com.google.cloud.tpu.v2alpha1.AcceleratorType.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -65,29 +87,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,11 +120,14 @@ public java.lang.String getName() { public static final int TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object type_; /** + * + * *
    * The accelerator type.
    * 
* * string type = 2; + * * @return The type. */ @java.lang.Override @@ -111,29 +136,29 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
    * The accelerator type.
    * 
* * string type = 2; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -142,6 +167,7 @@ public java.lang.String getType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -184,17 +209,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.AcceleratorType)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.AcceleratorType other = (com.google.cloud.tpu.v2alpha1.AcceleratorType) obj; + com.google.cloud.tpu.v2alpha1.AcceleratorType other = + (com.google.cloud.tpu.v2alpha1.AcceleratorType) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getType() - .equals(other.getType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getType().equals(other.getType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -215,130 +239,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.AcceleratorType parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.AcceleratorType parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.AcceleratorType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.AcceleratorType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.AcceleratorType 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.tpu.v2alpha1.AcceleratorType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.AcceleratorType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.AcceleratorType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.AcceleratorType parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.AcceleratorType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.AcceleratorType parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.AcceleratorType parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.AcceleratorType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.AcceleratorType parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.AcceleratorType prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A accelerator type that a Node can be configured with.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.AcceleratorType} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.AcceleratorType) com.google.cloud.tpu.v2alpha1.AcceleratorTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_AcceleratorType_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_AcceleratorType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_AcceleratorType_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_AcceleratorType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.AcceleratorType.class, com.google.cloud.tpu.v2alpha1.AcceleratorType.Builder.class); + com.google.cloud.tpu.v2alpha1.AcceleratorType.class, + com.google.cloud.tpu.v2alpha1.AcceleratorType.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.AcceleratorType.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_AcceleratorType_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_AcceleratorType_descriptor; } @java.lang.Override @@ -371,7 +401,8 @@ public com.google.cloud.tpu.v2alpha1.AcceleratorType build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.AcceleratorType buildPartial() { - com.google.cloud.tpu.v2alpha1.AcceleratorType result = new com.google.cloud.tpu.v2alpha1.AcceleratorType(this); + com.google.cloud.tpu.v2alpha1.AcceleratorType result = + new com.google.cloud.tpu.v2alpha1.AcceleratorType(this); result.name_ = name_; result.type_ = type_; onBuilt(); @@ -382,38 +413,39 @@ public com.google.cloud.tpu.v2alpha1.AcceleratorType buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.AcceleratorType) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.AcceleratorType)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.AcceleratorType) other); } else { super.mergeFrom(other); return this; @@ -456,22 +488,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - type_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + type_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -484,18 +519,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -504,20 +541,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -525,54 +563,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -580,18 +625,20 @@ public Builder setNameBytes( private java.lang.Object type_ = ""; /** + * + * *
      * The accelerator type.
      * 
* * string type = 2; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -600,20 +647,21 @@ public java.lang.String getType() { } } /** + * + * *
      * The accelerator type.
      * 
* * string type = 2; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -621,61 +669,68 @@ public java.lang.String getType() { } } /** + * + * *
      * The accelerator type.
      * 
* * string type = 2; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
      * The accelerator type.
      * 
* * string type = 2; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
      * The accelerator type.
      * 
* * string type = 2; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -685,12 +740,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.AcceleratorType) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.AcceleratorType) private static final com.google.cloud.tpu.v2alpha1.AcceleratorType DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.AcceleratorType(); } @@ -699,27 +754,27 @@ public static com.google.cloud.tpu.v2alpha1.AcceleratorType getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcceleratorType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcceleratorType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -734,6 +789,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.AcceleratorType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorTypeName.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorTypeName.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorTypeName.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorTypeName.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorTypeOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorTypeOrBuilder.java similarity index 51% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorTypeOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorTypeOrBuilder.java index d3abf4c1597c..3379a907db8e 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorTypeOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorTypeOrBuilder.java @@ -1,49 +1,75 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface AcceleratorTypeOrBuilder extends +public interface AcceleratorTypeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.AcceleratorType) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The accelerator type.
    * 
* * string type = 2; + * * @return The type. */ java.lang.String getType(); /** + * + * *
    * The accelerator type.
    * 
* * string type = 2; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AccessConfig.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AccessConfig.java similarity index 65% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AccessConfig.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AccessConfig.java index 86ba7798b946..20776242c2f4 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AccessConfig.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AccessConfig.java @@ -1,61 +1,83 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * An access config attached to the TPU worker.
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.AccessConfig} */ -public final class AccessConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AccessConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.AccessConfig) AccessConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AccessConfig.newBuilder() to construct. private AccessConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AccessConfig() { externalIp_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AccessConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_AccessConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_AccessConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_AccessConfig_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_AccessConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.AccessConfig.class, com.google.cloud.tpu.v2alpha1.AccessConfig.Builder.class); + com.google.cloud.tpu.v2alpha1.AccessConfig.class, + com.google.cloud.tpu.v2alpha1.AccessConfig.Builder.class); } public static final int EXTERNAL_IP_FIELD_NUMBER = 1; private volatile java.lang.Object externalIp_; /** + * + * *
    * Output only. An external IP address associated with the TPU worker.
    * 
* * string external_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The externalIp. */ @java.lang.Override @@ -64,29 +86,29 @@ public java.lang.String getExternalIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalIp_ = s; return s; } } /** + * + * *
    * Output only. An external IP address associated with the TPU worker.
    * 
* * string external_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for externalIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getExternalIpBytes() { + public com.google.protobuf.ByteString getExternalIpBytes() { java.lang.Object ref = externalIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalIp_ = b; return b; } else { @@ -95,6 +117,7 @@ public java.lang.String getExternalIp() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +129,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalIp_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, externalIp_); } @@ -131,15 +153,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.AccessConfig)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.AccessConfig other = (com.google.cloud.tpu.v2alpha1.AccessConfig) obj; + com.google.cloud.tpu.v2alpha1.AccessConfig other = + (com.google.cloud.tpu.v2alpha1.AccessConfig) obj; - if (!getExternalIp() - .equals(other.getExternalIp())) return false; + if (!getExternalIp().equals(other.getExternalIp())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +180,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.AccessConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.AccessConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.AccessConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.AccessConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.AccessConfig 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.tpu.v2alpha1.AccessConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.AccessConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.AccessConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.AccessConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.AccessConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.AccessConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.AccessConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.AccessConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.AccessConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.AccessConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An access config attached to the TPU worker.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.AccessConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.AccessConfig) com.google.cloud.tpu.v2alpha1.AccessConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_AccessConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_AccessConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_AccessConfig_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_AccessConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.AccessConfig.class, com.google.cloud.tpu.v2alpha1.AccessConfig.Builder.class); + com.google.cloud.tpu.v2alpha1.AccessConfig.class, + com.google.cloud.tpu.v2alpha1.AccessConfig.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.AccessConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +319,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_AccessConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_AccessConfig_descriptor; } @java.lang.Override @@ -312,7 +340,8 @@ public com.google.cloud.tpu.v2alpha1.AccessConfig build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.AccessConfig buildPartial() { - com.google.cloud.tpu.v2alpha1.AccessConfig result = new com.google.cloud.tpu.v2alpha1.AccessConfig(this); + com.google.cloud.tpu.v2alpha1.AccessConfig result = + new com.google.cloud.tpu.v2alpha1.AccessConfig(this); result.externalIp_ = externalIp_; onBuilt(); return result; @@ -322,38 +351,39 @@ public com.google.cloud.tpu.v2alpha1.AccessConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.AccessConfig) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.AccessConfig)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.AccessConfig) other); } else { super.mergeFrom(other); return this; @@ -392,17 +422,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - externalIp_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + externalIp_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +447,20 @@ public Builder mergeFrom( private java.lang.Object externalIp_ = ""; /** + * + * *
      * Output only. An external IP address associated with the TPU worker.
      * 
* * string external_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The externalIp. */ public java.lang.String getExternalIp() { java.lang.Object ref = externalIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalIp_ = s; return s; @@ -435,20 +469,21 @@ public java.lang.String getExternalIp() { } } /** + * + * *
      * Output only. An external IP address associated with the TPU worker.
      * 
* * string external_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for externalIp. */ - public com.google.protobuf.ByteString - getExternalIpBytes() { + public com.google.protobuf.ByteString getExternalIpBytes() { java.lang.Object ref = externalIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalIp_ = b; return b; } else { @@ -456,61 +491,68 @@ public java.lang.String getExternalIp() { } } /** + * + * *
      * Output only. An external IP address associated with the TPU worker.
      * 
* * string external_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The externalIp to set. * @return This builder for chaining. */ - public Builder setExternalIp( - java.lang.String value) { + public Builder setExternalIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalIp_ = value; onChanged(); return this; } /** + * + * *
      * Output only. An external IP address associated with the TPU worker.
      * 
* * string external_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearExternalIp() { - + externalIp_ = getDefaultInstance().getExternalIp(); onChanged(); return this; } /** + * + * *
      * Output only. An external IP address associated with the TPU worker.
      * 
* * string external_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for externalIp to set. * @return This builder for chaining. */ - public Builder setExternalIpBytes( - com.google.protobuf.ByteString value) { + public Builder setExternalIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalIp_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +562,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.AccessConfig) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.AccessConfig) private static final com.google.cloud.tpu.v2alpha1.AccessConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.AccessConfig(); } @@ -534,27 +576,27 @@ public static com.google.cloud.tpu.v2alpha1.AccessConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +611,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.AccessConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AccessConfigOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AccessConfigOrBuilder.java similarity index 52% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AccessConfigOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AccessConfigOrBuilder.java index f8ae5ed04810..3ff4351e51d5 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AccessConfigOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AccessConfigOrBuilder.java @@ -1,29 +1,50 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface AccessConfigOrBuilder extends +public interface AccessConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.AccessConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. An external IP address associated with the TPU worker.
    * 
* * string external_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The externalIp. */ java.lang.String getExternalIp(); /** + * + * *
    * Output only. An external IP address associated with the TPU worker.
    * 
* * string external_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for externalIp. */ - com.google.protobuf.ByteString - getExternalIpBytes(); + com.google.protobuf.ByteString getExternalIpBytes(); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AttachedDisk.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AttachedDisk.java similarity index 68% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AttachedDisk.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AttachedDisk.java index 0483efd2ab11..4ac2559ad78c 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AttachedDisk.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AttachedDisk.java @@ -1,9 +1,26 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * A node-attached disk resource.
  * Next ID: 8;
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.tpu.v2alpha1.AttachedDisk}
  */
-public final class AttachedDisk extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AttachedDisk extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.AttachedDisk)
     AttachedDiskOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AttachedDisk.newBuilder() to construct.
   private AttachedDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AttachedDisk() {
     sourceDisk_ = "";
     mode_ = 0;
@@ -27,39 +45,43 @@ private AttachedDisk() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AttachedDisk();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_AttachedDisk_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.tpu.v2alpha1.CloudTpuProto
+        .internal_static_google_cloud_tpu_v2alpha1_AttachedDisk_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_AttachedDisk_fieldAccessorTable
+    return com.google.cloud.tpu.v2alpha1.CloudTpuProto
+        .internal_static_google_cloud_tpu_v2alpha1_AttachedDisk_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.tpu.v2alpha1.AttachedDisk.class, com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder.class);
+            com.google.cloud.tpu.v2alpha1.AttachedDisk.class,
+            com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The different mode of the attached disk.
    * 
* * Protobuf enum {@code google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode} */ - public enum DiskMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum DiskMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The disk mode is not known/set.
      * 
@@ -68,6 +90,8 @@ public enum DiskMode */ DISK_MODE_UNSPECIFIED(0), /** + * + * *
      * Attaches the disk in read-write mode. Only one TPU node can attach a disk
      * in read-write mode at a time.
@@ -77,6 +101,8 @@ public enum DiskMode
      */
     READ_WRITE(1),
     /**
+     *
+     *
      * 
      * Attaches the disk in read-only mode. Multiple TPU nodes can attach
      * a disk in read-only mode at a time.
@@ -89,6 +115,8 @@ public enum DiskMode
     ;
 
     /**
+     *
+     *
      * 
      * The disk mode is not known/set.
      * 
@@ -97,6 +125,8 @@ public enum DiskMode */ public static final int DISK_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Attaches the disk in read-write mode. Only one TPU node can attach a disk
      * in read-write mode at a time.
@@ -106,6 +136,8 @@ public enum DiskMode
      */
     public static final int READ_WRITE_VALUE = 1;
     /**
+     *
+     *
      * 
      * Attaches the disk in read-only mode. Multiple TPU nodes can attach
      * a disk in read-only mode at a time.
@@ -115,7 +147,6 @@ public enum DiskMode
      */
     public static final int READ_ONLY_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -140,49 +171,49 @@ public static DiskMode valueOf(int value) {
      */
     public static DiskMode forNumber(int value) {
       switch (value) {
-        case 0: return DISK_MODE_UNSPECIFIED;
-        case 1: return READ_WRITE;
-        case 2: return READ_ONLY;
-        default: return null;
+        case 0:
+          return DISK_MODE_UNSPECIFIED;
+        case 1:
+          return READ_WRITE;
+        case 2:
+          return READ_ONLY;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        DiskMode> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public DiskMode findValueByNumber(int number) {
-              return DiskMode.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public DiskMode findValueByNumber(int number) {
+            return DiskMode.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() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.tpu.v2alpha1.AttachedDisk.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final DiskMode[] VALUES = values();
 
-    public static DiskMode valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static DiskMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -202,12 +233,15 @@ private DiskMode(int value) {
   public static final int SOURCE_DISK_FIELD_NUMBER = 3;
   private volatile java.lang.Object sourceDisk_;
   /**
+   *
+   *
    * 
    * Specifies the full path to an existing disk.
    * For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
    * 
* * string source_disk = 3; + * * @return The sourceDisk. */ @java.lang.Override @@ -216,30 +250,30 @@ public java.lang.String getSourceDisk() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceDisk_ = s; return s; } } /** + * + * *
    * Specifies the full path to an existing disk.
    * For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
    * 
* * string source_disk = 3; + * * @return The bytes for sourceDisk. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceDiskBytes() { + public com.google.protobuf.ByteString getSourceDiskBytes() { java.lang.Object ref = sourceDisk_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceDisk_ = b; return b; } else { @@ -250,6 +284,8 @@ public java.lang.String getSourceDisk() { public static final int MODE_FIELD_NUMBER = 4; private int mode_; /** + * + * *
    * The mode in which to attach this disk.
    * If not specified, the default is READ_WRITE mode.
@@ -257,12 +293,16 @@ public java.lang.String getSourceDisk() {
    * 
* * .google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode mode = 4; + * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override public int getModeValue() { + @java.lang.Override + public int getModeValue() { return mode_; } /** + * + * *
    * The mode in which to attach this disk.
    * If not specified, the default is READ_WRITE mode.
@@ -270,15 +310,21 @@ public java.lang.String getSourceDisk() {
    * 
* * .google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode mode = 4; + * * @return The mode. */ - @java.lang.Override public com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode getMode() { + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode getMode() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode result = com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode.valueOf(mode_); - return result == null ? com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode.UNRECOGNIZED : result; + com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode result = + com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode.valueOf(mode_); + return result == null + ? com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -290,12 +336,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceDisk_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceDisk_); } - if (mode_ != com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode.DISK_MODE_UNSPECIFIED.getNumber()) { + if (mode_ + != com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode.DISK_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(4, mode_); } getUnknownFields().writeTo(output); @@ -310,9 +356,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceDisk_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceDisk_); } - if (mode_ != com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode.DISK_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, mode_); + if (mode_ + != com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode.DISK_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, mode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -322,15 +368,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.AttachedDisk)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.AttachedDisk other = (com.google.cloud.tpu.v2alpha1.AttachedDisk) obj; + com.google.cloud.tpu.v2alpha1.AttachedDisk other = + (com.google.cloud.tpu.v2alpha1.AttachedDisk) obj; - if (!getSourceDisk() - .equals(other.getSourceDisk())) return false; + if (!getSourceDisk().equals(other.getSourceDisk())) return false; if (mode_ != other.mode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -352,97 +398,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.AttachedDisk parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.AttachedDisk parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.AttachedDisk parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.AttachedDisk parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.AttachedDisk 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.tpu.v2alpha1.AttachedDisk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.AttachedDisk parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.AttachedDisk parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.AttachedDisk parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.AttachedDisk parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.AttachedDisk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.AttachedDisk parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.AttachedDisk parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.AttachedDisk parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.AttachedDisk prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A node-attached disk resource.
    * Next ID: 8;
@@ -450,33 +503,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.tpu.v2alpha1.AttachedDisk}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.AttachedDisk)
       com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_AttachedDisk_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.tpu.v2alpha1.CloudTpuProto
+          .internal_static_google_cloud_tpu_v2alpha1_AttachedDisk_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_AttachedDisk_fieldAccessorTable
+      return com.google.cloud.tpu.v2alpha1.CloudTpuProto
+          .internal_static_google_cloud_tpu_v2alpha1_AttachedDisk_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.tpu.v2alpha1.AttachedDisk.class, com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder.class);
+              com.google.cloud.tpu.v2alpha1.AttachedDisk.class,
+              com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder.class);
     }
 
     // Construct using com.google.cloud.tpu.v2alpha1.AttachedDisk.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -488,9 +540,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_AttachedDisk_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.tpu.v2alpha1.CloudTpuProto
+          .internal_static_google_cloud_tpu_v2alpha1_AttachedDisk_descriptor;
     }
 
     @java.lang.Override
@@ -509,7 +561,8 @@ public com.google.cloud.tpu.v2alpha1.AttachedDisk build() {
 
     @java.lang.Override
     public com.google.cloud.tpu.v2alpha1.AttachedDisk buildPartial() {
-      com.google.cloud.tpu.v2alpha1.AttachedDisk result = new com.google.cloud.tpu.v2alpha1.AttachedDisk(this);
+      com.google.cloud.tpu.v2alpha1.AttachedDisk result =
+          new com.google.cloud.tpu.v2alpha1.AttachedDisk(this);
       result.sourceDisk_ = sourceDisk_;
       result.mode_ = mode_;
       onBuilt();
@@ -520,38 +573,39 @@ public com.google.cloud.tpu.v2alpha1.AttachedDisk buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.AttachedDisk) {
-        return mergeFrom((com.google.cloud.tpu.v2alpha1.AttachedDisk)other);
+        return mergeFrom((com.google.cloud.tpu.v2alpha1.AttachedDisk) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -593,22 +647,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 26: {
-              sourceDisk_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 26
-            case 32: {
-              mode_ = input.readEnum();
-
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 26:
+              {
+                sourceDisk_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 26
+            case 32:
+              {
+                mode_ = input.readEnum();
+
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -621,19 +678,21 @@ public Builder mergeFrom(
 
     private java.lang.Object sourceDisk_ = "";
     /**
+     *
+     *
      * 
      * Specifies the full path to an existing disk.
      * For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
      * 
* * string source_disk = 3; + * * @return The sourceDisk. */ public java.lang.String getSourceDisk() { java.lang.Object ref = sourceDisk_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceDisk_ = s; return s; @@ -642,21 +701,22 @@ public java.lang.String getSourceDisk() { } } /** + * + * *
      * Specifies the full path to an existing disk.
      * For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
      * 
* * string source_disk = 3; + * * @return The bytes for sourceDisk. */ - public com.google.protobuf.ByteString - getSourceDiskBytes() { + public com.google.protobuf.ByteString getSourceDiskBytes() { java.lang.Object ref = sourceDisk_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceDisk_ = b; return b; } else { @@ -664,57 +724,64 @@ public java.lang.String getSourceDisk() { } } /** + * + * *
      * Specifies the full path to an existing disk.
      * For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
      * 
* * string source_disk = 3; + * * @param value The sourceDisk to set. * @return This builder for chaining. */ - public Builder setSourceDisk( - java.lang.String value) { + public Builder setSourceDisk(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceDisk_ = value; onChanged(); return this; } /** + * + * *
      * Specifies the full path to an existing disk.
      * For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
      * 
* * string source_disk = 3; + * * @return This builder for chaining. */ public Builder clearSourceDisk() { - + sourceDisk_ = getDefaultInstance().getSourceDisk(); onChanged(); return this; } /** + * + * *
      * Specifies the full path to an existing disk.
      * For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
      * 
* * string source_disk = 3; + * * @param value The bytes for sourceDisk to set. * @return This builder for chaining. */ - public Builder setSourceDiskBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceDiskBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceDisk_ = value; onChanged(); return this; @@ -722,6 +789,8 @@ public Builder setSourceDiskBytes( private int mode_ = 0; /** + * + * *
      * The mode in which to attach this disk.
      * If not specified, the default is READ_WRITE mode.
@@ -729,12 +798,16 @@ public Builder setSourceDiskBytes(
      * 
* * .google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode mode = 4; + * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override public int getModeValue() { + @java.lang.Override + public int getModeValue() { return mode_; } /** + * + * *
      * The mode in which to attach this disk.
      * If not specified, the default is READ_WRITE mode.
@@ -742,16 +815,19 @@ public Builder setSourceDiskBytes(
      * 
* * .google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode mode = 4; + * * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ public Builder setModeValue(int value) { - + mode_ = value; onChanged(); return this; } /** + * + * *
      * The mode in which to attach this disk.
      * If not specified, the default is READ_WRITE mode.
@@ -759,15 +835,21 @@ public Builder setModeValue(int value) {
      * 
* * .google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode mode = 4; + * * @return The mode. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode getMode() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode result = com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode.valueOf(mode_); - return result == null ? com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode.UNRECOGNIZED : result; + com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode result = + com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode.valueOf(mode_); + return result == null + ? com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode.UNRECOGNIZED + : result; } /** + * + * *
      * The mode in which to attach this disk.
      * If not specified, the default is READ_WRITE mode.
@@ -775,6 +857,7 @@ public com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode getMode() {
      * 
* * .google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode mode = 4; + * * @param value The mode to set. * @return This builder for chaining. */ @@ -782,12 +865,14 @@ public Builder setMode(com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode value if (value == null) { throw new NullPointerException(); } - + mode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The mode in which to attach this disk.
      * If not specified, the default is READ_WRITE mode.
@@ -795,17 +880,18 @@ public Builder setMode(com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode value
      * 
* * .google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode mode = 4; + * * @return This builder for chaining. */ public Builder clearMode() { - + mode_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -815,12 +901,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.AttachedDisk) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.AttachedDisk) private static final com.google.cloud.tpu.v2alpha1.AttachedDisk DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.AttachedDisk(); } @@ -829,27 +915,27 @@ public static com.google.cloud.tpu.v2alpha1.AttachedDisk getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AttachedDisk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttachedDisk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -864,6 +950,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.AttachedDisk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AttachedDiskOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AttachedDiskOrBuilder.java similarity index 66% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AttachedDiskOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AttachedDiskOrBuilder.java index e1a6a845faa7..b7aebddde19b 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AttachedDiskOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AttachedDiskOrBuilder.java @@ -1,35 +1,58 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface AttachedDiskOrBuilder extends +public interface AttachedDiskOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.AttachedDisk) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specifies the full path to an existing disk.
    * For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
    * 
* * string source_disk = 3; + * * @return The sourceDisk. */ java.lang.String getSourceDisk(); /** + * + * *
    * Specifies the full path to an existing disk.
    * For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
    * 
* * string source_disk = 3; + * * @return The bytes for sourceDisk. */ - com.google.protobuf.ByteString - getSourceDiskBytes(); + com.google.protobuf.ByteString getSourceDiskBytes(); /** + * + * *
    * The mode in which to attach this disk.
    * If not specified, the default is READ_WRITE mode.
@@ -37,10 +60,13 @@ public interface AttachedDiskOrBuilder extends
    * 
* * .google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode mode = 4; + * * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** + * + * *
    * The mode in which to attach this disk.
    * If not specified, the default is READ_WRITE mode.
@@ -48,6 +74,7 @@ public interface AttachedDiskOrBuilder extends
    * 
* * .google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode mode = 4; + * * @return The mode. */ com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode getMode(); diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CloudTpuProto.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CloudTpuProto.java new file mode 100644 index 000000000000..61124130baca --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CloudTpuProto.java @@ -0,0 +1,1135 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto + +package com.google.cloud.tpu.v2alpha1; + +public final class CloudTpuProto { + private CloudTpuProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_GuestAttributes_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_GuestAttributes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_GuestAttributesValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_GuestAttributesValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_GuestAttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_GuestAttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_AttachedDisk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_AttachedDisk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_SchedulingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_SchedulingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_NetworkEndpoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_NetworkEndpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_AccessConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_AccessConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_NetworkConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_NetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_ServiceAccount_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_ServiceAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_Node_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_Node_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_Node_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_Node_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_Node_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_Node_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_QueuedResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_QueuedResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_NodeSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_NodeSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_QueuedResource_BestEffort_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_QueuedResource_BestEffort_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Guaranteed_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Guaranteed_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_QueuedResource_QueueingPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_QueuedResource_QueueingPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_CreatingData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_CreatingData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_AcceptedData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_AcceptedData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ProvisioningData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ProvisioningData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_FailedData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_FailedData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_DeletingData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_DeletingData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ActiveData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ActiveData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendingData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendingData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendedData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendedData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_ListNodesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_ListNodesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_ListNodesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_ListNodesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_GetNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_GetNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_CreateNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_CreateNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_DeleteNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_DeleteNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_StopNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_StopNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_StartNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_StartNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_UpdateNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_UpdateNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_GetQueuedResourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_GetQueuedResourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_CreateQueuedResourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_CreateQueuedResourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_DeleteQueuedResourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_DeleteQueuedResourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_ServiceIdentity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_ServiceIdentity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_AcceleratorType_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_AcceleratorType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_GetAcceleratorTypeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_GetAcceleratorTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_RuntimeVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_RuntimeVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_GetRuntimeVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_GetRuntimeVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_Symptom_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_Symptom_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_SimulateMaintenanceEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_SimulateMaintenanceEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/tpu/v2alpha1/cloud_tpu.pr" + + "oto\022\031google.cloud.tpu.v2alpha1\032\034google/a" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032#google/longru" + + "nning/operations.proto\032\036google/protobuf/" + + "duration.proto\032 google/protobuf/field_ma" + + "sk.proto\032\037google/protobuf/timestamp.prot" + + "o\032\027google/rpc/status.proto\032\032google/type/" + + "interval.proto\"k\n\017GuestAttributes\022\022\n\nque" + + "ry_path\030\001 \001(\t\022D\n\013query_value\030\002 \001(\0132/.goo" + + "gle.cloud.tpu.v2alpha1.GuestAttributesVa" + + "lue\"V\n\024GuestAttributesValue\022>\n\005items\030\001 \003" + + "(\0132/.google.cloud.tpu.v2alpha1.GuestAttr" + + "ibutesEntry\"E\n\024GuestAttributesEntry\022\021\n\tn" + + "amespace\030\001 \001(\t\022\013\n\003key\030\002 \001(\t\022\r\n\005value\030\003 \001" + + "(\t\"\251\001\n\014AttachedDisk\022\023\n\013source_disk\030\003 \001(\t" + + "\022>\n\004mode\030\004 \001(\01620.google.cloud.tpu.v2alph" + + "a1.AttachedDisk.DiskMode\"D\n\010DiskMode\022\031\n\025" + + "DISK_MODE_UNSPECIFIED\020\000\022\016\n\nREAD_WRITE\020\001\022" + + "\r\n\tREAD_ONLY\020\002\"9\n\020SchedulingConfig\022\023\n\013pr" + + "eemptible\030\001 \001(\010\022\020\n\010reserved\030\002 \001(\010\"s\n\017Net" + + "workEndpoint\022\022\n\nip_address\030\001 \001(\t\022\014\n\004port" + + "\030\002 \001(\005\022>\n\raccess_config\030\005 \001(\0132\'.google.c" + + "loud.tpu.v2alpha1.AccessConfig\"(\n\014Access" + + "Config\022\030\n\013external_ip\030\001 \001(\tB\003\340A\003\"i\n\rNetw" + + "orkConfig\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork" + + "\030\002 \001(\t\022\033\n\023enable_external_ips\030\003 \001(\010\022\026\n\016c" + + "an_ip_forward\030\004 \001(\010\".\n\016ServiceAccount\022\r\n" + + "\005email\030\001 \001(\t\022\r\n\005scope\030\002 \003(\t\"\211\r\n\004Node\022\024\n\004" + + "name\030\001 \001(\tB\006\340A\003\340A\005\022\023\n\013description\030\003 \001(\t\022" + + "\030\n\020accelerator_type\030\005 \001(\t\0229\n\005state\030\t \001(\016" + + "2%.google.cloud.tpu.v2alpha1.Node.StateB" + + "\003\340A\003\022\037\n\022health_description\030\n \001(\tB\003\340A\003\022\034\n" + + "\017runtime_version\030\013 \001(\tB\003\340A\002\022@\n\016network_c" + + "onfig\030$ \001(\0132(.google.cloud.tpu.v2alpha1." + + "NetworkConfig\022\022\n\ncidr_block\030\r \001(\t\022B\n\017ser" + + "vice_account\030% \001(\0132).google.cloud.tpu.v2" + + "alpha1.ServiceAccount\0224\n\013create_time\030\020 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022F\n\021s" + + "cheduling_config\030\021 \001(\0132+.google.cloud.tp" + + "u.v2alpha1.SchedulingConfig\022J\n\021network_e" + + "ndpoints\030\025 \003(\0132*.google.cloud.tpu.v2alph" + + "a1.NetworkEndpointB\003\340A\003\0226\n\006health\030\026 \001(\0162" + + "&.google.cloud.tpu.v2alpha1.Node.Health\022" + + ";\n\006labels\030\030 \003(\0132+.google.cloud.tpu.v2alp" + + "ha1.Node.LabelsEntry\022?\n\010metadata\030\" \003(\0132-" + + ".google.cloud.tpu.v2alpha1.Node.Metadata" + + "Entry\022\014\n\004tags\030( \003(\t\022\017\n\002id\030! \001(\003B\003\340A\003\022;\n\n" + + "data_disks\030) \003(\0132\'.google.cloud.tpu.v2al" + + "pha1.AttachedDisk\022D\n\013api_version\030& \001(\0162*" + + ".google.cloud.tpu.v2alpha1.Node.ApiVersi" + + "onB\003\340A\003\0229\n\010symptoms\030\' \003(\0132\".google.cloud" + + ".tpu.v2alpha1.SymptomB\003\340A\003\022\034\n\017queued_res" + + "ource\030+ \001(\tB\003\340A\003\022S\n\030shielded_instance_co" + + "nfig\030- \001(\01321.google.cloud.tpu.v2alpha1.S" + + "hieldedInstanceConfig\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032/\n\rMetadata" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\341\001" + + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATI" + + "NG\020\001\022\t\n\005READY\020\002\022\016\n\nRESTARTING\020\003\022\r\n\tREIMA" + + "GING\020\004\022\014\n\010DELETING\020\005\022\r\n\tREPAIRING\020\006\022\013\n\007S" + + "TOPPED\020\010\022\014\n\010STOPPING\020\t\022\014\n\010STARTING\020\n\022\r\n\t" + + "PREEMPTED\020\013\022\016\n\nTERMINATED\020\014\022\n\n\006HIDING\020\r\022" + + "\n\n\006HIDDEN\020\016\022\014\n\010UNHIDING\020\017\"o\n\006Health\022\026\n\022H" + + "EALTH_UNSPECIFIED\020\000\022\013\n\007HEALTHY\020\001\022\013\n\007TIME" + + "OUT\020\003\022\030\n\024UNHEALTHY_TENSORFLOW\020\004\022\031\n\025UNHEA" + + "LTHY_MAINTENANCE\020\005\"O\n\nApiVersion\022\033\n\027API_" + + "VERSION_UNSPECIFIED\020\000\022\r\n\tV1_ALPHA1\020\001\022\006\n\002" + + "V1\020\002\022\r\n\tV2_ALPHA1\020\003:R\352AO\n\027tpu.googleapis" + + ".com/Node\0224projects/{project}/locations/" + + "{location}/nodes/{node}\"\252\t\n\016QueuedResour" + + "ce\022\024\n\004name\030\001 \001(\tB\006\340A\003\340A\005\022<\n\003tpu\030\002 \001(\0132-." + + "google.cloud.tpu.v2alpha1.QueuedResource" + + ".TpuH\000\022K\n\013best_effort\030\003 \001(\01324.google.clo" + + "ud.tpu.v2alpha1.QueuedResource.BestEffor" + + "tH\001\022J\n\nguaranteed\030\004 \001(\01324.google.cloud.t" + + "pu.v2alpha1.QueuedResource.GuaranteedH\001\022" + + "Q\n\017queueing_policy\030\005 \001(\01328.google.cloud." + + "tpu.v2alpha1.QueuedResource.QueueingPoli" + + "cy\022B\n\005state\030\006 \001(\0132..google.cloud.tpu.v2a" + + "lpha1.QueuedResourceStateB\003\340A\003\032\335\001\n\003Tpu\022I" + + "\n\tnode_spec\030\001 \003(\01326.google.cloud.tpu.v2a" + + "lpha1.QueuedResource.Tpu.NodeSpec\032\212\001\n\010No" + + "deSpec\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + + "s.googleapis.com/Location\022\017\n\007node_id\030\002 \001" + + "(\t\0222\n\004node\030\003 \001(\0132\037.google.cloud.tpu.v2al" + + "pha1.NodeB\003\340A\002\032\014\n\nBestEffort\032Y\n\nGuarante" + + "ed\0224\n\014min_duration\030\001 \001(\0132\031.google.protob" + + "uf.DurationB\003\340A\001\022\025\n\010reserved\030\002 \001(\010B\003\340A\001\032" + + "\303\002\n\016QueueingPolicy\0229\n\024valid_until_durati" + + "on\030\001 \001(\0132\031.google.protobuf.DurationH\000\0226\n" + + "\020valid_until_time\030\002 \001(\0132\032.google.protobu" + + "f.TimestampH\000\0229\n\024valid_after_duration\030\003 " + + "\001(\0132\031.google.protobuf.DurationH\000\0226\n\020vali" + + "d_after_time\030\004 \001(\0132\032.google.protobuf.Tim" + + "estampH\000\022/\n\016valid_interval\030\005 \001(\0132\025.googl" + + "e.type.IntervalH\000B\032\n\030start_timing_constr" + + "aints:q\352An\n!tpu.googleapis.com/QueuedRes" + + "ource\022Iprojects/{project}/locations/{loc" + + "ation}/queuedResources/{queued_resource}" + + "B\n\n\010resourceB\006\n\004tier\"\330\010\n\023QueuedResourceS" + + "tate\022C\n\005state\030\001 \001(\01624.google.cloud.tpu.v" + + "2alpha1.QueuedResourceState.State\022T\n\rcre" + + "ating_data\030\002 \001(\0132;.google.cloud.tpu.v2al" + + "pha1.QueuedResourceState.CreatingDataH\000\022" + + "T\n\raccepted_data\030\003 \001(\0132;.google.cloud.tp" + + "u.v2alpha1.QueuedResourceState.AcceptedD" + + "ataH\000\022\\\n\021provisioning_data\030\004 \001(\0132?.googl" + + "e.cloud.tpu.v2alpha1.QueuedResourceState" + + ".ProvisioningDataH\000\022P\n\013failed_data\030\005 \001(\013" + + "29.google.cloud.tpu.v2alpha1.QueuedResou" + + "rceState.FailedDataH\000\022T\n\rdeleting_data\030\006" + + " \001(\0132;.google.cloud.tpu.v2alpha1.QueuedR" + + "esourceState.DeletingDataH\000\022P\n\013active_da" + + "ta\030\007 \001(\01329.google.cloud.tpu.v2alpha1.Que" + + "uedResourceState.ActiveDataH\000\022X\n\017suspend" + + "ing_data\030\010 \001(\0132=.google.cloud.tpu.v2alph" + + "a1.QueuedResourceState.SuspendingDataH\000\022" + + "V\n\016suspended_data\030\t \001(\0132<.google.cloud.t" + + "pu.v2alpha1.QueuedResourceState.Suspende" + + "dDataH\000\032\016\n\014CreatingData\032\016\n\014AcceptedData\032" + + "\022\n\020ProvisioningData\032/\n\nFailedData\022!\n\005err" + + "or\030\001 \001(\0132\022.google.rpc.Status\032\016\n\014Deleting" + + "Data\032\014\n\nActiveData\032\020\n\016SuspendingData\032\017\n\r" + + "SuspendedData\"\221\001\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\014\n\010CREATING\020\001\022\014\n\010ACCEPTED\020\002\022\020\n\014PR" + + "OVISIONING\020\003\022\n\n\006FAILED\020\004\022\014\n\010DELETING\020\005\022\n" + + "\n\006ACTIVE\020\006\022\016\n\nSUSPENDING\020\007\022\r\n\tSUSPENDED\020" + + "\010B\014\n\nstate_data\"j\n\020ListNodesRequest\022/\n\006p" + + "arent\030\001 \001(\tB\037\340A\002\372A\031\022\027tpu.googleapis.com/" + + "Node\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"q\n\021ListNodesResponse\022.\n\005nodes\030\001 \003(\0132" + + "\037.google.cloud.tpu.v2alpha1.Node\022\027\n\017next" + + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"?" + + "\n\016GetNodeRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027" + + "tpu.googleapis.com/Node\"\247\001\n\021CreateNodeRe" + + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + + ".googleapis.com/Location\022\017\n\007node_id\030\002 \001(" + + "\t\0222\n\004node\030\003 \001(\0132\037.google.cloud.tpu.v2alp" + + "ha1.NodeB\003\340A\002\022\022\n\nrequest_id\030\006 \001(\t\"V\n\021Del" + + "eteNodeRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tp" + + "u.googleapis.com/Node\022\022\n\nrequest_id\030\003 \001(" + + "\t\"@\n\017StopNodeRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372" + + "A\031\n\027tpu.googleapis.com/Node\"A\n\020StartNode" + + "Request\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googl" + + "eapis.com/Node\"}\n\021UpdateNodeRequest\0224\n\013u" + + "pdate_mask\030\001 \001(\0132\032.google.protobuf.Field" + + "MaskB\003\340A\002\0222\n\004node\030\002 \001(\0132\037.google.cloud.t" + + "pu.v2alpha1.NodeB\003\340A\002\"~\n\032ListQueuedResou" + + "rcesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!tpu" + + ".googleapis.com/QueuedResource\022\021\n\tpage_s" + + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\220\001\n\033ListQu" + + "euedResourcesResponse\022C\n\020queued_resource" + + "s\030\001 \003(\0132).google.cloud.tpu.v2alpha1.Queu" + + "edResource\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" + + "nreachable\030\003 \003(\t\"S\n\030GetQueuedResourceReq" + + "uest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!tpu.googleap" + + "is.com/QueuedResource\"\321\001\n\033CreateQueuedRe" + + "sourceRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!l" + + "ocations.googleapis.com/Location\022\032\n\022queu" + + "ed_resource_id\030\002 \001(\t\022G\n\017queued_resource\030" + + "\003 \001(\0132).google.cloud.tpu.v2alpha1.Queued" + + "ResourceB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"j\n\033Del" + + "eteQueuedResourceRequest\0227\n\004name\030\001 \001(\tB)" + + "\340A\002\372A#\n!tpu.googleapis.com/QueuedResourc" + + "e\022\022\n\nrequest_id\030\002 \001(\t\" \n\017ServiceIdentity" + + "\022\r\n\005email\030\001 \001(\t\"[\n\036GenerateServiceIdenti" + + "tyRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locat" + + "ions.googleapis.com/Location\"_\n\037Generate" + + "ServiceIdentityResponse\022<\n\010identity\030\001 \001(" + + "\0132*.google.cloud.tpu.v2alpha1.ServiceIde" + + "ntity\"\243\001\n\017AcceleratorType\022\014\n\004name\030\001 \001(\t\022" + + "\014\n\004type\030\002 \001(\t:t\352Aq\n\"tpu.googleapis.com/A" + + "cceleratorType\022Kprojects/{project}/locat" + + "ions/{location}/acceleratorTypes/{accele" + + "rator_type}\"U\n\031GetAcceleratorTypeRequest" + + "\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"tpu.googleapis.c" + + "om/AcceleratorType\"\242\001\n\033ListAcceleratorTy" + + "pesRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"tpu." + + "googleapis.com/AcceleratorType\022\021\n\tpage_s" + + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030" + + "\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\223\001\n\034ListAccelera" + + "torTypesResponse\022E\n\021accelerator_types\030\001 " + + "\003(\0132*.google.cloud.tpu.v2alpha1.Accelera" + + "torType\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" + + "achable\030\003 \003(\t\"\242\001\n\016RuntimeVersion\022\014\n\004name" + + "\030\001 \001(\t\022\017\n\007version\030\002 \001(\t:q\352An\n!tpu.google" + + "apis.com/RuntimeVersion\022Iprojects/{proje" + + "ct}/locations/{location}/runtimeVersions" + + "/{runtime_version}\"S\n\030GetRuntimeVersionR" + + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!tpu.google" + + "apis.com/RuntimeVersion\"\240\001\n\032ListRuntimeV" + + "ersionsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!" + + "tpu.googleapis.com/RuntimeVersion\022\021\n\tpag" + + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filt" + + "er\030\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\220\001\n\033ListRunti" + + "meVersionsResponse\022C\n\020runtime_versions\030\001" + + " \003(\0132).google.cloud.tpu.v2alpha1.Runtime" + + "Version\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" + + "achable\030\003 \003(\t\"\326\001\n\021OperationMetadata\022/\n\013c" + + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" + + "tamp\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf" + + ".Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t" + + "\022\025\n\rstatus_detail\030\005 \001(\t\022\030\n\020cancel_reques" + + "ted\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t\"\313\002\n\007Sympt" + + "om\022/\n\013create_time\030\001 \001(\0132\032.google.protobu" + + "f.Timestamp\022D\n\014symptom_type\030\002 \001(\0162..goog" + + "le.cloud.tpu.v2alpha1.Symptom.SymptomTyp" + + "e\022\017\n\007details\030\003 \001(\t\022\021\n\tworker_id\030\004 \001(\t\"\244\001" + + "\n\013SymptomType\022\034\n\030SYMPTOM_TYPE_UNSPECIFIE" + + "D\020\000\022\016\n\nLOW_MEMORY\020\001\022\021\n\rOUT_OF_MEMORY\020\002\022\025" + + "\n\021EXECUTE_TIMED_OUT\020\003\022\023\n\017MESH_BUILD_FAIL" + + "\020\004\022\025\n\021HBM_OUT_OF_MEMORY\020\005\022\021\n\rPROJECT_ABU" + + "SE\020\006\"r\n\031GetGuestAttributesRequest\022-\n\004nam" + + "e\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googleapis.com/Node" + + "\022\022\n\nquery_path\030\002 \001(\t\022\022\n\nworker_ids\030\003 \003(\t" + + "\"b\n\032GetGuestAttributesResponse\022D\n\020guest_" + + "attributes\030\001 \003(\0132*.google.cloud.tpu.v2al" + + "pha1.GuestAttributes\"d\n\037SimulateMaintena" + + "nceEventRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027t" + + "pu.googleapis.com/Node\022\022\n\nworker_ids\030\002 \003" + + "(\t\"4\n\026ShieldedInstanceConfig\022\032\n\022enable_s" + + "ecure_boot\030\001 \001(\0102\267\035\n\003Tpu\022\250\001\n\tListNodes\022+" + + ".google.cloud.tpu.v2alpha1.ListNodesRequ" + + "est\032,.google.cloud.tpu.v2alpha1.ListNode" + + "sResponse\"@\202\323\344\223\0021\022//v2alpha1/{parent=pro" + + "jects/*/locations/*}/nodes\332A\006parent\022\225\001\n\007" + + "GetNode\022).google.cloud.tpu.v2alpha1.GetN" + + "odeRequest\032\037.google.cloud.tpu.v2alpha1.N" + + "ode\">\202\323\344\223\0021\022//v2alpha1/{name=projects/*/" + + "locations/*/nodes/*}\332A\004name\022\312\001\n\nCreateNo" + + "de\022,.google.cloud.tpu.v2alpha1.CreateNod" + + "eRequest\032\035.google.longrunning.Operation\"" + + "o\202\323\344\223\0027\"//v2alpha1/{parent=projects/*/lo" + + "cations/*}/nodes:\004node\332A\023parent,node,nod" + + "e_id\312A\031\n\004Node\022\021OperationMetadata\022\306\001\n\nDel" + + "eteNode\022,.google.cloud.tpu.v2alpha1.Dele" + + "teNodeRequest\032\035.google.longrunning.Opera" + + "tion\"k\202\323\344\223\0021*//v2alpha1/{name=projects/*" + + "/locations/*/nodes/*}\332A\004name\312A*\n\025google." + + "protobuf.Empty\022\021OperationMetadata\022\262\001\n\010St" + + "opNode\022*.google.cloud.tpu.v2alpha1.StopN" + + "odeRequest\032\035.google.longrunning.Operatio" + + "n\"[\202\323\344\223\0029\"4/v2alpha1/{name=projects/*/lo" + + "cations/*/nodes/*}:stop:\001*\312A\031\n\004Node\022\021Ope" + + "rationMetadata\022\265\001\n\tStartNode\022+.google.cl" + + "oud.tpu.v2alpha1.StartNodeRequest\032\035.goog" + + "le.longrunning.Operation\"\\\202\323\344\223\002:\"5/v2alp" + + "ha1/{name=projects/*/locations/*/nodes/*" + + "}:start:\001*\312A\031\n\004Node\022\021OperationMetadata\022\314" + + "\001\n\nUpdateNode\022,.google.cloud.tpu.v2alpha" + + "1.UpdateNodeRequest\032\035.google.longrunning" + + ".Operation\"q\202\323\344\223\002<24/v2alpha1/{node.name" + + "=projects/*/locations/*/nodes/*}:\004node\332A" + + "\020node,update_mask\312A\031\n\004Node\022\021OperationMet" + + "adata\022\320\001\n\023ListQueuedResources\0225.google.c" + + "loud.tpu.v2alpha1.ListQueuedResourcesReq" + + "uest\0326.google.cloud.tpu.v2alpha1.ListQue" + + "uedResourcesResponse\"J\202\323\344\223\002;\0229/v2alpha1/" + + "{parent=projects/*/locations/*}/queuedRe" + + "sources\332A\006parent\022\275\001\n\021GetQueuedResource\0223" + + ".google.cloud.tpu.v2alpha1.GetQueuedReso" + + "urceRequest\032).google.cloud.tpu.v2alpha1." + + "QueuedResource\"H\202\323\344\223\002;\0229/v2alpha1/{name=" + + "projects/*/locations/*/queuedResources/*" + + "}\332A\004name\022\224\002\n\024CreateQueuedResource\0226.goog" + + "le.cloud.tpu.v2alpha1.CreateQueuedResour" + + "ceRequest\032\035.google.longrunning.Operation" + + "\"\244\001\202\323\344\223\002L\"9/v2alpha1/{parent=projects/*/" + + "locations/*}/queuedResources:\017queued_res" + + "ource\332A)parent,queued_resource,queued_re" + + "source_id\312A#\n\016QueuedResource\022\021OperationM" + + "etadata\022\335\001\n\024DeleteQueuedResource\0226.googl" + + "e.cloud.tpu.v2alpha1.DeleteQueuedResourc" + + "eRequest\032\035.google.longrunning.Operation\"" + + "n\202\323\344\223\002;*9/v2alpha1/{name=projects/*/loca" + + "tions/*/queuedResources/*}\332A\004name\312A#\n\016Qu" + + "euedResource\022\021OperationMetadata\022\336\001\n\027Gene" + + "rateServiceIdentity\0229.google.cloud.tpu.v" + + "2alpha1.GenerateServiceIdentityRequest\032:" + + ".google.cloud.tpu.v2alpha1.GenerateServi" + + "ceIdentityResponse\"L\202\323\344\223\002F\"A/v2alpha1/{p" + + "arent=projects/*/locations/*}:generateSe" + + "rviceIdentity:\001*\022\324\001\n\024ListAcceleratorType" + + "s\0226.google.cloud.tpu.v2alpha1.ListAccele" + + "ratorTypesRequest\0327.google.cloud.tpu.v2a" + + "lpha1.ListAcceleratorTypesResponse\"K\202\323\344\223" + + "\002<\022:/v2alpha1/{parent=projects/*/locatio" + + "ns/*}/acceleratorTypes\332A\006parent\022\301\001\n\022GetA" + + "cceleratorType\0224.google.cloud.tpu.v2alph" + + "a1.GetAcceleratorTypeRequest\032*.google.cl" + + "oud.tpu.v2alpha1.AcceleratorType\"I\202\323\344\223\002<" + + "\022:/v2alpha1/{name=projects/*/locations/*" + + "/acceleratorTypes/*}\332A\004name\022\320\001\n\023ListRunt" + + "imeVersions\0225.google.cloud.tpu.v2alpha1." + + "ListRuntimeVersionsRequest\0326.google.clou" + + "d.tpu.v2alpha1.ListRuntimeVersionsRespon" + + "se\"J\202\323\344\223\002;\0229/v2alpha1/{parent=projects/*" + + "/locations/*}/runtimeVersions\332A\006parent\022\275" + + "\001\n\021GetRuntimeVersion\0223.google.cloud.tpu." + + "v2alpha1.GetRuntimeVersionRequest\032).goog" + + "le.cloud.tpu.v2alpha1.RuntimeVersion\"H\202\323" + + "\344\223\002;\0229/v2alpha1/{name=projects/*/locatio" + + "ns/*/runtimeVersions/*}\332A\004name\022\320\001\n\022GetGu" + + "estAttributes\0224.google.cloud.tpu.v2alpha" + + "1.GetGuestAttributesRequest\0325.google.clo" + + "ud.tpu.v2alpha1.GetGuestAttributesRespon" + + "se\"M\202\323\344\223\002G\"B/v2alpha1/{name=projects/*/l" + + "ocations/*/nodes/*}:getGuestAttributes:\001" + + "*\022\346\001\n\030SimulateMaintenanceEvent\022:.google." + + "cloud.tpu.v2alpha1.SimulateMaintenanceEv" + + "entRequest\032\035.google.longrunning.Operatio" + + "n\"o\202\323\344\223\002M\"H/v2alpha1/{name=projects/*/lo" + + "cations/*/nodes/*}:simulateMaintenanceEv" + + "ent:\001*\312A\031\n\004Node\022\021OperationMetadata\032F\312A\022t" + + "pu.googleapis.com\322A.https://www.googleap" + + "is.com/auth/cloud-platformBn\n\035com.google" + + ".cloud.tpu.v2alpha1B\rCloudTpuProtoP\001Z * Request for [CreateNode][google.cloud.tpu.v2alpha1.Tpu.CreateNode]. *
* * Protobuf type {@code google.cloud.tpu.v2alpha1.CreateNodeRequest} */ -public final class CreateNodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.CreateNodeRequest) CreateNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateNodeRequest.newBuilder() to construct. private CreateNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateNodeRequest() { parent_ = ""; nodeId_ = ""; @@ -27,37 +45,43 @@ private CreateNodeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateNodeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_CreateNodeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_CreateNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_CreateNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_CreateNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.CreateNodeRequest.class, com.google.cloud.tpu.v2alpha1.CreateNodeRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.CreateNodeRequest.class, + com.google.cloud.tpu.v2alpha1.CreateNodeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,29 +90,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -99,11 +125,14 @@ public java.lang.String getParent() { public static final int NODE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object nodeId_; /** + * + * *
    * The unqualified resource name.
    * 
* * string node_id = 2; + * * @return The nodeId. */ @java.lang.Override @@ -112,29 +141,29 @@ public java.lang.String getNodeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeId_ = s; return s; } } /** + * + * *
    * The unqualified resource name.
    * 
* * string node_id = 2; + * * @return The bytes for nodeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getNodeIdBytes() { + public com.google.protobuf.ByteString getNodeIdBytes() { java.lang.Object ref = nodeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeId_ = b; return b; } else { @@ -145,11 +174,15 @@ public java.lang.String getNodeId() { public static final int NODE_FIELD_NUMBER = 3; private com.google.cloud.tpu.v2alpha1.Node node_; /** + * + * *
    * Required. The node.
    * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the node field is set. */ @java.lang.Override @@ -157,11 +190,15 @@ public boolean hasNode() { return node_ != null; } /** + * + * *
    * Required. The node.
    * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The node. */ @java.lang.Override @@ -169,11 +206,14 @@ public com.google.cloud.tpu.v2alpha1.Node getNode() { return node_ == null ? com.google.cloud.tpu.v2alpha1.Node.getDefaultInstance() : node_; } /** + * + * *
    * Required. The node.
    * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodeOrBuilder() { @@ -183,11 +223,14 @@ public com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodeOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 6; private volatile java.lang.Object requestId_; /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 6; + * * @return The requestId. */ @java.lang.Override @@ -196,29 +239,29 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 6; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -227,6 +270,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,8 +282,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -268,8 +311,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeId_); } if (node_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getNode()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNode()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, requestId_); @@ -282,24 +324,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.CreateNodeRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.CreateNodeRequest other = (com.google.cloud.tpu.v2alpha1.CreateNodeRequest) obj; + com.google.cloud.tpu.v2alpha1.CreateNodeRequest other = + (com.google.cloud.tpu.v2alpha1.CreateNodeRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getNodeId() - .equals(other.getNodeId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getNodeId().equals(other.getNodeId())) return false; if (hasNode() != other.hasNode()) return false; if (hasNode()) { - if (!getNode() - .equals(other.getNode())) return false; + if (!getNode().equals(other.getNode())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -326,130 +365,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.CreateNodeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.CreateNodeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.CreateNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.CreateNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.CreateNodeRequest 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.tpu.v2alpha1.CreateNodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.CreateNodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.CreateNodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.CreateNodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.CreateNodeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.CreateNodeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.CreateNodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.CreateNodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.CreateNodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.CreateNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [CreateNode][google.cloud.tpu.v2alpha1.Tpu.CreateNode].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.CreateNodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.CreateNodeRequest) com.google.cloud.tpu.v2alpha1.CreateNodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_CreateNodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_CreateNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_CreateNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_CreateNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.CreateNodeRequest.class, com.google.cloud.tpu.v2alpha1.CreateNodeRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.CreateNodeRequest.class, + com.google.cloud.tpu.v2alpha1.CreateNodeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.CreateNodeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +514,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_CreateNodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_CreateNodeRequest_descriptor; } @java.lang.Override @@ -490,7 +535,8 @@ public com.google.cloud.tpu.v2alpha1.CreateNodeRequest build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.CreateNodeRequest buildPartial() { - com.google.cloud.tpu.v2alpha1.CreateNodeRequest result = new com.google.cloud.tpu.v2alpha1.CreateNodeRequest(this); + com.google.cloud.tpu.v2alpha1.CreateNodeRequest result = + new com.google.cloud.tpu.v2alpha1.CreateNodeRequest(this); result.parent_ = parent_; result.nodeId_ = nodeId_; if (nodeBuilder_ == null) { @@ -507,38 +553,39 @@ public com.google.cloud.tpu.v2alpha1.CreateNodeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.CreateNodeRequest) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.CreateNodeRequest)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.CreateNodeRequest) other); } else { super.mergeFrom(other); return this; @@ -546,7 +593,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.CreateNodeRequest other) { - if (other == com.google.cloud.tpu.v2alpha1.CreateNodeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.CreateNodeRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -588,34 +636,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - nodeId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + nodeId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getNodeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getNodeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - case 50: { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 50: + { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -628,18 +679,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -648,20 +703,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -669,54 +727,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -724,18 +795,20 @@ public Builder setParentBytes( private java.lang.Object nodeId_ = ""; /** + * + * *
      * The unqualified resource name.
      * 
* * string node_id = 2; + * * @return The nodeId. */ public java.lang.String getNodeId() { java.lang.Object ref = nodeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeId_ = s; return s; @@ -744,20 +817,21 @@ public java.lang.String getNodeId() { } } /** + * + * *
      * The unqualified resource name.
      * 
* * string node_id = 2; + * * @return The bytes for nodeId. */ - public com.google.protobuf.ByteString - getNodeIdBytes() { + public com.google.protobuf.ByteString getNodeIdBytes() { java.lang.Object ref = nodeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeId_ = b; return b; } else { @@ -765,54 +839,61 @@ public java.lang.String getNodeId() { } } /** + * + * *
      * The unqualified resource name.
      * 
* * string node_id = 2; + * * @param value The nodeId to set. * @return This builder for chaining. */ - public Builder setNodeId( - java.lang.String value) { + public Builder setNodeId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeId_ = value; onChanged(); return this; } /** + * + * *
      * The unqualified resource name.
      * 
* * string node_id = 2; + * * @return This builder for chaining. */ public Builder clearNodeId() { - + nodeId_ = getDefaultInstance().getNodeId(); onChanged(); return this; } /** + * + * *
      * The unqualified resource name.
      * 
* * string node_id = 2; + * * @param value The bytes for nodeId to set. * @return This builder for chaining. */ - public Builder setNodeIdBytes( - com.google.protobuf.ByteString value) { + public Builder setNodeIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeId_ = value; onChanged(); return this; @@ -820,24 +901,35 @@ public Builder setNodeIdBytes( private com.google.cloud.tpu.v2alpha1.Node node_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.Node, com.google.cloud.tpu.v2alpha1.Node.Builder, com.google.cloud.tpu.v2alpha1.NodeOrBuilder> nodeBuilder_; + com.google.cloud.tpu.v2alpha1.Node, + com.google.cloud.tpu.v2alpha1.Node.Builder, + com.google.cloud.tpu.v2alpha1.NodeOrBuilder> + nodeBuilder_; /** + * + * *
      * Required. The node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the node field is set. */ public boolean hasNode() { return nodeBuilder_ != null || node_ != null; } /** + * + * *
      * Required. The node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The node. */ public com.google.cloud.tpu.v2alpha1.Node getNode() { @@ -848,11 +940,14 @@ public com.google.cloud.tpu.v2alpha1.Node getNode() { } } /** + * + * *
      * Required. The node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNode(com.google.cloud.tpu.v2alpha1.Node value) { if (nodeBuilder_ == null) { @@ -868,14 +963,16 @@ public Builder setNode(com.google.cloud.tpu.v2alpha1.Node value) { return this; } /** + * + * *
      * Required. The node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setNode( - com.google.cloud.tpu.v2alpha1.Node.Builder builderForValue) { + public Builder setNode(com.google.cloud.tpu.v2alpha1.Node.Builder builderForValue) { if (nodeBuilder_ == null) { node_ = builderForValue.build(); onChanged(); @@ -886,17 +983,20 @@ public Builder setNode( return this; } /** + * + * *
      * Required. The node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeNode(com.google.cloud.tpu.v2alpha1.Node value) { if (nodeBuilder_ == null) { if (node_ != null) { node_ = - com.google.cloud.tpu.v2alpha1.Node.newBuilder(node_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v2alpha1.Node.newBuilder(node_).mergeFrom(value).buildPartial(); } else { node_ = value; } @@ -908,11 +1008,14 @@ public Builder mergeNode(com.google.cloud.tpu.v2alpha1.Node value) { return this; } /** + * + * *
      * Required. The node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNode() { if (nodeBuilder_ == null) { @@ -926,48 +1029,59 @@ public Builder clearNode() { return this; } /** + * + * *
      * Required. The node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.tpu.v2alpha1.Node.Builder getNodeBuilder() { - + onChanged(); return getNodeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodeOrBuilder() { if (nodeBuilder_ != null) { return nodeBuilder_.getMessageOrBuilder(); } else { - return node_ == null ? - com.google.cloud.tpu.v2alpha1.Node.getDefaultInstance() : node_; + return node_ == null ? com.google.cloud.tpu.v2alpha1.Node.getDefaultInstance() : node_; } } /** + * + * *
      * Required. The node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.Node, com.google.cloud.tpu.v2alpha1.Node.Builder, com.google.cloud.tpu.v2alpha1.NodeOrBuilder> + com.google.cloud.tpu.v2alpha1.Node, + com.google.cloud.tpu.v2alpha1.Node.Builder, + com.google.cloud.tpu.v2alpha1.NodeOrBuilder> getNodeFieldBuilder() { if (nodeBuilder_ == null) { - nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.Node, com.google.cloud.tpu.v2alpha1.Node.Builder, com.google.cloud.tpu.v2alpha1.NodeOrBuilder>( - getNode(), - getParentForChildren(), - isClean()); + nodeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.Node, + com.google.cloud.tpu.v2alpha1.Node.Builder, + com.google.cloud.tpu.v2alpha1.NodeOrBuilder>( + getNode(), getParentForChildren(), isClean()); node_ = null; } return nodeBuilder_; @@ -975,18 +1089,20 @@ public com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodeOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 6; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -995,20 +1111,21 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 6; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1016,61 +1133,68 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 6; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 6; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 6; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1080,12 +1204,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.CreateNodeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.CreateNodeRequest) private static final com.google.cloud.tpu.v2alpha1.CreateNodeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.CreateNodeRequest(); } @@ -1094,27 +1218,27 @@ public static com.google.cloud.tpu.v2alpha1.CreateNodeRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateNodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1129,6 +1253,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.CreateNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CreateNodeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CreateNodeRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CreateNodeRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CreateNodeRequestOrBuilder.java index 0933cfaf4d4a..122d2b9d295e 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CreateNodeRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CreateNodeRequestOrBuilder.java @@ -1,96 +1,142 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface CreateNodeRequestOrBuilder extends +public interface CreateNodeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.CreateNodeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The unqualified resource name.
    * 
* * string node_id = 2; + * * @return The nodeId. */ java.lang.String getNodeId(); /** + * + * *
    * The unqualified resource name.
    * 
* * string node_id = 2; + * * @return The bytes for nodeId. */ - com.google.protobuf.ByteString - getNodeIdBytes(); + com.google.protobuf.ByteString getNodeIdBytes(); /** + * + * *
    * Required. The node.
    * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the node field is set. */ boolean hasNode(); /** + * + * *
    * Required. The node.
    * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The node. */ com.google.cloud.tpu.v2alpha1.Node getNode(); /** + * + * *
    * Required. The node.
    * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodeOrBuilder(); /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 6; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 6; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CreateQueuedResourceRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CreateQueuedResourceRequest.java similarity index 64% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CreateQueuedResourceRequest.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CreateQueuedResourceRequest.java index 8f4ceed36f32..5533c053b41d 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CreateQueuedResourceRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CreateQueuedResourceRequest.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Request for [CreateQueuedResource][google.cloud.tpu.v2alpha1.Tpu.CreateQueuedResource].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest} */ -public final class CreateQueuedResourceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateQueuedResourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest) CreateQueuedResourceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateQueuedResourceRequest.newBuilder() to construct. private CreateQueuedResourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateQueuedResourceRequest() { parent_ = ""; queuedResourceId_ = ""; @@ -27,37 +45,43 @@ private CreateQueuedResourceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateQueuedResourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_CreateQueuedResourceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_CreateQueuedResourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_CreateQueuedResourceRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_CreateQueuedResourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest.class, com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest.class, + com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,29 +90,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -99,12 +125,15 @@ public java.lang.String getParent() { public static final int QUEUED_RESOURCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object queuedResourceId_; /** + * + * *
    * The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
    * regex format.
    * 
* * string queued_resource_id = 2; + * * @return The queuedResourceId. */ @java.lang.Override @@ -113,30 +142,30 @@ public java.lang.String getQueuedResourceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queuedResourceId_ = s; return s; } } /** + * + * *
    * The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
    * regex format.
    * 
* * string queued_resource_id = 2; + * * @return The bytes for queuedResourceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueuedResourceIdBytes() { + public com.google.protobuf.ByteString getQueuedResourceIdBytes() { java.lang.Object ref = queuedResourceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queuedResourceId_ = b; return b; } else { @@ -147,11 +176,16 @@ public java.lang.String getQueuedResourceId() { public static final int QUEUED_RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.tpu.v2alpha1.QueuedResource queuedResource_; /** + * + * *
    * Required. The queued resource.
    * 
* - * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the queuedResource field is set. */ @java.lang.Override @@ -159,23 +193,34 @@ public boolean hasQueuedResource() { return queuedResource_ != null; } /** + * + * *
    * Required. The queued resource.
    * 
* - * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The queuedResource. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResource getQueuedResource() { - return queuedResource_ == null ? com.google.cloud.tpu.v2alpha1.QueuedResource.getDefaultInstance() : queuedResource_; + return queuedResource_ == null + ? com.google.cloud.tpu.v2alpha1.QueuedResource.getDefaultInstance() + : queuedResource_; } /** + * + * *
    * Required. The queued resource.
    * 
* - * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder getQueuedResourceOrBuilder() { @@ -185,11 +230,14 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder getQueuedResourceOr public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 4; + * * @return The requestId. */ @java.lang.Override @@ -198,29 +246,29 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 4; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -229,6 +277,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,8 +289,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -270,8 +318,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, queuedResourceId_); } if (queuedResource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getQueuedResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getQueuedResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -284,24 +331,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest other = (com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest) obj; + com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest other = + (com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getQueuedResourceId() - .equals(other.getQueuedResourceId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getQueuedResourceId().equals(other.getQueuedResourceId())) return false; if (hasQueuedResource() != other.hasQueuedResource()) return false; if (hasQueuedResource()) { - if (!getQueuedResource() - .equals(other.getQueuedResource())) return false; + if (!getQueuedResource().equals(other.getQueuedResource())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -329,129 +373,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest 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.tpu.v2alpha1.CreateQueuedResourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [CreateQueuedResource][google.cloud.tpu.v2alpha1.Tpu.CreateQueuedResource].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest) com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_CreateQueuedResourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_CreateQueuedResourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_CreateQueuedResourceRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_CreateQueuedResourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest.class, com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest.class, + com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -471,9 +522,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_CreateQueuedResourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_CreateQueuedResourceRequest_descriptor; } @java.lang.Override @@ -492,7 +543,8 @@ public com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest buildPartial() { - com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest result = new com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest(this); + com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest result = + new com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest(this); result.parent_ = parent_; result.queuedResourceId_ = queuedResourceId_; if (queuedResourceBuilder_ == null) { @@ -509,38 +561,39 @@ public com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.CreateQueuedResourceRequest) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest) other); } else { super.mergeFrom(other); return this; @@ -548,7 +601,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest other) { - if (other == com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -590,34 +644,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - queuedResourceId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + queuedResourceId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getQueuedResourceFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getQueuedResourceFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -630,18 +687,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -650,20 +711,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -671,54 +735,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -726,19 +803,21 @@ public Builder setParentBytes( private java.lang.Object queuedResourceId_ = ""; /** + * + * *
      * The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
      * regex format.
      * 
* * string queued_resource_id = 2; + * * @return The queuedResourceId. */ public java.lang.String getQueuedResourceId() { java.lang.Object ref = queuedResourceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queuedResourceId_ = s; return s; @@ -747,21 +826,22 @@ public java.lang.String getQueuedResourceId() { } } /** + * + * *
      * The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
      * regex format.
      * 
* * string queued_resource_id = 2; + * * @return The bytes for queuedResourceId. */ - public com.google.protobuf.ByteString - getQueuedResourceIdBytes() { + public com.google.protobuf.ByteString getQueuedResourceIdBytes() { java.lang.Object ref = queuedResourceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queuedResourceId_ = b; return b; } else { @@ -769,57 +849,64 @@ public java.lang.String getQueuedResourceId() { } } /** + * + * *
      * The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
      * regex format.
      * 
* * string queued_resource_id = 2; + * * @param value The queuedResourceId to set. * @return This builder for chaining. */ - public Builder setQueuedResourceId( - java.lang.String value) { + public Builder setQueuedResourceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + queuedResourceId_ = value; onChanged(); return this; } /** + * + * *
      * The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
      * regex format.
      * 
* * string queued_resource_id = 2; + * * @return This builder for chaining. */ public Builder clearQueuedResourceId() { - + queuedResourceId_ = getDefaultInstance().getQueuedResourceId(); onChanged(); return this; } /** + * + * *
      * The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
      * regex format.
      * 
* * string queued_resource_id = 2; + * * @param value The bytes for queuedResourceId to set. * @return This builder for chaining. */ - public Builder setQueuedResourceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setQueuedResourceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queuedResourceId_ = value; onChanged(); return this; @@ -827,39 +914,58 @@ public Builder setQueuedResourceIdBytes( private com.google.cloud.tpu.v2alpha1.QueuedResource queuedResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource, com.google.cloud.tpu.v2alpha1.QueuedResource.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder> queuedResourceBuilder_; + com.google.cloud.tpu.v2alpha1.QueuedResource, + com.google.cloud.tpu.v2alpha1.QueuedResource.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder> + queuedResourceBuilder_; /** + * + * *
      * Required. The queued resource.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the queuedResource field is set. */ public boolean hasQueuedResource() { return queuedResourceBuilder_ != null || queuedResource_ != null; } /** + * + * *
      * Required. The queued resource.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The queuedResource. */ public com.google.cloud.tpu.v2alpha1.QueuedResource getQueuedResource() { if (queuedResourceBuilder_ == null) { - return queuedResource_ == null ? com.google.cloud.tpu.v2alpha1.QueuedResource.getDefaultInstance() : queuedResource_; + return queuedResource_ == null + ? com.google.cloud.tpu.v2alpha1.QueuedResource.getDefaultInstance() + : queuedResource_; } else { return queuedResourceBuilder_.getMessage(); } } /** + * + * *
      * Required. The queued resource.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setQueuedResource(com.google.cloud.tpu.v2alpha1.QueuedResource value) { if (queuedResourceBuilder_ == null) { @@ -875,11 +981,15 @@ public Builder setQueuedResource(com.google.cloud.tpu.v2alpha1.QueuedResource va return this; } /** + * + * *
      * Required. The queued resource.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setQueuedResource( com.google.cloud.tpu.v2alpha1.QueuedResource.Builder builderForValue) { @@ -893,17 +1003,23 @@ public Builder setQueuedResource( return this; } /** + * + * *
      * Required. The queued resource.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeQueuedResource(com.google.cloud.tpu.v2alpha1.QueuedResource value) { if (queuedResourceBuilder_ == null) { if (queuedResource_ != null) { queuedResource_ = - com.google.cloud.tpu.v2alpha1.QueuedResource.newBuilder(queuedResource_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v2alpha1.QueuedResource.newBuilder(queuedResource_) + .mergeFrom(value) + .buildPartial(); } else { queuedResource_ = value; } @@ -915,11 +1031,15 @@ public Builder mergeQueuedResource(com.google.cloud.tpu.v2alpha1.QueuedResource return this; } /** + * + * *
      * Required. The queued resource.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearQueuedResource() { if (queuedResourceBuilder_ == null) { @@ -933,48 +1053,64 @@ public Builder clearQueuedResource() { return this; } /** + * + * *
      * Required. The queued resource.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.tpu.v2alpha1.QueuedResource.Builder getQueuedResourceBuilder() { - + onChanged(); return getQueuedResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The queued resource.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder getQueuedResourceOrBuilder() { if (queuedResourceBuilder_ != null) { return queuedResourceBuilder_.getMessageOrBuilder(); } else { - return queuedResource_ == null ? - com.google.cloud.tpu.v2alpha1.QueuedResource.getDefaultInstance() : queuedResource_; + return queuedResource_ == null + ? com.google.cloud.tpu.v2alpha1.QueuedResource.getDefaultInstance() + : queuedResource_; } } /** + * + * *
      * Required. The queued resource.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource, com.google.cloud.tpu.v2alpha1.QueuedResource.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder> + com.google.cloud.tpu.v2alpha1.QueuedResource, + com.google.cloud.tpu.v2alpha1.QueuedResource.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder> getQueuedResourceFieldBuilder() { if (queuedResourceBuilder_ == null) { - queuedResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource, com.google.cloud.tpu.v2alpha1.QueuedResource.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder>( - getQueuedResource(), - getParentForChildren(), - isClean()); + queuedResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.QueuedResource, + com.google.cloud.tpu.v2alpha1.QueuedResource.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder>( + getQueuedResource(), getParentForChildren(), isClean()); queuedResource_ = null; } return queuedResourceBuilder_; @@ -982,18 +1118,20 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder getQueuedResourceOr private java.lang.Object requestId_ = ""; /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 4; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1002,20 +1140,21 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 4; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1023,61 +1162,68 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 4; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 4; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 4; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1087,12 +1233,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest) private static final com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest(); } @@ -1101,27 +1247,27 @@ public static com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateQueuedResourceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateQueuedResourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1136,6 +1282,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CreateQueuedResourceRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CreateQueuedResourceRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CreateQueuedResourceRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CreateQueuedResourceRequestOrBuilder.java index 2a64d2b7ed8a..14bc6d7bcb85 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CreateQueuedResourceRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CreateQueuedResourceRequestOrBuilder.java @@ -1,98 +1,147 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface CreateQueuedResourceRequestOrBuilder extends +public interface CreateQueuedResourceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
    * regex format.
    * 
* * string queued_resource_id = 2; + * * @return The queuedResourceId. */ java.lang.String getQueuedResourceId(); /** + * + * *
    * The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
    * regex format.
    * 
* * string queued_resource_id = 2; + * * @return The bytes for queuedResourceId. */ - com.google.protobuf.ByteString - getQueuedResourceIdBytes(); + com.google.protobuf.ByteString getQueuedResourceIdBytes(); /** + * + * *
    * Required. The queued resource.
    * 
* - * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the queuedResource field is set. */ boolean hasQueuedResource(); /** + * + * *
    * Required. The queued resource.
    * 
* - * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The queuedResource. */ com.google.cloud.tpu.v2alpha1.QueuedResource getQueuedResource(); /** + * + * *
    * Required. The queued resource.
    * 
* - * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder getQueuedResourceOrBuilder(); /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 4; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 4; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteNodeRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteNodeRequest.java similarity index 63% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteNodeRequest.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteNodeRequest.java index 82aa632bb00d..1f0882906d24 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteNodeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteNodeRequest.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Request for [DeleteNode][google.cloud.tpu.v2alpha1.Tpu.DeleteNode].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.DeleteNodeRequest} */ -public final class DeleteNodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.DeleteNodeRequest) DeleteNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteNodeRequest.newBuilder() to construct. private DeleteNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteNodeRequest() { name_ = ""; requestId_ = ""; @@ -26,37 +44,43 @@ private DeleteNodeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteNodeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_DeleteNodeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_DeleteNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_DeleteNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_DeleteNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.DeleteNodeRequest.class, com.google.cloud.tpu.v2alpha1.DeleteNodeRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.DeleteNodeRequest.class, + com.google.cloud.tpu.v2alpha1.DeleteNodeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +89,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,11 +124,14 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 3; + * * @return The requestId. */ @java.lang.Override @@ -111,29 +140,29 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 3; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -142,6 +171,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -184,17 +213,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.DeleteNodeRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.DeleteNodeRequest other = (com.google.cloud.tpu.v2alpha1.DeleteNodeRequest) obj; + com.google.cloud.tpu.v2alpha1.DeleteNodeRequest other = + (com.google.cloud.tpu.v2alpha1.DeleteNodeRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -215,130 +243,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.DeleteNodeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.DeleteNodeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.DeleteNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.DeleteNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.DeleteNodeRequest 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.tpu.v2alpha1.DeleteNodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.DeleteNodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.DeleteNodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.DeleteNodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.DeleteNodeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.DeleteNodeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.DeleteNodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.DeleteNodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.DeleteNodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.DeleteNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [DeleteNode][google.cloud.tpu.v2alpha1.Tpu.DeleteNode].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.DeleteNodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.DeleteNodeRequest) com.google.cloud.tpu.v2alpha1.DeleteNodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_DeleteNodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_DeleteNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_DeleteNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_DeleteNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.DeleteNodeRequest.class, com.google.cloud.tpu.v2alpha1.DeleteNodeRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.DeleteNodeRequest.class, + com.google.cloud.tpu.v2alpha1.DeleteNodeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.DeleteNodeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +384,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_DeleteNodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_DeleteNodeRequest_descriptor; } @java.lang.Override @@ -371,7 +405,8 @@ public com.google.cloud.tpu.v2alpha1.DeleteNodeRequest build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.DeleteNodeRequest buildPartial() { - com.google.cloud.tpu.v2alpha1.DeleteNodeRequest result = new com.google.cloud.tpu.v2alpha1.DeleteNodeRequest(this); + com.google.cloud.tpu.v2alpha1.DeleteNodeRequest result = + new com.google.cloud.tpu.v2alpha1.DeleteNodeRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -382,38 +417,39 @@ public com.google.cloud.tpu.v2alpha1.DeleteNodeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.DeleteNodeRequest) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.DeleteNodeRequest)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.DeleteNodeRequest) other); } else { super.mergeFrom(other); return this; @@ -421,7 +457,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.DeleteNodeRequest other) { - if (other == com.google.cloud.tpu.v2alpha1.DeleteNodeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.DeleteNodeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -456,22 +493,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 26: { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -484,18 +524,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -504,20 +548,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -525,54 +572,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -580,18 +640,20 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 3; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -600,20 +662,21 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 3; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -621,61 +684,68 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 3; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 3; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 3; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -685,12 +755,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.DeleteNodeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.DeleteNodeRequest) private static final com.google.cloud.tpu.v2alpha1.DeleteNodeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.DeleteNodeRequest(); } @@ -699,27 +769,27 @@ public static com.google.cloud.tpu.v2alpha1.DeleteNodeRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteNodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteNodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -734,6 +804,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.DeleteNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteNodeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteNodeRequestOrBuilder.java new file mode 100644 index 000000000000..da7dfa7505e2 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteNodeRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto + +package com.google.cloud.tpu.v2alpha1; + +public interface DeleteNodeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.DeleteNodeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Idempotent request UUID.
+   * 
+ * + * string request_id = 3; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Idempotent request UUID.
+   * 
+ * + * string request_id = 3; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteQueuedResourceRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteQueuedResourceRequest.java similarity index 63% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteQueuedResourceRequest.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteQueuedResourceRequest.java index a52f1163da42..152d9ae64ae7 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteQueuedResourceRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteQueuedResourceRequest.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Request for [DeleteQueuedResource][google.cloud.tpu.v2alpha1.Tpu.DeleteQueuedResource].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest} */ -public final class DeleteQueuedResourceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteQueuedResourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest) DeleteQueuedResourceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteQueuedResourceRequest.newBuilder() to construct. private DeleteQueuedResourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteQueuedResourceRequest() { name_ = ""; requestId_ = ""; @@ -26,37 +44,43 @@ private DeleteQueuedResourceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteQueuedResourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_DeleteQueuedResourceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_DeleteQueuedResourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_DeleteQueuedResourceRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_DeleteQueuedResourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest.class, com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest.class, + com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +89,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,11 +124,14 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The requestId. */ @java.lang.Override @@ -111,29 +140,29 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -142,6 +171,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -184,17 +213,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest other = (com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest) obj; + com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest other = + (com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -216,129 +244,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest 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.tpu.v2alpha1.DeleteQueuedResourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [DeleteQueuedResource][google.cloud.tpu.v2alpha1.Tpu.DeleteQueuedResource].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest) com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_DeleteQueuedResourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_DeleteQueuedResourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_DeleteQueuedResourceRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_DeleteQueuedResourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest.class, com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest.class, + com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +385,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_DeleteQueuedResourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_DeleteQueuedResourceRequest_descriptor; } @java.lang.Override @@ -371,7 +406,8 @@ public com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest buildPartial() { - com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest result = new com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest(this); + com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest result = + new com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -382,38 +418,39 @@ public com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.DeleteQueuedResourceRequest) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest) other); } else { super.mergeFrom(other); return this; @@ -421,7 +458,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest other) { - if (other == com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -456,22 +494,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -484,18 +525,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -504,20 +549,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -525,54 +573,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -580,18 +641,20 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Idempotent request UUID.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -600,20 +663,21 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -621,61 +685,68 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * 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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -685,12 +756,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest) private static final com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest(); } @@ -699,27 +770,27 @@ public static com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteQueuedResourceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteQueuedResourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -734,6 +805,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteQueuedResourceRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteQueuedResourceRequestOrBuilder.java new file mode 100644 index 000000000000..831fed43c0b9 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteQueuedResourceRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto + +package com.google.cloud.tpu.v2alpha1; + +public interface DeleteQueuedResourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Idempotent request UUID.
+   * 
+ * + * string request_id = 2; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Idempotent request UUID.
+   * 
+ * + * string request_id = 2; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityRequest.java similarity index 60% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityRequest.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityRequest.java index 589c67e98708..b4fd6d1fcf0d 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityRequest.java @@ -1,61 +1,86 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Request for [GenerateServiceIdentity][google.cloud.tpu.v2alpha1.Tpu.GenerateServiceIdentity].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest} */ -public final class GenerateServiceIdentityRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateServiceIdentityRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest) GenerateServiceIdentityRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateServiceIdentityRequest.newBuilder() to construct. - private GenerateServiceIdentityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GenerateServiceIdentityRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateServiceIdentityRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateServiceIdentityRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest.class, com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest.class, + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -64,29 +89,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -95,6 +122,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -131,15 +158,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest other = (com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest) obj; + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest other = + (com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,129 +186,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest 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.tpu.v2alpha1.GenerateServiceIdentityRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [GenerateServiceIdentity][google.cloud.tpu.v2alpha1.Tpu.GenerateServiceIdentity].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest) com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest.class, com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest.class, + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,13 +325,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityRequest_descriptor; } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest getDefaultInstanceForType() { + public com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest + getDefaultInstanceForType() { return com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest.getDefaultInstance(); } @@ -312,7 +347,8 @@ public com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest buildPartial() { - com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest result = new com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest(this); + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest result = + new com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -322,38 +358,39 @@ public com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.GenerateServiceIdentityRequest) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest) other); } else { super.mergeFrom(other); return this; @@ -361,7 +398,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest other) { - if (other == com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -392,17 +431,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +456,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -435,20 +480,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -456,61 +504,74 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +581,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest) - private static final com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest DEFAULT_INSTANCE; + private static final com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest(); } @@ -534,27 +596,27 @@ public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateServiceIdentityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateServiceIdentityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +631,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityRequestOrBuilder.java new file mode 100644 index 000000000000..042477062e60 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +package com.google.cloud.tpu.v2alpha1; + +public interface GenerateServiceIdentityRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityResponse.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityResponse.java similarity index 64% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityResponse.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityResponse.java index a05fb56362d2..7615d22a61ef 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityResponse.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityResponse.java @@ -1,60 +1,82 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Response for [GenerateServiceIdentity][google.cloud.tpu.v2alpha1.Tpu.GenerateServiceIdentity].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse} */ -public final class GenerateServiceIdentityResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateServiceIdentityResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse) GenerateServiceIdentityResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateServiceIdentityResponse.newBuilder() to construct. - private GenerateServiceIdentityResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GenerateServiceIdentityResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateServiceIdentityResponse() { - } + + private GenerateServiceIdentityResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateServiceIdentityResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityResponse_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse.class, com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse.Builder.class); + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse.class, + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse.Builder.class); } public static final int IDENTITY_FIELD_NUMBER = 1; private com.google.cloud.tpu.v2alpha1.ServiceIdentity identity_; /** + * + * *
    * ServiceIdentity that was created or retrieved.
    * 
* * .google.cloud.tpu.v2alpha1.ServiceIdentity identity = 1; + * * @return Whether the identity field is set. */ @java.lang.Override @@ -62,18 +84,25 @@ public boolean hasIdentity() { return identity_ != null; } /** + * + * *
    * ServiceIdentity that was created or retrieved.
    * 
* * .google.cloud.tpu.v2alpha1.ServiceIdentity identity = 1; + * * @return The identity. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.ServiceIdentity getIdentity() { - return identity_ == null ? com.google.cloud.tpu.v2alpha1.ServiceIdentity.getDefaultInstance() : identity_; + return identity_ == null + ? com.google.cloud.tpu.v2alpha1.ServiceIdentity.getDefaultInstance() + : identity_; } /** + * + * *
    * ServiceIdentity that was created or retrieved.
    * 
@@ -86,6 +115,7 @@ public com.google.cloud.tpu.v2alpha1.ServiceIdentityOrBuilder getIdentityOrBuild } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,8 +127,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (identity_ != null) { output.writeMessage(1, getIdentity()); } @@ -112,8 +141,7 @@ public int getSerializedSize() { size = 0; if (identity_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getIdentity()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIdentity()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -123,17 +151,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse other = (com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse) obj; + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse other = + (com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse) obj; if (hasIdentity() != other.hasIdentity()) return false; if (hasIdentity()) { - if (!getIdentity() - .equals(other.getIdentity())) return false; + if (!getIdentity().equals(other.getIdentity())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -156,129 +184,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse 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.tpu.v2alpha1.GenerateServiceIdentityResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [GenerateServiceIdentity][google.cloud.tpu.v2alpha1.Tpu.GenerateServiceIdentity].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse) com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityResponse_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse.class, com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse.Builder.class); + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse.class, + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,13 +327,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityResponse_descriptor; } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse getDefaultInstanceForType() { + public com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse + getDefaultInstanceForType() { return com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse.getDefaultInstance(); } @@ -313,7 +349,8 @@ public com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse buildPartial() { - com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse result = new com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse(this); + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse result = + new com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse(this); if (identityBuilder_ == null) { result.identity_ = identity_; } else { @@ -327,38 +364,39 @@ public com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.GenerateServiceIdentityResponse) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse) other); } else { super.mergeFrom(other); return this; @@ -366,7 +404,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse other) { - if (other == com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse.getDefaultInstance()) + return this; if (other.hasIdentity()) { mergeIdentity(other.getIdentity()); } @@ -396,19 +436,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getIdentityFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getIdentityFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,34 +461,47 @@ public Builder mergeFrom( private com.google.cloud.tpu.v2alpha1.ServiceIdentity identity_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.ServiceIdentity, com.google.cloud.tpu.v2alpha1.ServiceIdentity.Builder, com.google.cloud.tpu.v2alpha1.ServiceIdentityOrBuilder> identityBuilder_; + com.google.cloud.tpu.v2alpha1.ServiceIdentity, + com.google.cloud.tpu.v2alpha1.ServiceIdentity.Builder, + com.google.cloud.tpu.v2alpha1.ServiceIdentityOrBuilder> + identityBuilder_; /** + * + * *
      * ServiceIdentity that was created or retrieved.
      * 
* * .google.cloud.tpu.v2alpha1.ServiceIdentity identity = 1; + * * @return Whether the identity field is set. */ public boolean hasIdentity() { return identityBuilder_ != null || identity_ != null; } /** + * + * *
      * ServiceIdentity that was created or retrieved.
      * 
* * .google.cloud.tpu.v2alpha1.ServiceIdentity identity = 1; + * * @return The identity. */ public com.google.cloud.tpu.v2alpha1.ServiceIdentity getIdentity() { if (identityBuilder_ == null) { - return identity_ == null ? com.google.cloud.tpu.v2alpha1.ServiceIdentity.getDefaultInstance() : identity_; + return identity_ == null + ? com.google.cloud.tpu.v2alpha1.ServiceIdentity.getDefaultInstance() + : identity_; } else { return identityBuilder_.getMessage(); } } /** + * + * *
      * ServiceIdentity that was created or retrieved.
      * 
@@ -469,6 +522,8 @@ public Builder setIdentity(com.google.cloud.tpu.v2alpha1.ServiceIdentity value) return this; } /** + * + * *
      * ServiceIdentity that was created or retrieved.
      * 
@@ -487,6 +542,8 @@ public Builder setIdentity( return this; } /** + * + * *
      * ServiceIdentity that was created or retrieved.
      * 
@@ -497,7 +554,9 @@ public Builder mergeIdentity(com.google.cloud.tpu.v2alpha1.ServiceIdentity value if (identityBuilder_ == null) { if (identity_ != null) { identity_ = - com.google.cloud.tpu.v2alpha1.ServiceIdentity.newBuilder(identity_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v2alpha1.ServiceIdentity.newBuilder(identity_) + .mergeFrom(value) + .buildPartial(); } else { identity_ = value; } @@ -509,6 +568,8 @@ public Builder mergeIdentity(com.google.cloud.tpu.v2alpha1.ServiceIdentity value return this; } /** + * + * *
      * ServiceIdentity that was created or retrieved.
      * 
@@ -527,6 +588,8 @@ public Builder clearIdentity() { return this; } /** + * + * *
      * ServiceIdentity that was created or retrieved.
      * 
@@ -534,11 +597,13 @@ public Builder clearIdentity() { * .google.cloud.tpu.v2alpha1.ServiceIdentity identity = 1; */ public com.google.cloud.tpu.v2alpha1.ServiceIdentity.Builder getIdentityBuilder() { - + onChanged(); return getIdentityFieldBuilder().getBuilder(); } /** + * + * *
      * ServiceIdentity that was created or retrieved.
      * 
@@ -549,11 +614,14 @@ public com.google.cloud.tpu.v2alpha1.ServiceIdentityOrBuilder getIdentityOrBuild if (identityBuilder_ != null) { return identityBuilder_.getMessageOrBuilder(); } else { - return identity_ == null ? - com.google.cloud.tpu.v2alpha1.ServiceIdentity.getDefaultInstance() : identity_; + return identity_ == null + ? com.google.cloud.tpu.v2alpha1.ServiceIdentity.getDefaultInstance() + : identity_; } } /** + * + * *
      * ServiceIdentity that was created or retrieved.
      * 
@@ -561,21 +629,24 @@ public com.google.cloud.tpu.v2alpha1.ServiceIdentityOrBuilder getIdentityOrBuild * .google.cloud.tpu.v2alpha1.ServiceIdentity identity = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.ServiceIdentity, com.google.cloud.tpu.v2alpha1.ServiceIdentity.Builder, com.google.cloud.tpu.v2alpha1.ServiceIdentityOrBuilder> + com.google.cloud.tpu.v2alpha1.ServiceIdentity, + com.google.cloud.tpu.v2alpha1.ServiceIdentity.Builder, + com.google.cloud.tpu.v2alpha1.ServiceIdentityOrBuilder> getIdentityFieldBuilder() { if (identityBuilder_ == null) { - identityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.ServiceIdentity, com.google.cloud.tpu.v2alpha1.ServiceIdentity.Builder, com.google.cloud.tpu.v2alpha1.ServiceIdentityOrBuilder>( - getIdentity(), - getParentForChildren(), - isClean()); + identityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.ServiceIdentity, + com.google.cloud.tpu.v2alpha1.ServiceIdentity.Builder, + com.google.cloud.tpu.v2alpha1.ServiceIdentityOrBuilder>( + getIdentity(), getParentForChildren(), isClean()); identity_ = null; } return identityBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -585,12 +656,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse) - private static final com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse DEFAULT_INSTANCE; + private static final com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse(); } @@ -599,27 +671,27 @@ public static com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateServiceIdentityResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateServiceIdentityResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,6 +706,4 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityResponseOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityResponseOrBuilder.java similarity index 59% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityResponseOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityResponseOrBuilder.java index 60569c6ed088..f6187e11e0a6 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityResponseOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface GenerateServiceIdentityResponseOrBuilder extends +public interface GenerateServiceIdentityResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * ServiceIdentity that was created or retrieved.
    * 
* * .google.cloud.tpu.v2alpha1.ServiceIdentity identity = 1; + * * @return Whether the identity field is set. */ boolean hasIdentity(); /** + * + * *
    * ServiceIdentity that was created or retrieved.
    * 
* * .google.cloud.tpu.v2alpha1.ServiceIdentity identity = 1; + * * @return The identity. */ com.google.cloud.tpu.v2alpha1.ServiceIdentity getIdentity(); /** + * + * *
    * ServiceIdentity that was created or retrieved.
    * 
diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetAcceleratorTypeRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetAcceleratorTypeRequest.java similarity index 61% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetAcceleratorTypeRequest.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetAcceleratorTypeRequest.java index 20111eb92684..a443448367b1 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetAcceleratorTypeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetAcceleratorTypeRequest.java @@ -1,61 +1,85 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Request for [GetAcceleratorType][google.cloud.tpu.v2alpha1.Tpu.GetAcceleratorType].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest} */ -public final class GetAcceleratorTypeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetAcceleratorTypeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest) GetAcceleratorTypeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetAcceleratorTypeRequest.newBuilder() to construct. private GetAcceleratorTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetAcceleratorTypeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetAcceleratorTypeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetAcceleratorTypeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetAcceleratorTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetAcceleratorTypeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetAcceleratorTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest.class, com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest.class, + com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest other = (com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest) obj; + com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest other = + (com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,129 +185,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest 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.tpu.v2alpha1.GetAcceleratorTypeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [GetAcceleratorType][google.cloud.tpu.v2alpha1.Tpu.GetAcceleratorType].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest) com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetAcceleratorTypeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetAcceleratorTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetAcceleratorTypeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetAcceleratorTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest.class, com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest.class, + com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +324,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetAcceleratorTypeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetAcceleratorTypeRequest_descriptor; } @java.lang.Override @@ -312,7 +345,8 @@ public com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest buildPartial() { - com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest result = new com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest(this); + com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest result = + new com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +356,39 @@ public com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.GetAcceleratorTypeRequest) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest) other); } else { super.mergeFrom(other); return this; @@ -361,7 +396,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest other) { - if (other == com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -392,17 +428,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +453,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -435,20 +477,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -456,61 +501,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +578,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest) private static final com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest(); } @@ -534,27 +592,27 @@ public static com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAcceleratorTypeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAcceleratorTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +627,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetAcceleratorTypeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetAcceleratorTypeRequestOrBuilder.java new file mode 100644 index 000000000000..67b073762756 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetAcceleratorTypeRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +package com.google.cloud.tpu.v2alpha1; + +public interface GetAcceleratorTypeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesRequest.java similarity index 67% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesRequest.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesRequest.java index 3d0abd8def4f..ff443c6bfd20 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesRequest.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Request for [GetGuestAttributes][google.cloud.tpu.v2alpha1.Tpu.GetGuestAttributes].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GetGuestAttributesRequest} */ -public final class GetGuestAttributesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetGuestAttributesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.GetGuestAttributesRequest) GetGuestAttributesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetGuestAttributesRequest.newBuilder() to construct. private GetGuestAttributesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetGuestAttributesRequest() { name_ = ""; queryPath_ = ""; @@ -27,37 +45,43 @@ private GetGuestAttributesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetGuestAttributesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest.class, com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest.class, + com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -99,11 +125,14 @@ public java.lang.String getName() { public static final int QUERY_PATH_FIELD_NUMBER = 2; private volatile java.lang.Object queryPath_; /** + * + * *
    * The guest attributes path to be queried.
    * 
* * string query_path = 2; + * * @return The queryPath. */ @java.lang.Override @@ -112,29 +141,29 @@ public java.lang.String getQueryPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryPath_ = s; return s; } } /** + * + * *
    * The guest attributes path to be queried.
    * 
* * string query_path = 2; + * * @return The bytes for queryPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryPathBytes() { + public com.google.protobuf.ByteString getQueryPathBytes() { java.lang.Object ref = queryPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queryPath_ = b; return b; } else { @@ -145,37 +174,45 @@ public java.lang.String getQueryPath() { public static final int WORKER_IDS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList workerIds_; /** + * + * *
    * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
    * returned.
    * 
* * repeated string worker_ids = 3; + * * @return A list containing the workerIds. */ - public com.google.protobuf.ProtocolStringList - getWorkerIdsList() { + public com.google.protobuf.ProtocolStringList getWorkerIdsList() { return workerIds_; } /** + * + * *
    * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
    * returned.
    * 
* * repeated string worker_ids = 3; + * * @return The count of workerIds. */ public int getWorkerIdsCount() { return workerIds_.size(); } /** + * + * *
    * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
    * returned.
    * 
* * repeated string worker_ids = 3; + * * @param index The index of the element to return. * @return The workerIds at the given index. */ @@ -183,21 +220,24 @@ public java.lang.String getWorkerIds(int index) { return workerIds_.get(index); } /** + * + * *
    * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
    * returned.
    * 
* * repeated string worker_ids = 3; + * * @param index The index of the value to return. * @return The bytes of the workerIds at the given index. */ - public com.google.protobuf.ByteString - getWorkerIdsBytes(int index) { + public com.google.protobuf.ByteString getWorkerIdsBytes(int index) { return workerIds_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +249,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -251,19 +290,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest other = (com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest) obj; + com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest other = + (com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getQueryPath() - .equals(other.getQueryPath())) return false; - if (!getWorkerIdsList() - .equals(other.getWorkerIdsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getQueryPath().equals(other.getQueryPath())) return false; + if (!getWorkerIdsList().equals(other.getWorkerIdsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -289,129 +326,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest 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.tpu.v2alpha1.GetGuestAttributesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [GetGuestAttributes][google.cloud.tpu.v2alpha1.Tpu.GetGuestAttributes].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GetGuestAttributesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.GetGuestAttributesRequest) com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest.class, com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest.class, + com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesRequest_descriptor; } @java.lang.Override @@ -446,7 +490,8 @@ public com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest buildPartial() { - com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest result = new com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest(this); + com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest result = + new com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.queryPath_ = queryPath_; @@ -463,38 +508,39 @@ public com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.GetGuestAttributesRequest) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest) other); } else { super.mergeFrom(other); return this; @@ -502,7 +548,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest other) { - if (other == com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -547,28 +594,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); + case 10: + { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - queryPath_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + queryPath_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureWorkerIdsIsMutable(); - workerIds_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureWorkerIdsIsMutable(); + workerIds_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -578,22 +629,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -602,20 +658,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -623,54 +682,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -678,18 +750,20 @@ public Builder setNameBytes( private java.lang.Object queryPath_ = ""; /** + * + * *
      * The guest attributes path to be queried.
      * 
* * string query_path = 2; + * * @return The queryPath. */ public java.lang.String getQueryPath() { java.lang.Object ref = queryPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryPath_ = s; return s; @@ -698,20 +772,21 @@ public java.lang.String getQueryPath() { } } /** + * + * *
      * The guest attributes path to be queried.
      * 
* * string query_path = 2; + * * @return The bytes for queryPath. */ - public com.google.protobuf.ByteString - getQueryPathBytes() { + public com.google.protobuf.ByteString getQueryPathBytes() { java.lang.Object ref = queryPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queryPath_ = b; return b; } else { @@ -719,98 +794,115 @@ public java.lang.String getQueryPath() { } } /** + * + * *
      * The guest attributes path to be queried.
      * 
* * string query_path = 2; + * * @param value The queryPath to set. * @return This builder for chaining. */ - public Builder setQueryPath( - java.lang.String value) { + public Builder setQueryPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + queryPath_ = value; onChanged(); return this; } /** + * + * *
      * The guest attributes path to be queried.
      * 
* * string query_path = 2; + * * @return This builder for chaining. */ public Builder clearQueryPath() { - + queryPath_ = getDefaultInstance().getQueryPath(); onChanged(); return this; } /** + * + * *
      * The guest attributes path to be queried.
      * 
* * string query_path = 2; + * * @param value The bytes for queryPath to set. * @return This builder for chaining. */ - public Builder setQueryPathBytes( - com.google.protobuf.ByteString value) { + public Builder setQueryPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryPath_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList workerIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList workerIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureWorkerIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { workerIds_ = new com.google.protobuf.LazyStringArrayList(workerIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
      * returned.
      * 
* * repeated string worker_ids = 3; + * * @return A list containing the workerIds. */ - public com.google.protobuf.ProtocolStringList - getWorkerIdsList() { + public com.google.protobuf.ProtocolStringList getWorkerIdsList() { return workerIds_.getUnmodifiableView(); } /** + * + * *
      * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
      * returned.
      * 
* * repeated string worker_ids = 3; + * * @return The count of workerIds. */ public int getWorkerIdsCount() { return workerIds_.size(); } /** + * + * *
      * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
      * returned.
      * 
* * repeated string worker_ids = 3; + * * @param index The index of the element to return. * @return The workerIds at the given index. */ @@ -818,85 +910,95 @@ public java.lang.String getWorkerIds(int index) { return workerIds_.get(index); } /** + * + * *
      * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
      * returned.
      * 
* * repeated string worker_ids = 3; + * * @param index The index of the value to return. * @return The bytes of the workerIds at the given index. */ - public com.google.protobuf.ByteString - getWorkerIdsBytes(int index) { + public com.google.protobuf.ByteString getWorkerIdsBytes(int index) { return workerIds_.getByteString(index); } /** + * + * *
      * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
      * returned.
      * 
* * repeated string worker_ids = 3; + * * @param index The index to set the value at. * @param value The workerIds to set. * @return This builder for chaining. */ - public Builder setWorkerIds( - int index, java.lang.String value) { + public Builder setWorkerIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWorkerIdsIsMutable(); + throw new NullPointerException(); + } + ensureWorkerIdsIsMutable(); workerIds_.set(index, value); onChanged(); return this; } /** + * + * *
      * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
      * returned.
      * 
* * repeated string worker_ids = 3; + * * @param value The workerIds to add. * @return This builder for chaining. */ - public Builder addWorkerIds( - java.lang.String value) { + public Builder addWorkerIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWorkerIdsIsMutable(); + throw new NullPointerException(); + } + ensureWorkerIdsIsMutable(); workerIds_.add(value); onChanged(); return this; } /** + * + * *
      * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
      * returned.
      * 
* * repeated string worker_ids = 3; + * * @param values The workerIds to add. * @return This builder for chaining. */ - public Builder addAllWorkerIds( - java.lang.Iterable values) { + public Builder addAllWorkerIds(java.lang.Iterable values) { ensureWorkerIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workerIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workerIds_); onChanged(); return this; } /** + * + * *
      * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
      * returned.
      * 
* * repeated string worker_ids = 3; + * * @return This builder for chaining. */ public Builder clearWorkerIds() { @@ -906,29 +1008,31 @@ public Builder clearWorkerIds() { return this; } /** + * + * *
      * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
      * returned.
      * 
* * repeated string worker_ids = 3; + * * @param value The bytes of the workerIds to add. * @return This builder for chaining. */ - public Builder addWorkerIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addWorkerIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureWorkerIdsIsMutable(); workerIds_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -938,12 +1042,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.GetGuestAttributesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.GetGuestAttributesRequest) private static final com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest(); } @@ -952,27 +1056,27 @@ public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGuestAttributesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGuestAttributesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -987,6 +1091,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesRequestOrBuilder.java index aef6790d7f31..27f8fc2ae1d0 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesRequestOrBuilder.java @@ -1,94 +1,134 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface GetGuestAttributesRequestOrBuilder extends +public interface GetGuestAttributesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.GetGuestAttributesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The guest attributes path to be queried.
    * 
* * string query_path = 2; + * * @return The queryPath. */ java.lang.String getQueryPath(); /** + * + * *
    * The guest attributes path to be queried.
    * 
* * string query_path = 2; + * * @return The bytes for queryPath. */ - com.google.protobuf.ByteString - getQueryPathBytes(); + com.google.protobuf.ByteString getQueryPathBytes(); /** + * + * *
    * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
    * returned.
    * 
* * repeated string worker_ids = 3; + * * @return A list containing the workerIds. */ - java.util.List - getWorkerIdsList(); + java.util.List getWorkerIdsList(); /** + * + * *
    * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
    * returned.
    * 
* * repeated string worker_ids = 3; + * * @return The count of workerIds. */ int getWorkerIdsCount(); /** + * + * *
    * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
    * returned.
    * 
* * repeated string worker_ids = 3; + * * @param index The index of the element to return. * @return The workerIds at the given index. */ java.lang.String getWorkerIds(int index); /** + * + * *
    * The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
    * returned.
    * 
* * repeated string worker_ids = 3; + * * @param index The index of the value to return. * @return The bytes of the workerIds at the given index. */ - com.google.protobuf.ByteString - getWorkerIdsBytes(int index); + com.google.protobuf.ByteString getWorkerIdsBytes(int index); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesResponse.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesResponse.java similarity index 72% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesResponse.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesResponse.java index 79b0fdf5487e..1202e41b266f 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesResponse.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesResponse.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Response for [GetGuestAttributes][google.cloud.tpu.v2alpha1.Tpu.GetGuestAttributes].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GetGuestAttributesResponse} */ -public final class GetGuestAttributesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetGuestAttributesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.GetGuestAttributesResponse) GetGuestAttributesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetGuestAttributesResponse.newBuilder() to construct. private GetGuestAttributesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetGuestAttributesResponse() { guestAttributes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetGuestAttributesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesResponse_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse.class, com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse.Builder.class); + com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse.class, + com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse.Builder.class); } public static final int GUEST_ATTRIBUTES_FIELD_NUMBER = 1; private java.util.List guestAttributes_; /** + * + * *
    * The guest attributes for the TPU workers.
    * 
@@ -62,6 +83,8 @@ public java.util.List getGuestAtt return guestAttributes_; } /** + * + * *
    * The guest attributes for the TPU workers.
    * 
@@ -69,11 +92,13 @@ public java.util.List getGuestAtt * repeated .google.cloud.tpu.v2alpha1.GuestAttributes guest_attributes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getGuestAttributesOrBuilderList() { return guestAttributes_; } /** + * + * *
    * The guest attributes for the TPU workers.
    * 
@@ -85,6 +110,8 @@ public int getGuestAttributesCount() { return guestAttributes_.size(); } /** + * + * *
    * The guest attributes for the TPU workers.
    * 
@@ -96,6 +123,8 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributes getGuestAttributes(int inde return guestAttributes_.get(index); } /** + * + * *
    * The guest attributes for the TPU workers.
    * 
@@ -109,6 +138,7 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributesOrBuilder getGuestAttributes } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +150,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < guestAttributes_.size(); i++) { output.writeMessage(1, guestAttributes_.get(i)); } @@ -135,8 +164,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < guestAttributes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, guestAttributes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, guestAttributes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -146,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse other = (com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse) obj; + com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse other = + (com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse) obj; - if (!getGuestAttributesList() - .equals(other.getGuestAttributesList())) return false; + if (!getGuestAttributesList().equals(other.getGuestAttributesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -176,129 +204,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse 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.tpu.v2alpha1.GetGuestAttributesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [GetGuestAttributes][google.cloud.tpu.v2alpha1.Tpu.GetGuestAttributes].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GetGuestAttributesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.GetGuestAttributesResponse) com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesResponse_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse.class, com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse.Builder.class); + com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse.class, + com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -313,9 +348,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesResponse_descriptor; } @java.lang.Override @@ -334,7 +369,8 @@ public com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse buildPartial() { - com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse result = new com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse(this); + com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse result = + new com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse(this); int from_bitField0_ = bitField0_; if (guestAttributesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -353,38 +389,39 @@ public com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.GetGuestAttributesResponse) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse) other); } else { super.mergeFrom(other); return this; @@ -392,7 +429,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse other) { - if (other == com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse.getDefaultInstance()) + return this; if (guestAttributesBuilder_ == null) { if (!other.guestAttributes_.isEmpty()) { if (guestAttributes_.isEmpty()) { @@ -411,9 +449,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.GetGuestAttributesRespons guestAttributesBuilder_ = null; guestAttributes_ = other.guestAttributes_; bitField0_ = (bitField0_ & ~0x00000001); - guestAttributesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGuestAttributesFieldBuilder() : null; + guestAttributesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGuestAttributesFieldBuilder() + : null; } else { guestAttributesBuilder_.addAllMessages(other.guestAttributes_); } @@ -445,25 +484,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.tpu.v2alpha1.GuestAttributes m = - input.readMessage( - com.google.cloud.tpu.v2alpha1.GuestAttributes.parser(), - extensionRegistry); - if (guestAttributesBuilder_ == null) { - ensureGuestAttributesIsMutable(); - guestAttributes_.add(m); - } else { - guestAttributesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.tpu.v2alpha1.GuestAttributes m = + input.readMessage( + com.google.cloud.tpu.v2alpha1.GuestAttributes.parser(), extensionRegistry); + if (guestAttributesBuilder_ == null) { + ensureGuestAttributesIsMutable(); + guestAttributes_.add(m); + } else { + guestAttributesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -473,21 +513,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List guestAttributes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureGuestAttributesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - guestAttributes_ = new java.util.ArrayList(guestAttributes_); + guestAttributes_ = + new java.util.ArrayList( + guestAttributes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.GuestAttributes, com.google.cloud.tpu.v2alpha1.GuestAttributes.Builder, com.google.cloud.tpu.v2alpha1.GuestAttributesOrBuilder> guestAttributesBuilder_; + com.google.cloud.tpu.v2alpha1.GuestAttributes, + com.google.cloud.tpu.v2alpha1.GuestAttributes.Builder, + com.google.cloud.tpu.v2alpha1.GuestAttributesOrBuilder> + guestAttributesBuilder_; /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -502,6 +551,8 @@ public java.util.List getGuestAtt } } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -516,6 +567,8 @@ public int getGuestAttributesCount() { } } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -530,6 +583,8 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributes getGuestAttributes(int inde } } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -551,6 +606,8 @@ public Builder setGuestAttributes( return this; } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -569,6 +626,8 @@ public Builder setGuestAttributes( return this; } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -589,6 +648,8 @@ public Builder addGuestAttributes(com.google.cloud.tpu.v2alpha1.GuestAttributes return this; } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -610,6 +671,8 @@ public Builder addGuestAttributes( return this; } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -628,6 +691,8 @@ public Builder addGuestAttributes( return this; } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -646,6 +711,8 @@ public Builder addGuestAttributes( return this; } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -656,8 +723,7 @@ public Builder addAllGuestAttributes( java.lang.Iterable values) { if (guestAttributesBuilder_ == null) { ensureGuestAttributesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, guestAttributes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, guestAttributes_); onChanged(); } else { guestAttributesBuilder_.addAllMessages(values); @@ -665,6 +731,8 @@ public Builder addAllGuestAttributes( return this; } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -682,6 +750,8 @@ public Builder clearGuestAttributes() { return this; } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -699,6 +769,8 @@ public Builder removeGuestAttributes(int index) { return this; } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -710,6 +782,8 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributes.Builder getGuestAttributesB return getGuestAttributesFieldBuilder().getBuilder(index); } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -719,19 +793,22 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributes.Builder getGuestAttributesB public com.google.cloud.tpu.v2alpha1.GuestAttributesOrBuilder getGuestAttributesOrBuilder( int index) { if (guestAttributesBuilder_ == null) { - return guestAttributes_.get(index); } else { + return guestAttributes_.get(index); + } else { return guestAttributesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
* * repeated .google.cloud.tpu.v2alpha1.GuestAttributes guest_attributes = 1; */ - public java.util.List - getGuestAttributesOrBuilderList() { + public java.util.List + getGuestAttributesOrBuilderList() { if (guestAttributesBuilder_ != null) { return guestAttributesBuilder_.getMessageOrBuilderList(); } else { @@ -739,6 +816,8 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributesOrBuilder getGuestAttributes } } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -746,10 +825,12 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributesOrBuilder getGuestAttributes * repeated .google.cloud.tpu.v2alpha1.GuestAttributes guest_attributes = 1; */ public com.google.cloud.tpu.v2alpha1.GuestAttributes.Builder addGuestAttributesBuilder() { - return getGuestAttributesFieldBuilder().addBuilder( - com.google.cloud.tpu.v2alpha1.GuestAttributes.getDefaultInstance()); + return getGuestAttributesFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2alpha1.GuestAttributes.getDefaultInstance()); } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
@@ -758,26 +839,34 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributes.Builder addGuestAttributesB */ public com.google.cloud.tpu.v2alpha1.GuestAttributes.Builder addGuestAttributesBuilder( int index) { - return getGuestAttributesFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v2alpha1.GuestAttributes.getDefaultInstance()); + return getGuestAttributesFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2alpha1.GuestAttributes.getDefaultInstance()); } /** + * + * *
      * The guest attributes for the TPU workers.
      * 
* * repeated .google.cloud.tpu.v2alpha1.GuestAttributes guest_attributes = 1; */ - public java.util.List - getGuestAttributesBuilderList() { + public java.util.List + getGuestAttributesBuilderList() { return getGuestAttributesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.GuestAttributes, com.google.cloud.tpu.v2alpha1.GuestAttributes.Builder, com.google.cloud.tpu.v2alpha1.GuestAttributesOrBuilder> + com.google.cloud.tpu.v2alpha1.GuestAttributes, + com.google.cloud.tpu.v2alpha1.GuestAttributes.Builder, + com.google.cloud.tpu.v2alpha1.GuestAttributesOrBuilder> getGuestAttributesFieldBuilder() { if (guestAttributesBuilder_ == null) { - guestAttributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.GuestAttributes, com.google.cloud.tpu.v2alpha1.GuestAttributes.Builder, com.google.cloud.tpu.v2alpha1.GuestAttributesOrBuilder>( + guestAttributesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.GuestAttributes, + com.google.cloud.tpu.v2alpha1.GuestAttributes.Builder, + com.google.cloud.tpu.v2alpha1.GuestAttributesOrBuilder>( guestAttributes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -786,9 +875,9 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributes.Builder addGuestAttributesB } return guestAttributesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -798,12 +887,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.GetGuestAttributesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.GetGuestAttributesResponse) private static final com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse(); } @@ -812,27 +901,27 @@ public static com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGuestAttributesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGuestAttributesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -847,6 +936,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesResponseOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesResponseOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesResponseOrBuilder.java index 34ae4e22da30..cdfa7425d3e8 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesResponseOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetGuestAttributesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface GetGuestAttributesResponseOrBuilder extends +public interface GetGuestAttributesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.GetGuestAttributesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The guest attributes for the TPU workers.
    * 
* * repeated .google.cloud.tpu.v2alpha1.GuestAttributes guest_attributes = 1; */ - java.util.List - getGuestAttributesList(); + java.util.List getGuestAttributesList(); /** + * + * *
    * The guest attributes for the TPU workers.
    * 
@@ -25,6 +44,8 @@ public interface GetGuestAttributesResponseOrBuilder extends */ com.google.cloud.tpu.v2alpha1.GuestAttributes getGuestAttributes(int index); /** + * + * *
    * The guest attributes for the TPU workers.
    * 
@@ -33,21 +54,24 @@ public interface GetGuestAttributesResponseOrBuilder extends */ int getGuestAttributesCount(); /** + * + * *
    * The guest attributes for the TPU workers.
    * 
* * repeated .google.cloud.tpu.v2alpha1.GuestAttributes guest_attributes = 1; */ - java.util.List + java.util.List getGuestAttributesOrBuilderList(); /** + * + * *
    * The guest attributes for the TPU workers.
    * 
* * repeated .google.cloud.tpu.v2alpha1.GuestAttributes guest_attributes = 1; */ - com.google.cloud.tpu.v2alpha1.GuestAttributesOrBuilder getGuestAttributesOrBuilder( - int index); + com.google.cloud.tpu.v2alpha1.GuestAttributesOrBuilder getGuestAttributesOrBuilder(int index); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetNodeRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetNodeRequest.java similarity index 61% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetNodeRequest.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetNodeRequest.java index 1ccfbd7a1f82..83488aaf27c0 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetNodeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetNodeRequest.java @@ -1,61 +1,85 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Request for [GetNode][google.cloud.tpu.v2alpha1.Tpu.GetNode].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GetNodeRequest} */ -public final class GetNodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.GetNodeRequest) GetNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetNodeRequest.newBuilder() to construct. private GetNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetNodeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNodeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetNodeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GetNodeRequest.class, com.google.cloud.tpu.v2alpha1.GetNodeRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.GetNodeRequest.class, + com.google.cloud.tpu.v2alpha1.GetNodeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.GetNodeRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.GetNodeRequest other = (com.google.cloud.tpu.v2alpha1.GetNodeRequest) obj; + com.google.cloud.tpu.v2alpha1.GetNodeRequest other = + (com.google.cloud.tpu.v2alpha1.GetNodeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +184,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.GetNodeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.GetNodeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GetNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GetNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GetNodeRequest 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.tpu.v2alpha1.GetNodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GetNodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GetNodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GetNodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GetNodeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GetNodeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GetNodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GetNodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GetNodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.GetNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [GetNode][google.cloud.tpu.v2alpha1.Tpu.GetNode].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GetNodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.GetNodeRequest) com.google.cloud.tpu.v2alpha1.GetNodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetNodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GetNodeRequest.class, com.google.cloud.tpu.v2alpha1.GetNodeRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.GetNodeRequest.class, + com.google.cloud.tpu.v2alpha1.GetNodeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.GetNodeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetNodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetNodeRequest_descriptor; } @java.lang.Override @@ -312,7 +344,8 @@ public com.google.cloud.tpu.v2alpha1.GetNodeRequest build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.GetNodeRequest buildPartial() { - com.google.cloud.tpu.v2alpha1.GetNodeRequest result = new com.google.cloud.tpu.v2alpha1.GetNodeRequest(this); + com.google.cloud.tpu.v2alpha1.GetNodeRequest result = + new com.google.cloud.tpu.v2alpha1.GetNodeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +355,39 @@ public com.google.cloud.tpu.v2alpha1.GetNodeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.GetNodeRequest) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.GetNodeRequest)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.GetNodeRequest) other); } else { super.mergeFrom(other); return this; @@ -392,17 +426,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +451,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -435,20 +475,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -456,61 +499,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +576,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.GetNodeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.GetNodeRequest) private static final com.google.cloud.tpu.v2alpha1.GetNodeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.GetNodeRequest(); } @@ -534,27 +590,27 @@ public static com.google.cloud.tpu.v2alpha1.GetNodeRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +625,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.GetNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetNodeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetNodeRequestOrBuilder.java new file mode 100644 index 000000000000..736eca1d4a67 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetNodeRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +package com.google.cloud.tpu.v2alpha1; + +public interface GetNodeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.GetNodeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetQueuedResourceRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetQueuedResourceRequest.java similarity index 61% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetQueuedResourceRequest.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetQueuedResourceRequest.java index 1eb80ca1c928..3269662a9980 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetQueuedResourceRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetQueuedResourceRequest.java @@ -1,61 +1,85 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Request for [GetQueuedResource][google.cloud.tpu.v2alpha1.Tpu.GetQueuedResource]
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GetQueuedResourceRequest} */ -public final class GetQueuedResourceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetQueuedResourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.GetQueuedResourceRequest) GetQueuedResourceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetQueuedResourceRequest.newBuilder() to construct. private GetQueuedResourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetQueuedResourceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetQueuedResourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetQueuedResourceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetQueuedResourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetQueuedResourceRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetQueuedResourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest.class, com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest.class, + com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest other = (com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest) obj; + com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest other = + (com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,129 +185,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest 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.tpu.v2alpha1.GetQueuedResourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [GetQueuedResource][google.cloud.tpu.v2alpha1.Tpu.GetQueuedResource]
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GetQueuedResourceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.GetQueuedResourceRequest) com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetQueuedResourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetQueuedResourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetQueuedResourceRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetQueuedResourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest.class, com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest.class, + com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +324,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetQueuedResourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetQueuedResourceRequest_descriptor; } @java.lang.Override @@ -312,7 +345,8 @@ public com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest buildPartial() { - com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest result = new com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest(this); + com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest result = + new com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +356,39 @@ public com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.GetQueuedResourceRequest) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest) other); } else { super.mergeFrom(other); return this; @@ -361,7 +396,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest other) { - if (other == com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -392,17 +428,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +453,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -435,20 +477,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -456,61 +501,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +578,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.GetQueuedResourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.GetQueuedResourceRequest) private static final com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest(); } @@ -534,27 +592,27 @@ public static com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetQueuedResourceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetQueuedResourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +627,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetQueuedResourceRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetQueuedResourceRequestOrBuilder.java new file mode 100644 index 000000000000..633cbef6c24d --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetQueuedResourceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +package com.google.cloud.tpu.v2alpha1; + +public interface GetQueuedResourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.GetQueuedResourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetRuntimeVersionRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetRuntimeVersionRequest.java similarity index 61% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetRuntimeVersionRequest.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetRuntimeVersionRequest.java index 20573f130cc7..2a8f4bb6f706 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetRuntimeVersionRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetRuntimeVersionRequest.java @@ -1,61 +1,85 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Request for [GetRuntimeVersion][google.cloud.tpu.v2alpha1.Tpu.GetRuntimeVersion].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest} */ -public final class GetRuntimeVersionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetRuntimeVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest) GetRuntimeVersionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetRuntimeVersionRequest.newBuilder() to construct. private GetRuntimeVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetRuntimeVersionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetRuntimeVersionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetRuntimeVersionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetRuntimeVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetRuntimeVersionRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetRuntimeVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest.class, com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest.class, + com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest other = (com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest) obj; + com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest other = + (com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,129 +185,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest 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.tpu.v2alpha1.GetRuntimeVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [GetRuntimeVersion][google.cloud.tpu.v2alpha1.Tpu.GetRuntimeVersion].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest) com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetRuntimeVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetRuntimeVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetRuntimeVersionRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetRuntimeVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest.class, com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest.class, + com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +324,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GetRuntimeVersionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GetRuntimeVersionRequest_descriptor; } @java.lang.Override @@ -312,7 +345,8 @@ public com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest buildPartial() { - com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest result = new com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest(this); + com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest result = + new com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +356,39 @@ public com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.GetRuntimeVersionRequest) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest) other); } else { super.mergeFrom(other); return this; @@ -361,7 +396,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest other) { - if (other == com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -392,17 +428,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +453,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -435,20 +477,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -456,61 +501,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +578,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest) private static final com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest(); } @@ -534,27 +592,27 @@ public static com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRuntimeVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRuntimeVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +627,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetRuntimeVersionRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetRuntimeVersionRequestOrBuilder.java new file mode 100644 index 000000000000..4a05c691b07e --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetRuntimeVersionRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +package com.google.cloud.tpu.v2alpha1; + +public interface GetRuntimeVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributes.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributes.java similarity index 69% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributes.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributes.java index 6d707c91bd12..48d10eaa053e 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributes.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributes.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * A guest attributes.
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GuestAttributes} */ -public final class GuestAttributes extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GuestAttributes extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.GuestAttributes) GuestAttributesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GuestAttributes.newBuilder() to construct. private GuestAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GuestAttributes() { queryPath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GuestAttributes(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GuestAttributes_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GuestAttributes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GuestAttributes_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GuestAttributes_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GuestAttributes.class, com.google.cloud.tpu.v2alpha1.GuestAttributes.Builder.class); + com.google.cloud.tpu.v2alpha1.GuestAttributes.class, + com.google.cloud.tpu.v2alpha1.GuestAttributes.Builder.class); } public static final int QUERY_PATH_FIELD_NUMBER = 1; private volatile java.lang.Object queryPath_; /** + * + * *
    * The path to be queried. This can be the default namespace ('/') or a
    * nested namespace ('/\<namespace\>/') or a specified key
@@ -58,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string query_path = 1; + * * @return The queryPath. */ @java.lang.Override @@ -66,14 +88,15 @@ public java.lang.String getQueryPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryPath_ = s; return s; } } /** + * + * *
    * The path to be queried. This can be the default namespace ('/') or a
    * nested namespace ('/\<namespace\>/') or a specified key
@@ -81,16 +104,15 @@ public java.lang.String getQueryPath() {
    * 
* * string query_path = 1; + * * @return The bytes for queryPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryPathBytes() { + public com.google.protobuf.ByteString getQueryPathBytes() { java.lang.Object ref = queryPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queryPath_ = b; return b; } else { @@ -101,11 +123,14 @@ public java.lang.String getQueryPath() { public static final int QUERY_VALUE_FIELD_NUMBER = 2; private com.google.cloud.tpu.v2alpha1.GuestAttributesValue queryValue_; /** + * + * *
    * The value of the requested queried path.
    * 
* * .google.cloud.tpu.v2alpha1.GuestAttributesValue query_value = 2; + * * @return Whether the queryValue field is set. */ @java.lang.Override @@ -113,18 +138,25 @@ public boolean hasQueryValue() { return queryValue_ != null; } /** + * + * *
    * The value of the requested queried path.
    * 
* * .google.cloud.tpu.v2alpha1.GuestAttributesValue query_value = 2; + * * @return The queryValue. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.GuestAttributesValue getQueryValue() { - return queryValue_ == null ? com.google.cloud.tpu.v2alpha1.GuestAttributesValue.getDefaultInstance() : queryValue_; + return queryValue_ == null + ? com.google.cloud.tpu.v2alpha1.GuestAttributesValue.getDefaultInstance() + : queryValue_; } /** + * + * *
    * The value of the requested queried path.
    * 
@@ -137,6 +169,7 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributesValueOrBuilder getQueryValue } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryPath_); } @@ -169,8 +201,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queryPath_); } if (queryValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getQueryValue()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQueryValue()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -180,19 +211,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.GuestAttributes)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.GuestAttributes other = (com.google.cloud.tpu.v2alpha1.GuestAttributes) obj; + com.google.cloud.tpu.v2alpha1.GuestAttributes other = + (com.google.cloud.tpu.v2alpha1.GuestAttributes) obj; - if (!getQueryPath() - .equals(other.getQueryPath())) return false; + if (!getQueryPath().equals(other.getQueryPath())) return false; if (hasQueryValue() != other.hasQueryValue()) return false; if (hasQueryValue()) { - if (!getQueryValue() - .equals(other.getQueryValue())) return false; + if (!getQueryValue().equals(other.getQueryValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -216,130 +246,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.GuestAttributes parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.GuestAttributes parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributes 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.tpu.v2alpha1.GuestAttributes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributes parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributes parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GuestAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GuestAttributes parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributes parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.GuestAttributes prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A guest attributes.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GuestAttributes} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.GuestAttributes) com.google.cloud.tpu.v2alpha1.GuestAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GuestAttributes_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GuestAttributes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GuestAttributes_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GuestAttributes_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GuestAttributes.class, com.google.cloud.tpu.v2alpha1.GuestAttributes.Builder.class); + com.google.cloud.tpu.v2alpha1.GuestAttributes.class, + com.google.cloud.tpu.v2alpha1.GuestAttributes.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.GuestAttributes.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +391,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GuestAttributes_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GuestAttributes_descriptor; } @java.lang.Override @@ -376,7 +412,8 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributes build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.GuestAttributes buildPartial() { - com.google.cloud.tpu.v2alpha1.GuestAttributes result = new com.google.cloud.tpu.v2alpha1.GuestAttributes(this); + com.google.cloud.tpu.v2alpha1.GuestAttributes result = + new com.google.cloud.tpu.v2alpha1.GuestAttributes(this); result.queryPath_ = queryPath_; if (queryValueBuilder_ == null) { result.queryValue_ = queryValue_; @@ -391,38 +428,39 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributes buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.GuestAttributes) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.GuestAttributes)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.GuestAttributes) other); } else { super.mergeFrom(other); return this; @@ -464,24 +502,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - queryPath_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getQueryValueFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + queryPath_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getQueryValueFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,6 +533,8 @@ public Builder mergeFrom( private java.lang.Object queryPath_ = ""; /** + * + * *
      * The path to be queried. This can be the default namespace ('/') or a
      * nested namespace ('/\<namespace\>/') or a specified key
@@ -501,13 +542,13 @@ public Builder mergeFrom(
      * 
* * string query_path = 1; + * * @return The queryPath. */ public java.lang.String getQueryPath() { java.lang.Object ref = queryPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryPath_ = s; return s; @@ -516,6 +557,8 @@ public java.lang.String getQueryPath() { } } /** + * + * *
      * The path to be queried. This can be the default namespace ('/') or a
      * nested namespace ('/\<namespace\>/') or a specified key
@@ -523,15 +566,14 @@ public java.lang.String getQueryPath() {
      * 
* * string query_path = 1; + * * @return The bytes for queryPath. */ - public com.google.protobuf.ByteString - getQueryPathBytes() { + public com.google.protobuf.ByteString getQueryPathBytes() { java.lang.Object ref = queryPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queryPath_ = b; return b; } else { @@ -539,6 +581,8 @@ public java.lang.String getQueryPath() { } } /** + * + * *
      * The path to be queried. This can be the default namespace ('/') or a
      * nested namespace ('/\<namespace\>/') or a specified key
@@ -546,20 +590,22 @@ public java.lang.String getQueryPath() {
      * 
* * string query_path = 1; + * * @param value The queryPath to set. * @return This builder for chaining. */ - public Builder setQueryPath( - java.lang.String value) { + public Builder setQueryPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + queryPath_ = value; onChanged(); return this; } /** + * + * *
      * The path to be queried. This can be the default namespace ('/') or a
      * nested namespace ('/\<namespace\>/') or a specified key
@@ -567,15 +613,18 @@ public Builder setQueryPath(
      * 
* * string query_path = 1; + * * @return This builder for chaining. */ public Builder clearQueryPath() { - + queryPath_ = getDefaultInstance().getQueryPath(); onChanged(); return this; } /** + * + * *
      * The path to be queried. This can be the default namespace ('/') or a
      * nested namespace ('/\<namespace\>/') or a specified key
@@ -583,16 +632,16 @@ public Builder clearQueryPath() {
      * 
* * string query_path = 1; + * * @param value The bytes for queryPath to set. * @return This builder for chaining. */ - public Builder setQueryPathBytes( - com.google.protobuf.ByteString value) { + public Builder setQueryPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryPath_ = value; onChanged(); return this; @@ -600,34 +649,47 @@ public Builder setQueryPathBytes( private com.google.cloud.tpu.v2alpha1.GuestAttributesValue queryValue_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.GuestAttributesValue, com.google.cloud.tpu.v2alpha1.GuestAttributesValue.Builder, com.google.cloud.tpu.v2alpha1.GuestAttributesValueOrBuilder> queryValueBuilder_; + com.google.cloud.tpu.v2alpha1.GuestAttributesValue, + com.google.cloud.tpu.v2alpha1.GuestAttributesValue.Builder, + com.google.cloud.tpu.v2alpha1.GuestAttributesValueOrBuilder> + queryValueBuilder_; /** + * + * *
      * The value of the requested queried path.
      * 
* * .google.cloud.tpu.v2alpha1.GuestAttributesValue query_value = 2; + * * @return Whether the queryValue field is set. */ public boolean hasQueryValue() { return queryValueBuilder_ != null || queryValue_ != null; } /** + * + * *
      * The value of the requested queried path.
      * 
* * .google.cloud.tpu.v2alpha1.GuestAttributesValue query_value = 2; + * * @return The queryValue. */ public com.google.cloud.tpu.v2alpha1.GuestAttributesValue getQueryValue() { if (queryValueBuilder_ == null) { - return queryValue_ == null ? com.google.cloud.tpu.v2alpha1.GuestAttributesValue.getDefaultInstance() : queryValue_; + return queryValue_ == null + ? com.google.cloud.tpu.v2alpha1.GuestAttributesValue.getDefaultInstance() + : queryValue_; } else { return queryValueBuilder_.getMessage(); } } /** + * + * *
      * The value of the requested queried path.
      * 
@@ -648,6 +710,8 @@ public Builder setQueryValue(com.google.cloud.tpu.v2alpha1.GuestAttributesValue return this; } /** + * + * *
      * The value of the requested queried path.
      * 
@@ -666,6 +730,8 @@ public Builder setQueryValue( return this; } /** + * + * *
      * The value of the requested queried path.
      * 
@@ -676,7 +742,9 @@ public Builder mergeQueryValue(com.google.cloud.tpu.v2alpha1.GuestAttributesValu if (queryValueBuilder_ == null) { if (queryValue_ != null) { queryValue_ = - com.google.cloud.tpu.v2alpha1.GuestAttributesValue.newBuilder(queryValue_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v2alpha1.GuestAttributesValue.newBuilder(queryValue_) + .mergeFrom(value) + .buildPartial(); } else { queryValue_ = value; } @@ -688,6 +756,8 @@ public Builder mergeQueryValue(com.google.cloud.tpu.v2alpha1.GuestAttributesValu return this; } /** + * + * *
      * The value of the requested queried path.
      * 
@@ -706,6 +776,8 @@ public Builder clearQueryValue() { return this; } /** + * + * *
      * The value of the requested queried path.
      * 
@@ -713,11 +785,13 @@ public Builder clearQueryValue() { * .google.cloud.tpu.v2alpha1.GuestAttributesValue query_value = 2; */ public com.google.cloud.tpu.v2alpha1.GuestAttributesValue.Builder getQueryValueBuilder() { - + onChanged(); return getQueryValueFieldBuilder().getBuilder(); } /** + * + * *
      * The value of the requested queried path.
      * 
@@ -728,11 +802,14 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributesValueOrBuilder getQueryValue if (queryValueBuilder_ != null) { return queryValueBuilder_.getMessageOrBuilder(); } else { - return queryValue_ == null ? - com.google.cloud.tpu.v2alpha1.GuestAttributesValue.getDefaultInstance() : queryValue_; + return queryValue_ == null + ? com.google.cloud.tpu.v2alpha1.GuestAttributesValue.getDefaultInstance() + : queryValue_; } } /** + * + * *
      * The value of the requested queried path.
      * 
@@ -740,21 +817,24 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributesValueOrBuilder getQueryValue * .google.cloud.tpu.v2alpha1.GuestAttributesValue query_value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.GuestAttributesValue, com.google.cloud.tpu.v2alpha1.GuestAttributesValue.Builder, com.google.cloud.tpu.v2alpha1.GuestAttributesValueOrBuilder> + com.google.cloud.tpu.v2alpha1.GuestAttributesValue, + com.google.cloud.tpu.v2alpha1.GuestAttributesValue.Builder, + com.google.cloud.tpu.v2alpha1.GuestAttributesValueOrBuilder> getQueryValueFieldBuilder() { if (queryValueBuilder_ == null) { - queryValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.GuestAttributesValue, com.google.cloud.tpu.v2alpha1.GuestAttributesValue.Builder, com.google.cloud.tpu.v2alpha1.GuestAttributesValueOrBuilder>( - getQueryValue(), - getParentForChildren(), - isClean()); + queryValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.GuestAttributesValue, + com.google.cloud.tpu.v2alpha1.GuestAttributesValue.Builder, + com.google.cloud.tpu.v2alpha1.GuestAttributesValueOrBuilder>( + getQueryValue(), getParentForChildren(), isClean()); queryValue_ = null; } return queryValueBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -764,12 +844,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.GuestAttributes) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.GuestAttributes) private static final com.google.cloud.tpu.v2alpha1.GuestAttributes DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.GuestAttributes(); } @@ -778,27 +858,27 @@ public static com.google.cloud.tpu.v2alpha1.GuestAttributes getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GuestAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GuestAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -813,6 +893,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.GuestAttributes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesEntry.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesEntry.java similarity index 67% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesEntry.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesEntry.java index eb15d11e005a..f8c3d3fce975 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesEntry.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesEntry.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * A guest attributes namespace/key/value entry.
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GuestAttributesEntry} */ -public final class GuestAttributesEntry extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GuestAttributesEntry extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.GuestAttributesEntry) GuestAttributesEntryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GuestAttributesEntry.newBuilder() to construct. private GuestAttributesEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GuestAttributesEntry() { namespace_ = ""; key_ = ""; @@ -27,37 +45,41 @@ private GuestAttributesEntry() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GuestAttributesEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GuestAttributesEntry_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GuestAttributesEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GuestAttributesEntry_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GuestAttributesEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.class, com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.Builder.class); + com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.class, + com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.Builder.class); } public static final int NAMESPACE_FIELD_NUMBER = 1; private volatile java.lang.Object namespace_; /** + * + * *
    * Namespace for the guest attribute entry.
    * 
* * string namespace = 1; + * * @return The namespace. */ @java.lang.Override @@ -66,29 +88,29 @@ public java.lang.String getNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } } /** + * + * *
    * Namespace for the guest attribute entry.
    * 
* * string namespace = 1; + * * @return The bytes for namespace. */ @java.lang.Override - public com.google.protobuf.ByteString - getNamespaceBytes() { + public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { @@ -99,11 +121,14 @@ public java.lang.String getNamespace() { public static final int KEY_FIELD_NUMBER = 2; private volatile java.lang.Object key_; /** + * + * *
    * Key for the guest attribute entry.
    * 
* * string key = 2; + * * @return The key. */ @java.lang.Override @@ -112,29 +137,29 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** + * + * *
    * Key for the guest attribute entry.
    * 
* * string key = 2; + * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -145,11 +170,14 @@ public java.lang.String getKey() { public static final int VALUE_FIELD_NUMBER = 3; private volatile java.lang.Object value_; /** + * + * *
    * Value for the guest attribute entry.
    * 
* * string value = 3; + * * @return The value. */ @java.lang.Override @@ -158,29 +186,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
    * Value for the guest attribute entry.
    * 
* * string value = 3; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -189,6 +217,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +229,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); } @@ -237,19 +265,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.GuestAttributesEntry)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.GuestAttributesEntry other = (com.google.cloud.tpu.v2alpha1.GuestAttributesEntry) obj; + com.google.cloud.tpu.v2alpha1.GuestAttributesEntry other = + (com.google.cloud.tpu.v2alpha1.GuestAttributesEntry) obj; - if (!getNamespace() - .equals(other.getNamespace())) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; + if (!getNamespace().equals(other.getNamespace())) return false; + if (!getKey().equals(other.getKey())) return false; + if (!getValue().equals(other.getValue())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,129 +299,135 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.GuestAttributesEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributesEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributesEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributesEntry 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.tpu.v2alpha1.GuestAttributesEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributesEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GuestAttributesEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GuestAttributesEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributesEntry parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GuestAttributesEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GuestAttributesEntry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributesEntry parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributesEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributesEntry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.GuestAttributesEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A guest attributes namespace/key/value entry.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GuestAttributesEntry} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.GuestAttributesEntry) com.google.cloud.tpu.v2alpha1.GuestAttributesEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GuestAttributesEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GuestAttributesEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GuestAttributesEntry_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GuestAttributesEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.class, com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.Builder.class); + com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.class, + com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +441,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GuestAttributesEntry_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GuestAttributesEntry_descriptor; } @java.lang.Override @@ -430,7 +462,8 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributesEntry build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.GuestAttributesEntry buildPartial() { - com.google.cloud.tpu.v2alpha1.GuestAttributesEntry result = new com.google.cloud.tpu.v2alpha1.GuestAttributesEntry(this); + com.google.cloud.tpu.v2alpha1.GuestAttributesEntry result = + new com.google.cloud.tpu.v2alpha1.GuestAttributesEntry(this); result.namespace_ = namespace_; result.key_ = key_; result.value_ = value_; @@ -442,38 +475,39 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributesEntry buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.GuestAttributesEntry) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.GuestAttributesEntry)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.GuestAttributesEntry) other); } else { super.mergeFrom(other); return this; @@ -481,7 +515,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.GuestAttributesEntry other) { - if (other == com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.getDefaultInstance()) + return this; if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; onChanged(); @@ -520,27 +555,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - namespace_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - key_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - value_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + namespace_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + key_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + value_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -553,18 +592,20 @@ public Builder mergeFrom( private java.lang.Object namespace_ = ""; /** + * + * *
      * Namespace for the guest attribute entry.
      * 
* * string namespace = 1; + * * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; @@ -573,20 +614,21 @@ public java.lang.String getNamespace() { } } /** + * + * *
      * Namespace for the guest attribute entry.
      * 
* * string namespace = 1; + * * @return The bytes for namespace. */ - public com.google.protobuf.ByteString - getNamespaceBytes() { + public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { @@ -594,54 +636,61 @@ public java.lang.String getNamespace() { } } /** + * + * *
      * Namespace for the guest attribute entry.
      * 
* * string namespace = 1; + * * @param value The namespace to set. * @return This builder for chaining. */ - public Builder setNamespace( - java.lang.String value) { + public Builder setNamespace(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + namespace_ = value; onChanged(); return this; } /** + * + * *
      * Namespace for the guest attribute entry.
      * 
* * string namespace = 1; + * * @return This builder for chaining. */ public Builder clearNamespace() { - + namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** + * + * *
      * Namespace for the guest attribute entry.
      * 
* * string namespace = 1; + * * @param value The bytes for namespace to set. * @return This builder for chaining. */ - public Builder setNamespaceBytes( - com.google.protobuf.ByteString value) { + public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namespace_ = value; onChanged(); return this; @@ -649,18 +698,20 @@ public Builder setNamespaceBytes( private java.lang.Object key_ = ""; /** + * + * *
      * Key for the guest attribute entry.
      * 
* * string key = 2; + * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -669,20 +720,21 @@ public java.lang.String getKey() { } } /** + * + * *
      * Key for the guest attribute entry.
      * 
* * string key = 2; + * * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -690,54 +742,61 @@ public java.lang.String getKey() { } } /** + * + * *
      * Key for the guest attribute entry.
      * 
* * string key = 2; + * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey( - java.lang.String value) { + public Builder setKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** + * + * *
      * Key for the guest attribute entry.
      * 
* * string key = 2; + * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** + * + * *
      * Key for the guest attribute entry.
      * 
* * string key = 2; + * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; @@ -745,18 +804,20 @@ public Builder setKeyBytes( private java.lang.Object value_ = ""; /** + * + * *
      * Value for the guest attribute entry.
      * 
* * string value = 3; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -765,20 +826,21 @@ public java.lang.String getValue() { } } /** + * + * *
      * Value for the guest attribute entry.
      * 
* * string value = 3; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -786,61 +848,68 @@ public java.lang.String getValue() { } } /** + * + * *
      * Value for the guest attribute entry.
      * 
* * string value = 3; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
      * Value for the guest attribute entry.
      * 
* * string value = 3; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
      * Value for the guest attribute entry.
      * 
* * string value = 3; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -850,12 +919,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.GuestAttributesEntry) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.GuestAttributesEntry) private static final com.google.cloud.tpu.v2alpha1.GuestAttributesEntry DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.GuestAttributesEntry(); } @@ -864,27 +933,27 @@ public static com.google.cloud.tpu.v2alpha1.GuestAttributesEntry getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GuestAttributesEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GuestAttributesEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -899,6 +968,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.GuestAttributesEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesEntryOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesEntryOrBuilder.java similarity index 58% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesEntryOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesEntryOrBuilder.java index 415dc3dc7b86..8860e13076f0 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesEntryOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesEntryOrBuilder.java @@ -1,69 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface GuestAttributesEntryOrBuilder extends +public interface GuestAttributesEntryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.GuestAttributesEntry) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Namespace for the guest attribute entry.
    * 
* * string namespace = 1; + * * @return The namespace. */ java.lang.String getNamespace(); /** + * + * *
    * Namespace for the guest attribute entry.
    * 
* * string namespace = 1; + * * @return The bytes for namespace. */ - com.google.protobuf.ByteString - getNamespaceBytes(); + com.google.protobuf.ByteString getNamespaceBytes(); /** + * + * *
    * Key for the guest attribute entry.
    * 
* * string key = 2; + * * @return The key. */ java.lang.String getKey(); /** + * + * *
    * Key for the guest attribute entry.
    * 
* * string key = 2; + * * @return The bytes for key. */ - com.google.protobuf.ByteString - getKeyBytes(); + com.google.protobuf.ByteString getKeyBytes(); /** + * + * *
    * Value for the guest attribute entry.
    * 
* * string value = 3; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
    * Value for the guest attribute entry.
    * 
* * string value = 3; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesOrBuilder.java similarity index 69% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesOrBuilder.java index e233695fde73..62180b5195d1 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface GuestAttributesOrBuilder extends +public interface GuestAttributesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.GuestAttributes) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The path to be queried. This can be the default namespace ('/') or a
    * nested namespace ('/\<namespace\>/') or a specified key
@@ -15,10 +33,13 @@ public interface GuestAttributesOrBuilder extends
    * 
* * string query_path = 1; + * * @return The queryPath. */ java.lang.String getQueryPath(); /** + * + * *
    * The path to be queried. This can be the default namespace ('/') or a
    * nested namespace ('/\<namespace\>/') or a specified key
@@ -26,30 +47,38 @@ public interface GuestAttributesOrBuilder extends
    * 
* * string query_path = 1; + * * @return The bytes for queryPath. */ - com.google.protobuf.ByteString - getQueryPathBytes(); + com.google.protobuf.ByteString getQueryPathBytes(); /** + * + * *
    * The value of the requested queried path.
    * 
* * .google.cloud.tpu.v2alpha1.GuestAttributesValue query_value = 2; + * * @return Whether the queryValue field is set. */ boolean hasQueryValue(); /** + * + * *
    * The value of the requested queried path.
    * 
* * .google.cloud.tpu.v2alpha1.GuestAttributesValue query_value = 2; + * * @return The queryValue. */ com.google.cloud.tpu.v2alpha1.GuestAttributesValue getQueryValue(); /** + * + * *
    * The value of the requested queried path.
    * 
diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesValue.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesValue.java similarity index 70% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesValue.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesValue.java index c31c19d9f9d1..3c40ae78da87 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesValue.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesValue.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Array of guest attribute namespace/key/value tuples.
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GuestAttributesValue} */ -public final class GuestAttributesValue extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GuestAttributesValue extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.GuestAttributesValue) GuestAttributesValueOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GuestAttributesValue.newBuilder() to construct. private GuestAttributesValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GuestAttributesValue() { items_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GuestAttributesValue(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GuestAttributesValue_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GuestAttributesValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GuestAttributesValue_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GuestAttributesValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GuestAttributesValue.class, com.google.cloud.tpu.v2alpha1.GuestAttributesValue.Builder.class); + com.google.cloud.tpu.v2alpha1.GuestAttributesValue.class, + com.google.cloud.tpu.v2alpha1.GuestAttributesValue.Builder.class); } public static final int ITEMS_FIELD_NUMBER = 1; private java.util.List items_; /** + * + * *
    * The list of guest attributes entries.
    * 
@@ -62,6 +83,8 @@ public java.util.List getIte return items_; } /** + * + * *
    * The list of guest attributes entries.
    * 
@@ -69,11 +92,13 @@ public java.util.List getIte * repeated .google.cloud.tpu.v2alpha1.GuestAttributesEntry items = 1; */ @java.lang.Override - public java.util.List + public java.util.List getItemsOrBuilderList() { return items_; } /** + * + * *
    * The list of guest attributes entries.
    * 
@@ -85,6 +110,8 @@ public int getItemsCount() { return items_.size(); } /** + * + * *
    * The list of guest attributes entries.
    * 
@@ -96,6 +123,8 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributesEntry getItems(int index) { return items_.get(index); } /** + * + * *
    * The list of guest attributes entries.
    * 
@@ -103,12 +132,12 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributesEntry getItems(int index) { * repeated .google.cloud.tpu.v2alpha1.GuestAttributesEntry items = 1; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.GuestAttributesEntryOrBuilder getItemsOrBuilder( - int index) { + public com.google.cloud.tpu.v2alpha1.GuestAttributesEntryOrBuilder getItemsOrBuilder(int index) { return items_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +149,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < items_.size(); i++) { output.writeMessage(1, items_.get(i)); } @@ -135,8 +163,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, items_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, items_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -146,15 +173,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.GuestAttributesValue)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.GuestAttributesValue other = (com.google.cloud.tpu.v2alpha1.GuestAttributesValue) obj; + com.google.cloud.tpu.v2alpha1.GuestAttributesValue other = + (com.google.cloud.tpu.v2alpha1.GuestAttributesValue) obj; - if (!getItemsList() - .equals(other.getItemsList())) return false; + if (!getItemsList().equals(other.getItemsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -176,129 +203,135 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.GuestAttributesValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributesValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributesValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributesValue 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.tpu.v2alpha1.GuestAttributesValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributesValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GuestAttributesValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GuestAttributesValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributesValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.GuestAttributesValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.GuestAttributesValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributesValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributesValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.GuestAttributesValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.GuestAttributesValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Array of guest attribute namespace/key/value tuples.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.GuestAttributesValue} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.GuestAttributesValue) com.google.cloud.tpu.v2alpha1.GuestAttributesValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GuestAttributesValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GuestAttributesValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GuestAttributesValue_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GuestAttributesValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.GuestAttributesValue.class, com.google.cloud.tpu.v2alpha1.GuestAttributesValue.Builder.class); + com.google.cloud.tpu.v2alpha1.GuestAttributesValue.class, + com.google.cloud.tpu.v2alpha1.GuestAttributesValue.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.GuestAttributesValue.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -313,9 +346,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_GuestAttributesValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_GuestAttributesValue_descriptor; } @java.lang.Override @@ -334,7 +367,8 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributesValue build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.GuestAttributesValue buildPartial() { - com.google.cloud.tpu.v2alpha1.GuestAttributesValue result = new com.google.cloud.tpu.v2alpha1.GuestAttributesValue(this); + com.google.cloud.tpu.v2alpha1.GuestAttributesValue result = + new com.google.cloud.tpu.v2alpha1.GuestAttributesValue(this); int from_bitField0_ = bitField0_; if (itemsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -353,38 +387,39 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributesValue buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.GuestAttributesValue) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.GuestAttributesValue)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.GuestAttributesValue) other); } else { super.mergeFrom(other); return this; @@ -392,7 +427,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.GuestAttributesValue other) { - if (other == com.google.cloud.tpu.v2alpha1.GuestAttributesValue.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.GuestAttributesValue.getDefaultInstance()) + return this; if (itemsBuilder_ == null) { if (!other.items_.isEmpty()) { if (items_.isEmpty()) { @@ -411,9 +447,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.GuestAttributesValue othe itemsBuilder_ = null; items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000001); - itemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemsFieldBuilder() : null; + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getItemsFieldBuilder() + : null; } else { itemsBuilder_.addAllMessages(other.items_); } @@ -445,25 +482,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.tpu.v2alpha1.GuestAttributesEntry m = - input.readMessage( - com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.parser(), - extensionRegistry); - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(m); - } else { - itemsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.tpu.v2alpha1.GuestAttributesEntry m = + input.readMessage( + com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.parser(), + extensionRegistry); + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(m); + } else { + itemsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -473,21 +512,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List items_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(items_); + items_ = + new java.util.ArrayList(items_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.GuestAttributesEntry, com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.Builder, com.google.cloud.tpu.v2alpha1.GuestAttributesEntryOrBuilder> itemsBuilder_; + com.google.cloud.tpu.v2alpha1.GuestAttributesEntry, + com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.Builder, + com.google.cloud.tpu.v2alpha1.GuestAttributesEntryOrBuilder> + itemsBuilder_; /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -502,6 +549,8 @@ public java.util.List getIte } } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -516,6 +565,8 @@ public int getItemsCount() { } } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -530,14 +581,15 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributesEntry getItems(int index) { } } /** + * + * *
      * The list of guest attributes entries.
      * 
* * repeated .google.cloud.tpu.v2alpha1.GuestAttributesEntry items = 1; */ - public Builder setItems( - int index, com.google.cloud.tpu.v2alpha1.GuestAttributesEntry value) { + public Builder setItems(int index, com.google.cloud.tpu.v2alpha1.GuestAttributesEntry value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -551,6 +603,8 @@ public Builder setItems( return this; } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -569,6 +623,8 @@ public Builder setItems( return this; } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -589,14 +645,15 @@ public Builder addItems(com.google.cloud.tpu.v2alpha1.GuestAttributesEntry value return this; } /** + * + * *
      * The list of guest attributes entries.
      * 
* * repeated .google.cloud.tpu.v2alpha1.GuestAttributesEntry items = 1; */ - public Builder addItems( - int index, com.google.cloud.tpu.v2alpha1.GuestAttributesEntry value) { + public Builder addItems(int index, com.google.cloud.tpu.v2alpha1.GuestAttributesEntry value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -610,6 +667,8 @@ public Builder addItems( return this; } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -628,6 +687,8 @@ public Builder addItems( return this; } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -646,6 +707,8 @@ public Builder addItems( return this; } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -656,8 +719,7 @@ public Builder addAllItems( java.lang.Iterable values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, items_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); @@ -665,6 +727,8 @@ public Builder addAllItems( return this; } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -682,6 +746,8 @@ public Builder clearItems() { return this; } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -699,17 +765,20 @@ public Builder removeItems(int index) { return this; } /** + * + * *
      * The list of guest attributes entries.
      * 
* * repeated .google.cloud.tpu.v2alpha1.GuestAttributesEntry items = 1; */ - public com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.Builder getItemsBuilder( - int index) { + public com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -719,19 +788,22 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.Builder getItemsBuilde public com.google.cloud.tpu.v2alpha1.GuestAttributesEntryOrBuilder getItemsOrBuilder( int index) { if (itemsBuilder_ == null) { - return items_.get(index); } else { + return items_.get(index); + } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of guest attributes entries.
      * 
* * repeated .google.cloud.tpu.v2alpha1.GuestAttributesEntry items = 1; */ - public java.util.List - getItemsOrBuilderList() { + public java.util.List + getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { @@ -739,6 +811,8 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributesEntryOrBuilder getItemsOrBui } } /** + * + * *
      * The list of guest attributes entries.
      * 
@@ -746,49 +820,56 @@ public com.google.cloud.tpu.v2alpha1.GuestAttributesEntryOrBuilder getItemsOrBui * repeated .google.cloud.tpu.v2alpha1.GuestAttributesEntry items = 1; */ public com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.getDefaultInstance()); + return getItemsFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.getDefaultInstance()); } /** + * + * *
      * The list of guest attributes entries.
      * 
* * repeated .google.cloud.tpu.v2alpha1.GuestAttributesEntry items = 1; */ - public com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.Builder addItemsBuilder( - int index) { - return getItemsFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.getDefaultInstance()); + public com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.Builder addItemsBuilder(int index) { + return getItemsFieldBuilder() + .addBuilder( + index, com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.getDefaultInstance()); } /** + * + * *
      * The list of guest attributes entries.
      * 
* * repeated .google.cloud.tpu.v2alpha1.GuestAttributesEntry items = 1; */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.GuestAttributesEntry, com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.Builder, com.google.cloud.tpu.v2alpha1.GuestAttributesEntryOrBuilder> + com.google.cloud.tpu.v2alpha1.GuestAttributesEntry, + com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.Builder, + com.google.cloud.tpu.v2alpha1.GuestAttributesEntryOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.GuestAttributesEntry, com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.Builder, com.google.cloud.tpu.v2alpha1.GuestAttributesEntryOrBuilder>( - items_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + itemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.GuestAttributesEntry, + com.google.cloud.tpu.v2alpha1.GuestAttributesEntry.Builder, + com.google.cloud.tpu.v2alpha1.GuestAttributesEntryOrBuilder>( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -798,12 +879,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.GuestAttributesValue) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.GuestAttributesValue) private static final com.google.cloud.tpu.v2alpha1.GuestAttributesValue DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.GuestAttributesValue(); } @@ -812,27 +893,27 @@ public static com.google.cloud.tpu.v2alpha1.GuestAttributesValue getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GuestAttributesValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GuestAttributesValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -847,6 +928,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.GuestAttributesValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesValueOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesValueOrBuilder.java similarity index 65% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesValueOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesValueOrBuilder.java index d7a9b5abe4f8..4a7326237d67 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesValueOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GuestAttributesValueOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface GuestAttributesValueOrBuilder extends +public interface GuestAttributesValueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.GuestAttributesValue) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of guest attributes entries.
    * 
* * repeated .google.cloud.tpu.v2alpha1.GuestAttributesEntry items = 1; */ - java.util.List - getItemsList(); + java.util.List getItemsList(); /** + * + * *
    * The list of guest attributes entries.
    * 
@@ -25,6 +44,8 @@ public interface GuestAttributesValueOrBuilder extends */ com.google.cloud.tpu.v2alpha1.GuestAttributesEntry getItems(int index); /** + * + * *
    * The list of guest attributes entries.
    * 
@@ -33,21 +54,24 @@ public interface GuestAttributesValueOrBuilder extends */ int getItemsCount(); /** + * + * *
    * The list of guest attributes entries.
    * 
* * repeated .google.cloud.tpu.v2alpha1.GuestAttributesEntry items = 1; */ - java.util.List + java.util.List getItemsOrBuilderList(); /** + * + * *
    * The list of guest attributes entries.
    * 
* * repeated .google.cloud.tpu.v2alpha1.GuestAttributesEntry items = 1; */ - com.google.cloud.tpu.v2alpha1.GuestAttributesEntryOrBuilder getItemsOrBuilder( - int index); + com.google.cloud.tpu.v2alpha1.GuestAttributesEntryOrBuilder getItemsOrBuilder(int index); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesRequest.java similarity index 66% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesRequest.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesRequest.java index 924722274296..84b07189b463 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesRequest.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Request for [ListAcceleratorTypes][google.cloud.tpu.v2alpha1.Tpu.ListAcceleratorTypes].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest} */ -public final class ListAcceleratorTypesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAcceleratorTypesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest) ListAcceleratorTypesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAcceleratorTypesRequest.newBuilder() to construct. private ListAcceleratorTypesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAcceleratorTypesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,37 +46,43 @@ private ListAcceleratorTypesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAcceleratorTypesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest.class, com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest.class, + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,29 +91,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -100,11 +126,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -115,11 +144,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -128,29 +160,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -161,11 +193,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ @java.lang.Override @@ -174,29 +209,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -207,11 +242,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 6; private volatile java.lang.Object orderBy_; /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The orderBy. */ @java.lang.Override @@ -220,29 +258,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -251,6 +289,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,8 +301,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -292,8 +330,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -312,23 +349,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest other = (com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest other = + (com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -356,129 +389,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest 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.tpu.v2alpha1.ListAcceleratorTypesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [ListAcceleratorTypes][google.cloud.tpu.v2alpha1.Tpu.ListAcceleratorTypes].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest) com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest.class, com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest.class, + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +536,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesRequest_descriptor; } @java.lang.Override @@ -517,7 +557,8 @@ public com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest buildPartial() { - com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest result = new com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest(this); + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest result = + new com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -531,38 +572,39 @@ public com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.ListAcceleratorTypesRequest) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest) other); } else { super.mergeFrom(other); return this; @@ -570,7 +612,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest other) { - if (other == com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -616,37 +659,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 42: { - filter_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 42: + { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - case 50: { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 42 + case 50: + { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,18 +708,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -679,20 +732,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -700,66 +756,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -767,30 +839,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -798,18 +876,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -818,20 +898,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -839,54 +920,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -894,18 +982,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -914,20 +1004,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -935,54 +1026,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -990,18 +1088,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1010,20 +1110,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1031,61 +1132,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1095,12 +1203,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest) private static final com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest(); } @@ -1109,27 +1217,27 @@ public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAcceleratorTypesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAcceleratorTypesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,6 +1252,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesRequestOrBuilder.java index 2c6486a70c5f..491c119887f9 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface ListAcceleratorTypesRequestOrBuilder extends +public interface ListAcceleratorTypesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesResponse.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesResponse.java similarity index 73% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesResponse.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesResponse.java index 52da602aaf9b..38bbc1facdf0 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesResponse.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesResponse.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Response for [ListAcceleratorTypes][google.cloud.tpu.v2alpha1.Tpu.ListAcceleratorTypes].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse} */ -public final class ListAcceleratorTypesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAcceleratorTypesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse) ListAcceleratorTypesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAcceleratorTypesResponse.newBuilder() to construct. private ListAcceleratorTypesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAcceleratorTypesResponse() { acceleratorTypes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +45,35 @@ private ListAcceleratorTypesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAcceleratorTypesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesResponse_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse.class, com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse.Builder.class); + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse.class, + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse.Builder.class); } public static final int ACCELERATOR_TYPES_FIELD_NUMBER = 1; private java.util.List acceleratorTypes_; /** + * + * *
    * The listed nodes.
    * 
@@ -64,6 +85,8 @@ public java.util.List getAccelera return acceleratorTypes_; } /** + * + * *
    * The listed nodes.
    * 
@@ -71,11 +94,13 @@ public java.util.List getAccelera * repeated .google.cloud.tpu.v2alpha1.AcceleratorType accelerator_types = 1; */ @java.lang.Override - public java.util.List + public java.util.List getAcceleratorTypesOrBuilderList() { return acceleratorTypes_; } /** + * + * *
    * The listed nodes.
    * 
@@ -87,6 +112,8 @@ public int getAcceleratorTypesCount() { return acceleratorTypes_.size(); } /** + * + * *
    * The listed nodes.
    * 
@@ -98,6 +125,8 @@ public com.google.cloud.tpu.v2alpha1.AcceleratorType getAcceleratorTypes(int ind return acceleratorTypes_.get(index); } /** + * + * *
    * The listed nodes.
    * 
@@ -113,11 +142,14 @@ public com.google.cloud.tpu.v2alpha1.AcceleratorTypeOrBuilder getAcceleratorType public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,29 +158,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -159,34 +191,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -194,20 +234,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < acceleratorTypes_.size(); i++) { output.writeMessage(1, acceleratorTypes_.get(i)); } @@ -240,8 +282,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < acceleratorTypes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, acceleratorTypes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, acceleratorTypes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -262,19 +303,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse other = (com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse) obj; + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse other = + (com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse) obj; - if (!getAcceleratorTypesList() - .equals(other.getAcceleratorTypesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getAcceleratorTypesList().equals(other.getAcceleratorTypesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -302,129 +341,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse 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.tpu.v2alpha1.ListAcceleratorTypesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [ListAcceleratorTypes][google.cloud.tpu.v2alpha1.Tpu.ListAcceleratorTypes].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse) com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesResponse_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse.class, com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse.Builder.class); + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse.class, + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesResponse_descriptor; } @java.lang.Override @@ -464,7 +510,8 @@ public com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse buildPartial() { - com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse result = new com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse(this); + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse result = + new com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse(this); int from_bitField0_ = bitField0_; if (acceleratorTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -489,38 +536,39 @@ public com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.ListAcceleratorTypesResponse) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse) other); } else { super.mergeFrom(other); return this; @@ -528,7 +576,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse other) { - if (other == com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse.getDefaultInstance()) + return this; if (acceleratorTypesBuilder_ == null) { if (!other.acceleratorTypes_.isEmpty()) { if (acceleratorTypes_.isEmpty()) { @@ -547,9 +596,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRespo acceleratorTypesBuilder_ = null; acceleratorTypes_ = other.acceleratorTypes_; bitField0_ = (bitField0_ & ~0x00000001); - acceleratorTypesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAcceleratorTypesFieldBuilder() : null; + acceleratorTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAcceleratorTypesFieldBuilder() + : null; } else { acceleratorTypesBuilder_.addAllMessages(other.acceleratorTypes_); } @@ -595,36 +645,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.tpu.v2alpha1.AcceleratorType m = - input.readMessage( - com.google.cloud.tpu.v2alpha1.AcceleratorType.parser(), - extensionRegistry); - if (acceleratorTypesBuilder_ == null) { - ensureAcceleratorTypesIsMutable(); - acceleratorTypes_.add(m); - } else { - acceleratorTypesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.tpu.v2alpha1.AcceleratorType m = + input.readMessage( + com.google.cloud.tpu.v2alpha1.AcceleratorType.parser(), extensionRegistry); + if (acceleratorTypesBuilder_ == null) { + ensureAcceleratorTypesIsMutable(); + acceleratorTypes_.add(m); + } else { + acceleratorTypesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -634,21 +687,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List acceleratorTypes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAcceleratorTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - acceleratorTypes_ = new java.util.ArrayList(acceleratorTypes_); + acceleratorTypes_ = + new java.util.ArrayList( + acceleratorTypes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.AcceleratorType, com.google.cloud.tpu.v2alpha1.AcceleratorType.Builder, com.google.cloud.tpu.v2alpha1.AcceleratorTypeOrBuilder> acceleratorTypesBuilder_; + com.google.cloud.tpu.v2alpha1.AcceleratorType, + com.google.cloud.tpu.v2alpha1.AcceleratorType.Builder, + com.google.cloud.tpu.v2alpha1.AcceleratorTypeOrBuilder> + acceleratorTypesBuilder_; /** + * + * *
      * The listed nodes.
      * 
@@ -663,6 +725,8 @@ public java.util.List getAccelera } } /** + * + * *
      * The listed nodes.
      * 
@@ -677,6 +741,8 @@ public int getAcceleratorTypesCount() { } } /** + * + * *
      * The listed nodes.
      * 
@@ -691,6 +757,8 @@ public com.google.cloud.tpu.v2alpha1.AcceleratorType getAcceleratorTypes(int ind } } /** + * + * *
      * The listed nodes.
      * 
@@ -712,6 +780,8 @@ public Builder setAcceleratorTypes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -730,6 +800,8 @@ public Builder setAcceleratorTypes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -750,6 +822,8 @@ public Builder addAcceleratorTypes(com.google.cloud.tpu.v2alpha1.AcceleratorType return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -771,6 +845,8 @@ public Builder addAcceleratorTypes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -789,6 +865,8 @@ public Builder addAcceleratorTypes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -807,6 +885,8 @@ public Builder addAcceleratorTypes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -817,8 +897,7 @@ public Builder addAllAcceleratorTypes( java.lang.Iterable values) { if (acceleratorTypesBuilder_ == null) { ensureAcceleratorTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, acceleratorTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, acceleratorTypes_); onChanged(); } else { acceleratorTypesBuilder_.addAllMessages(values); @@ -826,6 +905,8 @@ public Builder addAllAcceleratorTypes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -843,6 +924,8 @@ public Builder clearAcceleratorTypes() { return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -860,6 +943,8 @@ public Builder removeAcceleratorTypes(int index) { return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -871,6 +956,8 @@ public com.google.cloud.tpu.v2alpha1.AcceleratorType.Builder getAcceleratorTypes return getAcceleratorTypesFieldBuilder().getBuilder(index); } /** + * + * *
      * The listed nodes.
      * 
@@ -880,19 +967,22 @@ public com.google.cloud.tpu.v2alpha1.AcceleratorType.Builder getAcceleratorTypes public com.google.cloud.tpu.v2alpha1.AcceleratorTypeOrBuilder getAcceleratorTypesOrBuilder( int index) { if (acceleratorTypesBuilder_ == null) { - return acceleratorTypes_.get(index); } else { + return acceleratorTypes_.get(index); + } else { return acceleratorTypesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2alpha1.AcceleratorType accelerator_types = 1; */ - public java.util.List - getAcceleratorTypesOrBuilderList() { + public java.util.List + getAcceleratorTypesOrBuilderList() { if (acceleratorTypesBuilder_ != null) { return acceleratorTypesBuilder_.getMessageOrBuilderList(); } else { @@ -900,6 +990,8 @@ public com.google.cloud.tpu.v2alpha1.AcceleratorTypeOrBuilder getAcceleratorType } } /** + * + * *
      * The listed nodes.
      * 
@@ -907,10 +999,12 @@ public com.google.cloud.tpu.v2alpha1.AcceleratorTypeOrBuilder getAcceleratorType * repeated .google.cloud.tpu.v2alpha1.AcceleratorType accelerator_types = 1; */ public com.google.cloud.tpu.v2alpha1.AcceleratorType.Builder addAcceleratorTypesBuilder() { - return getAcceleratorTypesFieldBuilder().addBuilder( - com.google.cloud.tpu.v2alpha1.AcceleratorType.getDefaultInstance()); + return getAcceleratorTypesFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2alpha1.AcceleratorType.getDefaultInstance()); } /** + * + * *
      * The listed nodes.
      * 
@@ -919,26 +1013,34 @@ public com.google.cloud.tpu.v2alpha1.AcceleratorType.Builder addAcceleratorTypes */ public com.google.cloud.tpu.v2alpha1.AcceleratorType.Builder addAcceleratorTypesBuilder( int index) { - return getAcceleratorTypesFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v2alpha1.AcceleratorType.getDefaultInstance()); + return getAcceleratorTypesFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2alpha1.AcceleratorType.getDefaultInstance()); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2alpha1.AcceleratorType accelerator_types = 1; */ - public java.util.List - getAcceleratorTypesBuilderList() { + public java.util.List + getAcceleratorTypesBuilderList() { return getAcceleratorTypesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.AcceleratorType, com.google.cloud.tpu.v2alpha1.AcceleratorType.Builder, com.google.cloud.tpu.v2alpha1.AcceleratorTypeOrBuilder> + com.google.cloud.tpu.v2alpha1.AcceleratorType, + com.google.cloud.tpu.v2alpha1.AcceleratorType.Builder, + com.google.cloud.tpu.v2alpha1.AcceleratorTypeOrBuilder> getAcceleratorTypesFieldBuilder() { if (acceleratorTypesBuilder_ == null) { - acceleratorTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.AcceleratorType, com.google.cloud.tpu.v2alpha1.AcceleratorType.Builder, com.google.cloud.tpu.v2alpha1.AcceleratorTypeOrBuilder>( + acceleratorTypesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.AcceleratorType, + com.google.cloud.tpu.v2alpha1.AcceleratorType.Builder, + com.google.cloud.tpu.v2alpha1.AcceleratorTypeOrBuilder>( acceleratorTypes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -950,18 +1052,20 @@ public com.google.cloud.tpu.v2alpha1.AcceleratorType.Builder addAcceleratorTypes private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -970,20 +1074,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -991,95 +1096,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1087,80 +1209,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1170,28 +1302,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1201,12 +1335,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse) private static final com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse(); } @@ -1215,27 +1349,27 @@ public static com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAcceleratorTypesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAcceleratorTypesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1250,6 +1384,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesResponseOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesResponseOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesResponseOrBuilder.java index 9bcc0f264186..7865d157b9e9 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesResponseOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListAcceleratorTypesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface ListAcceleratorTypesResponseOrBuilder extends +public interface ListAcceleratorTypesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v2alpha1.AcceleratorType accelerator_types = 1; */ - java.util.List - getAcceleratorTypesList(); + java.util.List getAcceleratorTypesList(); /** + * + * *
    * The listed nodes.
    * 
@@ -25,6 +44,8 @@ public interface ListAcceleratorTypesResponseOrBuilder extends */ com.google.cloud.tpu.v2alpha1.AcceleratorType getAcceleratorTypes(int index); /** + * + * *
    * The listed nodes.
    * 
@@ -33,82 +54,100 @@ public interface ListAcceleratorTypesResponseOrBuilder extends */ int getAcceleratorTypesCount(); /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v2alpha1.AcceleratorType accelerator_types = 1; */ - java.util.List + java.util.List getAcceleratorTypesOrBuilderList(); /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v2alpha1.AcceleratorType accelerator_types = 1; */ - com.google.cloud.tpu.v2alpha1.AcceleratorTypeOrBuilder getAcceleratorTypesOrBuilder( - int index); + com.google.cloud.tpu.v2alpha1.AcceleratorTypeOrBuilder getAcceleratorTypesOrBuilder(int index); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesRequest.java similarity index 65% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesRequest.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesRequest.java index 9fd3150c41b4..67e7475d4aad 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesRequest.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Request for [ListNodes][google.cloud.tpu.v2alpha1.Tpu.ListNodes].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ListNodesRequest} */ -public final class ListNodesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNodesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.ListNodesRequest) ListNodesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNodesRequest.newBuilder() to construct. private ListNodesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNodesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,37 +44,43 @@ private ListNodesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNodesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListNodesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListNodesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListNodesRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListNodesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ListNodesRequest.class, com.google.cloud.tpu.v2alpha1.ListNodesRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.ListNodesRequest.class, + com.google.cloud.tpu.v2alpha1.ListNodesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -65,29 +89,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -98,11 +124,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -113,11 +142,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -126,29 +158,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -157,6 +189,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -192,8 +224,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -206,19 +237,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.ListNodesRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.ListNodesRequest other = (com.google.cloud.tpu.v2alpha1.ListNodesRequest) obj; + com.google.cloud.tpu.v2alpha1.ListNodesRequest other = + (com.google.cloud.tpu.v2alpha1.ListNodesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,130 +270,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.ListNodesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.ListNodesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListNodesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ListNodesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListNodesRequest 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.tpu.v2alpha1.ListNodesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListNodesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ListNodesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListNodesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.ListNodesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.ListNodesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListNodesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ListNodesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListNodesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.ListNodesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [ListNodes][google.cloud.tpu.v2alpha1.Tpu.ListNodes].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ListNodesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.ListNodesRequest) com.google.cloud.tpu.v2alpha1.ListNodesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListNodesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListNodesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListNodesRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListNodesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ListNodesRequest.class, com.google.cloud.tpu.v2alpha1.ListNodesRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.ListNodesRequest.class, + com.google.cloud.tpu.v2alpha1.ListNodesRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.ListNodesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +413,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListNodesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListNodesRequest_descriptor; } @java.lang.Override @@ -399,7 +434,8 @@ public com.google.cloud.tpu.v2alpha1.ListNodesRequest build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.ListNodesRequest buildPartial() { - com.google.cloud.tpu.v2alpha1.ListNodesRequest result = new com.google.cloud.tpu.v2alpha1.ListNodesRequest(this); + com.google.cloud.tpu.v2alpha1.ListNodesRequest result = + new com.google.cloud.tpu.v2alpha1.ListNodesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -411,38 +447,39 @@ public com.google.cloud.tpu.v2alpha1.ListNodesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.ListNodesRequest) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.ListNodesRequest)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.ListNodesRequest) other); } else { super.mergeFrom(other); return this; @@ -488,27 +525,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -521,18 +562,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -541,20 +586,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -562,66 +610,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -629,30 +693,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -660,18 +730,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -680,20 +752,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -701,61 +774,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -765,12 +845,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.ListNodesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.ListNodesRequest) private static final com.google.cloud.tpu.v2alpha1.ListNodesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.ListNodesRequest(); } @@ -779,27 +859,27 @@ public static com.google.cloud.tpu.v2alpha1.ListNodesRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNodesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNodesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -814,6 +894,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.ListNodesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesRequestOrBuilder.java index 6ccc65aa25cd..66910ddbb0cd 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesRequestOrBuilder.java @@ -1,59 +1,92 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface ListNodesRequestOrBuilder extends +public interface ListNodesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.ListNodesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesResponse.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesResponse.java similarity index 71% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesResponse.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesResponse.java index 89cce064fb3f..cfa5591b5b42 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesResponse.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesResponse.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Response for [ListNodes][google.cloud.tpu.v2alpha1.Tpu.ListNodes].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ListNodesResponse} */ -public final class ListNodesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNodesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.ListNodesResponse) ListNodesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNodesResponse.newBuilder() to construct. private ListNodesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNodesResponse() { nodes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +45,35 @@ private ListNodesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNodesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListNodesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListNodesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListNodesResponse_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListNodesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ListNodesResponse.class, com.google.cloud.tpu.v2alpha1.ListNodesResponse.Builder.class); + com.google.cloud.tpu.v2alpha1.ListNodesResponse.class, + com.google.cloud.tpu.v2alpha1.ListNodesResponse.Builder.class); } public static final int NODES_FIELD_NUMBER = 1; private java.util.List nodes_; /** + * + * *
    * The listed nodes.
    * 
@@ -64,6 +85,8 @@ public java.util.List getNodesList() { return nodes_; } /** + * + * *
    * The listed nodes.
    * 
@@ -71,11 +94,13 @@ public java.util.List getNodesList() { * repeated .google.cloud.tpu.v2alpha1.Node nodes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNodesOrBuilderList() { return nodes_; } /** + * + * *
    * The listed nodes.
    * 
@@ -87,6 +112,8 @@ public int getNodesCount() { return nodes_.size(); } /** + * + * *
    * The listed nodes.
    * 
@@ -98,6 +125,8 @@ public com.google.cloud.tpu.v2alpha1.Node getNodes(int index) { return nodes_.get(index); } /** + * + * *
    * The listed nodes.
    * 
@@ -105,19 +134,21 @@ public com.google.cloud.tpu.v2alpha1.Node getNodes(int index) { * repeated .google.cloud.tpu.v2alpha1.Node nodes = 1; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodesOrBuilder( - int index) { + public com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodesOrBuilder(int index) { return nodes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,29 +157,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -159,34 +190,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -194,20 +233,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < nodes_.size(); i++) { output.writeMessage(1, nodes_.get(i)); } @@ -240,8 +281,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nodes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nodes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -262,19 +302,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.ListNodesResponse)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.ListNodesResponse other = (com.google.cloud.tpu.v2alpha1.ListNodesResponse) obj; + com.google.cloud.tpu.v2alpha1.ListNodesResponse other = + (com.google.cloud.tpu.v2alpha1.ListNodesResponse) obj; - if (!getNodesList() - .equals(other.getNodesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getNodesList().equals(other.getNodesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -301,130 +339,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.ListNodesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.ListNodesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListNodesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ListNodesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListNodesResponse 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.tpu.v2alpha1.ListNodesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListNodesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ListNodesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListNodesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.ListNodesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.ListNodesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListNodesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ListNodesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListNodesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.ListNodesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [ListNodes][google.cloud.tpu.v2alpha1.Tpu.ListNodes].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ListNodesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.ListNodesResponse) com.google.cloud.tpu.v2alpha1.ListNodesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListNodesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListNodesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListNodesResponse_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListNodesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ListNodesResponse.class, com.google.cloud.tpu.v2alpha1.ListNodesResponse.Builder.class); + com.google.cloud.tpu.v2alpha1.ListNodesResponse.class, + com.google.cloud.tpu.v2alpha1.ListNodesResponse.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.ListNodesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListNodesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListNodesResponse_descriptor; } @java.lang.Override @@ -464,7 +508,8 @@ public com.google.cloud.tpu.v2alpha1.ListNodesResponse build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.ListNodesResponse buildPartial() { - com.google.cloud.tpu.v2alpha1.ListNodesResponse result = new com.google.cloud.tpu.v2alpha1.ListNodesResponse(this); + com.google.cloud.tpu.v2alpha1.ListNodesResponse result = + new com.google.cloud.tpu.v2alpha1.ListNodesResponse(this); int from_bitField0_ = bitField0_; if (nodesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -489,38 +534,39 @@ public com.google.cloud.tpu.v2alpha1.ListNodesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.ListNodesResponse) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.ListNodesResponse)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.ListNodesResponse) other); } else { super.mergeFrom(other); return this; @@ -528,7 +574,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.ListNodesResponse other) { - if (other == com.google.cloud.tpu.v2alpha1.ListNodesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.ListNodesResponse.getDefaultInstance()) + return this; if (nodesBuilder_ == null) { if (!other.nodes_.isEmpty()) { if (nodes_.isEmpty()) { @@ -547,9 +594,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.ListNodesResponse other) nodesBuilder_ = null; nodes_ = other.nodes_; bitField0_ = (bitField0_ & ~0x00000001); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodesFieldBuilder() : null; + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodesFieldBuilder() + : null; } else { nodesBuilder_.addAllMessages(other.nodes_); } @@ -595,36 +643,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.tpu.v2alpha1.Node m = - input.readMessage( - com.google.cloud.tpu.v2alpha1.Node.parser(), - extensionRegistry); - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(m); - } else { - nodesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.tpu.v2alpha1.Node m = + input.readMessage( + com.google.cloud.tpu.v2alpha1.Node.parser(), extensionRegistry); + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(m); + } else { + nodesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -634,21 +685,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List nodes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nodes_ = new java.util.ArrayList(nodes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.Node, com.google.cloud.tpu.v2alpha1.Node.Builder, com.google.cloud.tpu.v2alpha1.NodeOrBuilder> nodesBuilder_; + com.google.cloud.tpu.v2alpha1.Node, + com.google.cloud.tpu.v2alpha1.Node.Builder, + com.google.cloud.tpu.v2alpha1.NodeOrBuilder> + nodesBuilder_; /** + * + * *
      * The listed nodes.
      * 
@@ -663,6 +721,8 @@ public java.util.List getNodesList() { } } /** + * + * *
      * The listed nodes.
      * 
@@ -677,6 +737,8 @@ public int getNodesCount() { } } /** + * + * *
      * The listed nodes.
      * 
@@ -691,14 +753,15 @@ public com.google.cloud.tpu.v2alpha1.Node getNodes(int index) { } } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2alpha1.Node nodes = 1; */ - public Builder setNodes( - int index, com.google.cloud.tpu.v2alpha1.Node value) { + public Builder setNodes(int index, com.google.cloud.tpu.v2alpha1.Node value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -712,14 +775,15 @@ public Builder setNodes( return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2alpha1.Node nodes = 1; */ - public Builder setNodes( - int index, com.google.cloud.tpu.v2alpha1.Node.Builder builderForValue) { + public Builder setNodes(int index, com.google.cloud.tpu.v2alpha1.Node.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.set(index, builderForValue.build()); @@ -730,6 +794,8 @@ public Builder setNodes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -750,14 +816,15 @@ public Builder addNodes(com.google.cloud.tpu.v2alpha1.Node value) { return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2alpha1.Node nodes = 1; */ - public Builder addNodes( - int index, com.google.cloud.tpu.v2alpha1.Node value) { + public Builder addNodes(int index, com.google.cloud.tpu.v2alpha1.Node value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -771,14 +838,15 @@ public Builder addNodes( return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2alpha1.Node nodes = 1; */ - public Builder addNodes( - com.google.cloud.tpu.v2alpha1.Node.Builder builderForValue) { + public Builder addNodes(com.google.cloud.tpu.v2alpha1.Node.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(builderForValue.build()); @@ -789,14 +857,15 @@ public Builder addNodes( return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2alpha1.Node nodes = 1; */ - public Builder addNodes( - int index, com.google.cloud.tpu.v2alpha1.Node.Builder builderForValue) { + public Builder addNodes(int index, com.google.cloud.tpu.v2alpha1.Node.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(index, builderForValue.build()); @@ -807,6 +876,8 @@ public Builder addNodes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -817,8 +888,7 @@ public Builder addAllNodes( java.lang.Iterable values) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); onChanged(); } else { nodesBuilder_.addAllMessages(values); @@ -826,6 +896,8 @@ public Builder addAllNodes( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -843,6 +915,8 @@ public Builder clearNodes() { return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -860,39 +934,44 @@ public Builder removeNodes(int index) { return this; } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2alpha1.Node nodes = 1; */ - public com.google.cloud.tpu.v2alpha1.Node.Builder getNodesBuilder( - int index) { + public com.google.cloud.tpu.v2alpha1.Node.Builder getNodesBuilder(int index) { return getNodesFieldBuilder().getBuilder(index); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2alpha1.Node nodes = 1; */ - public com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodesOrBuilder( - int index) { + public com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodesOrBuilder(int index) { if (nodesBuilder_ == null) { - return nodes_.get(index); } else { + return nodes_.get(index); + } else { return nodesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2alpha1.Node nodes = 1; */ - public java.util.List - getNodesOrBuilderList() { + public java.util.List + getNodesOrBuilderList() { if (nodesBuilder_ != null) { return nodesBuilder_.getMessageOrBuilderList(); } else { @@ -900,6 +979,8 @@ public com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodesOrBuilder( } } /** + * + * *
      * The listed nodes.
      * 
@@ -907,42 +988,47 @@ public com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodesOrBuilder( * repeated .google.cloud.tpu.v2alpha1.Node nodes = 1; */ public com.google.cloud.tpu.v2alpha1.Node.Builder addNodesBuilder() { - return getNodesFieldBuilder().addBuilder( - com.google.cloud.tpu.v2alpha1.Node.getDefaultInstance()); + return getNodesFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2alpha1.Node.getDefaultInstance()); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2alpha1.Node nodes = 1; */ - public com.google.cloud.tpu.v2alpha1.Node.Builder addNodesBuilder( - int index) { - return getNodesFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v2alpha1.Node.getDefaultInstance()); + public com.google.cloud.tpu.v2alpha1.Node.Builder addNodesBuilder(int index) { + return getNodesFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2alpha1.Node.getDefaultInstance()); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2alpha1.Node nodes = 1; */ - public java.util.List - getNodesBuilderList() { + public java.util.List getNodesBuilderList() { return getNodesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.Node, com.google.cloud.tpu.v2alpha1.Node.Builder, com.google.cloud.tpu.v2alpha1.NodeOrBuilder> + com.google.cloud.tpu.v2alpha1.Node, + com.google.cloud.tpu.v2alpha1.Node.Builder, + com.google.cloud.tpu.v2alpha1.NodeOrBuilder> getNodesFieldBuilder() { if (nodesBuilder_ == null) { - nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.Node, com.google.cloud.tpu.v2alpha1.Node.Builder, com.google.cloud.tpu.v2alpha1.NodeOrBuilder>( - nodes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + nodesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.Node, + com.google.cloud.tpu.v2alpha1.Node.Builder, + com.google.cloud.tpu.v2alpha1.NodeOrBuilder>( + nodes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); nodes_ = null; } return nodesBuilder_; @@ -950,18 +1036,20 @@ public com.google.cloud.tpu.v2alpha1.Node.Builder addNodesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -970,20 +1058,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -991,95 +1080,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1087,80 +1193,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1170,28 +1286,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1201,12 +1319,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.ListNodesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.ListNodesResponse) private static final com.google.cloud.tpu.v2alpha1.ListNodesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.ListNodesResponse(); } @@ -1215,27 +1333,27 @@ public static com.google.cloud.tpu.v2alpha1.ListNodesResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNodesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNodesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1250,6 +1368,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.ListNodesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesResponseOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesResponseOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesResponseOrBuilder.java index 90a441f2b160..7922b1ee0a15 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesResponseOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListNodesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface ListNodesResponseOrBuilder extends +public interface ListNodesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.ListNodesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v2alpha1.Node nodes = 1; */ - java.util.List - getNodesList(); + java.util.List getNodesList(); /** + * + * *
    * The listed nodes.
    * 
@@ -25,6 +44,8 @@ public interface ListNodesResponseOrBuilder extends */ com.google.cloud.tpu.v2alpha1.Node getNodes(int index); /** + * + * *
    * The listed nodes.
    * 
@@ -33,82 +54,99 @@ public interface ListNodesResponseOrBuilder extends */ int getNodesCount(); /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v2alpha1.Node nodes = 1; */ - java.util.List - getNodesOrBuilderList(); + java.util.List getNodesOrBuilderList(); /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v2alpha1.Node nodes = 1; */ - com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodesOrBuilder( - int index); + com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodesOrBuilder(int index); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesRequest.java similarity index 65% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesRequest.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesRequest.java index 19359a61e488..01e725dcd135 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesRequest.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Request for [ListQueuedResources][google.cloud.tpu.v2alpha1.Tpu.ListQueuedResources].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest} */ -public final class ListQueuedResourcesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListQueuedResourcesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest) ListQueuedResourcesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListQueuedResourcesRequest.newBuilder() to construct. private ListQueuedResourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListQueuedResourcesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,37 +44,43 @@ private ListQueuedResourcesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListQueuedResourcesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest.class, com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest.class, + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -65,29 +89,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -98,11 +124,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -113,11 +142,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -126,29 +158,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -157,6 +189,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -192,8 +224,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -206,19 +237,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest other = (com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest) obj; + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest other = + (com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -242,129 +271,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest 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.tpu.v2alpha1.ListQueuedResourcesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [ListQueuedResources][google.cloud.tpu.v2alpha1.Tpu.ListQueuedResources].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest) com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest.class, com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest.class, + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesRequest_descriptor; } @java.lang.Override @@ -399,7 +435,8 @@ public com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest buildPartial() { - com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest result = new com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest(this); + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest result = + new com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -411,38 +448,39 @@ public com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.ListQueuedResourcesRequest) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest) other); } else { super.mergeFrom(other); return this; @@ -450,7 +488,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest other) { - if (other == com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -488,27 +527,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -521,18 +564,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -541,20 +588,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -562,66 +612,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -629,30 +695,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -660,18 +732,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -680,20 +754,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -701,61 +776,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -765,12 +847,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest) private static final com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest(); } @@ -779,27 +861,27 @@ public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListQueuedResourcesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListQueuedResourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -814,6 +896,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesRequestOrBuilder.java index 7dfe33465e21..9fc4661ade68 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesRequestOrBuilder.java @@ -1,59 +1,92 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface ListQueuedResourcesRequestOrBuilder extends +public interface ListQueuedResourcesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesResponse.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesResponse.java similarity index 73% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesResponse.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesResponse.java index 37e43ae4a9a3..e7df41bef3f8 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesResponse.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesResponse.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Response for [ListQueuedResources][google.cloud.tpu.v2alpha1.Tpu.ListQueuedResources].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse} */ -public final class ListQueuedResourcesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListQueuedResourcesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse) ListQueuedResourcesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListQueuedResourcesResponse.newBuilder() to construct. private ListQueuedResourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListQueuedResourcesResponse() { queuedResources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +45,35 @@ private ListQueuedResourcesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListQueuedResourcesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesResponse_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse.class, com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse.Builder.class); + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse.class, + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse.Builder.class); } public static final int QUEUED_RESOURCES_FIELD_NUMBER = 1; private java.util.List queuedResources_; /** + * + * *
    * The listed queued resources.
    * 
@@ -64,6 +85,8 @@ public java.util.List getQueuedRes return queuedResources_; } /** + * + * *
    * The listed queued resources.
    * 
@@ -71,11 +94,13 @@ public java.util.List getQueuedRes * repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getQueuedResourcesOrBuilderList() { return queuedResources_; } /** + * + * *
    * The listed queued resources.
    * 
@@ -87,6 +112,8 @@ public int getQueuedResourcesCount() { return queuedResources_.size(); } /** + * + * *
    * The listed queued resources.
    * 
@@ -98,6 +125,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource getQueuedResources(int index return queuedResources_.get(index); } /** + * + * *
    * The listed queued resources.
    * 
@@ -113,11 +142,14 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder getQueuedResourcesO public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,29 +158,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -159,34 +191,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -194,20 +234,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < queuedResources_.size(); i++) { output.writeMessage(1, queuedResources_.get(i)); } @@ -240,8 +282,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < queuedResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, queuedResources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, queuedResources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -262,19 +303,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse other = (com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse) obj; + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse other = + (com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse) obj; - if (!getQueuedResourcesList() - .equals(other.getQueuedResourcesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getQueuedResourcesList().equals(other.getQueuedResourcesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -302,129 +341,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse 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.tpu.v2alpha1.ListQueuedResourcesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [ListQueuedResources][google.cloud.tpu.v2alpha1.Tpu.ListQueuedResources].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse) com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesResponse_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse.class, com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse.Builder.class); + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse.class, + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesResponse_descriptor; } @java.lang.Override @@ -464,7 +510,8 @@ public com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse buildPartial() { - com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse result = new com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse(this); + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse result = + new com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse(this); int from_bitField0_ = bitField0_; if (queuedResourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -489,38 +536,39 @@ public com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.ListQueuedResourcesResponse) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse) other); } else { super.mergeFrom(other); return this; @@ -528,7 +576,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse other) { - if (other == com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse.getDefaultInstance()) + return this; if (queuedResourcesBuilder_ == null) { if (!other.queuedResources_.isEmpty()) { if (queuedResources_.isEmpty()) { @@ -547,9 +596,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRespon queuedResourcesBuilder_ = null; queuedResources_ = other.queuedResources_; bitField0_ = (bitField0_ & ~0x00000001); - queuedResourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getQueuedResourcesFieldBuilder() : null; + queuedResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getQueuedResourcesFieldBuilder() + : null; } else { queuedResourcesBuilder_.addAllMessages(other.queuedResources_); } @@ -595,36 +645,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.tpu.v2alpha1.QueuedResource m = - input.readMessage( - com.google.cloud.tpu.v2alpha1.QueuedResource.parser(), - extensionRegistry); - if (queuedResourcesBuilder_ == null) { - ensureQueuedResourcesIsMutable(); - queuedResources_.add(m); - } else { - queuedResourcesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.tpu.v2alpha1.QueuedResource m = + input.readMessage( + com.google.cloud.tpu.v2alpha1.QueuedResource.parser(), extensionRegistry); + if (queuedResourcesBuilder_ == null) { + ensureQueuedResourcesIsMutable(); + queuedResources_.add(m); + } else { + queuedResourcesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -634,21 +687,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List queuedResources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureQueuedResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - queuedResources_ = new java.util.ArrayList(queuedResources_); + queuedResources_ = + new java.util.ArrayList(queuedResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource, com.google.cloud.tpu.v2alpha1.QueuedResource.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder> queuedResourcesBuilder_; + com.google.cloud.tpu.v2alpha1.QueuedResource, + com.google.cloud.tpu.v2alpha1.QueuedResource.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder> + queuedResourcesBuilder_; /** + * + * *
      * The listed queued resources.
      * 
@@ -663,6 +724,8 @@ public java.util.List getQueuedRes } } /** + * + * *
      * The listed queued resources.
      * 
@@ -677,6 +740,8 @@ public int getQueuedResourcesCount() { } } /** + * + * *
      * The listed queued resources.
      * 
@@ -691,6 +756,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource getQueuedResources(int index } } /** + * + * *
      * The listed queued resources.
      * 
@@ -712,6 +779,8 @@ public Builder setQueuedResources( return this; } /** + * + * *
      * The listed queued resources.
      * 
@@ -730,6 +799,8 @@ public Builder setQueuedResources( return this; } /** + * + * *
      * The listed queued resources.
      * 
@@ -750,6 +821,8 @@ public Builder addQueuedResources(com.google.cloud.tpu.v2alpha1.QueuedResource v return this; } /** + * + * *
      * The listed queued resources.
      * 
@@ -771,6 +844,8 @@ public Builder addQueuedResources( return this; } /** + * + * *
      * The listed queued resources.
      * 
@@ -789,6 +864,8 @@ public Builder addQueuedResources( return this; } /** + * + * *
      * The listed queued resources.
      * 
@@ -807,6 +884,8 @@ public Builder addQueuedResources( return this; } /** + * + * *
      * The listed queued resources.
      * 
@@ -817,8 +896,7 @@ public Builder addAllQueuedResources( java.lang.Iterable values) { if (queuedResourcesBuilder_ == null) { ensureQueuedResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, queuedResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queuedResources_); onChanged(); } else { queuedResourcesBuilder_.addAllMessages(values); @@ -826,6 +904,8 @@ public Builder addAllQueuedResources( return this; } /** + * + * *
      * The listed queued resources.
      * 
@@ -843,6 +923,8 @@ public Builder clearQueuedResources() { return this; } /** + * + * *
      * The listed queued resources.
      * 
@@ -860,6 +942,8 @@ public Builder removeQueuedResources(int index) { return this; } /** + * + * *
      * The listed queued resources.
      * 
@@ -871,6 +955,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Builder getQueuedResourcesBu return getQueuedResourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * The listed queued resources.
      * 
@@ -880,19 +966,22 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Builder getQueuedResourcesBu public com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder getQueuedResourcesOrBuilder( int index) { if (queuedResourcesBuilder_ == null) { - return queuedResources_.get(index); } else { + return queuedResources_.get(index); + } else { return queuedResourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The listed queued resources.
      * 
* * repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1; */ - public java.util.List - getQueuedResourcesOrBuilderList() { + public java.util.List + getQueuedResourcesOrBuilderList() { if (queuedResourcesBuilder_ != null) { return queuedResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -900,6 +989,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder getQueuedResourcesO } } /** + * + * *
      * The listed queued resources.
      * 
@@ -907,10 +998,12 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder getQueuedResourcesO * repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1; */ public com.google.cloud.tpu.v2alpha1.QueuedResource.Builder addQueuedResourcesBuilder() { - return getQueuedResourcesFieldBuilder().addBuilder( - com.google.cloud.tpu.v2alpha1.QueuedResource.getDefaultInstance()); + return getQueuedResourcesFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2alpha1.QueuedResource.getDefaultInstance()); } /** + * + * *
      * The listed queued resources.
      * 
@@ -919,26 +1012,34 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Builder addQueuedResourcesBu */ public com.google.cloud.tpu.v2alpha1.QueuedResource.Builder addQueuedResourcesBuilder( int index) { - return getQueuedResourcesFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v2alpha1.QueuedResource.getDefaultInstance()); + return getQueuedResourcesFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2alpha1.QueuedResource.getDefaultInstance()); } /** + * + * *
      * The listed queued resources.
      * 
* * repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1; */ - public java.util.List - getQueuedResourcesBuilderList() { + public java.util.List + getQueuedResourcesBuilderList() { return getQueuedResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource, com.google.cloud.tpu.v2alpha1.QueuedResource.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder> + com.google.cloud.tpu.v2alpha1.QueuedResource, + com.google.cloud.tpu.v2alpha1.QueuedResource.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder> getQueuedResourcesFieldBuilder() { if (queuedResourcesBuilder_ == null) { - queuedResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource, com.google.cloud.tpu.v2alpha1.QueuedResource.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder>( + queuedResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.QueuedResource, + com.google.cloud.tpu.v2alpha1.QueuedResource.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder>( queuedResources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -950,18 +1051,20 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Builder addQueuedResourcesBu private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -970,20 +1073,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -991,95 +1095,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1087,80 +1208,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1170,28 +1301,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1201,12 +1334,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse) private static final com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse(); } @@ -1215,27 +1348,27 @@ public static com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListQueuedResourcesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListQueuedResourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1250,6 +1383,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesResponseOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesResponseOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesResponseOrBuilder.java index 0b37e10641ba..f01f464b03bb 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesResponseOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListQueuedResourcesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface ListQueuedResourcesResponseOrBuilder extends +public interface ListQueuedResourcesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The listed queued resources.
    * 
* * repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1; */ - java.util.List - getQueuedResourcesList(); + java.util.List getQueuedResourcesList(); /** + * + * *
    * The listed queued resources.
    * 
@@ -25,6 +44,8 @@ public interface ListQueuedResourcesResponseOrBuilder extends */ com.google.cloud.tpu.v2alpha1.QueuedResource getQueuedResources(int index); /** + * + * *
    * The listed queued resources.
    * 
@@ -33,82 +54,100 @@ public interface ListQueuedResourcesResponseOrBuilder extends */ int getQueuedResourcesCount(); /** + * + * *
    * The listed queued resources.
    * 
* * repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1; */ - java.util.List + java.util.List getQueuedResourcesOrBuilderList(); /** + * + * *
    * The listed queued resources.
    * 
* * repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1; */ - com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder getQueuedResourcesOrBuilder( - int index); + com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder getQueuedResourcesOrBuilder(int index); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsRequest.java similarity index 67% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsRequest.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsRequest.java index 6c80d7522af6..96a5ee076d7e 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsRequest.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Request for [ListRuntimeVersions][google.cloud.tpu.v2alpha1.Tpu.ListRuntimeVersions].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest} */ -public final class ListRuntimeVersionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRuntimeVersionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest) ListRuntimeVersionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRuntimeVersionsRequest.newBuilder() to construct. private ListRuntimeVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRuntimeVersionsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,37 +46,43 @@ private ListRuntimeVersionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimeVersionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest.class, com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest.class, + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,29 +91,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -100,11 +126,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -115,11 +144,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -128,29 +160,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -161,11 +193,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ @java.lang.Override @@ -174,29 +209,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -207,11 +242,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 6; private volatile java.lang.Object orderBy_; /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The orderBy. */ @java.lang.Override @@ -220,29 +258,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -251,6 +289,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,8 +301,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -292,8 +330,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -312,23 +349,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest other = (com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest other = + (com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -356,129 +389,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest 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.tpu.v2alpha1.ListRuntimeVersionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [ListRuntimeVersions][google.cloud.tpu.v2alpha1.Tpu.ListRuntimeVersions].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest) com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest.class, com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest.class, + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +536,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsRequest_descriptor; } @java.lang.Override @@ -517,7 +557,8 @@ public com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest buildPartial() { - com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest result = new com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest(this); + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest result = + new com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -531,38 +572,39 @@ public com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.ListRuntimeVersionsRequest) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest) other); } else { super.mergeFrom(other); return this; @@ -570,7 +612,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest other) { - if (other == com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -616,37 +659,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 42: { - filter_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 42: + { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - case 50: { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 42 + case 50: + { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,18 +708,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -679,20 +732,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -700,66 +756,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -767,30 +839,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -798,18 +876,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -818,20 +898,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -839,54 +920,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -894,18 +982,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -914,20 +1004,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -935,54 +1026,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -990,18 +1088,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1010,20 +1110,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1031,61 +1132,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Sort results.
      * 
* * string order_by = 6; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1095,12 +1203,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest) private static final com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest(); } @@ -1109,27 +1217,27 @@ public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuntimeVersionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuntimeVersionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,6 +1252,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsRequestOrBuilder.java index 9b0732a3aba4..115c5374b8c3 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface ListRuntimeVersionsRequestOrBuilder extends +public interface ListRuntimeVersionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort results.
    * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsResponse.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsResponse.java similarity index 73% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsResponse.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsResponse.java index 56174f0efbd5..740c73663af1 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsResponse.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsResponse.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Response for [ListRuntimeVersions][google.cloud.tpu.v2alpha1.Tpu.ListRuntimeVersions].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse} */ -public final class ListRuntimeVersionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRuntimeVersionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse) ListRuntimeVersionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRuntimeVersionsResponse.newBuilder() to construct. private ListRuntimeVersionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRuntimeVersionsResponse() { runtimeVersions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +45,35 @@ private ListRuntimeVersionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimeVersionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsResponse_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse.class, com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse.Builder.class); + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse.class, + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse.Builder.class); } public static final int RUNTIME_VERSIONS_FIELD_NUMBER = 1; private java.util.List runtimeVersions_; /** + * + * *
    * The listed nodes.
    * 
@@ -64,6 +85,8 @@ public java.util.List getRuntimeVe return runtimeVersions_; } /** + * + * *
    * The listed nodes.
    * 
@@ -71,11 +94,13 @@ public java.util.List getRuntimeVe * repeated .google.cloud.tpu.v2alpha1.RuntimeVersion runtime_versions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRuntimeVersionsOrBuilderList() { return runtimeVersions_; } /** + * + * *
    * The listed nodes.
    * 
@@ -87,6 +112,8 @@ public int getRuntimeVersionsCount() { return runtimeVersions_.size(); } /** + * + * *
    * The listed nodes.
    * 
@@ -98,6 +125,8 @@ public com.google.cloud.tpu.v2alpha1.RuntimeVersion getRuntimeVersions(int index return runtimeVersions_.get(index); } /** + * + * *
    * The listed nodes.
    * 
@@ -113,11 +142,14 @@ public com.google.cloud.tpu.v2alpha1.RuntimeVersionOrBuilder getRuntimeVersionsO public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,29 +158,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -159,34 +191,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -194,20 +234,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < runtimeVersions_.size(); i++) { output.writeMessage(1, runtimeVersions_.get(i)); } @@ -240,8 +282,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < runtimeVersions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, runtimeVersions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, runtimeVersions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -262,19 +303,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse other = (com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse) obj; + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse other = + (com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse) obj; - if (!getRuntimeVersionsList() - .equals(other.getRuntimeVersionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getRuntimeVersionsList().equals(other.getRuntimeVersionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -302,129 +341,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse 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.tpu.v2alpha1.ListRuntimeVersionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [ListRuntimeVersions][google.cloud.tpu.v2alpha1.Tpu.ListRuntimeVersions].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse) com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsResponse_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse.class, com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse.Builder.class); + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse.class, + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsResponse_descriptor; } @java.lang.Override @@ -464,7 +510,8 @@ public com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse buildPartial() { - com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse result = new com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse(this); + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse result = + new com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse(this); int from_bitField0_ = bitField0_; if (runtimeVersionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -489,38 +536,39 @@ public com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.ListRuntimeVersionsResponse) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse) other); } else { super.mergeFrom(other); return this; @@ -528,7 +576,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse other) { - if (other == com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse.getDefaultInstance()) + return this; if (runtimeVersionsBuilder_ == null) { if (!other.runtimeVersions_.isEmpty()) { if (runtimeVersions_.isEmpty()) { @@ -547,9 +596,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRespon runtimeVersionsBuilder_ = null; runtimeVersions_ = other.runtimeVersions_; bitField0_ = (bitField0_ & ~0x00000001); - runtimeVersionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRuntimeVersionsFieldBuilder() : null; + runtimeVersionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRuntimeVersionsFieldBuilder() + : null; } else { runtimeVersionsBuilder_.addAllMessages(other.runtimeVersions_); } @@ -595,36 +645,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.tpu.v2alpha1.RuntimeVersion m = - input.readMessage( - com.google.cloud.tpu.v2alpha1.RuntimeVersion.parser(), - extensionRegistry); - if (runtimeVersionsBuilder_ == null) { - ensureRuntimeVersionsIsMutable(); - runtimeVersions_.add(m); - } else { - runtimeVersionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.tpu.v2alpha1.RuntimeVersion m = + input.readMessage( + com.google.cloud.tpu.v2alpha1.RuntimeVersion.parser(), extensionRegistry); + if (runtimeVersionsBuilder_ == null) { + ensureRuntimeVersionsIsMutable(); + runtimeVersions_.add(m); + } else { + runtimeVersionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -634,21 +687,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List runtimeVersions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRuntimeVersionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - runtimeVersions_ = new java.util.ArrayList(runtimeVersions_); + runtimeVersions_ = + new java.util.ArrayList(runtimeVersions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.RuntimeVersion, com.google.cloud.tpu.v2alpha1.RuntimeVersion.Builder, com.google.cloud.tpu.v2alpha1.RuntimeVersionOrBuilder> runtimeVersionsBuilder_; + com.google.cloud.tpu.v2alpha1.RuntimeVersion, + com.google.cloud.tpu.v2alpha1.RuntimeVersion.Builder, + com.google.cloud.tpu.v2alpha1.RuntimeVersionOrBuilder> + runtimeVersionsBuilder_; /** + * + * *
      * The listed nodes.
      * 
@@ -663,6 +724,8 @@ public java.util.List getRuntimeVe } } /** + * + * *
      * The listed nodes.
      * 
@@ -677,6 +740,8 @@ public int getRuntimeVersionsCount() { } } /** + * + * *
      * The listed nodes.
      * 
@@ -691,6 +756,8 @@ public com.google.cloud.tpu.v2alpha1.RuntimeVersion getRuntimeVersions(int index } } /** + * + * *
      * The listed nodes.
      * 
@@ -712,6 +779,8 @@ public Builder setRuntimeVersions( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -730,6 +799,8 @@ public Builder setRuntimeVersions( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -750,6 +821,8 @@ public Builder addRuntimeVersions(com.google.cloud.tpu.v2alpha1.RuntimeVersion v return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -771,6 +844,8 @@ public Builder addRuntimeVersions( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -789,6 +864,8 @@ public Builder addRuntimeVersions( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -807,6 +884,8 @@ public Builder addRuntimeVersions( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -817,8 +896,7 @@ public Builder addAllRuntimeVersions( java.lang.Iterable values) { if (runtimeVersionsBuilder_ == null) { ensureRuntimeVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, runtimeVersions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, runtimeVersions_); onChanged(); } else { runtimeVersionsBuilder_.addAllMessages(values); @@ -826,6 +904,8 @@ public Builder addAllRuntimeVersions( return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -843,6 +923,8 @@ public Builder clearRuntimeVersions() { return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -860,6 +942,8 @@ public Builder removeRuntimeVersions(int index) { return this; } /** + * + * *
      * The listed nodes.
      * 
@@ -871,6 +955,8 @@ public com.google.cloud.tpu.v2alpha1.RuntimeVersion.Builder getRuntimeVersionsBu return getRuntimeVersionsFieldBuilder().getBuilder(index); } /** + * + * *
      * The listed nodes.
      * 
@@ -880,19 +966,22 @@ public com.google.cloud.tpu.v2alpha1.RuntimeVersion.Builder getRuntimeVersionsBu public com.google.cloud.tpu.v2alpha1.RuntimeVersionOrBuilder getRuntimeVersionsOrBuilder( int index) { if (runtimeVersionsBuilder_ == null) { - return runtimeVersions_.get(index); } else { + return runtimeVersions_.get(index); + } else { return runtimeVersionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2alpha1.RuntimeVersion runtime_versions = 1; */ - public java.util.List - getRuntimeVersionsOrBuilderList() { + public java.util.List + getRuntimeVersionsOrBuilderList() { if (runtimeVersionsBuilder_ != null) { return runtimeVersionsBuilder_.getMessageOrBuilderList(); } else { @@ -900,6 +989,8 @@ public com.google.cloud.tpu.v2alpha1.RuntimeVersionOrBuilder getRuntimeVersionsO } } /** + * + * *
      * The listed nodes.
      * 
@@ -907,10 +998,12 @@ public com.google.cloud.tpu.v2alpha1.RuntimeVersionOrBuilder getRuntimeVersionsO * repeated .google.cloud.tpu.v2alpha1.RuntimeVersion runtime_versions = 1; */ public com.google.cloud.tpu.v2alpha1.RuntimeVersion.Builder addRuntimeVersionsBuilder() { - return getRuntimeVersionsFieldBuilder().addBuilder( - com.google.cloud.tpu.v2alpha1.RuntimeVersion.getDefaultInstance()); + return getRuntimeVersionsFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2alpha1.RuntimeVersion.getDefaultInstance()); } /** + * + * *
      * The listed nodes.
      * 
@@ -919,26 +1012,34 @@ public com.google.cloud.tpu.v2alpha1.RuntimeVersion.Builder addRuntimeVersionsBu */ public com.google.cloud.tpu.v2alpha1.RuntimeVersion.Builder addRuntimeVersionsBuilder( int index) { - return getRuntimeVersionsFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v2alpha1.RuntimeVersion.getDefaultInstance()); + return getRuntimeVersionsFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2alpha1.RuntimeVersion.getDefaultInstance()); } /** + * + * *
      * The listed nodes.
      * 
* * repeated .google.cloud.tpu.v2alpha1.RuntimeVersion runtime_versions = 1; */ - public java.util.List - getRuntimeVersionsBuilderList() { + public java.util.List + getRuntimeVersionsBuilderList() { return getRuntimeVersionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.RuntimeVersion, com.google.cloud.tpu.v2alpha1.RuntimeVersion.Builder, com.google.cloud.tpu.v2alpha1.RuntimeVersionOrBuilder> + com.google.cloud.tpu.v2alpha1.RuntimeVersion, + com.google.cloud.tpu.v2alpha1.RuntimeVersion.Builder, + com.google.cloud.tpu.v2alpha1.RuntimeVersionOrBuilder> getRuntimeVersionsFieldBuilder() { if (runtimeVersionsBuilder_ == null) { - runtimeVersionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.RuntimeVersion, com.google.cloud.tpu.v2alpha1.RuntimeVersion.Builder, com.google.cloud.tpu.v2alpha1.RuntimeVersionOrBuilder>( + runtimeVersionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.RuntimeVersion, + com.google.cloud.tpu.v2alpha1.RuntimeVersion.Builder, + com.google.cloud.tpu.v2alpha1.RuntimeVersionOrBuilder>( runtimeVersions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -950,18 +1051,20 @@ public com.google.cloud.tpu.v2alpha1.RuntimeVersion.Builder addRuntimeVersionsBu private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -970,20 +1073,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -991,95 +1095,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The next page token or empty if none.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1087,80 +1208,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1170,28 +1301,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1201,12 +1334,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse) private static final com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse(); } @@ -1215,27 +1348,27 @@ public static com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuntimeVersionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuntimeVersionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1250,6 +1383,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsResponseOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsResponseOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsResponseOrBuilder.java index 2613e6e3d961..86f9ef995705 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsResponseOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListRuntimeVersionsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface ListRuntimeVersionsResponseOrBuilder extends +public interface ListRuntimeVersionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v2alpha1.RuntimeVersion runtime_versions = 1; */ - java.util.List - getRuntimeVersionsList(); + java.util.List getRuntimeVersionsList(); /** + * + * *
    * The listed nodes.
    * 
@@ -25,6 +44,8 @@ public interface ListRuntimeVersionsResponseOrBuilder extends */ com.google.cloud.tpu.v2alpha1.RuntimeVersion getRuntimeVersions(int index); /** + * + * *
    * The listed nodes.
    * 
@@ -33,82 +54,100 @@ public interface ListRuntimeVersionsResponseOrBuilder extends */ int getRuntimeVersionsCount(); /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v2alpha1.RuntimeVersion runtime_versions = 1; */ - java.util.List + java.util.List getRuntimeVersionsOrBuilderList(); /** + * + * *
    * The listed nodes.
    * 
* * repeated .google.cloud.tpu.v2alpha1.RuntimeVersion runtime_versions = 1; */ - com.google.cloud.tpu.v2alpha1.RuntimeVersionOrBuilder getRuntimeVersionsOrBuilder( - int index); + com.google.cloud.tpu.v2alpha1.RuntimeVersionOrBuilder getRuntimeVersionsOrBuilder(int index); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next page token or empty if none.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/LocationName.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/LocationName.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/LocationName.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/LocationName.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfig.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfig.java similarity index 71% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfig.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfig.java index ae77d4acae8c..dd4f6f6bf6fa 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfig.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfig.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Network related configurations.
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.NetworkConfig} */ -public final class NetworkConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NetworkConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.NetworkConfig) NetworkConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NetworkConfig.newBuilder() to construct. private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NetworkConfig() { network_ = ""; subnetwork_ = ""; @@ -26,38 +44,42 @@ private NetworkConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NetworkConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_NetworkConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_NetworkConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_NetworkConfig_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_NetworkConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.NetworkConfig.class, com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder.class); + com.google.cloud.tpu.v2alpha1.NetworkConfig.class, + com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private volatile java.lang.Object network_; /** + * + * *
    * The name of the network for the TPU node. It must be a preexisting Google
    * Compute Engine network. If none is provided, "default" will be used.
    * 
* * string network = 1; + * * @return The network. */ @java.lang.Override @@ -66,30 +88,30 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** + * + * *
    * The name of the network for the TPU node. It must be a preexisting Google
    * Compute Engine network. If none is provided, "default" will be used.
    * 
* * string network = 1; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -100,6 +122,8 @@ public java.lang.String getNetwork() { public static final int SUBNETWORK_FIELD_NUMBER = 2; private volatile java.lang.Object subnetwork_; /** + * + * *
    * The name of the subnetwork for the TPU node. It must be a preexisting
    * Google Compute Engine subnetwork. If none is provided, "default" will be
@@ -107,6 +131,7 @@ public java.lang.String getNetwork() {
    * 
* * string subnetwork = 2; + * * @return The subnetwork. */ @java.lang.Override @@ -115,14 +140,15 @@ public java.lang.String getSubnetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; } } /** + * + * *
    * The name of the subnetwork for the TPU node. It must be a preexisting
    * Google Compute Engine subnetwork. If none is provided, "default" will be
@@ -130,16 +156,15 @@ public java.lang.String getSubnetwork() {
    * 
* * string subnetwork = 2; + * * @return The bytes for subnetwork. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubnetworkBytes() { + public com.google.protobuf.ByteString getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -150,6 +175,8 @@ public java.lang.String getSubnetwork() { public static final int ENABLE_EXTERNAL_IPS_FIELD_NUMBER = 3; private boolean enableExternalIps_; /** + * + * *
    * Indicates that external IP addresses would be associated with the TPU
    * workers. If set to false, the specified subnetwork or network should have
@@ -157,6 +184,7 @@ public java.lang.String getSubnetwork() {
    * 
* * bool enable_external_ips = 3; + * * @return The enableExternalIps. */ @java.lang.Override @@ -167,6 +195,8 @@ public boolean getEnableExternalIps() { public static final int CAN_IP_FORWARD_FIELD_NUMBER = 4; private boolean canIpForward_; /** + * + * *
    * Allows the TPU node to send and receive packets with non-matching
    * destination or source IPs. This is required if you plan to use the TPU
@@ -174,6 +204,7 @@ public boolean getEnableExternalIps() {
    * 
* * bool can_ip_forward = 4; + * * @return The canIpForward. */ @java.lang.Override @@ -182,6 +213,7 @@ public boolean getCanIpForward() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,8 +225,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); } @@ -223,12 +254,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetwork_); } if (enableExternalIps_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, enableExternalIps_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableExternalIps_); } if (canIpForward_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, canIpForward_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, canIpForward_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -238,21 +267,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.NetworkConfig)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.NetworkConfig other = (com.google.cloud.tpu.v2alpha1.NetworkConfig) obj; + com.google.cloud.tpu.v2alpha1.NetworkConfig other = + (com.google.cloud.tpu.v2alpha1.NetworkConfig) obj; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getSubnetwork() - .equals(other.getSubnetwork())) return false; - if (getEnableExternalIps() - != other.getEnableExternalIps()) return false; - if (getCanIpForward() - != other.getCanIpForward()) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getSubnetwork().equals(other.getSubnetwork())) return false; + if (getEnableExternalIps() != other.getEnableExternalIps()) return false; + if (getCanIpForward() != other.getCanIpForward()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -269,140 +295,144 @@ public int hashCode() { hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; hash = (53 * hash) + getSubnetwork().hashCode(); hash = (37 * hash) + ENABLE_EXTERNAL_IPS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableExternalIps()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableExternalIps()); hash = (37 * hash) + CAN_IP_FORWARD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCanIpForward()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCanIpForward()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.tpu.v2alpha1.NetworkConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.NetworkConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.NetworkConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.NetworkConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.NetworkConfig 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.tpu.v2alpha1.NetworkConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.NetworkConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.NetworkConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.NetworkConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.NetworkConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.NetworkConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.NetworkConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.NetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.NetworkConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.NetworkConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Network related configurations.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.NetworkConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.NetworkConfig) com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_NetworkConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_NetworkConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_NetworkConfig_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_NetworkConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.NetworkConfig.class, com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder.class); + com.google.cloud.tpu.v2alpha1.NetworkConfig.class, + com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.NetworkConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -418,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_NetworkConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_NetworkConfig_descriptor; } @java.lang.Override @@ -439,7 +469,8 @@ public com.google.cloud.tpu.v2alpha1.NetworkConfig build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.NetworkConfig buildPartial() { - com.google.cloud.tpu.v2alpha1.NetworkConfig result = new com.google.cloud.tpu.v2alpha1.NetworkConfig(this); + com.google.cloud.tpu.v2alpha1.NetworkConfig result = + new com.google.cloud.tpu.v2alpha1.NetworkConfig(this); result.network_ = network_; result.subnetwork_ = subnetwork_; result.enableExternalIps_ = enableExternalIps_; @@ -452,38 +483,39 @@ public com.google.cloud.tpu.v2alpha1.NetworkConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.NetworkConfig) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.NetworkConfig)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.NetworkConfig) other); } else { super.mergeFrom(other); return this; @@ -532,32 +564,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - network_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - subnetwork_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - enableExternalIps_ = input.readBool(); - - break; - } // case 24 - case 32: { - canIpForward_ = input.readBool(); - - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + network_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + subnetwork_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + enableExternalIps_ = input.readBool(); + + break; + } // case 24 + case 32: + { + canIpForward_ = input.readBool(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -570,19 +607,21 @@ public Builder mergeFrom( private java.lang.Object network_ = ""; /** + * + * *
      * The name of the network for the TPU node. It must be a preexisting Google
      * Compute Engine network. If none is provided, "default" will be used.
      * 
* * string network = 1; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -591,21 +630,22 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * The name of the network for the TPU node. It must be a preexisting Google
      * Compute Engine network. If none is provided, "default" will be used.
      * 
* * string network = 1; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -613,57 +653,64 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * The name of the network for the TPU node. It must be a preexisting Google
      * Compute Engine network. If none is provided, "default" will be used.
      * 
* * string network = 1; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { + public Builder setNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** + * + * *
      * The name of the network for the TPU node. It must be a preexisting Google
      * Compute Engine network. If none is provided, "default" will be used.
      * 
* * string network = 1; + * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** + * + * *
      * The name of the network for the TPU node. It must be a preexisting Google
      * Compute Engine network. If none is provided, "default" will be used.
      * 
* * string network = 1; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -671,6 +718,8 @@ public Builder setNetworkBytes( private java.lang.Object subnetwork_ = ""; /** + * + * *
      * The name of the subnetwork for the TPU node. It must be a preexisting
      * Google Compute Engine subnetwork. If none is provided, "default" will be
@@ -678,13 +727,13 @@ public Builder setNetworkBytes(
      * 
* * string subnetwork = 2; + * * @return The subnetwork. */ public java.lang.String getSubnetwork() { java.lang.Object ref = subnetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; @@ -693,6 +742,8 @@ public java.lang.String getSubnetwork() { } } /** + * + * *
      * The name of the subnetwork for the TPU node. It must be a preexisting
      * Google Compute Engine subnetwork. If none is provided, "default" will be
@@ -700,15 +751,14 @@ public java.lang.String getSubnetwork() {
      * 
* * string subnetwork = 2; + * * @return The bytes for subnetwork. */ - public com.google.protobuf.ByteString - getSubnetworkBytes() { + public com.google.protobuf.ByteString getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -716,6 +766,8 @@ public java.lang.String getSubnetwork() { } } /** + * + * *
      * The name of the subnetwork for the TPU node. It must be a preexisting
      * Google Compute Engine subnetwork. If none is provided, "default" will be
@@ -723,20 +775,22 @@ public java.lang.String getSubnetwork() {
      * 
* * string subnetwork = 2; + * * @param value The subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetwork( - java.lang.String value) { + public Builder setSubnetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subnetwork_ = value; onChanged(); return this; } /** + * + * *
      * The name of the subnetwork for the TPU node. It must be a preexisting
      * Google Compute Engine subnetwork. If none is provided, "default" will be
@@ -744,15 +798,18 @@ public Builder setSubnetwork(
      * 
* * string subnetwork = 2; + * * @return This builder for chaining. */ public Builder clearSubnetwork() { - + subnetwork_ = getDefaultInstance().getSubnetwork(); onChanged(); return this; } /** + * + * *
      * The name of the subnetwork for the TPU node. It must be a preexisting
      * Google Compute Engine subnetwork. If none is provided, "default" will be
@@ -760,23 +817,25 @@ public Builder clearSubnetwork() {
      * 
* * string subnetwork = 2; + * * @param value The bytes for subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnetwork_ = value; onChanged(); return this; } - private boolean enableExternalIps_ ; + private boolean enableExternalIps_; /** + * + * *
      * Indicates that external IP addresses would be associated with the TPU
      * workers. If set to false, the specified subnetwork or network should have
@@ -784,6 +843,7 @@ public Builder setSubnetworkBytes(
      * 
* * bool enable_external_ips = 3; + * * @return The enableExternalIps. */ @java.lang.Override @@ -791,6 +851,8 @@ public boolean getEnableExternalIps() { return enableExternalIps_; } /** + * + * *
      * Indicates that external IP addresses would be associated with the TPU
      * workers. If set to false, the specified subnetwork or network should have
@@ -798,16 +860,19 @@ public boolean getEnableExternalIps() {
      * 
* * bool enable_external_ips = 3; + * * @param value The enableExternalIps to set. * @return This builder for chaining. */ public Builder setEnableExternalIps(boolean value) { - + enableExternalIps_ = value; onChanged(); return this; } /** + * + * *
      * Indicates that external IP addresses would be associated with the TPU
      * workers. If set to false, the specified subnetwork or network should have
@@ -815,17 +880,20 @@ public Builder setEnableExternalIps(boolean value) {
      * 
* * bool enable_external_ips = 3; + * * @return This builder for chaining. */ public Builder clearEnableExternalIps() { - + enableExternalIps_ = false; onChanged(); return this; } - private boolean canIpForward_ ; + private boolean canIpForward_; /** + * + * *
      * Allows the TPU node to send and receive packets with non-matching
      * destination or source IPs. This is required if you plan to use the TPU
@@ -833,6 +901,7 @@ public Builder clearEnableExternalIps() {
      * 
* * bool can_ip_forward = 4; + * * @return The canIpForward. */ @java.lang.Override @@ -840,6 +909,8 @@ public boolean getCanIpForward() { return canIpForward_; } /** + * + * *
      * Allows the TPU node to send and receive packets with non-matching
      * destination or source IPs. This is required if you plan to use the TPU
@@ -847,16 +918,19 @@ public boolean getCanIpForward() {
      * 
* * bool can_ip_forward = 4; + * * @param value The canIpForward to set. * @return This builder for chaining. */ public Builder setCanIpForward(boolean value) { - + canIpForward_ = value; onChanged(); return this; } /** + * + * *
      * Allows the TPU node to send and receive packets with non-matching
      * destination or source IPs. This is required if you plan to use the TPU
@@ -864,17 +938,18 @@ public Builder setCanIpForward(boolean value) {
      * 
* * bool can_ip_forward = 4; + * * @return This builder for chaining. */ public Builder clearCanIpForward() { - + canIpForward_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -884,12 +959,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.NetworkConfig) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.NetworkConfig) private static final com.google.cloud.tpu.v2alpha1.NetworkConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.NetworkConfig(); } @@ -898,27 +973,27 @@ public static com.google.cloud.tpu.v2alpha1.NetworkConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -933,6 +1008,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.NetworkConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfigOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfigOrBuilder.java similarity index 71% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfigOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfigOrBuilder.java index 5b330b83facf..cb262342c834 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfigOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfigOrBuilder.java @@ -1,35 +1,58 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface NetworkConfigOrBuilder extends +public interface NetworkConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.NetworkConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the network for the TPU node. It must be a preexisting Google
    * Compute Engine network. If none is provided, "default" will be used.
    * 
* * string network = 1; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
    * The name of the network for the TPU node. It must be a preexisting Google
    * Compute Engine network. If none is provided, "default" will be used.
    * 
* * string network = 1; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
    * The name of the subnetwork for the TPU node. It must be a preexisting
    * Google Compute Engine subnetwork. If none is provided, "default" will be
@@ -37,10 +60,13 @@ public interface NetworkConfigOrBuilder extends
    * 
* * string subnetwork = 2; + * * @return The subnetwork. */ java.lang.String getSubnetwork(); /** + * + * *
    * The name of the subnetwork for the TPU node. It must be a preexisting
    * Google Compute Engine subnetwork. If none is provided, "default" will be
@@ -48,12 +74,14 @@ public interface NetworkConfigOrBuilder extends
    * 
* * string subnetwork = 2; + * * @return The bytes for subnetwork. */ - com.google.protobuf.ByteString - getSubnetworkBytes(); + com.google.protobuf.ByteString getSubnetworkBytes(); /** + * + * *
    * Indicates that external IP addresses would be associated with the TPU
    * workers. If set to false, the specified subnetwork or network should have
@@ -61,11 +89,14 @@ public interface NetworkConfigOrBuilder extends
    * 
* * bool enable_external_ips = 3; + * * @return The enableExternalIps. */ boolean getEnableExternalIps(); /** + * + * *
    * Allows the TPU node to send and receive packets with non-matching
    * destination or source IPs. This is required if you plan to use the TPU
@@ -73,6 +104,7 @@ public interface NetworkConfigOrBuilder extends
    * 
* * bool can_ip_forward = 4; + * * @return The canIpForward. */ boolean getCanIpForward(); diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkEndpoint.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkEndpoint.java similarity index 69% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkEndpoint.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkEndpoint.java index b9469abc0826..b0ce0ae2b3e9 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkEndpoint.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkEndpoint.java @@ -1,61 +1,83 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * A network endpoint over which a TPU worker can be reached.
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.NetworkEndpoint} */ -public final class NetworkEndpoint extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NetworkEndpoint extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.NetworkEndpoint) NetworkEndpointOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NetworkEndpoint.newBuilder() to construct. private NetworkEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NetworkEndpoint() { ipAddress_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NetworkEndpoint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_NetworkEndpoint_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_NetworkEndpoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_NetworkEndpoint_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_NetworkEndpoint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.NetworkEndpoint.class, com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder.class); + com.google.cloud.tpu.v2alpha1.NetworkEndpoint.class, + com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder.class); } public static final int IP_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object ipAddress_; /** + * + * *
    * The internal IP address of this network endpoint.
    * 
* * string ip_address = 1; + * * @return The ipAddress. */ @java.lang.Override @@ -64,29 +86,29 @@ public java.lang.String getIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** + * + * *
    * The internal IP address of this network endpoint.
    * 
* * string ip_address = 1; + * * @return The bytes for ipAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -97,11 +119,14 @@ public java.lang.String getIpAddress() { public static final int PORT_FIELD_NUMBER = 2; private int port_; /** + * + * *
    * The port of this network endpoint.
    * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -112,11 +137,14 @@ public int getPort() { public static final int ACCESS_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.tpu.v2alpha1.AccessConfig accessConfig_; /** + * + * *
    * The access config for the TPU worker.
    * 
* * .google.cloud.tpu.v2alpha1.AccessConfig access_config = 5; + * * @return Whether the accessConfig field is set. */ @java.lang.Override @@ -124,18 +152,25 @@ public boolean hasAccessConfig() { return accessConfig_ != null; } /** + * + * *
    * The access config for the TPU worker.
    * 
* * .google.cloud.tpu.v2alpha1.AccessConfig access_config = 5; + * * @return The accessConfig. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.AccessConfig getAccessConfig() { - return accessConfig_ == null ? com.google.cloud.tpu.v2alpha1.AccessConfig.getDefaultInstance() : accessConfig_; + return accessConfig_ == null + ? com.google.cloud.tpu.v2alpha1.AccessConfig.getDefaultInstance() + : accessConfig_; } /** + * + * *
    * The access config for the TPU worker.
    * 
@@ -148,6 +183,7 @@ public com.google.cloud.tpu.v2alpha1.AccessConfigOrBuilder getAccessConfigOrBuil } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +195,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipAddress_); } @@ -183,12 +218,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ipAddress_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); } if (accessConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAccessConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAccessConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -198,21 +231,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.NetworkEndpoint)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.NetworkEndpoint other = (com.google.cloud.tpu.v2alpha1.NetworkEndpoint) obj; + com.google.cloud.tpu.v2alpha1.NetworkEndpoint other = + (com.google.cloud.tpu.v2alpha1.NetworkEndpoint) obj; - if (!getIpAddress() - .equals(other.getIpAddress())) return false; - if (getPort() - != other.getPort()) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (getPort() != other.getPort()) return false; if (hasAccessConfig() != other.hasAccessConfig()) return false; if (hasAccessConfig()) { - if (!getAccessConfig() - .equals(other.getAccessConfig())) return false; + if (!getAccessConfig().equals(other.getAccessConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -238,130 +269,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.NetworkEndpoint parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.NetworkEndpoint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.NetworkEndpoint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.NetworkEndpoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.NetworkEndpoint 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.tpu.v2alpha1.NetworkEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.NetworkEndpoint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.NetworkEndpoint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.NetworkEndpoint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.NetworkEndpoint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.NetworkEndpoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.NetworkEndpoint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.NetworkEndpoint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.NetworkEndpoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.NetworkEndpoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A network endpoint over which a TPU worker can be reached.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.NetworkEndpoint} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.NetworkEndpoint) com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_NetworkEndpoint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_NetworkEndpoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_NetworkEndpoint_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_NetworkEndpoint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.NetworkEndpoint.class, com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder.class); + com.google.cloud.tpu.v2alpha1.NetworkEndpoint.class, + com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.NetworkEndpoint.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_NetworkEndpoint_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_NetworkEndpoint_descriptor; } @java.lang.Override @@ -400,7 +437,8 @@ public com.google.cloud.tpu.v2alpha1.NetworkEndpoint build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.NetworkEndpoint buildPartial() { - com.google.cloud.tpu.v2alpha1.NetworkEndpoint result = new com.google.cloud.tpu.v2alpha1.NetworkEndpoint(this); + com.google.cloud.tpu.v2alpha1.NetworkEndpoint result = + new com.google.cloud.tpu.v2alpha1.NetworkEndpoint(this); result.ipAddress_ = ipAddress_; result.port_ = port_; if (accessConfigBuilder_ == null) { @@ -416,38 +454,39 @@ public com.google.cloud.tpu.v2alpha1.NetworkEndpoint buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.NetworkEndpoint) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.NetworkEndpoint)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.NetworkEndpoint) other); } else { super.mergeFrom(other); return this; @@ -492,29 +531,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - ipAddress_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - port_ = input.readInt32(); - - break; - } // case 16 - case 42: { - input.readMessage( - getAccessConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + ipAddress_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + port_ = input.readInt32(); + + break; + } // case 16 + case 42: + { + input.readMessage(getAccessConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -527,18 +568,20 @@ public Builder mergeFrom( private java.lang.Object ipAddress_ = ""; /** + * + * *
      * The internal IP address of this network endpoint.
      * 
* * string ip_address = 1; + * * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -547,20 +590,21 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The internal IP address of this network endpoint.
      * 
* * string ip_address = 1; + * * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -568,66 +612,76 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The internal IP address of this network endpoint.
      * 
* * string ip_address = 1; + * * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddress( - java.lang.String value) { + public Builder setIpAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipAddress_ = value; onChanged(); return this; } /** + * + * *
      * The internal IP address of this network endpoint.
      * 
* * string ip_address = 1; + * * @return This builder for chaining. */ public Builder clearIpAddress() { - + ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** + * + * *
      * The internal IP address of this network endpoint.
      * 
* * string ip_address = 1; + * * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; onChanged(); return this; } - private int port_ ; + private int port_; /** + * + * *
      * The port of this network endpoint.
      * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -635,30 +689,36 @@ public int getPort() { return port_; } /** + * + * *
      * The port of this network endpoint.
      * 
* * int32 port = 2; + * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; onChanged(); return this; } /** + * + * *
      * The port of this network endpoint.
      * 
* * int32 port = 2; + * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -666,34 +726,47 @@ public Builder clearPort() { private com.google.cloud.tpu.v2alpha1.AccessConfig accessConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.AccessConfig, com.google.cloud.tpu.v2alpha1.AccessConfig.Builder, com.google.cloud.tpu.v2alpha1.AccessConfigOrBuilder> accessConfigBuilder_; + com.google.cloud.tpu.v2alpha1.AccessConfig, + com.google.cloud.tpu.v2alpha1.AccessConfig.Builder, + com.google.cloud.tpu.v2alpha1.AccessConfigOrBuilder> + accessConfigBuilder_; /** + * + * *
      * The access config for the TPU worker.
      * 
* * .google.cloud.tpu.v2alpha1.AccessConfig access_config = 5; + * * @return Whether the accessConfig field is set. */ public boolean hasAccessConfig() { return accessConfigBuilder_ != null || accessConfig_ != null; } /** + * + * *
      * The access config for the TPU worker.
      * 
* * .google.cloud.tpu.v2alpha1.AccessConfig access_config = 5; + * * @return The accessConfig. */ public com.google.cloud.tpu.v2alpha1.AccessConfig getAccessConfig() { if (accessConfigBuilder_ == null) { - return accessConfig_ == null ? com.google.cloud.tpu.v2alpha1.AccessConfig.getDefaultInstance() : accessConfig_; + return accessConfig_ == null + ? com.google.cloud.tpu.v2alpha1.AccessConfig.getDefaultInstance() + : accessConfig_; } else { return accessConfigBuilder_.getMessage(); } } /** + * + * *
      * The access config for the TPU worker.
      * 
@@ -714,6 +787,8 @@ public Builder setAccessConfig(com.google.cloud.tpu.v2alpha1.AccessConfig value) return this; } /** + * + * *
      * The access config for the TPU worker.
      * 
@@ -732,6 +807,8 @@ public Builder setAccessConfig( return this; } /** + * + * *
      * The access config for the TPU worker.
      * 
@@ -742,7 +819,9 @@ public Builder mergeAccessConfig(com.google.cloud.tpu.v2alpha1.AccessConfig valu if (accessConfigBuilder_ == null) { if (accessConfig_ != null) { accessConfig_ = - com.google.cloud.tpu.v2alpha1.AccessConfig.newBuilder(accessConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v2alpha1.AccessConfig.newBuilder(accessConfig_) + .mergeFrom(value) + .buildPartial(); } else { accessConfig_ = value; } @@ -754,6 +833,8 @@ public Builder mergeAccessConfig(com.google.cloud.tpu.v2alpha1.AccessConfig valu return this; } /** + * + * *
      * The access config for the TPU worker.
      * 
@@ -772,6 +853,8 @@ public Builder clearAccessConfig() { return this; } /** + * + * *
      * The access config for the TPU worker.
      * 
@@ -779,11 +862,13 @@ public Builder clearAccessConfig() { * .google.cloud.tpu.v2alpha1.AccessConfig access_config = 5; */ public com.google.cloud.tpu.v2alpha1.AccessConfig.Builder getAccessConfigBuilder() { - + onChanged(); return getAccessConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The access config for the TPU worker.
      * 
@@ -794,11 +879,14 @@ public com.google.cloud.tpu.v2alpha1.AccessConfigOrBuilder getAccessConfigOrBuil if (accessConfigBuilder_ != null) { return accessConfigBuilder_.getMessageOrBuilder(); } else { - return accessConfig_ == null ? - com.google.cloud.tpu.v2alpha1.AccessConfig.getDefaultInstance() : accessConfig_; + return accessConfig_ == null + ? com.google.cloud.tpu.v2alpha1.AccessConfig.getDefaultInstance() + : accessConfig_; } } /** + * + * *
      * The access config for the TPU worker.
      * 
@@ -806,21 +894,24 @@ public com.google.cloud.tpu.v2alpha1.AccessConfigOrBuilder getAccessConfigOrBuil * .google.cloud.tpu.v2alpha1.AccessConfig access_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.AccessConfig, com.google.cloud.tpu.v2alpha1.AccessConfig.Builder, com.google.cloud.tpu.v2alpha1.AccessConfigOrBuilder> + com.google.cloud.tpu.v2alpha1.AccessConfig, + com.google.cloud.tpu.v2alpha1.AccessConfig.Builder, + com.google.cloud.tpu.v2alpha1.AccessConfigOrBuilder> getAccessConfigFieldBuilder() { if (accessConfigBuilder_ == null) { - accessConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.AccessConfig, com.google.cloud.tpu.v2alpha1.AccessConfig.Builder, com.google.cloud.tpu.v2alpha1.AccessConfigOrBuilder>( - getAccessConfig(), - getParentForChildren(), - isClean()); + accessConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.AccessConfig, + com.google.cloud.tpu.v2alpha1.AccessConfig.Builder, + com.google.cloud.tpu.v2alpha1.AccessConfigOrBuilder>( + getAccessConfig(), getParentForChildren(), isClean()); accessConfig_ = null; } return accessConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -830,12 +921,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.NetworkEndpoint) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.NetworkEndpoint) private static final com.google.cloud.tpu.v2alpha1.NetworkEndpoint DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.NetworkEndpoint(); } @@ -844,27 +935,27 @@ public static com.google.cloud.tpu.v2alpha1.NetworkEndpoint getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkEndpoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkEndpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -879,6 +970,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.NetworkEndpoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkEndpointOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkEndpointOrBuilder.java similarity index 66% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkEndpointOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkEndpointOrBuilder.java index aeeb5a816083..82c95167f742 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkEndpointOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkEndpointOrBuilder.java @@ -1,61 +1,93 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface NetworkEndpointOrBuilder extends +public interface NetworkEndpointOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.NetworkEndpoint) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The internal IP address of this network endpoint.
    * 
* * string ip_address = 1; + * * @return The ipAddress. */ java.lang.String getIpAddress(); /** + * + * *
    * The internal IP address of this network endpoint.
    * 
* * string ip_address = 1; + * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString - getIpAddressBytes(); + com.google.protobuf.ByteString getIpAddressBytes(); /** + * + * *
    * The port of this network endpoint.
    * 
* * int32 port = 2; + * * @return The port. */ int getPort(); /** + * + * *
    * The access config for the TPU worker.
    * 
* * .google.cloud.tpu.v2alpha1.AccessConfig access_config = 5; + * * @return Whether the accessConfig field is set. */ boolean hasAccessConfig(); /** + * + * *
    * The access config for the TPU worker.
    * 
* * .google.cloud.tpu.v2alpha1.AccessConfig access_config = 5; + * * @return The accessConfig. */ com.google.cloud.tpu.v2alpha1.AccessConfig getAccessConfig(); /** + * + * *
    * The access config for the TPU worker.
    * 
diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Node.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Node.java similarity index 70% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Node.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Node.java index fa68a5819e85..cb429528686c 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Node.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Node.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * A TPU instance.
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.Node} */ -public final class Node extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Node extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.Node) NodeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Node.newBuilder() to construct. private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Node() { name_ = ""; description_ = ""; @@ -38,53 +56,56 @@ private Node() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Node(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_Node_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Node_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 24: return internalGetLabels(); case 34: return internalGetMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_Node_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.Node.class, com.google.cloud.tpu.v2alpha1.Node.Builder.class); + com.google.cloud.tpu.v2alpha1.Node.class, + com.google.cloud.tpu.v2alpha1.Node.Builder.class); } /** + * + * *
    * Represents the different states of a TPU node during its lifecycle.
    * 
* * Protobuf enum {@code google.cloud.tpu.v2alpha1.Node.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * TPU node state is not known/set.
      * 
@@ -93,6 +114,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * TPU node is being created.
      * 
@@ -101,6 +124,8 @@ public enum State */ CREATING(1), /** + * + * *
      * TPU node has been created.
      * 
@@ -109,6 +134,8 @@ public enum State */ READY(2), /** + * + * *
      * TPU node is restarting.
      * 
@@ -117,6 +144,8 @@ public enum State */ RESTARTING(3), /** + * + * *
      * TPU node is undergoing reimaging.
      * 
@@ -125,6 +154,8 @@ public enum State */ REIMAGING(4), /** + * + * *
      * TPU node is being deleted.
      * 
@@ -133,6 +164,8 @@ public enum State */ DELETING(5), /** + * + * *
      * TPU node is being repaired and may be unusable. Details can be
      * found in the 'help_description' field.
@@ -142,6 +175,8 @@ public enum State
      */
     REPAIRING(6),
     /**
+     *
+     *
      * 
      * TPU node is stopped.
      * 
@@ -150,6 +185,8 @@ public enum State */ STOPPED(8), /** + * + * *
      * TPU node is currently stopping.
      * 
@@ -158,6 +195,8 @@ public enum State */ STOPPING(9), /** + * + * *
      * TPU node is currently starting.
      * 
@@ -166,6 +205,8 @@ public enum State */ STARTING(10), /** + * + * *
      * TPU node has been preempted. Only applies to Preemptible TPU Nodes.
      * 
@@ -174,6 +215,8 @@ public enum State */ PREEMPTED(11), /** + * + * *
      * TPU node has been terminated due to maintenance or has reached the end of
      * its life cycle (for preemptible nodes).
@@ -183,6 +226,8 @@ public enum State
      */
     TERMINATED(12),
     /**
+     *
+     *
      * 
      * TPU node is currently hiding.
      * 
@@ -191,6 +236,8 @@ public enum State */ HIDING(13), /** + * + * *
      * TPU node has been hidden.
      * 
@@ -199,6 +246,8 @@ public enum State */ HIDDEN(14), /** + * + * *
      * TPU node is currently unhiding.
      * 
@@ -210,6 +259,8 @@ public enum State ; /** + * + * *
      * TPU node state is not known/set.
      * 
@@ -218,6 +269,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * TPU node is being created.
      * 
@@ -226,6 +279,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * TPU node has been created.
      * 
@@ -234,6 +289,8 @@ public enum State */ public static final int READY_VALUE = 2; /** + * + * *
      * TPU node is restarting.
      * 
@@ -242,6 +299,8 @@ public enum State */ public static final int RESTARTING_VALUE = 3; /** + * + * *
      * TPU node is undergoing reimaging.
      * 
@@ -250,6 +309,8 @@ public enum State */ public static final int REIMAGING_VALUE = 4; /** + * + * *
      * TPU node is being deleted.
      * 
@@ -258,6 +319,8 @@ public enum State */ public static final int DELETING_VALUE = 5; /** + * + * *
      * TPU node is being repaired and may be unusable. Details can be
      * found in the 'help_description' field.
@@ -267,6 +330,8 @@ public enum State
      */
     public static final int REPAIRING_VALUE = 6;
     /**
+     *
+     *
      * 
      * TPU node is stopped.
      * 
@@ -275,6 +340,8 @@ public enum State */ public static final int STOPPED_VALUE = 8; /** + * + * *
      * TPU node is currently stopping.
      * 
@@ -283,6 +350,8 @@ public enum State */ public static final int STOPPING_VALUE = 9; /** + * + * *
      * TPU node is currently starting.
      * 
@@ -291,6 +360,8 @@ public enum State */ public static final int STARTING_VALUE = 10; /** + * + * *
      * TPU node has been preempted. Only applies to Preemptible TPU Nodes.
      * 
@@ -299,6 +370,8 @@ public enum State */ public static final int PREEMPTED_VALUE = 11; /** + * + * *
      * TPU node has been terminated due to maintenance or has reached the end of
      * its life cycle (for preemptible nodes).
@@ -308,6 +381,8 @@ public enum State
      */
     public static final int TERMINATED_VALUE = 12;
     /**
+     *
+     *
      * 
      * TPU node is currently hiding.
      * 
@@ -316,6 +391,8 @@ public enum State */ public static final int HIDING_VALUE = 13; /** + * + * *
      * TPU node has been hidden.
      * 
@@ -324,6 +401,8 @@ public enum State */ public static final int HIDDEN_VALUE = 14; /** + * + * *
      * TPU node is currently unhiding.
      * 
@@ -332,7 +411,6 @@ public enum State */ public static final int UNHIDING_VALUE = 15; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -357,61 +435,73 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 2: return READY; - case 3: return RESTARTING; - case 4: return REIMAGING; - case 5: return DELETING; - case 6: return REPAIRING; - case 8: return STOPPED; - case 9: return STOPPING; - case 10: return STARTING; - case 11: return PREEMPTED; - case 12: return TERMINATED; - case 13: return HIDING; - case 14: return HIDDEN; - case 15: return UNHIDING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return RESTARTING; + case 4: + return REIMAGING; + case 5: + return DELETING; + case 6: + return REPAIRING; + case 8: + return STOPPED; + case 9: + return STOPPING; + case 10: + return STARTING; + case 11: + return PREEMPTED; + case 12: + return TERMINATED; + case 13: + return HIDING; + case 14: + return HIDDEN; + case 15: + return UNHIDING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + 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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.tpu.v2alpha1.Node.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + 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."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -429,6 +519,8 @@ private State(int value) { } /** + * + * *
    * Health defines the status of a TPU node as reported by
    * Health Monitor.
@@ -436,9 +528,10 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.tpu.v2alpha1.Node.Health}
    */
-  public enum Health
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Health implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Health status is unknown: not initialized or failed to retrieve.
      * 
@@ -447,6 +540,8 @@ public enum Health */ HEALTH_UNSPECIFIED(0), /** + * + * *
      * The resource is healthy.
      * 
@@ -455,6 +550,8 @@ public enum Health */ HEALTHY(1), /** + * + * *
      * The resource is unresponsive.
      * 
@@ -463,6 +560,8 @@ public enum Health */ TIMEOUT(3), /** + * + * *
      * The in-guest ML stack is unhealthy.
      * 
@@ -471,6 +570,8 @@ public enum Health */ UNHEALTHY_TENSORFLOW(4), /** + * + * *
      * The node is under maintenance/priority boost caused rescheduling and
      * will resume running once rescheduled.
@@ -483,6 +584,8 @@ public enum Health
     ;
 
     /**
+     *
+     *
      * 
      * Health status is unknown: not initialized or failed to retrieve.
      * 
@@ -491,6 +594,8 @@ public enum Health */ public static final int HEALTH_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The resource is healthy.
      * 
@@ -499,6 +604,8 @@ public enum Health */ public static final int HEALTHY_VALUE = 1; /** + * + * *
      * The resource is unresponsive.
      * 
@@ -507,6 +614,8 @@ public enum Health */ public static final int TIMEOUT_VALUE = 3; /** + * + * *
      * The in-guest ML stack is unhealthy.
      * 
@@ -515,6 +624,8 @@ public enum Health */ public static final int UNHEALTHY_TENSORFLOW_VALUE = 4; /** + * + * *
      * The node is under maintenance/priority boost caused rescheduling and
      * will resume running once rescheduled.
@@ -524,7 +635,6 @@ public enum Health
      */
     public static final int UNHEALTHY_MAINTENANCE_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -549,51 +659,53 @@ public static Health valueOf(int value) {
      */
     public static Health forNumber(int value) {
       switch (value) {
-        case 0: return HEALTH_UNSPECIFIED;
-        case 1: return HEALTHY;
-        case 3: return TIMEOUT;
-        case 4: return UNHEALTHY_TENSORFLOW;
-        case 5: return UNHEALTHY_MAINTENANCE;
-        default: return null;
+        case 0:
+          return HEALTH_UNSPECIFIED;
+        case 1:
+          return HEALTHY;
+        case 3:
+          return TIMEOUT;
+        case 4:
+          return UNHEALTHY_TENSORFLOW;
+        case 5:
+          return UNHEALTHY_MAINTENANCE;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        Health> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Health findValueByNumber(int number) {
-              return Health.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Health findValueByNumber(int number) {
+            return Health.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() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.tpu.v2alpha1.Node.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Health[] VALUES = values();
 
-    public static Health valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Health valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -611,15 +723,18 @@ private Health(int value) {
   }
 
   /**
+   *
+   *
    * 
    * TPU API Version.
    * 
* * Protobuf enum {@code google.cloud.tpu.v2alpha1.Node.ApiVersion} */ - public enum ApiVersion - implements com.google.protobuf.ProtocolMessageEnum { + public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * API version is unknown.
      * 
@@ -628,6 +743,8 @@ public enum ApiVersion */ API_VERSION_UNSPECIFIED(0), /** + * + * *
      * TPU API V1Alpha1 version.
      * 
@@ -636,6 +753,8 @@ public enum ApiVersion */ V1_ALPHA1(1), /** + * + * *
      * TPU API V1 version.
      * 
@@ -644,6 +763,8 @@ public enum ApiVersion */ V1(2), /** + * + * *
      * TPU API V2Alpha1 version.
      * 
@@ -655,6 +776,8 @@ public enum ApiVersion ; /** + * + * *
      * API version is unknown.
      * 
@@ -663,6 +786,8 @@ public enum ApiVersion */ public static final int API_VERSION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * TPU API V1Alpha1 version.
      * 
@@ -671,6 +796,8 @@ public enum ApiVersion */ public static final int V1_ALPHA1_VALUE = 1; /** + * + * *
      * TPU API V1 version.
      * 
@@ -679,6 +806,8 @@ public enum ApiVersion */ public static final int V1_VALUE = 2; /** + * + * *
      * TPU API V2Alpha1 version.
      * 
@@ -687,7 +816,6 @@ public enum ApiVersion */ public static final int V2_ALPHA1_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -712,50 +840,51 @@ public static ApiVersion valueOf(int value) { */ public static ApiVersion forNumber(int value) { switch (value) { - case 0: return API_VERSION_UNSPECIFIED; - case 1: return V1_ALPHA1; - case 2: return V1; - case 3: return V2_ALPHA1; - default: return null; + case 0: + return API_VERSION_UNSPECIFIED; + case 1: + return V1_ALPHA1; + case 2: + return V1; + case 3: + return V2_ALPHA1; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ApiVersion> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ApiVersion findValueByNumber(int number) { - return ApiVersion.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ApiVersion findValueByNumber(int number) { + return ApiVersion.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.tpu.v2alpha1.Node.getDescriptor().getEnumTypes().get(2); } private static final ApiVersion[] VALUES = values(); - public static ApiVersion valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ApiVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -775,11 +904,16 @@ private ApiVersion(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. Immutable. The name of the TPU.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The name. */ @java.lang.Override @@ -788,29 +922,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Immutable. The name of the TPU.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -821,11 +957,14 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * The user-supplied description of the TPU. Maximum of 512 characters.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -834,29 +973,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * The user-supplied description of the TPU. Maximum of 512 characters.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -867,11 +1006,14 @@ public java.lang.String getDescription() { public static final int ACCELERATOR_TYPE_FIELD_NUMBER = 5; private volatile java.lang.Object acceleratorType_; /** + * + * *
    * The type of hardware accelerators associated with this node.
    * 
* * string accelerator_type = 5; + * * @return The acceleratorType. */ @java.lang.Override @@ -880,29 +1022,29 @@ public java.lang.String getAcceleratorType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); acceleratorType_ = s; return s; } } /** + * + * *
    * The type of hardware accelerators associated with this node.
    * 
* * string accelerator_type = 5; + * * @return The bytes for acceleratorType. */ @java.lang.Override - public com.google.protobuf.ByteString - getAcceleratorTypeBytes() { + public com.google.protobuf.ByteString getAcceleratorTypeBytes() { java.lang.Object ref = acceleratorType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); acceleratorType_ = b; return b; } else { @@ -913,39 +1055,55 @@ public java.lang.String getAcceleratorType() { public static final int STATE_FIELD_NUMBER = 9; private int state_; /** + * + * *
    * Output only. The current state for the TPU Node.
    * 
* - * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current state for the TPU Node.
    * 
* - * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.tpu.v2alpha1.Node.State getState() { + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Node.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2alpha1.Node.State result = com.google.cloud.tpu.v2alpha1.Node.State.valueOf(state_); + com.google.cloud.tpu.v2alpha1.Node.State result = + com.google.cloud.tpu.v2alpha1.Node.State.valueOf(state_); return result == null ? com.google.cloud.tpu.v2alpha1.Node.State.UNRECOGNIZED : result; } public static final int HEALTH_DESCRIPTION_FIELD_NUMBER = 10; private volatile java.lang.Object healthDescription_; /** + * + * *
    * Output only. If this field is populated, it contains a description of why the TPU Node
    * is unhealthy.
    * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The healthDescription. */ @java.lang.Override @@ -954,30 +1112,30 @@ public java.lang.String getHealthDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); healthDescription_ = s; return s; } } /** + * + * *
    * Output only. If this field is populated, it contains a description of why the TPU Node
    * is unhealthy.
    * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for healthDescription. */ @java.lang.Override - public com.google.protobuf.ByteString - getHealthDescriptionBytes() { + public com.google.protobuf.ByteString getHealthDescriptionBytes() { java.lang.Object ref = healthDescription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); healthDescription_ = b; return b; } else { @@ -988,11 +1146,14 @@ public java.lang.String getHealthDescription() { public static final int RUNTIME_VERSION_FIELD_NUMBER = 11; private volatile java.lang.Object runtimeVersion_; /** + * + * *
    * Required. The runtime version running in the Node.
    * 
* * string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The runtimeVersion. */ @java.lang.Override @@ -1001,29 +1162,29 @@ public java.lang.String getRuntimeVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtimeVersion_ = s; return s; } } /** + * + * *
    * Required. The runtime version running in the Node.
    * 
* * string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for runtimeVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getRuntimeVersionBytes() { + public com.google.protobuf.ByteString getRuntimeVersionBytes() { java.lang.Object ref = runtimeVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); runtimeVersion_ = b; return b; } else { @@ -1034,11 +1195,14 @@ public java.lang.String getRuntimeVersion() { public static final int NETWORK_CONFIG_FIELD_NUMBER = 36; private com.google.cloud.tpu.v2alpha1.NetworkConfig networkConfig_; /** + * + * *
    * Network configurations for the TPU node.
    * 
* * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; + * * @return Whether the networkConfig field is set. */ @java.lang.Override @@ -1046,18 +1210,25 @@ public boolean hasNetworkConfig() { return networkConfig_ != null; } /** + * + * *
    * Network configurations for the TPU node.
    * 
* * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; + * * @return The networkConfig. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.NetworkConfig getNetworkConfig() { - return networkConfig_ == null ? com.google.cloud.tpu.v2alpha1.NetworkConfig.getDefaultInstance() : networkConfig_; + return networkConfig_ == null + ? com.google.cloud.tpu.v2alpha1.NetworkConfig.getDefaultInstance() + : networkConfig_; } /** + * + * *
    * Network configurations for the TPU node.
    * 
@@ -1072,6 +1243,8 @@ public com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder getNetworkConfigOrBu public static final int CIDR_BLOCK_FIELD_NUMBER = 13; private volatile java.lang.Object cidrBlock_; /** + * + * *
    * The CIDR block that the TPU node will use when selecting an IP address.
    * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -1084,6 +1257,7 @@ public com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder getNetworkConfigOrBu
    * 
* * string cidr_block = 13; + * * @return The cidrBlock. */ @java.lang.Override @@ -1092,14 +1266,15 @@ public java.lang.String getCidrBlock() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cidrBlock_ = s; return s; } } /** + * + * *
    * The CIDR block that the TPU node will use when selecting an IP address.
    * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -1112,16 +1287,15 @@ public java.lang.String getCidrBlock() {
    * 
* * string cidr_block = 13; + * * @return The bytes for cidrBlock. */ @java.lang.Override - public com.google.protobuf.ByteString - getCidrBlockBytes() { + public com.google.protobuf.ByteString getCidrBlockBytes() { java.lang.Object ref = cidrBlock_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cidrBlock_ = b; return b; } else { @@ -1132,12 +1306,15 @@ public java.lang.String getCidrBlock() { public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 37; private com.google.cloud.tpu.v2alpha1.ServiceAccount serviceAccount_; /** + * + * *
    * The Google Cloud Platform Service Account to be used by the TPU node VMs.
    * If None is specified, the default compute service account will be used.
    * 
* * .google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37; + * * @return Whether the serviceAccount field is set. */ @java.lang.Override @@ -1145,19 +1322,26 @@ public boolean hasServiceAccount() { return serviceAccount_ != null; } /** + * + * *
    * The Google Cloud Platform Service Account to be used by the TPU node VMs.
    * If None is specified, the default compute service account will be used.
    * 
* * .google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37; + * * @return The serviceAccount. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.ServiceAccount getServiceAccount() { - return serviceAccount_ == null ? com.google.cloud.tpu.v2alpha1.ServiceAccount.getDefaultInstance() : serviceAccount_; + return serviceAccount_ == null + ? com.google.cloud.tpu.v2alpha1.ServiceAccount.getDefaultInstance() + : serviceAccount_; } /** + * + * *
    * The Google Cloud Platform Service Account to be used by the TPU node VMs.
    * If None is specified, the default compute service account will be used.
@@ -1173,11 +1357,15 @@ public com.google.cloud.tpu.v2alpha1.ServiceAccountOrBuilder getServiceAccountOr
   public static final int CREATE_TIME_FIELD_NUMBER = 16;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. The time when the node was created.
    * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1185,11 +1373,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the node was created.
    * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1197,11 +1389,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the node was created.
    * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1211,11 +1406,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int SCHEDULING_CONFIG_FIELD_NUMBER = 17; private com.google.cloud.tpu.v2alpha1.SchedulingConfig schedulingConfig_; /** + * + * *
    * The scheduling options for this node.
    * 
* * .google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17; + * * @return Whether the schedulingConfig field is set. */ @java.lang.Override @@ -1223,18 +1421,25 @@ public boolean hasSchedulingConfig() { return schedulingConfig_ != null; } /** + * + * *
    * The scheduling options for this node.
    * 
* * .google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17; + * * @return The schedulingConfig. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.SchedulingConfig getSchedulingConfig() { - return schedulingConfig_ == null ? com.google.cloud.tpu.v2alpha1.SchedulingConfig.getDefaultInstance() : schedulingConfig_; + return schedulingConfig_ == null + ? com.google.cloud.tpu.v2alpha1.SchedulingConfig.getDefaultInstance() + : schedulingConfig_; } /** + * + * *
    * The scheduling options for this node.
    * 
@@ -1249,66 +1454,86 @@ public com.google.cloud.tpu.v2alpha1.SchedulingConfigOrBuilder getSchedulingConf public static final int NETWORK_ENDPOINTS_FIELD_NUMBER = 21; private java.util.List networkEndpoints_; /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getNetworkEndpointsList() { return networkEndpoints_; } /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getNetworkEndpointsOrBuilderList() { return networkEndpoints_; } /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getNetworkEndpointsCount() { return networkEndpoints_.size(); } /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.NetworkEndpoint getNetworkEndpoints(int index) { return networkEndpoints_.get(index); } /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder( @@ -1319,49 +1544,57 @@ public com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder getNetworkEndpoint public static final int HEALTH_FIELD_NUMBER = 22; private int health_; /** + * + * *
    * The health status of the TPU node.
    * 
* * .google.cloud.tpu.v2alpha1.Node.Health health = 22; + * * @return The enum numeric value on the wire for health. */ - @java.lang.Override public int getHealthValue() { + @java.lang.Override + public int getHealthValue() { return health_; } /** + * + * *
    * The health status of the TPU node.
    * 
* * .google.cloud.tpu.v2alpha1.Node.Health health = 22; + * * @return The health. */ - @java.lang.Override public com.google.cloud.tpu.v2alpha1.Node.Health getHealth() { + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Node.Health getHealth() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2alpha1.Node.Health result = com.google.cloud.tpu.v2alpha1.Node.Health.valueOf(health_); + com.google.cloud.tpu.v2alpha1.Node.Health result = + com.google.cloud.tpu.v2alpha1.Node.Health.valueOf(health_); return result == null ? com.google.cloud.tpu.v2alpha1.Node.Health.UNRECOGNIZED : result; } public static final int LABELS_FIELD_NUMBER = 24; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_Node_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Node_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1370,28 +1603,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
* * map<string, string> labels = 24; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
@@ -1399,11 +1634,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 24; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
@@ -1411,16 +1647,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 24; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
@@ -1428,12 +1664,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 24; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1441,24 +1676,23 @@ public java.lang.String getLabelsOrThrow( } public static final int METADATA_FIELD_NUMBER = 34; + private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_Node_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Node_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } @@ -1467,6 +1701,8 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
    * Custom metadata to apply to the TPU Node.
    * Can set startup-script and shutdown-script
@@ -1474,22 +1710,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 34;
    */
-
   @java.lang.Override
-  public boolean containsMetadata(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsMetadata(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
+   *
+   *
    * 
    * Custom metadata to apply to the TPU Node.
    * Can set startup-script and shutdown-script
@@ -1498,11 +1734,12 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 34;
    */
   @java.lang.Override
-
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
+   *
+   *
    * 
    * Custom metadata to apply to the TPU Node.
    * Can set startup-script and shutdown-script
@@ -1511,16 +1748,17 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 34;
    */
   @java.lang.Override
-
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Custom metadata to apply to the TPU Node.
    * Can set startup-script and shutdown-script
@@ -1529,12 +1767,11 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 34;
    */
   @java.lang.Override
-
-  public java.lang.String getMetadataOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+  public java.lang.String getMetadataOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1544,37 +1781,45 @@ public java.lang.String getMetadataOrThrow(
   public static final int TAGS_FIELD_NUMBER = 40;
   private com.google.protobuf.LazyStringList tags_;
   /**
+   *
+   *
    * 
    * Tags to apply to the TPU Node. Tags are used to identify valid sources or
    * targets for network firewalls.
    * 
* * repeated string tags = 40; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** + * + * *
    * Tags to apply to the TPU Node. Tags are used to identify valid sources or
    * targets for network firewalls.
    * 
* * repeated string tags = 40; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
    * Tags to apply to the TPU Node. Tags are used to identify valid sources or
    * targets for network firewalls.
    * 
* * repeated string tags = 40; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -1582,28 +1827,33 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
    * Tags to apply to the TPU Node. Tags are used to identify valid sources or
    * targets for network firewalls.
    * 
* * repeated string tags = 40; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int ID_FIELD_NUMBER = 33; private long id_; /** + * + * *
    * Output only. The unique identifier for the TPU Node.
    * 
* * int64 id = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ @java.lang.Override @@ -1614,6 +1864,8 @@ public long getId() { public static final int DATA_DISKS_FIELD_NUMBER = 41; private java.util.List dataDisks_; /** + * + * *
    * The additional data disks for the Node.
    * 
@@ -1625,6 +1877,8 @@ public java.util.List getDataDisksLi return dataDisks_; } /** + * + * *
    * The additional data disks for the Node.
    * 
@@ -1632,11 +1886,13 @@ public java.util.List getDataDisksLi * repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41; */ @java.lang.Override - public java.util.List + public java.util.List getDataDisksOrBuilderList() { return dataDisks_; } /** + * + * *
    * The additional data disks for the Node.
    * 
@@ -1648,6 +1904,8 @@ public int getDataDisksCount() { return dataDisks_.size(); } /** + * + * *
    * The additional data disks for the Node.
    * 
@@ -1659,6 +1917,8 @@ public com.google.cloud.tpu.v2alpha1.AttachedDisk getDataDisks(int index) { return dataDisks_.get(index); } /** + * + * *
    * The additional data disks for the Node.
    * 
@@ -1666,106 +1926,140 @@ public com.google.cloud.tpu.v2alpha1.AttachedDisk getDataDisks(int index) { * repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder getDataDisksOrBuilder( - int index) { + public com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder getDataDisksOrBuilder(int index) { return dataDisks_.get(index); } public static final int API_VERSION_FIELD_NUMBER = 38; private int apiVersion_; /** + * + * *
    * Output only. The API version that created this Node.
    * 
* - * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for apiVersion. */ - @java.lang.Override public int getApiVersionValue() { + @java.lang.Override + public int getApiVersionValue() { return apiVersion_; } /** + * + * *
    * Output only. The API version that created this Node.
    * 
* - * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The apiVersion. */ - @java.lang.Override public com.google.cloud.tpu.v2alpha1.Node.ApiVersion getApiVersion() { + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Node.ApiVersion getApiVersion() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2alpha1.Node.ApiVersion result = com.google.cloud.tpu.v2alpha1.Node.ApiVersion.valueOf(apiVersion_); + com.google.cloud.tpu.v2alpha1.Node.ApiVersion result = + com.google.cloud.tpu.v2alpha1.Node.ApiVersion.valueOf(apiVersion_); return result == null ? com.google.cloud.tpu.v2alpha1.Node.ApiVersion.UNRECOGNIZED : result; } public static final int SYMPTOMS_FIELD_NUMBER = 39; private java.util.List symptoms_; /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getSymptomsList() { return symptoms_; } /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getSymptomsOrBuilderList() { return symptoms_; } /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getSymptomsCount() { return symptoms_.size(); } /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.Symptom getSymptoms(int index) { return symptoms_.get(index); } /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.SymptomOrBuilder getSymptomsOrBuilder( - int index) { + public com.google.cloud.tpu.v2alpha1.SymptomOrBuilder getSymptomsOrBuilder(int index) { return symptoms_.get(index); } public static final int QUEUED_RESOURCE_FIELD_NUMBER = 43; private volatile java.lang.Object queuedResource_; /** + * + * *
    * Output only. The qualified name of the QueuedResource that requested this Node.
    * 
* * string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The queuedResource. */ @java.lang.Override @@ -1774,29 +2068,29 @@ public java.lang.String getQueuedResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queuedResource_ = s; return s; } } /** + * + * *
    * Output only. The qualified name of the QueuedResource that requested this Node.
    * 
* * string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for queuedResource. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueuedResourceBytes() { + public com.google.protobuf.ByteString getQueuedResourceBytes() { java.lang.Object ref = queuedResource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queuedResource_ = b; return b; } else { @@ -1807,11 +2101,14 @@ public java.lang.String getQueuedResource() { public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 45; private com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shieldedInstanceConfig_; /** + * + * *
    * Shielded Instance options.
    * 
* * .google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45; + * * @return Whether the shieldedInstanceConfig field is set. */ @java.lang.Override @@ -1819,18 +2116,25 @@ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfig_ != null; } /** + * + * *
    * Shielded Instance options.
    * 
* * .google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45; + * * @return The shieldedInstanceConfig. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null ? com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } /** + * + * *
    * Shielded Instance options.
    * 
@@ -1838,11 +2142,13 @@ public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig getShieldedInstanceC * .google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { return getShieldedInstanceConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1854,8 +2160,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1889,28 +2194,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (health_ != com.google.cloud.tpu.v2alpha1.Node.Health.HEALTH_UNSPECIFIED.getNumber()) { output.writeEnum(22, health_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 24); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 24); if (id_ != 0L) { output.writeInt64(33, id_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMetadata(), - MetadataDefaultEntryHolder.defaultEntry, - 34); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 34); if (networkConfig_ != null) { output.writeMessage(36, getNetworkConfig()); } if (serviceAccount_ != null) { output.writeMessage(37, getServiceAccount()); } - if (apiVersion_ != com.google.cloud.tpu.v2alpha1.Node.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) { + if (apiVersion_ + != com.google.cloud.tpu.v2alpha1.Node.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) { output.writeEnum(38, apiVersion_); } for (int i = 0; i < symptoms_.size(); i++) { @@ -1947,8 +2245,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, acceleratorType_); } if (state_ != com.google.cloud.tpu.v2alpha1.Node.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthDescription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, healthDescription_); @@ -1960,60 +2257,53 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, cidrBlock_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getCreateTime()); } if (schedulingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getSchedulingConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getSchedulingConfig()); } for (int i = 0; i < networkEndpoints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, networkEndpoints_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(21, networkEndpoints_.get(i)); } if (health_ != com.google.cloud.tpu.v2alpha1.Node.Health.HEALTH_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(22, health_); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, labels__); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, health_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, labels__); } if (id_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(33, id_); - } - for (java.util.Map.Entry entry - : internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(34, metadata__); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(33, id_); + } + for (java.util.Map.Entry entry : + internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry metadata__ = + MetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, metadata__); } if (networkConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(36, getNetworkConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(36, getNetworkConfig()); } if (serviceAccount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(37, getServiceAccount()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getServiceAccount()); } - if (apiVersion_ != com.google.cloud.tpu.v2alpha1.Node.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(38, apiVersion_); + if (apiVersion_ + != com.google.cloud.tpu.v2alpha1.Node.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(38, apiVersion_); } for (int i = 0; i < symptoms_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(39, symptoms_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(39, symptoms_.get(i)); } { int dataSize = 0; @@ -2024,15 +2314,14 @@ public int getSerializedSize() { size += 2 * getTagsList().size(); } for (int i = 0; i < dataDisks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(41, dataDisks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(41, dataDisks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queuedResource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(43, queuedResource_); } if (shieldedInstanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(45, getShieldedInstanceConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(45, getShieldedInstanceConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2042,68 +2331,49 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.Node)) { return super.equals(obj); } com.google.cloud.tpu.v2alpha1.Node other = (com.google.cloud.tpu.v2alpha1.Node) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getAcceleratorType() - .equals(other.getAcceleratorType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getAcceleratorType().equals(other.getAcceleratorType())) return false; if (state_ != other.state_) return false; - if (!getHealthDescription() - .equals(other.getHealthDescription())) return false; - if (!getRuntimeVersion() - .equals(other.getRuntimeVersion())) return false; + if (!getHealthDescription().equals(other.getHealthDescription())) return false; + if (!getRuntimeVersion().equals(other.getRuntimeVersion())) return false; if (hasNetworkConfig() != other.hasNetworkConfig()) return false; if (hasNetworkConfig()) { - if (!getNetworkConfig() - .equals(other.getNetworkConfig())) return false; + if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; } - if (!getCidrBlock() - .equals(other.getCidrBlock())) return false; + if (!getCidrBlock().equals(other.getCidrBlock())) return false; if (hasServiceAccount() != other.hasServiceAccount()) return false; if (hasServiceAccount()) { - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasSchedulingConfig() != other.hasSchedulingConfig()) return false; if (hasSchedulingConfig()) { - if (!getSchedulingConfig() - .equals(other.getSchedulingConfig())) return false; + if (!getSchedulingConfig().equals(other.getSchedulingConfig())) return false; } - if (!getNetworkEndpointsList() - .equals(other.getNetworkEndpointsList())) return false; + if (!getNetworkEndpointsList().equals(other.getNetworkEndpointsList())) return false; if (health_ != other.health_) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!internalGetMetadata().equals( - other.internalGetMetadata())) return false; - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (getId() - != other.getId()) return false; - if (!getDataDisksList() - .equals(other.getDataDisksList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; + if (!getTagsList().equals(other.getTagsList())) return false; + if (getId() != other.getId()) return false; + if (!getDataDisksList().equals(other.getDataDisksList())) return false; if (apiVersion_ != other.apiVersion_) return false; - if (!getSymptomsList() - .equals(other.getSymptomsList())) return false; - if (!getQueuedResource() - .equals(other.getQueuedResource())) return false; + if (!getSymptomsList().equals(other.getSymptomsList())) return false; + if (!getQueuedResource().equals(other.getQueuedResource())) return false; if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; if (hasShieldedInstanceConfig()) { - if (!getShieldedInstanceConfig() - .equals(other.getShieldedInstanceConfig())) return false; + if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2165,8 +2435,7 @@ public int hashCode() { hash = (53 * hash) + getTagsList().hashCode(); } hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId()); if (getDataDisksCount() > 0) { hash = (37 * hash) + DATA_DISKS_FIELD_NUMBER; hash = (53 * hash) + getDataDisksList().hashCode(); @@ -2188,156 +2457,159 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.Node parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.Node parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.Node parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.Node parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.tpu.v2alpha1.Node parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.Node 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.tpu.v2alpha1.Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.Node parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.Node parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.Node parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.Node parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.Node parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.Node parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.Node parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.Node prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A TPU instance.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.Node} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.Node) com.google.cloud.tpu.v2alpha1.NodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_Node_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Node_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 24: return internalGetLabels(); case 34: return internalGetMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 24: return internalGetMutableLabels(); case 34: return internalGetMutableMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_Node_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.Node.class, com.google.cloud.tpu.v2alpha1.Node.Builder.class); + com.google.cloud.tpu.v2alpha1.Node.class, + com.google.cloud.tpu.v2alpha1.Node.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.Node.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2422,9 +2694,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_Node_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Node_descriptor; } @java.lang.Override @@ -2525,38 +2797,39 @@ public com.google.cloud.tpu.v2alpha1.Node buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.Node) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.Node)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.Node) other); } else { super.mergeFrom(other); return this; @@ -2622,9 +2895,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Node other) { networkEndpointsBuilder_ = null; networkEndpoints_ = other.networkEndpoints_; bitField0_ = (bitField0_ & ~0x00000001); - networkEndpointsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNetworkEndpointsFieldBuilder() : null; + networkEndpointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworkEndpointsFieldBuilder() + : null; } else { networkEndpointsBuilder_.addAllMessages(other.networkEndpoints_); } @@ -2633,10 +2907,8 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Node other) { if (other.health_ != 0) { setHealthValue(other.getHealthValue()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); - internalGetMutableMetadata().mergeFrom( - other.internalGetMetadata()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; @@ -2668,9 +2940,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Node other) { dataDisksBuilder_ = null; dataDisks_ = other.dataDisks_; bitField0_ = (bitField0_ & ~0x00000010); - dataDisksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataDisksFieldBuilder() : null; + dataDisksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataDisksFieldBuilder() + : null; } else { dataDisksBuilder_.addAllMessages(other.dataDisks_); } @@ -2697,9 +2970,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Node other) { symptomsBuilder_ = null; symptoms_ = other.symptoms_; bitField0_ = (bitField0_ & ~0x00000020); - symptomsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSymptomsFieldBuilder() : null; + symptomsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSymptomsFieldBuilder() + : null; } else { symptomsBuilder_.addAllMessages(other.symptoms_); } @@ -2738,163 +3012,179 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 26: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 42: { - acceleratorType_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 72: { - state_ = input.readEnum(); - - break; - } // case 72 - case 82: { - healthDescription_ = input.readStringRequireUtf8(); - - break; - } // case 82 - case 90: { - runtimeVersion_ = input.readStringRequireUtf8(); - - break; - } // case 90 - case 106: { - cidrBlock_ = input.readStringRequireUtf8(); - - break; - } // case 106 - case 130: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 130 - case 138: { - input.readMessage( - getSchedulingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 138 - case 170: { - com.google.cloud.tpu.v2alpha1.NetworkEndpoint m = - input.readMessage( - com.google.cloud.tpu.v2alpha1.NetworkEndpoint.parser(), - extensionRegistry); - if (networkEndpointsBuilder_ == null) { - ensureNetworkEndpointsIsMutable(); - networkEndpoints_.add(m); - } else { - networkEndpointsBuilder_.addMessage(m); - } - break; - } // case 170 - case 176: { - health_ = input.readEnum(); - - break; - } // case 176 - case 194: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 194 - case 264: { - id_ = input.readInt64(); - - break; - } // case 264 - case 274: { - com.google.protobuf.MapEntry - metadata__ = input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableMetadata().getMutableMap().put( - metadata__.getKey(), metadata__.getValue()); - break; - } // case 274 - case 290: { - input.readMessage( - getNetworkConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 290 - case 298: { - input.readMessage( - getServiceAccountFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 298 - case 304: { - apiVersion_ = input.readEnum(); - - break; - } // case 304 - case 314: { - com.google.cloud.tpu.v2alpha1.Symptom m = - input.readMessage( - com.google.cloud.tpu.v2alpha1.Symptom.parser(), - extensionRegistry); - if (symptomsBuilder_ == null) { - ensureSymptomsIsMutable(); - symptoms_.add(m); - } else { - symptomsBuilder_.addMessage(m); - } - break; - } // case 314 - case 322: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 322 - case 330: { - com.google.cloud.tpu.v2alpha1.AttachedDisk m = - input.readMessage( - com.google.cloud.tpu.v2alpha1.AttachedDisk.parser(), - extensionRegistry); - if (dataDisksBuilder_ == null) { - ensureDataDisksIsMutable(); - dataDisks_.add(m); - } else { - dataDisksBuilder_.addMessage(m); - } - break; - } // case 330 - case 346: { - queuedResource_ = input.readStringRequireUtf8(); - - break; - } // case 346 - case 362: { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 362 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 42: + { + acceleratorType_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 72: + { + state_ = input.readEnum(); + + break; + } // case 72 + case 82: + { + healthDescription_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: + { + runtimeVersion_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 106: + { + cidrBlock_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 130: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 130 + case 138: + { + input.readMessage( + getSchedulingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 138 + case 170: + { + com.google.cloud.tpu.v2alpha1.NetworkEndpoint m = + input.readMessage( + com.google.cloud.tpu.v2alpha1.NetworkEndpoint.parser(), extensionRegistry); + if (networkEndpointsBuilder_ == null) { + ensureNetworkEndpointsIsMutable(); + networkEndpoints_.add(m); + } else { + networkEndpointsBuilder_.addMessage(m); + } + break; + } // case 170 + case 176: + { + health_ = input.readEnum(); + + break; + } // case 176 + case 194: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 194 + case 264: + { + id_ = input.readInt64(); + + break; + } // case 264 + case 274: + { + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + break; + } // case 274 + case 290: + { + input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 290 + case 298: + { + input.readMessage(getServiceAccountFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 298 + case 304: + { + apiVersion_ = input.readEnum(); + + break; + } // case 304 + case 314: + { + com.google.cloud.tpu.v2alpha1.Symptom m = + input.readMessage( + com.google.cloud.tpu.v2alpha1.Symptom.parser(), extensionRegistry); + if (symptomsBuilder_ == null) { + ensureSymptomsIsMutable(); + symptoms_.add(m); + } else { + symptomsBuilder_.addMessage(m); + } + break; + } // case 314 + case 322: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 322 + case 330: + { + com.google.cloud.tpu.v2alpha1.AttachedDisk m = + input.readMessage( + com.google.cloud.tpu.v2alpha1.AttachedDisk.parser(), extensionRegistry); + if (dataDisksBuilder_ == null) { + ensureDataDisksIsMutable(); + dataDisks_.add(m); + } else { + dataDisksBuilder_.addMessage(m); + } + break; + } // case 330 + case 346: + { + queuedResource_ = input.readStringRequireUtf8(); + + break; + } // case 346 + case 362: + { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 362 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2904,22 +3194,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Immutable. The name of the TPU.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2928,20 +3223,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Immutable. The name of the TPU.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2949,54 +3247,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Immutable. The name of the TPU.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Immutable. The name of the TPU.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Immutable. The name of the TPU.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -3004,18 +3315,20 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * The user-supplied description of the TPU. Maximum of 512 characters.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -3024,20 +3337,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The user-supplied description of the TPU. Maximum of 512 characters.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -3045,54 +3359,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The user-supplied description of the TPU. Maximum of 512 characters.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * The user-supplied description of the TPU. Maximum of 512 characters.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * The user-supplied description of the TPU. Maximum of 512 characters.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -3100,18 +3421,20 @@ public Builder setDescriptionBytes( private java.lang.Object acceleratorType_ = ""; /** + * + * *
      * The type of hardware accelerators associated with this node.
      * 
* * string accelerator_type = 5; + * * @return The acceleratorType. */ public java.lang.String getAcceleratorType() { java.lang.Object ref = acceleratorType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); acceleratorType_ = s; return s; @@ -3120,20 +3443,21 @@ public java.lang.String getAcceleratorType() { } } /** + * + * *
      * The type of hardware accelerators associated with this node.
      * 
* * string accelerator_type = 5; + * * @return The bytes for acceleratorType. */ - public com.google.protobuf.ByteString - getAcceleratorTypeBytes() { + public com.google.protobuf.ByteString getAcceleratorTypeBytes() { java.lang.Object ref = acceleratorType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); acceleratorType_ = b; return b; } else { @@ -3141,54 +3465,61 @@ public java.lang.String getAcceleratorType() { } } /** + * + * *
      * The type of hardware accelerators associated with this node.
      * 
* * string accelerator_type = 5; + * * @param value The acceleratorType to set. * @return This builder for chaining. */ - public Builder setAcceleratorType( - java.lang.String value) { + public Builder setAcceleratorType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + acceleratorType_ = value; onChanged(); return this; } /** + * + * *
      * The type of hardware accelerators associated with this node.
      * 
* * string accelerator_type = 5; + * * @return This builder for chaining. */ public Builder clearAcceleratorType() { - + acceleratorType_ = getDefaultInstance().getAcceleratorType(); onChanged(); return this; } /** + * + * *
      * The type of hardware accelerators associated with this node.
      * 
* * string accelerator_type = 5; + * * @param value The bytes for acceleratorType to set. * @return This builder for chaining. */ - public Builder setAcceleratorTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setAcceleratorTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + acceleratorType_ = value; onChanged(); return this; @@ -3196,51 +3527,73 @@ public Builder setAcceleratorTypeBytes( private int state_ = 0; /** + * + * *
      * Output only. The current state for the TPU Node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current state for the TPU Node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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; } /** + * + * *
      * Output only. The current state for the TPU Node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.Node.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2alpha1.Node.State result = com.google.cloud.tpu.v2alpha1.Node.State.valueOf(state_); + com.google.cloud.tpu.v2alpha1.Node.State result = + com.google.cloud.tpu.v2alpha1.Node.State.valueOf(state_); return result == null ? com.google.cloud.tpu.v2alpha1.Node.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The current state for the TPU Node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -3248,21 +3601,26 @@ public Builder setState(com.google.cloud.tpu.v2alpha1.Node.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The current state for the TPU Node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -3270,19 +3628,21 @@ public Builder clearState() { private java.lang.Object healthDescription_ = ""; /** + * + * *
      * Output only. If this field is populated, it contains a description of why the TPU Node
      * is unhealthy.
      * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The healthDescription. */ public java.lang.String getHealthDescription() { java.lang.Object ref = healthDescription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); healthDescription_ = s; return s; @@ -3291,21 +3651,22 @@ public java.lang.String getHealthDescription() { } } /** + * + * *
      * Output only. If this field is populated, it contains a description of why the TPU Node
      * is unhealthy.
      * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for healthDescription. */ - public com.google.protobuf.ByteString - getHealthDescriptionBytes() { + public com.google.protobuf.ByteString getHealthDescriptionBytes() { java.lang.Object ref = healthDescription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); healthDescription_ = b; return b; } else { @@ -3313,57 +3674,64 @@ public java.lang.String getHealthDescription() { } } /** + * + * *
      * Output only. If this field is populated, it contains a description of why the TPU Node
      * is unhealthy.
      * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The healthDescription to set. * @return This builder for chaining. */ - public Builder setHealthDescription( - java.lang.String value) { + public Builder setHealthDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + healthDescription_ = value; onChanged(); return this; } /** + * + * *
      * Output only. If this field is populated, it contains a description of why the TPU Node
      * is unhealthy.
      * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearHealthDescription() { - + healthDescription_ = getDefaultInstance().getHealthDescription(); onChanged(); return this; } /** + * + * *
      * Output only. If this field is populated, it contains a description of why the TPU Node
      * is unhealthy.
      * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for healthDescription to set. * @return This builder for chaining. */ - public Builder setHealthDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setHealthDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + healthDescription_ = value; onChanged(); return this; @@ -3371,18 +3739,20 @@ public Builder setHealthDescriptionBytes( private java.lang.Object runtimeVersion_ = ""; /** + * + * *
      * Required. The runtime version running in the Node.
      * 
* * string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The runtimeVersion. */ public java.lang.String getRuntimeVersion() { java.lang.Object ref = runtimeVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtimeVersion_ = s; return s; @@ -3391,20 +3761,21 @@ public java.lang.String getRuntimeVersion() { } } /** + * + * *
      * Required. The runtime version running in the Node.
      * 
* * string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for runtimeVersion. */ - public com.google.protobuf.ByteString - getRuntimeVersionBytes() { + public com.google.protobuf.ByteString getRuntimeVersionBytes() { java.lang.Object ref = runtimeVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); runtimeVersion_ = b; return b; } else { @@ -3412,54 +3783,61 @@ public java.lang.String getRuntimeVersion() { } } /** + * + * *
      * Required. The runtime version running in the Node.
      * 
* * string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The runtimeVersion to set. * @return This builder for chaining. */ - public Builder setRuntimeVersion( - java.lang.String value) { + public Builder setRuntimeVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + runtimeVersion_ = value; onChanged(); return this; } /** + * + * *
      * Required. The runtime version running in the Node.
      * 
* * string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRuntimeVersion() { - + runtimeVersion_ = getDefaultInstance().getRuntimeVersion(); onChanged(); return this; } /** + * + * *
      * Required. The runtime version running in the Node.
      * 
* * string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for runtimeVersion to set. * @return This builder for chaining. */ - public Builder setRuntimeVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setRuntimeVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + runtimeVersion_ = value; onChanged(); return this; @@ -3467,34 +3845,47 @@ public Builder setRuntimeVersionBytes( private com.google.cloud.tpu.v2alpha1.NetworkConfig networkConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.NetworkConfig, com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder, com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder> networkConfigBuilder_; + com.google.cloud.tpu.v2alpha1.NetworkConfig, + com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder, + com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder> + networkConfigBuilder_; /** + * + * *
      * Network configurations for the TPU node.
      * 
* * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; + * * @return Whether the networkConfig field is set. */ public boolean hasNetworkConfig() { return networkConfigBuilder_ != null || networkConfig_ != null; } /** + * + * *
      * Network configurations for the TPU node.
      * 
* * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; + * * @return The networkConfig. */ public com.google.cloud.tpu.v2alpha1.NetworkConfig getNetworkConfig() { if (networkConfigBuilder_ == null) { - return networkConfig_ == null ? com.google.cloud.tpu.v2alpha1.NetworkConfig.getDefaultInstance() : networkConfig_; + return networkConfig_ == null + ? com.google.cloud.tpu.v2alpha1.NetworkConfig.getDefaultInstance() + : networkConfig_; } else { return networkConfigBuilder_.getMessage(); } } /** + * + * *
      * Network configurations for the TPU node.
      * 
@@ -3515,6 +3906,8 @@ public Builder setNetworkConfig(com.google.cloud.tpu.v2alpha1.NetworkConfig valu return this; } /** + * + * *
      * Network configurations for the TPU node.
      * 
@@ -3533,6 +3926,8 @@ public Builder setNetworkConfig( return this; } /** + * + * *
      * Network configurations for the TPU node.
      * 
@@ -3543,7 +3938,9 @@ public Builder mergeNetworkConfig(com.google.cloud.tpu.v2alpha1.NetworkConfig va if (networkConfigBuilder_ == null) { if (networkConfig_ != null) { networkConfig_ = - com.google.cloud.tpu.v2alpha1.NetworkConfig.newBuilder(networkConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v2alpha1.NetworkConfig.newBuilder(networkConfig_) + .mergeFrom(value) + .buildPartial(); } else { networkConfig_ = value; } @@ -3555,6 +3952,8 @@ public Builder mergeNetworkConfig(com.google.cloud.tpu.v2alpha1.NetworkConfig va return this; } /** + * + * *
      * Network configurations for the TPU node.
      * 
@@ -3573,6 +3972,8 @@ public Builder clearNetworkConfig() { return this; } /** + * + * *
      * Network configurations for the TPU node.
      * 
@@ -3580,11 +3981,13 @@ public Builder clearNetworkConfig() { * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; */ public com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder getNetworkConfigBuilder() { - + onChanged(); return getNetworkConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Network configurations for the TPU node.
      * 
@@ -3595,11 +3998,14 @@ public com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder getNetworkConfigOrBu if (networkConfigBuilder_ != null) { return networkConfigBuilder_.getMessageOrBuilder(); } else { - return networkConfig_ == null ? - com.google.cloud.tpu.v2alpha1.NetworkConfig.getDefaultInstance() : networkConfig_; + return networkConfig_ == null + ? com.google.cloud.tpu.v2alpha1.NetworkConfig.getDefaultInstance() + : networkConfig_; } } /** + * + * *
      * Network configurations for the TPU node.
      * 
@@ -3607,14 +4013,17 @@ public com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder getNetworkConfigOrBu * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.NetworkConfig, com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder, com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder> + com.google.cloud.tpu.v2alpha1.NetworkConfig, + com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder, + com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder> getNetworkConfigFieldBuilder() { if (networkConfigBuilder_ == null) { - networkConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.NetworkConfig, com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder, com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder>( - getNetworkConfig(), - getParentForChildren(), - isClean()); + networkConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.NetworkConfig, + com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder, + com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder>( + getNetworkConfig(), getParentForChildren(), isClean()); networkConfig_ = null; } return networkConfigBuilder_; @@ -3622,6 +4031,8 @@ public com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder getNetworkConfigOrBu private java.lang.Object cidrBlock_ = ""; /** + * + * *
      * The CIDR block that the TPU node will use when selecting an IP address.
      * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -3634,13 +4045,13 @@ public com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder getNetworkConfigOrBu
      * 
* * string cidr_block = 13; + * * @return The cidrBlock. */ public java.lang.String getCidrBlock() { java.lang.Object ref = cidrBlock_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cidrBlock_ = s; return s; @@ -3649,6 +4060,8 @@ public java.lang.String getCidrBlock() { } } /** + * + * *
      * The CIDR block that the TPU node will use when selecting an IP address.
      * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -3661,15 +4074,14 @@ public java.lang.String getCidrBlock() {
      * 
* * string cidr_block = 13; + * * @return The bytes for cidrBlock. */ - public com.google.protobuf.ByteString - getCidrBlockBytes() { + public com.google.protobuf.ByteString getCidrBlockBytes() { java.lang.Object ref = cidrBlock_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cidrBlock_ = b; return b; } else { @@ -3677,6 +4089,8 @@ public java.lang.String getCidrBlock() { } } /** + * + * *
      * The CIDR block that the TPU node will use when selecting an IP address.
      * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -3689,20 +4103,22 @@ public java.lang.String getCidrBlock() {
      * 
* * string cidr_block = 13; + * * @param value The cidrBlock to set. * @return This builder for chaining. */ - public Builder setCidrBlock( - java.lang.String value) { + public Builder setCidrBlock(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cidrBlock_ = value; onChanged(); return this; } /** + * + * *
      * The CIDR block that the TPU node will use when selecting an IP address.
      * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -3715,15 +4131,18 @@ public Builder setCidrBlock(
      * 
* * string cidr_block = 13; + * * @return This builder for chaining. */ public Builder clearCidrBlock() { - + cidrBlock_ = getDefaultInstance().getCidrBlock(); onChanged(); return this; } /** + * + * *
      * The CIDR block that the TPU node will use when selecting an IP address.
      * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -3736,16 +4155,16 @@ public Builder clearCidrBlock() {
      * 
* * string cidr_block = 13; + * * @param value The bytes for cidrBlock to set. * @return This builder for chaining. */ - public Builder setCidrBlockBytes( - com.google.protobuf.ByteString value) { + public Builder setCidrBlockBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cidrBlock_ = value; onChanged(); return this; @@ -3753,36 +4172,49 @@ public Builder setCidrBlockBytes( private com.google.cloud.tpu.v2alpha1.ServiceAccount serviceAccount_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.ServiceAccount, com.google.cloud.tpu.v2alpha1.ServiceAccount.Builder, com.google.cloud.tpu.v2alpha1.ServiceAccountOrBuilder> serviceAccountBuilder_; + com.google.cloud.tpu.v2alpha1.ServiceAccount, + com.google.cloud.tpu.v2alpha1.ServiceAccount.Builder, + com.google.cloud.tpu.v2alpha1.ServiceAccountOrBuilder> + serviceAccountBuilder_; /** + * + * *
      * The Google Cloud Platform Service Account to be used by the TPU node VMs.
      * If None is specified, the default compute service account will be used.
      * 
* * .google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37; + * * @return Whether the serviceAccount field is set. */ public boolean hasServiceAccount() { return serviceAccountBuilder_ != null || serviceAccount_ != null; } /** + * + * *
      * The Google Cloud Platform Service Account to be used by the TPU node VMs.
      * If None is specified, the default compute service account will be used.
      * 
* * .google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37; + * * @return The serviceAccount. */ public com.google.cloud.tpu.v2alpha1.ServiceAccount getServiceAccount() { if (serviceAccountBuilder_ == null) { - return serviceAccount_ == null ? com.google.cloud.tpu.v2alpha1.ServiceAccount.getDefaultInstance() : serviceAccount_; + return serviceAccount_ == null + ? com.google.cloud.tpu.v2alpha1.ServiceAccount.getDefaultInstance() + : serviceAccount_; } else { return serviceAccountBuilder_.getMessage(); } } /** + * + * *
      * The Google Cloud Platform Service Account to be used by the TPU node VMs.
      * If None is specified, the default compute service account will be used.
@@ -3804,6 +4236,8 @@ public Builder setServiceAccount(com.google.cloud.tpu.v2alpha1.ServiceAccount va
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Platform Service Account to be used by the TPU node VMs.
      * If None is specified, the default compute service account will be used.
@@ -3823,6 +4257,8 @@ public Builder setServiceAccount(
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Platform Service Account to be used by the TPU node VMs.
      * If None is specified, the default compute service account will be used.
@@ -3834,7 +4270,9 @@ public Builder mergeServiceAccount(com.google.cloud.tpu.v2alpha1.ServiceAccount
       if (serviceAccountBuilder_ == null) {
         if (serviceAccount_ != null) {
           serviceAccount_ =
-            com.google.cloud.tpu.v2alpha1.ServiceAccount.newBuilder(serviceAccount_).mergeFrom(value).buildPartial();
+              com.google.cloud.tpu.v2alpha1.ServiceAccount.newBuilder(serviceAccount_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           serviceAccount_ = value;
         }
@@ -3846,6 +4284,8 @@ public Builder mergeServiceAccount(com.google.cloud.tpu.v2alpha1.ServiceAccount
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Platform Service Account to be used by the TPU node VMs.
      * If None is specified, the default compute service account will be used.
@@ -3865,6 +4305,8 @@ public Builder clearServiceAccount() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Platform Service Account to be used by the TPU node VMs.
      * If None is specified, the default compute service account will be used.
@@ -3873,11 +4315,13 @@ public Builder clearServiceAccount() {
      * .google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;
      */
     public com.google.cloud.tpu.v2alpha1.ServiceAccount.Builder getServiceAccountBuilder() {
-      
+
       onChanged();
       return getServiceAccountFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Platform Service Account to be used by the TPU node VMs.
      * If None is specified, the default compute service account will be used.
@@ -3889,11 +4333,14 @@ public com.google.cloud.tpu.v2alpha1.ServiceAccountOrBuilder getServiceAccountOr
       if (serviceAccountBuilder_ != null) {
         return serviceAccountBuilder_.getMessageOrBuilder();
       } else {
-        return serviceAccount_ == null ?
-            com.google.cloud.tpu.v2alpha1.ServiceAccount.getDefaultInstance() : serviceAccount_;
+        return serviceAccount_ == null
+            ? com.google.cloud.tpu.v2alpha1.ServiceAccount.getDefaultInstance()
+            : serviceAccount_;
       }
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Platform Service Account to be used by the TPU node VMs.
      * If None is specified, the default compute service account will be used.
@@ -3902,14 +4349,17 @@ public com.google.cloud.tpu.v2alpha1.ServiceAccountOrBuilder getServiceAccountOr
      * .google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.tpu.v2alpha1.ServiceAccount, com.google.cloud.tpu.v2alpha1.ServiceAccount.Builder, com.google.cloud.tpu.v2alpha1.ServiceAccountOrBuilder> 
+            com.google.cloud.tpu.v2alpha1.ServiceAccount,
+            com.google.cloud.tpu.v2alpha1.ServiceAccount.Builder,
+            com.google.cloud.tpu.v2alpha1.ServiceAccountOrBuilder>
         getServiceAccountFieldBuilder() {
       if (serviceAccountBuilder_ == null) {
-        serviceAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.tpu.v2alpha1.ServiceAccount, com.google.cloud.tpu.v2alpha1.ServiceAccount.Builder, com.google.cloud.tpu.v2alpha1.ServiceAccountOrBuilder>(
-                getServiceAccount(),
-                getParentForChildren(),
-                isClean());
+        serviceAccountBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.tpu.v2alpha1.ServiceAccount,
+                com.google.cloud.tpu.v2alpha1.ServiceAccount.Builder,
+                com.google.cloud.tpu.v2alpha1.ServiceAccountOrBuilder>(
+                getServiceAccount(), getParentForChildren(), isClean());
         serviceAccount_ = null;
       }
       return serviceAccountBuilder_;
@@ -3917,39 +4367,58 @@ public com.google.cloud.tpu.v2alpha1.ServiceAccountOrBuilder getServiceAccountOr
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3965,14 +4434,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3983,17 +4455,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -4005,11 +4481,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -4023,48 +4503,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time when the node was created.
      * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_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> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -4072,34 +4568,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.cloud.tpu.v2alpha1.SchedulingConfig schedulingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.SchedulingConfig, com.google.cloud.tpu.v2alpha1.SchedulingConfig.Builder, com.google.cloud.tpu.v2alpha1.SchedulingConfigOrBuilder> schedulingConfigBuilder_; + com.google.cloud.tpu.v2alpha1.SchedulingConfig, + com.google.cloud.tpu.v2alpha1.SchedulingConfig.Builder, + com.google.cloud.tpu.v2alpha1.SchedulingConfigOrBuilder> + schedulingConfigBuilder_; /** + * + * *
      * The scheduling options for this node.
      * 
* * .google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17; + * * @return Whether the schedulingConfig field is set. */ public boolean hasSchedulingConfig() { return schedulingConfigBuilder_ != null || schedulingConfig_ != null; } /** + * + * *
      * The scheduling options for this node.
      * 
* * .google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17; + * * @return The schedulingConfig. */ public com.google.cloud.tpu.v2alpha1.SchedulingConfig getSchedulingConfig() { if (schedulingConfigBuilder_ == null) { - return schedulingConfig_ == null ? com.google.cloud.tpu.v2alpha1.SchedulingConfig.getDefaultInstance() : schedulingConfig_; + return schedulingConfig_ == null + ? com.google.cloud.tpu.v2alpha1.SchedulingConfig.getDefaultInstance() + : schedulingConfig_; } else { return schedulingConfigBuilder_.getMessage(); } } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -4120,6 +4629,8 @@ public Builder setSchedulingConfig(com.google.cloud.tpu.v2alpha1.SchedulingConfi return this; } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -4138,6 +4649,8 @@ public Builder setSchedulingConfig( return this; } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -4148,7 +4661,9 @@ public Builder mergeSchedulingConfig(com.google.cloud.tpu.v2alpha1.SchedulingCon if (schedulingConfigBuilder_ == null) { if (schedulingConfig_ != null) { schedulingConfig_ = - com.google.cloud.tpu.v2alpha1.SchedulingConfig.newBuilder(schedulingConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v2alpha1.SchedulingConfig.newBuilder(schedulingConfig_) + .mergeFrom(value) + .buildPartial(); } else { schedulingConfig_ = value; } @@ -4160,6 +4675,8 @@ public Builder mergeSchedulingConfig(com.google.cloud.tpu.v2alpha1.SchedulingCon return this; } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -4178,6 +4695,8 @@ public Builder clearSchedulingConfig() { return this; } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -4185,11 +4704,13 @@ public Builder clearSchedulingConfig() { * .google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17; */ public com.google.cloud.tpu.v2alpha1.SchedulingConfig.Builder getSchedulingConfigBuilder() { - + onChanged(); return getSchedulingConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -4200,11 +4721,14 @@ public com.google.cloud.tpu.v2alpha1.SchedulingConfigOrBuilder getSchedulingConf if (schedulingConfigBuilder_ != null) { return schedulingConfigBuilder_.getMessageOrBuilder(); } else { - return schedulingConfig_ == null ? - com.google.cloud.tpu.v2alpha1.SchedulingConfig.getDefaultInstance() : schedulingConfig_; + return schedulingConfig_ == null + ? com.google.cloud.tpu.v2alpha1.SchedulingConfig.getDefaultInstance() + : schedulingConfig_; } } /** + * + * *
      * The scheduling options for this node.
      * 
@@ -4212,39 +4736,52 @@ public com.google.cloud.tpu.v2alpha1.SchedulingConfigOrBuilder getSchedulingConf * .google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.SchedulingConfig, com.google.cloud.tpu.v2alpha1.SchedulingConfig.Builder, com.google.cloud.tpu.v2alpha1.SchedulingConfigOrBuilder> + com.google.cloud.tpu.v2alpha1.SchedulingConfig, + com.google.cloud.tpu.v2alpha1.SchedulingConfig.Builder, + com.google.cloud.tpu.v2alpha1.SchedulingConfigOrBuilder> getSchedulingConfigFieldBuilder() { if (schedulingConfigBuilder_ == null) { - schedulingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.SchedulingConfig, com.google.cloud.tpu.v2alpha1.SchedulingConfig.Builder, com.google.cloud.tpu.v2alpha1.SchedulingConfigOrBuilder>( - getSchedulingConfig(), - getParentForChildren(), - isClean()); + schedulingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.SchedulingConfig, + com.google.cloud.tpu.v2alpha1.SchedulingConfig.Builder, + com.google.cloud.tpu.v2alpha1.SchedulingConfigOrBuilder>( + getSchedulingConfig(), getParentForChildren(), isClean()); schedulingConfig_ = null; } return schedulingConfigBuilder_; } private java.util.List networkEndpoints_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNetworkEndpointsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - networkEndpoints_ = new java.util.ArrayList(networkEndpoints_); + networkEndpoints_ = + new java.util.ArrayList( + networkEndpoints_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.NetworkEndpoint, com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder, com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder> networkEndpointsBuilder_; + com.google.cloud.tpu.v2alpha1.NetworkEndpoint, + com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder, + com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder> + networkEndpointsBuilder_; /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getNetworkEndpointsList() { if (networkEndpointsBuilder_ == null) { @@ -4254,13 +4791,17 @@ public java.util.List getNetworkE } } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getNetworkEndpointsCount() { if (networkEndpointsBuilder_ == null) { @@ -4270,13 +4811,17 @@ public int getNetworkEndpointsCount() { } } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v2alpha1.NetworkEndpoint getNetworkEndpoints(int index) { if (networkEndpointsBuilder_ == null) { @@ -4286,13 +4831,17 @@ public com.google.cloud.tpu.v2alpha1.NetworkEndpoint getNetworkEndpoints(int ind } } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setNetworkEndpoints( int index, com.google.cloud.tpu.v2alpha1.NetworkEndpoint value) { @@ -4309,13 +4858,17 @@ public Builder setNetworkEndpoints( return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setNetworkEndpoints( int index, com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder builderForValue) { @@ -4329,13 +4882,17 @@ public Builder setNetworkEndpoints( return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addNetworkEndpoints(com.google.cloud.tpu.v2alpha1.NetworkEndpoint value) { if (networkEndpointsBuilder_ == null) { @@ -4351,13 +4908,17 @@ public Builder addNetworkEndpoints(com.google.cloud.tpu.v2alpha1.NetworkEndpoint return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addNetworkEndpoints( int index, com.google.cloud.tpu.v2alpha1.NetworkEndpoint value) { @@ -4374,13 +4935,17 @@ public Builder addNetworkEndpoints( return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addNetworkEndpoints( com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder builderForValue) { @@ -4394,13 +4959,17 @@ public Builder addNetworkEndpoints( return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addNetworkEndpoints( int index, com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder builderForValue) { @@ -4414,20 +4983,23 @@ public Builder addNetworkEndpoints( return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllNetworkEndpoints( java.lang.Iterable values) { if (networkEndpointsBuilder_ == null) { ensureNetworkEndpointsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, networkEndpoints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkEndpoints_); onChanged(); } else { networkEndpointsBuilder_.addAllMessages(values); @@ -4435,13 +5007,17 @@ public Builder addAllNetworkEndpoints( return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearNetworkEndpoints() { if (networkEndpointsBuilder_ == null) { @@ -4454,13 +5030,17 @@ public Builder clearNetworkEndpoints() { return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeNetworkEndpoints(int index) { if (networkEndpointsBuilder_ == null) { @@ -4473,45 +5053,58 @@ public Builder removeNetworkEndpoints(int index) { return this; } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder getNetworkEndpointsBuilder( int index) { return getNetworkEndpointsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder( int index) { if (networkEndpointsBuilder_ == null) { - return networkEndpoints_.get(index); } else { + return networkEndpoints_.get(index); + } else { return networkEndpointsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getNetworkEndpointsOrBuilderList() { + public java.util.List + getNetworkEndpointsOrBuilderList() { if (networkEndpointsBuilder_ != null) { return networkEndpointsBuilder_.getMessageOrBuilderList(); } else { @@ -4519,51 +5112,69 @@ public com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder getNetworkEndpoint } } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder addNetworkEndpointsBuilder() { - return getNetworkEndpointsFieldBuilder().addBuilder( - com.google.cloud.tpu.v2alpha1.NetworkEndpoint.getDefaultInstance()); + return getNetworkEndpointsFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2alpha1.NetworkEndpoint.getDefaultInstance()); } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder addNetworkEndpointsBuilder( int index) { - return getNetworkEndpointsFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v2alpha1.NetworkEndpoint.getDefaultInstance()); + return getNetworkEndpointsFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2alpha1.NetworkEndpoint.getDefaultInstance()); } /** + * + * *
      * Output only. The network endpoints where TPU workers can be accessed and
      * sent work. It is recommended that runtime clients of the node reach out
      * to the 0th entry in this map first.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getNetworkEndpointsBuilderList() { + public java.util.List + getNetworkEndpointsBuilderList() { return getNetworkEndpointsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.NetworkEndpoint, com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder, com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder> + com.google.cloud.tpu.v2alpha1.NetworkEndpoint, + com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder, + com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder> getNetworkEndpointsFieldBuilder() { if (networkEndpointsBuilder_ == null) { - networkEndpointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.NetworkEndpoint, com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder, com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder>( + networkEndpointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.NetworkEndpoint, + com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder, + com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder>( networkEndpoints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -4575,51 +5186,65 @@ public com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder addNetworkEndpoints private int health_ = 0; /** + * + * *
      * The health status of the TPU node.
      * 
* * .google.cloud.tpu.v2alpha1.Node.Health health = 22; + * * @return The enum numeric value on the wire for health. */ - @java.lang.Override public int getHealthValue() { + @java.lang.Override + public int getHealthValue() { return health_; } /** + * + * *
      * The health status of the TPU node.
      * 
* * .google.cloud.tpu.v2alpha1.Node.Health health = 22; + * * @param value The enum numeric value on the wire for health to set. * @return This builder for chaining. */ public Builder setHealthValue(int value) { - + health_ = value; onChanged(); return this; } /** + * + * *
      * The health status of the TPU node.
      * 
* * .google.cloud.tpu.v2alpha1.Node.Health health = 22; + * * @return The health. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.Node.Health getHealth() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2alpha1.Node.Health result = com.google.cloud.tpu.v2alpha1.Node.Health.valueOf(health_); + com.google.cloud.tpu.v2alpha1.Node.Health result = + com.google.cloud.tpu.v2alpha1.Node.Health.valueOf(health_); return result == null ? com.google.cloud.tpu.v2alpha1.Node.Health.UNRECOGNIZED : result; } /** + * + * *
      * The health status of the TPU node.
      * 
* * .google.cloud.tpu.v2alpha1.Node.Health health = 22; + * * @param value The health to set. * @return This builder for chaining. */ @@ -4627,42 +5252,44 @@ public Builder setHealth(com.google.cloud.tpu.v2alpha1.Node.Health value) { if (value == null) { throw new NullPointerException(); } - + health_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The health status of the TPU node.
      * 
* * .google.cloud.tpu.v2alpha1.Node.Health health = 22; + * * @return This builder for chaining. */ public Builder clearHealth() { - + health_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -4674,28 +5301,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
* * map<string, string> labels = 24; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
@@ -4703,11 +5332,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 24; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
@@ -4715,16 +5345,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 24; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
@@ -4732,12 +5363,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 24; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -4745,83 +5375,80 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
* * map<string, string> labels = 24; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
* * map<string, string> labels = 24; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * 
* * map<string, string> labels = 24; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } + private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged();; + internalGetMutableMetadata() { + onChanged(); + ; if (metadata_ == null) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); + metadata_ = + com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); @@ -4833,6 +5460,8 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
      * Custom metadata to apply to the TPU Node.
      * Can set startup-script and shutdown-script
@@ -4840,22 +5469,22 @@ public int getMetadataCount() {
      *
      * map<string, string> metadata = 34;
      */
-
     @java.lang.Override
-    public boolean containsMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetMetadata().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getMetadataMap()} instead.
-     */
+    /** Use {@link #getMetadataMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMetadata() {
       return getMetadataMap();
     }
     /**
+     *
+     *
      * 
      * Custom metadata to apply to the TPU Node.
      * Can set startup-script and shutdown-script
@@ -4864,11 +5493,12 @@ public java.util.Map getMetadata() {
      * map<string, string> metadata = 34;
      */
     @java.lang.Override
-
     public java.util.Map getMetadataMap() {
       return internalGetMetadata().getMap();
     }
     /**
+     *
+     *
      * 
      * Custom metadata to apply to the TPU Node.
      * Can set startup-script and shutdown-script
@@ -4877,16 +5507,17 @@ public java.util.Map getMetadataMap() {
      * map<string, string> metadata = 34;
      */
     @java.lang.Override
-
     public java.lang.String getMetadataOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Custom metadata to apply to the TPU Node.
      * Can set startup-script and shutdown-script
@@ -4895,12 +5526,11 @@ public java.lang.String getMetadataOrDefault(
      * map<string, string> metadata = 34;
      */
     @java.lang.Override
-
-    public java.lang.String getMetadataOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+    public java.lang.String getMetadataOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -4908,11 +5538,12 @@ public java.lang.String getMetadataOrThrow(
     }
 
     public Builder clearMetadata() {
-      internalGetMutableMetadata().getMutableMap()
-          .clear();
+      internalGetMutableMetadata().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Custom metadata to apply to the TPU Node.
      * Can set startup-script and shutdown-script
@@ -4920,23 +5551,21 @@ public Builder clearMetadata() {
      *
      * map<string, string> metadata = 34;
      */
-
-    public Builder removeMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableMetadata().getMutableMap()
-          .remove(key);
+    public Builder removeMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableMetadata().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableMetadata() {
+    public java.util.Map getMutableMetadata() {
       return internalGetMutableMetadata().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Custom metadata to apply to the TPU Node.
      * Can set startup-script and shutdown-script
@@ -4944,19 +5573,20 @@ public Builder removeMetadata(
      *
      * map<string, string> metadata = 34;
      */
-    public Builder putMetadata(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putMetadata(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableMetadata().getMutableMap()
-          .put(key, value);
+      internalGetMutableMetadata().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Custom metadata to apply to the TPU Node.
      * Can set startup-script and shutdown-script
@@ -4964,53 +5594,60 @@ public Builder putMetadata(
      *
      * map<string, string> metadata = 34;
      */
-
-    public Builder putAllMetadata(
-        java.util.Map values) {
-      internalGetMutableMetadata().getMutableMap()
-          .putAll(values);
+    public Builder putAllMetadata(java.util.Map values) {
+      internalGetMutableMetadata().getMutableMap().putAll(values);
       return this;
     }
 
-    private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList tags_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensureTagsIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
         tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
         bitField0_ |= 0x00000008;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * Tags to apply to the TPU Node. Tags are used to identify valid sources or
      * targets for network firewalls.
      * 
* * repeated string tags = 40; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** + * + * *
      * Tags to apply to the TPU Node. Tags are used to identify valid sources or
      * targets for network firewalls.
      * 
* * repeated string tags = 40; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
      * Tags to apply to the TPU Node. Tags are used to identify valid sources or
      * targets for network firewalls.
      * 
* * repeated string tags = 40; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -5018,85 +5655,95 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
      * Tags to apply to the TPU Node. Tags are used to identify valid sources or
      * targets for network firewalls.
      * 
* * repeated string tags = 40; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** + * + * *
      * Tags to apply to the TPU Node. Tags are used to identify valid sources or
      * targets for network firewalls.
      * 
* * repeated string tags = 40; + * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags( - int index, java.lang.String value) { + public Builder setTags(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** + * + * *
      * Tags to apply to the TPU Node. Tags are used to identify valid sources or
      * targets for network firewalls.
      * 
* * repeated string tags = 40; + * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags( - java.lang.String value) { + public Builder addTags(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** + * + * *
      * Tags to apply to the TPU Node. Tags are used to identify valid sources or
      * targets for network firewalls.
      * 
* * repeated string tags = 40; + * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags( - java.lang.Iterable values) { + public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); onChanged(); return this; } /** + * + * *
      * Tags to apply to the TPU Node. Tags are used to identify valid sources or
      * targets for network firewalls.
      * 
* * repeated string tags = 40; + * * @return This builder for chaining. */ public Builder clearTags() { @@ -5106,34 +5753,39 @@ public Builder clearTags() { return this; } /** + * + * *
      * Tags to apply to the TPU Node. Tags are used to identify valid sources or
      * targets for network firewalls.
      * 
* * repeated string tags = 40; + * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { + public Builder addTagsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } - private long id_ ; + private long id_; /** + * + * *
      * Output only. The unique identifier for the TPU Node.
      * 
* * int64 id = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ @java.lang.Override @@ -5141,48 +5793,61 @@ public long getId() { return id_; } /** + * + * *
      * Output only. The unique identifier for the TPU Node.
      * 
* * int64 id = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { - + id_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The unique identifier for the TPU Node.
      * 
* * int64 id = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = 0L; onChanged(); return this; } private java.util.List dataDisks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDataDisksIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - dataDisks_ = new java.util.ArrayList(dataDisks_); + dataDisks_ = + new java.util.ArrayList(dataDisks_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.AttachedDisk, com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder, com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder> dataDisksBuilder_; + com.google.cloud.tpu.v2alpha1.AttachedDisk, + com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder, + com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder> + dataDisksBuilder_; /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5197,6 +5862,8 @@ public java.util.List getDataDisksLi } } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5211,6 +5878,8 @@ public int getDataDisksCount() { } } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5225,14 +5894,15 @@ public com.google.cloud.tpu.v2alpha1.AttachedDisk getDataDisks(int index) { } } /** + * + * *
      * The additional data disks for the Node.
      * 
* * repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41; */ - public Builder setDataDisks( - int index, com.google.cloud.tpu.v2alpha1.AttachedDisk value) { + public Builder setDataDisks(int index, com.google.cloud.tpu.v2alpha1.AttachedDisk value) { if (dataDisksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5246,6 +5916,8 @@ public Builder setDataDisks( return this; } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5264,6 +5936,8 @@ public Builder setDataDisks( return this; } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5284,14 +5958,15 @@ public Builder addDataDisks(com.google.cloud.tpu.v2alpha1.AttachedDisk value) { return this; } /** + * + * *
      * The additional data disks for the Node.
      * 
* * repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41; */ - public Builder addDataDisks( - int index, com.google.cloud.tpu.v2alpha1.AttachedDisk value) { + public Builder addDataDisks(int index, com.google.cloud.tpu.v2alpha1.AttachedDisk value) { if (dataDisksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5305,6 +5980,8 @@ public Builder addDataDisks( return this; } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5323,6 +6000,8 @@ public Builder addDataDisks( return this; } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5341,6 +6020,8 @@ public Builder addDataDisks( return this; } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5351,8 +6032,7 @@ public Builder addAllDataDisks( java.lang.Iterable values) { if (dataDisksBuilder_ == null) { ensureDataDisksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dataDisks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataDisks_); onChanged(); } else { dataDisksBuilder_.addAllMessages(values); @@ -5360,6 +6040,8 @@ public Builder addAllDataDisks( return this; } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5377,6 +6059,8 @@ public Builder clearDataDisks() { return this; } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5394,39 +6078,44 @@ public Builder removeDataDisks(int index) { return this; } /** + * + * *
      * The additional data disks for the Node.
      * 
* * repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41; */ - public com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder getDataDisksBuilder( - int index) { + public com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder getDataDisksBuilder(int index) { return getDataDisksFieldBuilder().getBuilder(index); } /** + * + * *
      * The additional data disks for the Node.
      * 
* * repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41; */ - public com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder getDataDisksOrBuilder( - int index) { + public com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder getDataDisksOrBuilder(int index) { if (dataDisksBuilder_ == null) { - return dataDisks_.get(index); } else { + return dataDisks_.get(index); + } else { return dataDisksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The additional data disks for the Node.
      * 
* * repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41; */ - public java.util.List - getDataDisksOrBuilderList() { + public java.util.List + getDataDisksOrBuilderList() { if (dataDisksBuilder_ != null) { return dataDisksBuilder_.getMessageOrBuilderList(); } else { @@ -5434,6 +6123,8 @@ public com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder getDataDisksOrBuilder } } /** + * + * *
      * The additional data disks for the Node.
      * 
@@ -5441,42 +6132,48 @@ public com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder getDataDisksOrBuilder * repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41; */ public com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder addDataDisksBuilder() { - return getDataDisksFieldBuilder().addBuilder( - com.google.cloud.tpu.v2alpha1.AttachedDisk.getDefaultInstance()); + return getDataDisksFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2alpha1.AttachedDisk.getDefaultInstance()); } /** + * + * *
      * The additional data disks for the Node.
      * 
* * repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41; */ - public com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder addDataDisksBuilder( - int index) { - return getDataDisksFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v2alpha1.AttachedDisk.getDefaultInstance()); + public com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder addDataDisksBuilder(int index) { + return getDataDisksFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2alpha1.AttachedDisk.getDefaultInstance()); } /** + * + * *
      * The additional data disks for the Node.
      * 
* * repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41; */ - public java.util.List - getDataDisksBuilderList() { + public java.util.List + getDataDisksBuilderList() { return getDataDisksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.AttachedDisk, com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder, com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder> + com.google.cloud.tpu.v2alpha1.AttachedDisk, + com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder, + com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder> getDataDisksFieldBuilder() { if (dataDisksBuilder_ == null) { - dataDisksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.AttachedDisk, com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder, com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder>( - dataDisks_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); + dataDisksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.AttachedDisk, + com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder, + com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder>( + dataDisks_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); dataDisks_ = null; } return dataDisksBuilder_; @@ -5484,51 +6181,73 @@ public com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder addDataDisksBuilder( private int apiVersion_ = 0; /** + * + * *
      * Output only. The API version that created this Node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for apiVersion. */ - @java.lang.Override public int getApiVersionValue() { + @java.lang.Override + public int getApiVersionValue() { return apiVersion_; } /** + * + * *
      * Output only. The API version that created this Node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for apiVersion to set. * @return This builder for chaining. */ public Builder setApiVersionValue(int value) { - + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The API version that created this Node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The apiVersion. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.Node.ApiVersion getApiVersion() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2alpha1.Node.ApiVersion result = com.google.cloud.tpu.v2alpha1.Node.ApiVersion.valueOf(apiVersion_); + com.google.cloud.tpu.v2alpha1.Node.ApiVersion result = + com.google.cloud.tpu.v2alpha1.Node.ApiVersion.valueOf(apiVersion_); return result == null ? com.google.cloud.tpu.v2alpha1.Node.ApiVersion.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The API version that created this Node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The apiVersion to set. * @return This builder for chaining. */ @@ -5536,44 +6255,57 @@ public Builder setApiVersion(com.google.cloud.tpu.v2alpha1.Node.ApiVersion value if (value == null) { throw new NullPointerException(); } - + apiVersion_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The API version that created this Node.
      * 
* - * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = 0; onChanged(); return this; } private java.util.List symptoms_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSymptomsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { symptoms_ = new java.util.ArrayList(symptoms_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.Symptom, com.google.cloud.tpu.v2alpha1.Symptom.Builder, com.google.cloud.tpu.v2alpha1.SymptomOrBuilder> symptomsBuilder_; + com.google.cloud.tpu.v2alpha1.Symptom, + com.google.cloud.tpu.v2alpha1.Symptom.Builder, + com.google.cloud.tpu.v2alpha1.SymptomOrBuilder> + symptomsBuilder_; /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getSymptomsList() { if (symptomsBuilder_ == null) { @@ -5583,11 +6315,15 @@ public java.util.List getSymptomsList() { } } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getSymptomsCount() { if (symptomsBuilder_ == null) { @@ -5597,11 +6333,15 @@ public int getSymptomsCount() { } } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v2alpha1.Symptom getSymptoms(int index) { if (symptomsBuilder_ == null) { @@ -5611,14 +6351,17 @@ public com.google.cloud.tpu.v2alpha1.Symptom getSymptoms(int index) { } } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSymptoms( - int index, com.google.cloud.tpu.v2alpha1.Symptom value) { + public Builder setSymptoms(int index, com.google.cloud.tpu.v2alpha1.Symptom value) { if (symptomsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5632,11 +6375,15 @@ public Builder setSymptoms( return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSymptoms( int index, com.google.cloud.tpu.v2alpha1.Symptom.Builder builderForValue) { @@ -5650,11 +6397,15 @@ public Builder setSymptoms( return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addSymptoms(com.google.cloud.tpu.v2alpha1.Symptom value) { if (symptomsBuilder_ == null) { @@ -5670,14 +6421,17 @@ public Builder addSymptoms(com.google.cloud.tpu.v2alpha1.Symptom value) { return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addSymptoms( - int index, com.google.cloud.tpu.v2alpha1.Symptom value) { + public Builder addSymptoms(int index, com.google.cloud.tpu.v2alpha1.Symptom value) { if (symptomsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5691,14 +6445,17 @@ public Builder addSymptoms( return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addSymptoms( - com.google.cloud.tpu.v2alpha1.Symptom.Builder builderForValue) { + public Builder addSymptoms(com.google.cloud.tpu.v2alpha1.Symptom.Builder builderForValue) { if (symptomsBuilder_ == null) { ensureSymptomsIsMutable(); symptoms_.add(builderForValue.build()); @@ -5709,11 +6466,15 @@ public Builder addSymptoms( return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addSymptoms( int index, com.google.cloud.tpu.v2alpha1.Symptom.Builder builderForValue) { @@ -5727,18 +6488,21 @@ public Builder addSymptoms( return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllSymptoms( java.lang.Iterable values) { if (symptomsBuilder_ == null) { ensureSymptomsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, symptoms_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, symptoms_); onChanged(); } else { symptomsBuilder_.addAllMessages(values); @@ -5746,11 +6510,15 @@ public Builder addAllSymptoms( return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSymptoms() { if (symptomsBuilder_ == null) { @@ -5763,11 +6531,15 @@ public Builder clearSymptoms() { return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeSymptoms(int index) { if (symptomsBuilder_ == null) { @@ -5780,39 +6552,50 @@ public Builder removeSymptoms(int index) { return this; } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.tpu.v2alpha1.Symptom.Builder getSymptomsBuilder( - int index) { + public com.google.cloud.tpu.v2alpha1.Symptom.Builder getSymptomsBuilder(int index) { return getSymptomsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.tpu.v2alpha1.SymptomOrBuilder getSymptomsOrBuilder( - int index) { + public com.google.cloud.tpu.v2alpha1.SymptomOrBuilder getSymptomsOrBuilder(int index) { if (symptomsBuilder_ == null) { - return symptoms_.get(index); } else { + return symptoms_.get(index); + } else { return symptomsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getSymptomsOrBuilderList() { + public java.util.List + getSymptomsOrBuilderList() { if (symptomsBuilder_ != null) { return symptomsBuilder_.getMessageOrBuilderList(); } else { @@ -5820,49 +6603,62 @@ public com.google.cloud.tpu.v2alpha1.SymptomOrBuilder getSymptomsOrBuilder( } } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v2alpha1.Symptom.Builder addSymptomsBuilder() { - return getSymptomsFieldBuilder().addBuilder( - com.google.cloud.tpu.v2alpha1.Symptom.getDefaultInstance()); + return getSymptomsFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2alpha1.Symptom.getDefaultInstance()); } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.tpu.v2alpha1.Symptom.Builder addSymptomsBuilder( - int index) { - return getSymptomsFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v2alpha1.Symptom.getDefaultInstance()); + public com.google.cloud.tpu.v2alpha1.Symptom.Builder addSymptomsBuilder(int index) { + return getSymptomsFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2alpha1.Symptom.getDefaultInstance()); } /** + * + * *
      * Output only. The Symptoms that have occurred to the TPU Node.
      * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getSymptomsBuilderList() { + public java.util.List getSymptomsBuilderList() { return getSymptomsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.Symptom, com.google.cloud.tpu.v2alpha1.Symptom.Builder, com.google.cloud.tpu.v2alpha1.SymptomOrBuilder> + com.google.cloud.tpu.v2alpha1.Symptom, + com.google.cloud.tpu.v2alpha1.Symptom.Builder, + com.google.cloud.tpu.v2alpha1.SymptomOrBuilder> getSymptomsFieldBuilder() { if (symptomsBuilder_ == null) { - symptomsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.Symptom, com.google.cloud.tpu.v2alpha1.Symptom.Builder, com.google.cloud.tpu.v2alpha1.SymptomOrBuilder>( - symptoms_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); + symptomsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.Symptom, + com.google.cloud.tpu.v2alpha1.Symptom.Builder, + com.google.cloud.tpu.v2alpha1.SymptomOrBuilder>( + symptoms_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); symptoms_ = null; } return symptomsBuilder_; @@ -5870,18 +6666,20 @@ public com.google.cloud.tpu.v2alpha1.Symptom.Builder addSymptomsBuilder( private java.lang.Object queuedResource_ = ""; /** + * + * *
      * Output only. The qualified name of the QueuedResource that requested this Node.
      * 
* * string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The queuedResource. */ public java.lang.String getQueuedResource() { java.lang.Object ref = queuedResource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queuedResource_ = s; return s; @@ -5890,20 +6688,21 @@ public java.lang.String getQueuedResource() { } } /** + * + * *
      * Output only. The qualified name of the QueuedResource that requested this Node.
      * 
* * string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for queuedResource. */ - public com.google.protobuf.ByteString - getQueuedResourceBytes() { + public com.google.protobuf.ByteString getQueuedResourceBytes() { java.lang.Object ref = queuedResource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queuedResource_ = b; return b; } else { @@ -5911,54 +6710,61 @@ public java.lang.String getQueuedResource() { } } /** + * + * *
      * Output only. The qualified name of the QueuedResource that requested this Node.
      * 
* * string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The queuedResource to set. * @return This builder for chaining. */ - public Builder setQueuedResource( - java.lang.String value) { + public Builder setQueuedResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + queuedResource_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The qualified name of the QueuedResource that requested this Node.
      * 
* * string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearQueuedResource() { - + queuedResource_ = getDefaultInstance().getQueuedResource(); onChanged(); return this; } /** + * + * *
      * Output only. The qualified name of the QueuedResource that requested this Node.
      * 
* * string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for queuedResource to set. * @return This builder for chaining. */ - public Builder setQueuedResourceBytes( - com.google.protobuf.ByteString value) { + public Builder setQueuedResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queuedResource_ = value; onChanged(); return this; @@ -5966,41 +6772,55 @@ public Builder setQueuedResourceBytes( private com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shieldedInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig, com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.Builder, com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig, + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.Builder, + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; /** + * + * *
      * Shielded Instance options.
      * 
* * .google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45; + * * @return Whether the shieldedInstanceConfig field is set. */ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; } /** + * + * *
      * Shielded Instance options.
      * 
* * .google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45; + * * @return The shieldedInstanceConfig. */ public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig getShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null ? com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } else { return shieldedInstanceConfigBuilder_.getMessage(); } } /** + * + * *
      * Shielded Instance options.
      * 
* * .google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45; */ - public Builder setShieldedInstanceConfig(com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig value) { + public Builder setShieldedInstanceConfig( + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6014,6 +6834,8 @@ public Builder setShieldedInstanceConfig(com.google.cloud.tpu.v2alpha1.ShieldedI return this; } /** + * + * *
      * Shielded Instance options.
      * 
@@ -6032,17 +6854,23 @@ public Builder setShieldedInstanceConfig( return this; } /** + * + * *
      * Shielded Instance options.
      * 
* * .google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45; */ - public Builder mergeShieldedInstanceConfig(com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig value) { + public Builder mergeShieldedInstanceConfig( + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { if (shieldedInstanceConfig_ != null) { shieldedInstanceConfig_ = - com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.newBuilder( + shieldedInstanceConfig_) + .mergeFrom(value) + .buildPartial(); } else { shieldedInstanceConfig_ = value; } @@ -6054,6 +6882,8 @@ public Builder mergeShieldedInstanceConfig(com.google.cloud.tpu.v2alpha1.Shielde return this; } /** + * + * *
      * Shielded Instance options.
      * 
@@ -6072,33 +6902,42 @@ public Builder clearShieldedInstanceConfig() { return this; } /** + * + * *
      * Shielded Instance options.
      * 
* * .google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45; */ - public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { - + public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { + onChanged(); return getShieldedInstanceConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Shielded Instance options.
      * 
* * .google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45; */ - public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { if (shieldedInstanceConfigBuilder_ != null) { return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return shieldedInstanceConfig_ == null ? - com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } } /** + * + * *
      * Shielded Instance options.
      * 
@@ -6106,21 +6945,24 @@ public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder getShielded * .google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig, com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.Builder, com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder> + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig, + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.Builder, + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder> getShieldedInstanceConfigFieldBuilder() { if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig, com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.Builder, com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), - getParentForChildren(), - isClean()); + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig, + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.Builder, + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); shieldedInstanceConfig_ = null; } return shieldedInstanceConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6130,12 +6972,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.Node) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.Node) private static final com.google.cloud.tpu.v2alpha1.Node DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.Node(); } @@ -6144,27 +6986,27 @@ public static com.google.cloud.tpu.v2alpha1.Node getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Node parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Node parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6179,6 +7021,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.Node getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeName.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeName.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeName.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeName.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeOrBuilder.java similarity index 75% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeOrBuilder.java index fb8cd9b33042..155eb32abc34 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeOrBuilder.java @@ -1,152 +1,215 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface NodeOrBuilder extends +public interface NodeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.Node) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Immutable. The name of the TPU.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Immutable. The name of the TPU.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The user-supplied description of the TPU. Maximum of 512 characters.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * The user-supplied description of the TPU. Maximum of 512 characters.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * The type of hardware accelerators associated with this node.
    * 
* * string accelerator_type = 5; + * * @return The acceleratorType. */ java.lang.String getAcceleratorType(); /** + * + * *
    * The type of hardware accelerators associated with this node.
    * 
* * string accelerator_type = 5; + * * @return The bytes for acceleratorType. */ - com.google.protobuf.ByteString - getAcceleratorTypeBytes(); + com.google.protobuf.ByteString getAcceleratorTypeBytes(); /** + * + * *
    * Output only. The current state for the TPU Node.
    * 
* - * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current state for the TPU Node.
    * 
* - * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.tpu.v2alpha1.Node.State getState(); /** + * + * *
    * Output only. If this field is populated, it contains a description of why the TPU Node
    * is unhealthy.
    * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The healthDescription. */ java.lang.String getHealthDescription(); /** + * + * *
    * Output only. If this field is populated, it contains a description of why the TPU Node
    * is unhealthy.
    * 
* * string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for healthDescription. */ - com.google.protobuf.ByteString - getHealthDescriptionBytes(); + com.google.protobuf.ByteString getHealthDescriptionBytes(); /** + * + * *
    * Required. The runtime version running in the Node.
    * 
* * string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The runtimeVersion. */ java.lang.String getRuntimeVersion(); /** + * + * *
    * Required. The runtime version running in the Node.
    * 
* * string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for runtimeVersion. */ - com.google.protobuf.ByteString - getRuntimeVersionBytes(); + com.google.protobuf.ByteString getRuntimeVersionBytes(); /** + * + * *
    * Network configurations for the TPU node.
    * 
* * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; + * * @return Whether the networkConfig field is set. */ boolean hasNetworkConfig(); /** + * + * *
    * Network configurations for the TPU node.
    * 
* * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; + * * @return The networkConfig. */ com.google.cloud.tpu.v2alpha1.NetworkConfig getNetworkConfig(); /** + * + * *
    * Network configurations for the TPU node.
    * 
@@ -156,6 +219,8 @@ public interface NodeOrBuilder extends com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder getNetworkConfigOrBuilder(); /** + * + * *
    * The CIDR block that the TPU node will use when selecting an IP address.
    * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -168,10 +233,13 @@ public interface NodeOrBuilder extends
    * 
* * string cidr_block = 13; + * * @return The cidrBlock. */ java.lang.String getCidrBlock(); /** + * + * *
    * The CIDR block that the TPU node will use when selecting an IP address.
    * This CIDR block must be a /29 block; the Compute Engine networks API
@@ -184,32 +252,40 @@ public interface NodeOrBuilder extends
    * 
* * string cidr_block = 13; + * * @return The bytes for cidrBlock. */ - com.google.protobuf.ByteString - getCidrBlockBytes(); + com.google.protobuf.ByteString getCidrBlockBytes(); /** + * + * *
    * The Google Cloud Platform Service Account to be used by the TPU node VMs.
    * If None is specified, the default compute service account will be used.
    * 
* * .google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37; + * * @return Whether the serviceAccount field is set. */ boolean hasServiceAccount(); /** + * + * *
    * The Google Cloud Platform Service Account to be used by the TPU node VMs.
    * If None is specified, the default compute service account will be used.
    * 
* * .google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37; + * * @return The serviceAccount. */ com.google.cloud.tpu.v2alpha1.ServiceAccount getServiceAccount(); /** + * + * *
    * The Google Cloud Platform Service Account to be used by the TPU node VMs.
    * If None is specified, the default compute service account will be used.
@@ -220,51 +296,70 @@ public interface NodeOrBuilder extends
   com.google.cloud.tpu.v2alpha1.ServiceAccountOrBuilder getServiceAccountOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The time when the node was created.
    * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time when the node was created.
    * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time when the node was created.
    * 
* - * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The scheduling options for this node.
    * 
* * .google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17; + * * @return Whether the schedulingConfig field is set. */ boolean hasSchedulingConfig(); /** + * + * *
    * The scheduling options for this node.
    * 
* * .google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17; + * * @return The schedulingConfig. */ com.google.cloud.tpu.v2alpha1.SchedulingConfig getSchedulingConfig(); /** + * + * *
    * The scheduling options for this node.
    * 
@@ -274,79 +369,105 @@ public interface NodeOrBuilder extends com.google.cloud.tpu.v2alpha1.SchedulingConfigOrBuilder getSchedulingConfigOrBuilder(); /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getNetworkEndpointsList(); + java.util.List getNetworkEndpointsList(); /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.tpu.v2alpha1.NetworkEndpoint getNetworkEndpoints(int index); /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getNetworkEndpointsCount(); /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getNetworkEndpointsOrBuilderList(); /** + * + * *
    * Output only. The network endpoints where TPU workers can be accessed and
    * sent work. It is recommended that runtime clients of the node reach out
    * to the 0th entry in this map first.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder( - int index); + com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder(int index); /** + * + * *
    * The health status of the TPU node.
    * 
* * .google.cloud.tpu.v2alpha1.Node.Health health = 22; + * * @return The enum numeric value on the wire for health. */ int getHealthValue(); /** + * + * *
    * The health status of the TPU node.
    * 
* * .google.cloud.tpu.v2alpha1.Node.Health health = 22; + * * @return The health. */ com.google.cloud.tpu.v2alpha1.Node.Health getHealth(); /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
@@ -355,30 +476,31 @@ com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder getNetworkEndpointsOrBuil */ int getLabelsCount(); /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
* * map<string, string> labels = 24; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
* * map<string, string> labels = 24; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
@@ -387,22 +509,24 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Resource labels to represent user-provided metadata.
    * 
* * map<string, string> labels = 24; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Custom metadata to apply to the TPU Node.
    * Can set startup-script and shutdown-script
@@ -412,6 +536,8 @@ java.lang.String getLabelsOrThrow(
    */
   int getMetadataCount();
   /**
+   *
+   *
    * 
    * Custom metadata to apply to the TPU Node.
    * Can set startup-script and shutdown-script
@@ -419,15 +545,13 @@ java.lang.String getLabelsOrThrow(
    *
    * map<string, string> metadata = 34;
    */
-  boolean containsMetadata(
-      java.lang.String key);
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  boolean containsMetadata(java.lang.String key);
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getMetadata();
+  java.util.Map getMetadata();
   /**
+   *
+   *
    * 
    * Custom metadata to apply to the TPU Node.
    * Can set startup-script and shutdown-script
@@ -435,9 +559,10 @@ boolean containsMetadata(
    *
    * map<string, string> metadata = 34;
    */
-  java.util.Map
-  getMetadataMap();
+  java.util.Map getMetadataMap();
   /**
+   *
+   *
    * 
    * Custom metadata to apply to the TPU Node.
    * Can set startup-script and shutdown-script
@@ -447,11 +572,13 @@ boolean containsMetadata(
    */
 
   /* nullable */
-java.lang.String getMetadataOrDefault(
+  java.lang.String getMetadataOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Custom metadata to apply to the TPU Node.
    * Can set startup-script and shutdown-script
@@ -459,75 +586,89 @@ java.lang.String getMetadataOrDefault(
    *
    * map<string, string> metadata = 34;
    */
-
-  java.lang.String getMetadataOrThrow(
-      java.lang.String key);
+  java.lang.String getMetadataOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Tags to apply to the TPU Node. Tags are used to identify valid sources or
    * targets for network firewalls.
    * 
* * repeated string tags = 40; + * * @return A list containing the tags. */ - java.util.List - getTagsList(); + java.util.List getTagsList(); /** + * + * *
    * Tags to apply to the TPU Node. Tags are used to identify valid sources or
    * targets for network firewalls.
    * 
* * repeated string tags = 40; + * * @return The count of tags. */ int getTagsCount(); /** + * + * *
    * Tags to apply to the TPU Node. Tags are used to identify valid sources or
    * targets for network firewalls.
    * 
* * repeated string tags = 40; + * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** + * + * *
    * Tags to apply to the TPU Node. Tags are used to identify valid sources or
    * targets for network firewalls.
    * 
* * repeated string tags = 40; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString - getTagsBytes(int index); + com.google.protobuf.ByteString getTagsBytes(int index); /** + * + * *
    * Output only. The unique identifier for the TPU Node.
    * 
* * int64 id = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ long getId(); /** + * + * *
    * The additional data disks for the Node.
    * 
* * repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41; */ - java.util.List - getDataDisksList(); + java.util.List getDataDisksList(); /** + * + * *
    * The additional data disks for the Node.
    * 
@@ -536,6 +677,8 @@ java.lang.String getMetadataOrThrow( */ com.google.cloud.tpu.v2alpha1.AttachedDisk getDataDisks(int index); /** + * + * *
    * The additional data disks for the Node.
    * 
@@ -544,131 +687,176 @@ java.lang.String getMetadataOrThrow( */ int getDataDisksCount(); /** + * + * *
    * The additional data disks for the Node.
    * 
* * repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41; */ - java.util.List + java.util.List getDataDisksOrBuilderList(); /** + * + * *
    * The additional data disks for the Node.
    * 
* * repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41; */ - com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder getDataDisksOrBuilder( - int index); + com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder getDataDisksOrBuilder(int index); /** + * + * *
    * Output only. The API version that created this Node.
    * 
* - * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for apiVersion. */ int getApiVersionValue(); /** + * + * *
    * Output only. The API version that created this Node.
    * 
* - * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The apiVersion. */ com.google.cloud.tpu.v2alpha1.Node.ApiVersion getApiVersion(); /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getSymptomsList(); + java.util.List getSymptomsList(); /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.tpu.v2alpha1.Symptom getSymptoms(int index); /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getSymptomsCount(); /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getSymptomsOrBuilderList(); /** + * + * *
    * Output only. The Symptoms that have occurred to the TPU Node.
    * 
* - * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.tpu.v2alpha1.SymptomOrBuilder getSymptomsOrBuilder( - int index); + com.google.cloud.tpu.v2alpha1.SymptomOrBuilder getSymptomsOrBuilder(int index); /** + * + * *
    * Output only. The qualified name of the QueuedResource that requested this Node.
    * 
* * string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The queuedResource. */ java.lang.String getQueuedResource(); /** + * + * *
    * Output only. The qualified name of the QueuedResource that requested this Node.
    * 
* * string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for queuedResource. */ - com.google.protobuf.ByteString - getQueuedResourceBytes(); + com.google.protobuf.ByteString getQueuedResourceBytes(); /** + * + * *
    * Shielded Instance options.
    * 
* * .google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45; + * * @return Whether the shieldedInstanceConfig field is set. */ boolean hasShieldedInstanceConfig(); /** + * + * *
    * Shielded Instance options.
    * 
* * .google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45; + * * @return The shieldedInstanceConfig. */ com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig getShieldedInstanceConfig(); /** + * + * *
    * Shielded Instance options.
    * 
* * .google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45; */ - com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder(); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/OperationMetadata.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/OperationMetadata.java similarity index 72% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/OperationMetadata.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/OperationMetadata.java index 58820db1f261..181ad4e4f5ef 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/OperationMetadata.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Metadata describing an [Operation][google.longrunning.Operation]
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,37 +46,41 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_OperationMetadata_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.OperationMetadata.class, com.google.cloud.tpu.v2alpha1.OperationMetadata.Builder.class); + com.google.cloud.tpu.v2alpha1.OperationMetadata.class, + com.google.cloud.tpu.v2alpha1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -66,11 +88,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -78,6 +103,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time the operation was created.
    * 
@@ -92,11 +119,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -104,11 +134,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -116,6 +149,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time the operation finished running.
    * 
@@ -130,12 +165,15 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Target of the operation - for example
    * projects/project-1/connectivityTests/test-1
    * 
* * string target = 3; + * * @return The target. */ @java.lang.Override @@ -144,30 +182,30 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Target of the operation - for example
    * projects/project-1/connectivityTests/test-1
    * 
* * string target = 3; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -178,11 +216,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The verb. */ @java.lang.Override @@ -191,29 +232,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -224,11 +265,14 @@ public java.lang.String getVerb() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_detail = 5; + * * @return The statusDetail. */ @java.lang.Override @@ -237,29 +281,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_detail = 5; + * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -270,11 +314,14 @@ public java.lang.String getStatusDetail() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** + * + * *
    * Specifies if cancellation was requested for the operation.
    * 
* * bool cancel_requested = 6; + * * @return The cancelRequested. */ @java.lang.Override @@ -285,11 +332,14 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * API version.
    * 
* * string api_version = 7; + * * @return The apiVersion. */ @java.lang.Override @@ -298,29 +348,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * API version.
    * 
* * string api_version = 7; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -329,6 +379,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -340,8 +391,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -373,12 +423,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -390,8 +438,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -404,33 +451,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.OperationMetadata other = (com.google.cloud.tpu.v2alpha1.OperationMetadata) obj; + com.google.cloud.tpu.v2alpha1.OperationMetadata other = + (com.google.cloud.tpu.v2alpha1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusDetail() - .equals(other.getStatusDetail())) return false; - if (getCancelRequested() - != other.getCancelRequested()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusDetail().equals(other.getStatusDetail())) return false; + if (getCancelRequested() != other.getCancelRequested()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -457,8 +498,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -466,130 +506,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.OperationMetadata 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.tpu.v2alpha1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata describing an [Operation][google.longrunning.Operation]
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.OperationMetadata) com.google.cloud.tpu.v2alpha1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_OperationMetadata_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.OperationMetadata.class, com.google.cloud.tpu.v2alpha1.OperationMetadata.Builder.class); + com.google.cloud.tpu.v2alpha1.OperationMetadata.class, + com.google.cloud.tpu.v2alpha1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.OperationMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -619,9 +665,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_OperationMetadata_descriptor; } @java.lang.Override @@ -640,7 +686,8 @@ public com.google.cloud.tpu.v2alpha1.OperationMetadata build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.OperationMetadata buildPartial() { - com.google.cloud.tpu.v2alpha1.OperationMetadata result = new com.google.cloud.tpu.v2alpha1.OperationMetadata(this); + com.google.cloud.tpu.v2alpha1.OperationMetadata result = + new com.google.cloud.tpu.v2alpha1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -664,38 +711,39 @@ public com.google.cloud.tpu.v2alpha1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.OperationMetadata) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.OperationMetadata)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -703,7 +751,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.OperationMetadata other) { - if (other == com.google.cloud.tpu.v2alpha1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -755,51 +804,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - statusDetail_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 48: { - cancelRequested_ = input.readBool(); - - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + statusDetail_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: + { + cancelRequested_ = input.readBool(); + + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -812,34 +865,47 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time the operation was created.
      * 
@@ -860,14 +926,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -878,6 +945,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -888,7 +957,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -900,6 +969,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -918,6 +989,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -925,11 +998,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation was created.
      * 
@@ -940,11 +1015,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time the operation was created.
      * 
@@ -952,14 +1030,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -967,24 +1048,33 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -995,6 +1085,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1015,14 +1107,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1033,6 +1126,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1043,7 +1138,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1055,6 +1150,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1073,6 +1170,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1080,11 +1179,13 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 2; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1095,11 +1196,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1107,14 +1209,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1122,19 +1227,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Target of the operation - for example
      * projects/project-1/connectivityTests/test-1
      * 
* * string target = 3; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1143,21 +1250,22 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Target of the operation - for example
      * projects/project-1/connectivityTests/test-1
      * 
* * string target = 3; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1165,57 +1273,64 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Target of the operation - for example
      * projects/project-1/connectivityTests/test-1
      * 
* * string target = 3; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Target of the operation - for example
      * projects/project-1/connectivityTests/test-1
      * 
* * string target = 3; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Target of the operation - for example
      * projects/project-1/connectivityTests/test-1
      * 
* * string target = 3; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1223,18 +1338,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1243,20 +1360,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1264,54 +1382,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1319,18 +1444,20 @@ public Builder setVerbBytes( private java.lang.Object statusDetail_ = ""; /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_detail = 5; + * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1339,20 +1466,21 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_detail = 5; + * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1360,66 +1488,76 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_detail = 5; + * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail( - java.lang.String value) { + public Builder setStatusDetail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_detail = 5; + * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_detail = 5; + * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_ ; + private boolean cancelRequested_; /** + * + * *
      * Specifies if cancellation was requested for the operation.
      * 
* * bool cancel_requested = 6; + * * @return The cancelRequested. */ @java.lang.Override @@ -1427,30 +1565,36 @@ public boolean getCancelRequested() { return cancelRequested_; } /** + * + * *
      * Specifies if cancellation was requested for the operation.
      * 
* * bool cancel_requested = 6; + * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** + * + * *
      * Specifies if cancellation was requested for the operation.
      * 
* * bool cancel_requested = 6; + * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1458,18 +1602,20 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1478,20 +1624,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1499,61 +1646,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * API version.
      * 
* * string api_version = 7; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1563,12 +1717,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.OperationMetadata) private static final com.google.cloud.tpu.v2alpha1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.OperationMetadata(); } @@ -1577,27 +1731,27 @@ public static com.google.cloud.tpu.v2alpha1.OperationMetadata getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1612,6 +1766,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/OperationMetadataOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/OperationMetadataOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/OperationMetadataOrBuilder.java index c6e532d4d93b..57e0d5d40321 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/OperationMetadataOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/OperationMetadataOrBuilder.java @@ -1,31 +1,55 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
@@ -35,24 +59,32 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
@@ -62,94 +94,117 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Target of the operation - for example
    * projects/project-1/connectivityTests/test-1
    * 
* * string target = 3; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Target of the operation - for example
    * projects/project-1/connectivityTests/test-1
    * 
* * string target = 3; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_detail = 5; + * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_detail = 5; + * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString - getStatusDetailBytes(); + com.google.protobuf.ByteString getStatusDetailBytes(); /** + * + * *
    * Specifies if cancellation was requested for the operation.
    * 
* * bool cancel_requested = 6; + * * @return The cancelRequested. */ boolean getCancelRequested(); /** + * + * *
    * API version.
    * 
* * string api_version = 7; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * API version.
    * 
* * string api_version = 7; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResource.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResource.java similarity index 72% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResource.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResource.java index 565b9af0210b..520825861497 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResource.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResource.java @@ -1,9 +1,26 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * A QueuedResource represents a request for resources that will be placed
  * in a queue and fulfilled when the necessary resources are available.
@@ -11,58 +28,64 @@
  *
  * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResource}
  */
-public final class QueuedResource extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class QueuedResource extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.QueuedResource)
     QueuedResourceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use QueuedResource.newBuilder() to construct.
   private QueuedResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private QueuedResource() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new QueuedResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.tpu.v2alpha1.CloudTpuProto
+        .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_fieldAccessorTable
+    return com.google.cloud.tpu.v2alpha1.CloudTpuProto
+        .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.tpu.v2alpha1.QueuedResource.class, com.google.cloud.tpu.v2alpha1.QueuedResource.Builder.class);
+            com.google.cloud.tpu.v2alpha1.QueuedResource.class,
+            com.google.cloud.tpu.v2alpha1.QueuedResource.Builder.class);
   }
 
-  public interface TpuOrBuilder extends
+  public interface TpuOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.QueuedResource.Tpu)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The TPU node(s) being requested.
      * 
* * repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1; */ - java.util.List - getNodeSpecList(); + java.util.List getNodeSpecList(); /** + * + * *
      * The TPU node(s) being requested.
      * 
@@ -71,6 +94,8 @@ public interface TpuOrBuilder extends */ com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec getNodeSpec(int index); /** + * + * *
      * The TPU node(s) being requested.
      * 
@@ -79,15 +104,19 @@ public interface TpuOrBuilder extends */ int getNodeSpecCount(); /** + * + * *
      * The TPU node(s) being requested.
      * 
* * repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1; */ - java.util.List + java.util.List getNodeSpecOrBuilderList(); /** + * + * *
      * The TPU node(s) being requested.
      * 
@@ -98,75 +127,91 @@ com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpecOrBuilder getNodeSpecOr int index); } /** + * + * *
    * Details of the TPU resource(s) being requested.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResource.Tpu} */ - public static final class Tpu extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Tpu extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.QueuedResource.Tpu) TpuOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Tpu.newBuilder() to construct. private Tpu(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Tpu() { nodeSpec_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Tpu(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.class, com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.class, + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.Builder.class); } - public interface NodeSpecOrBuilder extends + public interface NodeSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The parent resource name.
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
        * Required. The parent resource name.
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
        * The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
        * regex format. This is only specified when requesting a single node.
@@ -175,10 +220,13 @@ public interface NodeSpecOrBuilder extends
        * 
* * string node_id = 2; + * * @return The nodeId. */ java.lang.String getNodeId(); /** + * + * *
        * The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
        * regex format. This is only specified when requesting a single node.
@@ -187,39 +235,52 @@ public interface NodeSpecOrBuilder extends
        * 
* * string node_id = 2; + * * @return The bytes for nodeId. */ - com.google.protobuf.ByteString - getNodeIdBytes(); + com.google.protobuf.ByteString getNodeIdBytes(); /** + * + * *
        * Required. The node.
        * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the node field is set. */ boolean hasNode(); /** + * + * *
        * Required. The node.
        * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The node. */ com.google.cloud.tpu.v2alpha1.Node getNode(); /** + * + * *
        * Required. The node.
        * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodeOrBuilder(); } /** + * + * *
      * Details of the TPU node(s) being requested. Users can request either a
      * single node or multiple nodes.
@@ -228,15 +289,16 @@ public interface NodeSpecOrBuilder extends
      *
      * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec}
      */
-    public static final class NodeSpec extends
-        com.google.protobuf.GeneratedMessageV3 implements
+    public static final class NodeSpec extends com.google.protobuf.GeneratedMessageV3
+        implements
         // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec)
         NodeSpecOrBuilder {
-    private static final long serialVersionUID = 0L;
+      private static final long serialVersionUID = 0L;
       // Use NodeSpec.newBuilder() to construct.
       private NodeSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
+
       private NodeSpec() {
         parent_ = "";
         nodeId_ = "";
@@ -244,37 +306,43 @@ private NodeSpec() {
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(
-          UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new NodeSpec();
       }
 
       @java.lang.Override
-      public final com.google.protobuf.UnknownFieldSet
-      getUnknownFields() {
+      public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_NodeSpec_descriptor;
+
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.tpu.v2alpha1.CloudTpuProto
+            .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_NodeSpec_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_NodeSpec_fieldAccessorTable
+        return com.google.cloud.tpu.v2alpha1.CloudTpuProto
+            .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_NodeSpec_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.class, com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder.class);
+                com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.class,
+                com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder.class);
       }
 
       public static final int PARENT_FIELD_NUMBER = 1;
       private volatile java.lang.Object parent_;
       /**
+       *
+       *
        * 
        * Required. The parent resource name.
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -283,29 +351,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
        * Required. The parent resource name.
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -316,6 +386,8 @@ public java.lang.String getParent() { public static final int NODE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object nodeId_; /** + * + * *
        * The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
        * regex format. This is only specified when requesting a single node.
@@ -324,6 +396,7 @@ public java.lang.String getParent() {
        * 
* * string node_id = 2; + * * @return The nodeId. */ @java.lang.Override @@ -332,14 +405,15 @@ public java.lang.String getNodeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeId_ = s; return s; } } /** + * + * *
        * The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
        * regex format. This is only specified when requesting a single node.
@@ -348,16 +422,15 @@ public java.lang.String getNodeId() {
        * 
* * string node_id = 2; + * * @return The bytes for nodeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getNodeIdBytes() { + public com.google.protobuf.ByteString getNodeIdBytes() { java.lang.Object ref = nodeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeId_ = b; return b; } else { @@ -368,11 +441,15 @@ public java.lang.String getNodeId() { public static final int NODE_FIELD_NUMBER = 3; private com.google.cloud.tpu.v2alpha1.Node node_; /** + * + * *
        * Required. The node.
        * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the node field is set. */ @java.lang.Override @@ -380,11 +457,15 @@ public boolean hasNode() { return node_ != null; } /** + * + * *
        * Required. The node.
        * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The node. */ @java.lang.Override @@ -392,11 +473,14 @@ public com.google.cloud.tpu.v2alpha1.Node getNode() { return node_ == null ? com.google.cloud.tpu.v2alpha1.Node.getDefaultInstance() : node_; } /** + * + * *
        * Required. The node.
        * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodeOrBuilder() { @@ -404,6 +488,7 @@ public com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -415,8 +500,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -442,8 +526,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeId_); } if (node_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getNode()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNode()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -453,21 +536,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec other = (com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec) obj; + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec other = + (com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getNodeId() - .equals(other.getNodeId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getNodeId().equals(other.getNodeId())) return false; if (hasNode() != other.hasNode()) return false; if (hasNode()) { - if (!getNode() - .equals(other.getNode())) return false; + if (!getNode().equals(other.getNode())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -494,87 +575,94 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec 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.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -584,6 +672,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Details of the TPU node(s) being requested. Users can request either a
        * single node or multiple nodes.
@@ -592,33 +682,33 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec}
        */
-      public static final class Builder extends
-          com.google.protobuf.GeneratedMessageV3.Builder implements
+      public static final class Builder
+          extends com.google.protobuf.GeneratedMessageV3.Builder
+          implements
           // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec)
           com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpecOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor
-            getDescriptor() {
-          return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_NodeSpec_descriptor;
+        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+          return com.google.cloud.tpu.v2alpha1.CloudTpuProto
+              .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_NodeSpec_descriptor;
         }
 
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_NodeSpec_fieldAccessorTable
+          return com.google.cloud.tpu.v2alpha1.CloudTpuProto
+              .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_NodeSpec_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.class, com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder.class);
+                  com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.class,
+                  com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder.class);
         }
 
         // Construct using com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.newBuilder()
-        private Builder() {
+        private Builder() {}
 
-        }
-
-        private Builder(
-            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
-
         }
+
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -636,13 +726,14 @@ public Builder clear() {
         }
 
         @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor
-            getDescriptorForType() {
-          return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_NodeSpec_descriptor;
+        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+          return com.google.cloud.tpu.v2alpha1.CloudTpuProto
+              .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_NodeSpec_descriptor;
         }
 
         @java.lang.Override
-        public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec getDefaultInstanceForType() {
+        public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec
+            getDefaultInstanceForType() {
           return com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.getDefaultInstance();
         }
 
@@ -657,7 +748,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec build() {
 
         @java.lang.Override
         public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec buildPartial() {
-          com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec result = new com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec(this);
+          com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec result =
+              new com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec(this);
           result.parent_ = parent_;
           result.nodeId_ = nodeId_;
           if (nodeBuilder_ == null) {
@@ -673,38 +765,41 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec buildPartial()
         public Builder clone() {
           return super.clone();
         }
+
         @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.setField(field, value);
         }
+
         @java.lang.Override
-        public Builder clearField(
-            com.google.protobuf.Descriptors.FieldDescriptor field) {
+        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
+
         @java.lang.Override
-        public Builder clearOneof(
-            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return super.clearOneof(oneof);
         }
+
         @java.lang.Override
         public Builder setRepeatedField(
             com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index, java.lang.Object value) {
+            int index,
+            java.lang.Object value) {
           return super.setRepeatedField(field, index, value);
         }
+
         @java.lang.Override
         public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec) {
-            return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec)other);
+            return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec) other);
           } else {
             super.mergeFrom(other);
             return this;
@@ -712,7 +807,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         }
 
         public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec other) {
-          if (other == com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.getDefaultInstance()) return this;
+          if (other
+              == com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.getDefaultInstance())
+            return this;
           if (!other.getParent().isEmpty()) {
             parent_ = other.parent_;
             onChanged();
@@ -750,29 +847,31 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
-                case 10: {
-                  parent_ = input.readStringRequireUtf8();
-
-                  break;
-                } // case 10
-                case 18: {
-                  nodeId_ = input.readStringRequireUtf8();
-
-                  break;
-                } // case 18
-                case 26: {
-                  input.readMessage(
-                      getNodeFieldBuilder().getBuilder(),
-                      extensionRegistry);
-
-                  break;
-                } // case 26
-                default: {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+                case 10:
+                  {
+                    parent_ = input.readStringRequireUtf8();
+
+                    break;
+                  } // case 10
+                case 18:
+                  {
+                    nodeId_ = input.readStringRequireUtf8();
+
+                    break;
+                  } // case 18
+                case 26:
+                  {
+                    input.readMessage(getNodeFieldBuilder().getBuilder(), extensionRegistry);
+
+                    break;
+                  } // case 26
+                default:
+                  {
+                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                      done = true; // was an endgroup tag
+                    }
+                    break;
+                  } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -785,18 +884,22 @@ public Builder mergeFrom(
 
         private java.lang.Object parent_ = "";
         /**
+         *
+         *
          * 
          * Required. The parent resource name.
          * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -805,20 +908,23 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The parent resource name.
          * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -826,54 +932,67 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The parent resource name.
          * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
          * Required. The parent resource name.
          * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
          * Required. The parent resource name.
          * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -881,6 +1000,8 @@ public Builder setParentBytes( private java.lang.Object nodeId_ = ""; /** + * + * *
          * The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
          * regex format. This is only specified when requesting a single node.
@@ -889,13 +1010,13 @@ public Builder setParentBytes(
          * 
* * string node_id = 2; + * * @return The nodeId. */ public java.lang.String getNodeId() { java.lang.Object ref = nodeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeId_ = s; return s; @@ -904,6 +1025,8 @@ public java.lang.String getNodeId() { } } /** + * + * *
          * The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
          * regex format. This is only specified when requesting a single node.
@@ -912,15 +1035,14 @@ public java.lang.String getNodeId() {
          * 
* * string node_id = 2; + * * @return The bytes for nodeId. */ - public com.google.protobuf.ByteString - getNodeIdBytes() { + public com.google.protobuf.ByteString getNodeIdBytes() { java.lang.Object ref = nodeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeId_ = b; return b; } else { @@ -928,6 +1050,8 @@ public java.lang.String getNodeId() { } } /** + * + * *
          * The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
          * regex format. This is only specified when requesting a single node.
@@ -936,20 +1060,22 @@ public java.lang.String getNodeId() {
          * 
* * string node_id = 2; + * * @param value The nodeId to set. * @return This builder for chaining. */ - public Builder setNodeId( - java.lang.String value) { + public Builder setNodeId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeId_ = value; onChanged(); return this; } /** + * + * *
          * The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
          * regex format. This is only specified when requesting a single node.
@@ -958,15 +1084,18 @@ public Builder setNodeId(
          * 
* * string node_id = 2; + * * @return This builder for chaining. */ public Builder clearNodeId() { - + nodeId_ = getDefaultInstance().getNodeId(); onChanged(); return this; } /** + * + * *
          * The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
          * regex format. This is only specified when requesting a single node.
@@ -975,16 +1104,16 @@ public Builder clearNodeId() {
          * 
* * string node_id = 2; + * * @param value The bytes for nodeId to set. * @return This builder for chaining. */ - public Builder setNodeIdBytes( - com.google.protobuf.ByteString value) { + public Builder setNodeIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeId_ = value; onChanged(); return this; @@ -992,24 +1121,35 @@ public Builder setNodeIdBytes( private com.google.cloud.tpu.v2alpha1.Node node_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.Node, com.google.cloud.tpu.v2alpha1.Node.Builder, com.google.cloud.tpu.v2alpha1.NodeOrBuilder> nodeBuilder_; + com.google.cloud.tpu.v2alpha1.Node, + com.google.cloud.tpu.v2alpha1.Node.Builder, + com.google.cloud.tpu.v2alpha1.NodeOrBuilder> + nodeBuilder_; /** + * + * *
          * Required. The node.
          * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the node field is set. */ public boolean hasNode() { return nodeBuilder_ != null || node_ != null; } /** + * + * *
          * Required. The node.
          * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The node. */ public com.google.cloud.tpu.v2alpha1.Node getNode() { @@ -1020,11 +1160,14 @@ public com.google.cloud.tpu.v2alpha1.Node getNode() { } } /** + * + * *
          * Required. The node.
          * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNode(com.google.cloud.tpu.v2alpha1.Node value) { if (nodeBuilder_ == null) { @@ -1040,14 +1183,16 @@ public Builder setNode(com.google.cloud.tpu.v2alpha1.Node value) { return this; } /** + * + * *
          * Required. The node.
          * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setNode( - com.google.cloud.tpu.v2alpha1.Node.Builder builderForValue) { + public Builder setNode(com.google.cloud.tpu.v2alpha1.Node.Builder builderForValue) { if (nodeBuilder_ == null) { node_ = builderForValue.build(); onChanged(); @@ -1058,17 +1203,22 @@ public Builder setNode( return this; } /** + * + * *
          * Required. The node.
          * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeNode(com.google.cloud.tpu.v2alpha1.Node value) { if (nodeBuilder_ == null) { if (node_ != null) { node_ = - com.google.cloud.tpu.v2alpha1.Node.newBuilder(node_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v2alpha1.Node.newBuilder(node_) + .mergeFrom(value) + .buildPartial(); } else { node_ = value; } @@ -1080,11 +1230,14 @@ public Builder mergeNode(com.google.cloud.tpu.v2alpha1.Node value) { return this; } /** + * + * *
          * Required. The node.
          * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNode() { if (nodeBuilder_ == null) { @@ -1098,52 +1251,64 @@ public Builder clearNode() { return this; } /** + * + * *
          * Required. The node.
          * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.tpu.v2alpha1.Node.Builder getNodeBuilder() { - + onChanged(); return getNodeFieldBuilder().getBuilder(); } /** + * + * *
          * Required. The node.
          * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodeOrBuilder() { if (nodeBuilder_ != null) { return nodeBuilder_.getMessageOrBuilder(); } else { - return node_ == null ? - com.google.cloud.tpu.v2alpha1.Node.getDefaultInstance() : node_; + return node_ == null ? com.google.cloud.tpu.v2alpha1.Node.getDefaultInstance() : node_; } } /** + * + * *
          * Required. The node.
          * 
* - * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.Node, com.google.cloud.tpu.v2alpha1.Node.Builder, com.google.cloud.tpu.v2alpha1.NodeOrBuilder> + com.google.cloud.tpu.v2alpha1.Node, + com.google.cloud.tpu.v2alpha1.Node.Builder, + com.google.cloud.tpu.v2alpha1.NodeOrBuilder> getNodeFieldBuilder() { if (nodeBuilder_ == null) { - nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.Node, com.google.cloud.tpu.v2alpha1.Node.Builder, com.google.cloud.tpu.v2alpha1.NodeOrBuilder>( - getNode(), - getParentForChildren(), - isClean()); + nodeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.Node, + com.google.cloud.tpu.v2alpha1.Node.Builder, + com.google.cloud.tpu.v2alpha1.NodeOrBuilder>( + getNode(), getParentForChildren(), isClean()); node_ = null; } return nodeBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1156,12 +1321,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec) - private static final com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec DEFAULT_INSTANCE; + private static final com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec(); } @@ -1170,27 +1336,28 @@ public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1205,12 +1372,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NODE_SPEC_FIELD_NUMBER = 1; private java.util.List nodeSpec_; /** + * + * *
      * The TPU node(s) being requested.
      * 
@@ -1218,10 +1386,13 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec getDefaultInsta * repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1; */ @java.lang.Override - public java.util.List getNodeSpecList() { + public java.util.List + getNodeSpecList() { return nodeSpec_; } /** + * + * *
      * The TPU node(s) being requested.
      * 
@@ -1229,11 +1400,14 @@ public java.util.List * repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpecOrBuilder> getNodeSpecOrBuilderList() { return nodeSpec_; } /** + * + * *
      * The TPU node(s) being requested.
      * 
@@ -1245,6 +1419,8 @@ public int getNodeSpecCount() { return nodeSpec_.size(); } /** + * + * *
      * The TPU node(s) being requested.
      * 
@@ -1256,6 +1432,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec getNodeSpec(int return nodeSpec_.get(index); } /** + * + * *
      * The TPU node(s) being requested.
      * 
@@ -1269,6 +1447,7 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpecOrBuilder getNod } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1280,8 +1459,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < nodeSpec_.size(); i++) { output.writeMessage(1, nodeSpec_.get(i)); } @@ -1295,8 +1473,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < nodeSpec_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nodeSpec_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nodeSpec_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1306,15 +1483,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu other = (com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu) obj; + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu other = + (com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu) obj; - if (!getNodeSpecList() - .equals(other.getNodeSpecList())) return false; + if (!getNodeSpecList().equals(other.getNodeSpecList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1336,87 +1513,93 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu 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.tpu.v2alpha1.QueuedResource.Tpu parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1426,39 +1609,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Details of the TPU resource(s) being requested.
      * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResource.Tpu} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.QueuedResource.Tpu) com.google.cloud.tpu.v2alpha1.QueuedResource.TpuOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.class, com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.class, + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1473,9 +1658,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_descriptor; } @java.lang.Override @@ -1494,7 +1679,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu buildPartial() { - com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu result = new com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu(this); + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu result = + new com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu(this); int from_bitField0_ = bitField0_; if (nodeSpecBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1513,38 +1699,41 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.QueuedResource.Tpu) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu) other); } else { super.mergeFrom(other); return this; @@ -1552,7 +1741,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu other) { - if (other == com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.getDefaultInstance()) + return this; if (nodeSpecBuilder_ == null) { if (!other.nodeSpec_.isEmpty()) { if (nodeSpec_.isEmpty()) { @@ -1571,9 +1761,10 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu other) nodeSpecBuilder_ = null; nodeSpec_ = other.nodeSpec_; bitField0_ = (bitField0_ & ~0x00000001); - nodeSpecBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodeSpecFieldBuilder() : null; + nodeSpecBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodeSpecFieldBuilder() + : null; } else { nodeSpecBuilder_.addAllMessages(other.nodeSpec_); } @@ -1605,25 +1796,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec m = - input.readMessage( - com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.parser(), - extensionRegistry); - if (nodeSpecBuilder_ == null) { - ensureNodeSpecIsMutable(); - nodeSpec_.add(m); - } else { - nodeSpecBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec m = + input.readMessage( + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.parser(), + extensionRegistry); + if (nodeSpecBuilder_ == null) { + ensureNodeSpecIsMutable(); + nodeSpec_.add(m); + } else { + nodeSpecBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1633,28 +1826,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List nodeSpec_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNodeSpecIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - nodeSpec_ = new java.util.ArrayList(nodeSpec_); + nodeSpec_ = + new java.util.ArrayList( + nodeSpec_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec, com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder, com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpecOrBuilder> nodeSpecBuilder_; + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec, + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpecOrBuilder> + nodeSpecBuilder_; /** + * + * *
        * The TPU node(s) being requested.
        * 
* * repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1; */ - public java.util.List getNodeSpecList() { + public java.util.List + getNodeSpecList() { if (nodeSpecBuilder_ == null) { return java.util.Collections.unmodifiableList(nodeSpec_); } else { @@ -1662,6 +1865,8 @@ public java.util.List } } /** + * + * *
        * The TPU node(s) being requested.
        * 
@@ -1676,6 +1881,8 @@ public int getNodeSpecCount() { } } /** + * + * *
        * The TPU node(s) being requested.
        * 
@@ -1690,6 +1897,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec getNodeSpec(int } } /** + * + * *
        * The TPU node(s) being requested.
        * 
@@ -1711,6 +1920,8 @@ public Builder setNodeSpec( return this; } /** + * + * *
        * The TPU node(s) being requested.
        * 
@@ -1718,7 +1929,8 @@ public Builder setNodeSpec( * repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1; */ public Builder setNodeSpec( - int index, com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder builderForValue) { + int index, + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder builderForValue) { if (nodeSpecBuilder_ == null) { ensureNodeSpecIsMutable(); nodeSpec_.set(index, builderForValue.build()); @@ -1729,6 +1941,8 @@ public Builder setNodeSpec( return this; } /** + * + * *
        * The TPU node(s) being requested.
        * 
@@ -1749,6 +1963,8 @@ public Builder addNodeSpec(com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.Node return this; } /** + * + * *
        * The TPU node(s) being requested.
        * 
@@ -1770,6 +1986,8 @@ public Builder addNodeSpec( return this; } /** + * + * *
        * The TPU node(s) being requested.
        * 
@@ -1788,6 +2006,8 @@ public Builder addNodeSpec( return this; } /** + * + * *
        * The TPU node(s) being requested.
        * 
@@ -1795,7 +2015,8 @@ public Builder addNodeSpec( * repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1; */ public Builder addNodeSpec( - int index, com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder builderForValue) { + int index, + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder builderForValue) { if (nodeSpecBuilder_ == null) { ensureNodeSpecIsMutable(); nodeSpec_.add(index, builderForValue.build()); @@ -1806,6 +2027,8 @@ public Builder addNodeSpec( return this; } /** + * + * *
        * The TPU node(s) being requested.
        * 
@@ -1813,11 +2036,11 @@ public Builder addNodeSpec( * repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1; */ public Builder addAllNodeSpec( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (nodeSpecBuilder_ == null) { ensureNodeSpecIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodeSpec_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodeSpec_); onChanged(); } else { nodeSpecBuilder_.addAllMessages(values); @@ -1825,6 +2048,8 @@ public Builder addAllNodeSpec( return this; } /** + * + * *
        * The TPU node(s) being requested.
        * 
@@ -1842,6 +2067,8 @@ public Builder clearNodeSpec() { return this; } /** + * + * *
        * The TPU node(s) being requested.
        * 
@@ -1859,6 +2086,8 @@ public Builder removeNodeSpec(int index) { return this; } /** + * + * *
        * The TPU node(s) being requested.
        * 
@@ -1870,28 +2099,34 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder getNode return getNodeSpecFieldBuilder().getBuilder(index); } /** + * + * *
        * The TPU node(s) being requested.
        * 
* * repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1; */ - public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpecOrBuilder getNodeSpecOrBuilder( - int index) { + public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpecOrBuilder + getNodeSpecOrBuilder(int index) { if (nodeSpecBuilder_ == null) { - return nodeSpec_.get(index); } else { + return nodeSpec_.get(index); + } else { return nodeSpecBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * The TPU node(s) being requested.
        * 
* * repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1; */ - public java.util.List - getNodeSpecOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpecOrBuilder> + getNodeSpecOrBuilderList() { if (nodeSpecBuilder_ != null) { return nodeSpecBuilder_.getMessageOrBuilderList(); } else { @@ -1899,17 +2134,23 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpecOrBuilder getNod } } /** + * + * *
        * The TPU node(s) being requested.
        * 
* * repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1; */ - public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder addNodeSpecBuilder() { - return getNodeSpecFieldBuilder().addBuilder( - com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.getDefaultInstance()); + public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder + addNodeSpecBuilder() { + return getNodeSpecFieldBuilder() + .addBuilder( + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.getDefaultInstance()); } /** + * + * *
        * The TPU node(s) being requested.
        * 
@@ -1918,34 +2159,42 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder addNode */ public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder addNodeSpecBuilder( int index) { - return getNodeSpecFieldBuilder().addBuilder( - index, com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.getDefaultInstance()); + return getNodeSpecFieldBuilder() + .addBuilder( + index, + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.getDefaultInstance()); } /** + * + * *
        * The TPU node(s) being requested.
        * 
* * repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1; */ - public java.util.List - getNodeSpecBuilderList() { + public java.util.List + getNodeSpecBuilderList() { return getNodeSpecFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec, com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder, com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpecOrBuilder> + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec, + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpecOrBuilder> getNodeSpecFieldBuilder() { if (nodeSpecBuilder_ == null) { - nodeSpecBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec, com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder, com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpecOrBuilder>( - nodeSpec_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + nodeSpecBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec, + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpecOrBuilder>( + nodeSpec_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); nodeSpec_ = null; } return nodeSpecBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1958,12 +2207,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.QueuedResource.Tpu) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.QueuedResource.Tpu) private static final com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu(); } @@ -1972,27 +2221,28 @@ public static com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Tpu parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tpu parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2007,58 +2257,61 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface BestEffortOrBuilder extends + public interface BestEffortOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) - com.google.protobuf.MessageOrBuilder { - } + com.google.protobuf.MessageOrBuilder {} /** + * + * *
    * BestEffort tier definition.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResource.BestEffort} */ - public static final class BestEffort extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class BestEffort extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) BestEffortOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BestEffort.newBuilder() to construct. private BestEffort(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BestEffort() { - } + + private BestEffort() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BestEffort(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_BestEffort_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_BestEffort_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_BestEffort_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_BestEffort_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.class, com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.class, + com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2070,8 +2323,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -2089,12 +2341,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort other = (com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) obj; + com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort other = + (com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2113,87 +2366,94 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort 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.tpu.v2alpha1.QueuedResource.BestEffort parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2203,39 +2463,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * BestEffort tier definition.
      * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResource.BestEffort} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffortOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_BestEffort_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_BestEffort_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_BestEffort_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_BestEffort_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.class, com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.class, + com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2243,9 +2505,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_BestEffort_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_BestEffort_descriptor; } @java.lang.Override @@ -2264,7 +2526,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort buildPartial() { - com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort result = new com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort(this); + com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort result = + new com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort(this); onBuilt(); return result; } @@ -2273,38 +2536,41 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.QueuedResource.BestEffort) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) other); } else { super.mergeFrom(other); return this; @@ -2312,7 +2578,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort other) { - if (other == com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2339,12 +2606,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2354,6 +2622,7 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2366,12 +2635,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) private static final com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort(); } @@ -2380,27 +2649,28 @@ public static com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BestEffort parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BestEffort parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2415,110 +2685,131 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface GuaranteedOrBuilder extends + public interface GuaranteedOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. Defines the minimum duration of the guarantee. If specified,
      * the requested resources will only be provisioned if they can be
      * allocated for at least the given duration.
      * 
* - * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the minDuration field is set. */ boolean hasMinDuration(); /** + * + * *
      * Optional. Defines the minimum duration of the guarantee. If specified,
      * the requested resources will only be provisioned if they can be
      * allocated for at least the given duration.
      * 
* - * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The minDuration. */ com.google.protobuf.Duration getMinDuration(); /** + * + * *
      * Optional. Defines the minimum duration of the guarantee. If specified,
      * the requested resources will only be provisioned if they can be
      * allocated for at least the given duration.
      * 
* - * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder(); /** + * + * *
      * Optional. Specifies the request should be scheduled on reserved capacity.
      * 
* * bool reserved = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The reserved. */ boolean getReserved(); } /** + * + * *
    * Guaranteed tier definition.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed} */ - public static final class Guaranteed extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Guaranteed extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) GuaranteedOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Guaranteed.newBuilder() to construct. private Guaranteed(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Guaranteed() { - } + + private Guaranteed() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Guaranteed(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Guaranteed_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Guaranteed_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Guaranteed_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Guaranteed_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.class, com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.class, + com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.Builder.class); } public static final int MIN_DURATION_FIELD_NUMBER = 1; private com.google.protobuf.Duration minDuration_; /** + * + * *
      * Optional. Defines the minimum duration of the guarantee. If specified,
      * the requested resources will only be provisioned if they can be
      * allocated for at least the given duration.
      * 
* - * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the minDuration field is set. */ @java.lang.Override @@ -2526,27 +2817,36 @@ public boolean hasMinDuration() { return minDuration_ != null; } /** + * + * *
      * Optional. Defines the minimum duration of the guarantee. If specified,
      * the requested resources will only be provisioned if they can be
      * allocated for at least the given duration.
      * 
* - * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The minDuration. */ @java.lang.Override public com.google.protobuf.Duration getMinDuration() { - return minDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minDuration_; + return minDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minDuration_; } /** + * + * *
      * Optional. Defines the minimum duration of the guarantee. If specified,
      * the requested resources will only be provisioned if they can be
      * allocated for at least the given duration.
      * 
* - * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder() { @@ -2556,11 +2856,14 @@ public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder() { public static final int RESERVED_FIELD_NUMBER = 2; private boolean reserved_; /** + * + * *
      * Optional. Specifies the request should be scheduled on reserved capacity.
      * 
* * bool reserved = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The reserved. */ @java.lang.Override @@ -2569,6 +2872,7 @@ public boolean getReserved() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2580,8 +2884,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (minDuration_ != null) { output.writeMessage(1, getMinDuration()); } @@ -2598,12 +2901,10 @@ public int getSerializedSize() { size = 0; if (minDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMinDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinDuration()); } if (reserved_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, reserved_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, reserved_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2613,20 +2914,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed other = (com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) obj; + com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed other = + (com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) obj; if (hasMinDuration() != other.hasMinDuration()) return false; if (hasMinDuration()) { - if (!getMinDuration() - .equals(other.getMinDuration())) return false; + if (!getMinDuration().equals(other.getMinDuration())) return false; } - if (getReserved() - != other.getReserved()) return false; + if (getReserved() != other.getReserved()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2643,95 +2943,101 @@ public int hashCode() { hash = (53 * hash) + getMinDuration().hashCode(); } hash = (37 * hash) + RESERVED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReserved()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReserved()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed 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.tpu.v2alpha1.QueuedResource.Guaranteed parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2741,39 +3047,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Guaranteed tier definition.
      * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) com.google.cloud.tpu.v2alpha1.QueuedResource.GuaranteedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Guaranteed_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Guaranteed_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Guaranteed_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Guaranteed_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.class, com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.class, + com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2789,9 +3097,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Guaranteed_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Guaranteed_descriptor; } @java.lang.Override @@ -2810,7 +3118,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed buildPartial() { - com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed result = new com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed(this); + com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed result = + new com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed(this); if (minDurationBuilder_ == null) { result.minDuration_ = minDuration_; } else { @@ -2825,38 +3134,41 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.QueuedResource.Guaranteed) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) other); } else { super.mergeFrom(other); return this; @@ -2864,7 +3176,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed other) { - if (other == com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.getDefaultInstance()) + return this; if (other.hasMinDuration()) { mergeMinDuration(other.getMinDuration()); } @@ -2897,24 +3210,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getMinDurationFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getMinDurationFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 16: { - reserved_ = input.readBool(); + break; + } // case 10 + case 16: + { + reserved_ = input.readBool(); - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2927,45 +3241,61 @@ public Builder mergeFrom( private com.google.protobuf.Duration minDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + minDurationBuilder_; /** + * + * *
        * Optional. Defines the minimum duration of the guarantee. If specified,
        * the requested resources will only be provisioned if they can be
        * allocated for at least the given duration.
        * 
* - * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the minDuration field is set. */ public boolean hasMinDuration() { return minDurationBuilder_ != null || minDuration_ != null; } /** + * + * *
        * Optional. Defines the minimum duration of the guarantee. If specified,
        * the requested resources will only be provisioned if they can be
        * allocated for at least the given duration.
        * 
* - * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The minDuration. */ public com.google.protobuf.Duration getMinDuration() { if (minDurationBuilder_ == null) { - return minDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minDuration_; + return minDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minDuration_; } else { return minDurationBuilder_.getMessage(); } } /** + * + * *
        * Optional. Defines the minimum duration of the guarantee. If specified,
        * the requested resources will only be provisioned if they can be
        * allocated for at least the given duration.
        * 
* - * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMinDuration(com.google.protobuf.Duration value) { if (minDurationBuilder_ == null) { @@ -2981,16 +3311,18 @@ public Builder setMinDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Optional. Defines the minimum duration of the guarantee. If specified,
        * the requested resources will only be provisioned if they can be
        * allocated for at least the given duration.
        * 
* - * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setMinDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMinDuration(com.google.protobuf.Duration.Builder builderForValue) { if (minDurationBuilder_ == null) { minDuration_ = builderForValue.build(); onChanged(); @@ -3001,19 +3333,24 @@ public Builder setMinDuration( return this; } /** + * + * *
        * Optional. Defines the minimum duration of the guarantee. If specified,
        * the requested resources will only be provisioned if they can be
        * allocated for at least the given duration.
        * 
* - * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMinDuration(com.google.protobuf.Duration value) { if (minDurationBuilder_ == null) { if (minDuration_ != null) { minDuration_ = - com.google.protobuf.Duration.newBuilder(minDuration_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(minDuration_) + .mergeFrom(value) + .buildPartial(); } else { minDuration_ = value; } @@ -3025,13 +3362,16 @@ public Builder mergeMinDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Optional. Defines the minimum duration of the guarantee. If specified,
        * the requested resources will only be provisioned if they can be
        * allocated for at least the given duration.
        * 
* - * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMinDuration() { if (minDurationBuilder_ == null) { @@ -3045,66 +3385,82 @@ public Builder clearMinDuration() { return this; } /** + * + * *
        * Optional. Defines the minimum duration of the guarantee. If specified,
        * the requested resources will only be provisioned if they can be
        * allocated for at least the given duration.
        * 
* - * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getMinDurationBuilder() { - + onChanged(); return getMinDurationFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. Defines the minimum duration of the guarantee. If specified,
        * the requested resources will only be provisioned if they can be
        * allocated for at least the given duration.
        * 
* - * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder() { if (minDurationBuilder_ != null) { return minDurationBuilder_.getMessageOrBuilder(); } else { - return minDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : minDuration_; + return minDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minDuration_; } } /** + * + * *
        * Optional. Defines the minimum duration of the guarantee. If specified,
        * the requested resources will only be provisioned if they can be
        * allocated for at least the given duration.
        * 
* - * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getMinDurationFieldBuilder() { if (minDurationBuilder_ == null) { - minDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMinDuration(), - getParentForChildren(), - isClean()); + minDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMinDuration(), getParentForChildren(), isClean()); minDuration_ = null; } return minDurationBuilder_; } - private boolean reserved_ ; + private boolean reserved_; /** + * + * *
        * Optional. Specifies the request should be scheduled on reserved capacity.
        * 
* * bool reserved = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The reserved. */ @java.lang.Override @@ -3112,34 +3468,41 @@ public boolean getReserved() { return reserved_; } /** + * + * *
        * Optional. Specifies the request should be scheduled on reserved capacity.
        * 
* * bool reserved = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The reserved to set. * @return This builder for chaining. */ public Builder setReserved(boolean value) { - + reserved_ = value; onChanged(); return this; } /** + * + * *
        * Optional. Specifies the request should be scheduled on reserved capacity.
        * 
* * bool reserved = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearReserved() { - + reserved_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3152,12 +3515,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) private static final com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed(); } @@ -3166,27 +3529,28 @@ public static com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Guaranteed parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Guaranteed parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3201,14 +3565,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface QueueingPolicyOrBuilder extends + public interface QueueingPolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A relative time after which resources should not be created.
      * If the request cannot be fulfilled by this time the request will be
@@ -3216,10 +3582,13 @@ public interface QueueingPolicyOrBuilder extends
      * 
* * .google.protobuf.Duration valid_until_duration = 1; + * * @return Whether the validUntilDuration field is set. */ boolean hasValidUntilDuration(); /** + * + * *
      * A relative time after which resources should not be created.
      * If the request cannot be fulfilled by this time the request will be
@@ -3227,10 +3596,13 @@ public interface QueueingPolicyOrBuilder extends
      * 
* * .google.protobuf.Duration valid_until_duration = 1; + * * @return The validUntilDuration. */ com.google.protobuf.Duration getValidUntilDuration(); /** + * + * *
      * A relative time after which resources should not be created.
      * If the request cannot be fulfilled by this time the request will be
@@ -3242,6 +3614,8 @@ public interface QueueingPolicyOrBuilder extends
     com.google.protobuf.DurationOrBuilder getValidUntilDurationOrBuilder();
 
     /**
+     *
+     *
      * 
      * An absolute time after which resources should not be created.
      * If the request cannot be fulfilled by this time the request will be
@@ -3249,10 +3623,13 @@ public interface QueueingPolicyOrBuilder extends
      * 
* * .google.protobuf.Timestamp valid_until_time = 2; + * * @return Whether the validUntilTime field is set. */ boolean hasValidUntilTime(); /** + * + * *
      * An absolute time after which resources should not be created.
      * If the request cannot be fulfilled by this time the request will be
@@ -3260,10 +3637,13 @@ public interface QueueingPolicyOrBuilder extends
      * 
* * .google.protobuf.Timestamp valid_until_time = 2; + * * @return The validUntilTime. */ com.google.protobuf.Timestamp getValidUntilTime(); /** + * + * *
      * An absolute time after which resources should not be created.
      * If the request cannot be fulfilled by this time the request will be
@@ -3275,24 +3655,32 @@ public interface QueueingPolicyOrBuilder extends
     com.google.protobuf.TimestampOrBuilder getValidUntilTimeOrBuilder();
 
     /**
+     *
+     *
      * 
      * A relative time after which resources may be created.
      * 
* * .google.protobuf.Duration valid_after_duration = 3; + * * @return Whether the validAfterDuration field is set. */ boolean hasValidAfterDuration(); /** + * + * *
      * A relative time after which resources may be created.
      * 
* * .google.protobuf.Duration valid_after_duration = 3; + * * @return The validAfterDuration. */ com.google.protobuf.Duration getValidAfterDuration(); /** + * + * *
      * A relative time after which resources may be created.
      * 
@@ -3302,24 +3690,32 @@ public interface QueueingPolicyOrBuilder extends com.google.protobuf.DurationOrBuilder getValidAfterDurationOrBuilder(); /** + * + * *
      * An absolute time at which resources may be created.
      * 
* * .google.protobuf.Timestamp valid_after_time = 4; + * * @return Whether the validAfterTime field is set. */ boolean hasValidAfterTime(); /** + * + * *
      * An absolute time at which resources may be created.
      * 
* * .google.protobuf.Timestamp valid_after_time = 4; + * * @return The validAfterTime. */ com.google.protobuf.Timestamp getValidAfterTime(); /** + * + * *
      * An absolute time at which resources may be created.
      * 
@@ -3329,24 +3725,32 @@ public interface QueueingPolicyOrBuilder extends com.google.protobuf.TimestampOrBuilder getValidAfterTimeOrBuilder(); /** + * + * *
      * An absolute time interval within which resources may be created.
      * 
* * .google.type.Interval valid_interval = 5; + * * @return Whether the validInterval field is set. */ boolean hasValidInterval(); /** + * + * *
      * An absolute time interval within which resources may be created.
      * 
* * .google.type.Interval valid_interval = 5; + * * @return The validInterval. */ com.google.type.Interval getValidInterval(); /** + * + * *
      * An absolute time interval within which resources may be created.
      * 
@@ -3355,56 +3759,62 @@ public interface QueueingPolicyOrBuilder extends */ com.google.type.IntervalOrBuilder getValidIntervalOrBuilder(); - public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.StartTimingConstraintsCase getStartTimingConstraintsCase(); + public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.StartTimingConstraintsCase + getStartTimingConstraintsCase(); } /** + * + * *
    * Defines the policy of the QueuedRequest.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy} */ - public static final class QueueingPolicy extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class QueueingPolicy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy) QueueingPolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QueueingPolicy.newBuilder() to construct. private QueueingPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QueueingPolicy() { - } + + private QueueingPolicy() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueueingPolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_QueueingPolicy_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_QueueingPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_QueueingPolicy_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_QueueingPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.class, com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.class, + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.Builder.class); } private int startTimingConstraintsCase_ = 0; private java.lang.Object startTimingConstraints_; + public enum StartTimingConstraintsCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VALID_UNTIL_DURATION(1), VALID_UNTIL_TIME(2), @@ -3413,6 +3823,7 @@ public enum StartTimingConstraintsCase VALID_INTERVAL(5), STARTTIMINGCONSTRAINTS_NOT_SET(0); private final int value; + private StartTimingConstraintsCase(int value) { this.value = value; } @@ -3428,28 +3839,36 @@ public static StartTimingConstraintsCase valueOf(int value) { public static StartTimingConstraintsCase forNumber(int value) { switch (value) { - case 1: return VALID_UNTIL_DURATION; - case 2: return VALID_UNTIL_TIME; - case 3: return VALID_AFTER_DURATION; - case 4: return VALID_AFTER_TIME; - case 5: return VALID_INTERVAL; - case 0: return STARTTIMINGCONSTRAINTS_NOT_SET; - default: return null; + case 1: + return VALID_UNTIL_DURATION; + case 2: + return VALID_UNTIL_TIME; + case 3: + return VALID_AFTER_DURATION; + case 4: + return VALID_AFTER_TIME; + case 5: + return VALID_INTERVAL; + case 0: + return STARTTIMINGCONSTRAINTS_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public StartTimingConstraintsCase - getStartTimingConstraintsCase() { - return StartTimingConstraintsCase.forNumber( - startTimingConstraintsCase_); + public StartTimingConstraintsCase getStartTimingConstraintsCase() { + return StartTimingConstraintsCase.forNumber(startTimingConstraintsCase_); } public static final int VALID_UNTIL_DURATION_FIELD_NUMBER = 1; /** + * + * *
      * A relative time after which resources should not be created.
      * If the request cannot be fulfilled by this time the request will be
@@ -3457,6 +3876,7 @@ public int getNumber() {
      * 
* * .google.protobuf.Duration valid_until_duration = 1; + * * @return Whether the validUntilDuration field is set. */ @java.lang.Override @@ -3464,6 +3884,8 @@ public boolean hasValidUntilDuration() { return startTimingConstraintsCase_ == 1; } /** + * + * *
      * A relative time after which resources should not be created.
      * If the request cannot be fulfilled by this time the request will be
@@ -3471,16 +3893,19 @@ public boolean hasValidUntilDuration() {
      * 
* * .google.protobuf.Duration valid_until_duration = 1; + * * @return The validUntilDuration. */ @java.lang.Override public com.google.protobuf.Duration getValidUntilDuration() { if (startTimingConstraintsCase_ == 1) { - return (com.google.protobuf.Duration) startTimingConstraints_; + return (com.google.protobuf.Duration) startTimingConstraints_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** + * + * *
      * A relative time after which resources should not be created.
      * If the request cannot be fulfilled by this time the request will be
@@ -3492,13 +3917,15 @@ public com.google.protobuf.Duration getValidUntilDuration() {
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getValidUntilDurationOrBuilder() {
       if (startTimingConstraintsCase_ == 1) {
-         return (com.google.protobuf.Duration) startTimingConstraints_;
+        return (com.google.protobuf.Duration) startTimingConstraints_;
       }
       return com.google.protobuf.Duration.getDefaultInstance();
     }
 
     public static final int VALID_UNTIL_TIME_FIELD_NUMBER = 2;
     /**
+     *
+     *
      * 
      * An absolute time after which resources should not be created.
      * If the request cannot be fulfilled by this time the request will be
@@ -3506,6 +3933,7 @@ public com.google.protobuf.DurationOrBuilder getValidUntilDurationOrBuilder() {
      * 
* * .google.protobuf.Timestamp valid_until_time = 2; + * * @return Whether the validUntilTime field is set. */ @java.lang.Override @@ -3513,6 +3941,8 @@ public boolean hasValidUntilTime() { return startTimingConstraintsCase_ == 2; } /** + * + * *
      * An absolute time after which resources should not be created.
      * If the request cannot be fulfilled by this time the request will be
@@ -3520,16 +3950,19 @@ public boolean hasValidUntilTime() {
      * 
* * .google.protobuf.Timestamp valid_until_time = 2; + * * @return The validUntilTime. */ @java.lang.Override public com.google.protobuf.Timestamp getValidUntilTime() { if (startTimingConstraintsCase_ == 2) { - return (com.google.protobuf.Timestamp) startTimingConstraints_; + return (com.google.protobuf.Timestamp) startTimingConstraints_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
      * An absolute time after which resources should not be created.
      * If the request cannot be fulfilled by this time the request will be
@@ -3541,18 +3974,21 @@ public com.google.protobuf.Timestamp getValidUntilTime() {
     @java.lang.Override
     public com.google.protobuf.TimestampOrBuilder getValidUntilTimeOrBuilder() {
       if (startTimingConstraintsCase_ == 2) {
-         return (com.google.protobuf.Timestamp) startTimingConstraints_;
+        return (com.google.protobuf.Timestamp) startTimingConstraints_;
       }
       return com.google.protobuf.Timestamp.getDefaultInstance();
     }
 
     public static final int VALID_AFTER_DURATION_FIELD_NUMBER = 3;
     /**
+     *
+     *
      * 
      * A relative time after which resources may be created.
      * 
* * .google.protobuf.Duration valid_after_duration = 3; + * * @return Whether the validAfterDuration field is set. */ @java.lang.Override @@ -3560,21 +3996,26 @@ public boolean hasValidAfterDuration() { return startTimingConstraintsCase_ == 3; } /** + * + * *
      * A relative time after which resources may be created.
      * 
* * .google.protobuf.Duration valid_after_duration = 3; + * * @return The validAfterDuration. */ @java.lang.Override public com.google.protobuf.Duration getValidAfterDuration() { if (startTimingConstraintsCase_ == 3) { - return (com.google.protobuf.Duration) startTimingConstraints_; + return (com.google.protobuf.Duration) startTimingConstraints_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** + * + * *
      * A relative time after which resources may be created.
      * 
@@ -3584,18 +4025,21 @@ public com.google.protobuf.Duration getValidAfterDuration() { @java.lang.Override public com.google.protobuf.DurationOrBuilder getValidAfterDurationOrBuilder() { if (startTimingConstraintsCase_ == 3) { - return (com.google.protobuf.Duration) startTimingConstraints_; + return (com.google.protobuf.Duration) startTimingConstraints_; } return com.google.protobuf.Duration.getDefaultInstance(); } public static final int VALID_AFTER_TIME_FIELD_NUMBER = 4; /** + * + * *
      * An absolute time at which resources may be created.
      * 
* * .google.protobuf.Timestamp valid_after_time = 4; + * * @return Whether the validAfterTime field is set. */ @java.lang.Override @@ -3603,21 +4047,26 @@ public boolean hasValidAfterTime() { return startTimingConstraintsCase_ == 4; } /** + * + * *
      * An absolute time at which resources may be created.
      * 
* * .google.protobuf.Timestamp valid_after_time = 4; + * * @return The validAfterTime. */ @java.lang.Override public com.google.protobuf.Timestamp getValidAfterTime() { if (startTimingConstraintsCase_ == 4) { - return (com.google.protobuf.Timestamp) startTimingConstraints_; + return (com.google.protobuf.Timestamp) startTimingConstraints_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
      * An absolute time at which resources may be created.
      * 
@@ -3627,18 +4076,21 @@ public com.google.protobuf.Timestamp getValidAfterTime() { @java.lang.Override public com.google.protobuf.TimestampOrBuilder getValidAfterTimeOrBuilder() { if (startTimingConstraintsCase_ == 4) { - return (com.google.protobuf.Timestamp) startTimingConstraints_; + return (com.google.protobuf.Timestamp) startTimingConstraints_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } public static final int VALID_INTERVAL_FIELD_NUMBER = 5; /** + * + * *
      * An absolute time interval within which resources may be created.
      * 
* * .google.type.Interval valid_interval = 5; + * * @return Whether the validInterval field is set. */ @java.lang.Override @@ -3646,21 +4098,26 @@ public boolean hasValidInterval() { return startTimingConstraintsCase_ == 5; } /** + * + * *
      * An absolute time interval within which resources may be created.
      * 
* * .google.type.Interval valid_interval = 5; + * * @return The validInterval. */ @java.lang.Override public com.google.type.Interval getValidInterval() { if (startTimingConstraintsCase_ == 5) { - return (com.google.type.Interval) startTimingConstraints_; + return (com.google.type.Interval) startTimingConstraints_; } return com.google.type.Interval.getDefaultInstance(); } /** + * + * *
      * An absolute time interval within which resources may be created.
      * 
@@ -3670,12 +4127,13 @@ public com.google.type.Interval getValidInterval() { @java.lang.Override public com.google.type.IntervalOrBuilder getValidIntervalOrBuilder() { if (startTimingConstraintsCase_ == 5) { - return (com.google.type.Interval) startTimingConstraints_; + return (com.google.type.Interval) startTimingConstraints_; } return com.google.type.Interval.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3687,8 +4145,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTimingConstraintsCase_ == 1) { output.writeMessage(1, (com.google.protobuf.Duration) startTimingConstraints_); } @@ -3714,24 +4171,29 @@ public int getSerializedSize() { size = 0; if (startTimingConstraintsCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.protobuf.Duration) startTimingConstraints_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.protobuf.Duration) startTimingConstraints_); } if (startTimingConstraintsCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.protobuf.Timestamp) startTimingConstraints_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.protobuf.Timestamp) startTimingConstraints_); } if (startTimingConstraintsCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.protobuf.Duration) startTimingConstraints_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.protobuf.Duration) startTimingConstraints_); } if (startTimingConstraintsCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.protobuf.Timestamp) startTimingConstraints_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.protobuf.Timestamp) startTimingConstraints_); } if (startTimingConstraintsCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.type.Interval) startTimingConstraints_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.type.Interval) startTimingConstraints_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3741,34 +4203,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy other = (com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy) obj; + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy other = + (com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy) obj; - if (!getStartTimingConstraintsCase().equals(other.getStartTimingConstraintsCase())) return false; + if (!getStartTimingConstraintsCase().equals(other.getStartTimingConstraintsCase())) + return false; switch (startTimingConstraintsCase_) { case 1: - if (!getValidUntilDuration() - .equals(other.getValidUntilDuration())) return false; + if (!getValidUntilDuration().equals(other.getValidUntilDuration())) return false; break; case 2: - if (!getValidUntilTime() - .equals(other.getValidUntilTime())) return false; + if (!getValidUntilTime().equals(other.getValidUntilTime())) return false; break; case 3: - if (!getValidAfterDuration() - .equals(other.getValidAfterDuration())) return false; + if (!getValidAfterDuration().equals(other.getValidAfterDuration())) return false; break; case 4: - if (!getValidAfterTime() - .equals(other.getValidAfterTime())) return false; + if (!getValidAfterTime().equals(other.getValidAfterTime())) return false; break; case 5: - if (!getValidInterval() - .equals(other.getValidInterval())) return false; + if (!getValidInterval().equals(other.getValidInterval())) return false; break; case 0: default: @@ -3814,87 +4273,94 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy 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.tpu.v2alpha1.QueuedResource.QueueingPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3904,39 +4370,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Defines the policy of the QueuedRequest.
      * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy) com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_QueueingPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_QueueingPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_QueueingPolicy_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_QueueingPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.class, com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.class, + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3961,13 +4429,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_QueueingPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_QueueingPolicy_descriptor; } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy getDefaultInstanceForType() { + public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy + getDefaultInstanceForType() { return com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.getDefaultInstance(); } @@ -3982,7 +4451,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy buildPartial() { - com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy result = new com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy(this); + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy result = + new com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy(this); if (startTimingConstraintsCase_ == 1) { if (validUntilDurationBuilder_ == null) { result.startTimingConstraints_ = startTimingConstraints_; @@ -4027,38 +4497,41 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.QueuedResource.QueueingPolicy) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy) other); } else { super.mergeFrom(other); return this; @@ -4066,31 +4539,39 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy other) { - if (other == com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.getDefaultInstance()) return this; + if (other + == com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.getDefaultInstance()) + return this; switch (other.getStartTimingConstraintsCase()) { - case VALID_UNTIL_DURATION: { - mergeValidUntilDuration(other.getValidUntilDuration()); - break; - } - case VALID_UNTIL_TIME: { - mergeValidUntilTime(other.getValidUntilTime()); - break; - } - case VALID_AFTER_DURATION: { - mergeValidAfterDuration(other.getValidAfterDuration()); - break; - } - case VALID_AFTER_TIME: { - mergeValidAfterTime(other.getValidAfterTime()); - break; - } - case VALID_INTERVAL: { - mergeValidInterval(other.getValidInterval()); - break; - } - case STARTTIMINGCONSTRAINTS_NOT_SET: { - break; - } + case VALID_UNTIL_DURATION: + { + mergeValidUntilDuration(other.getValidUntilDuration()); + break; + } + case VALID_UNTIL_TIME: + { + mergeValidUntilTime(other.getValidUntilTime()); + break; + } + case VALID_AFTER_DURATION: + { + mergeValidAfterDuration(other.getValidAfterDuration()); + break; + } + case VALID_AFTER_TIME: + { + mergeValidAfterTime(other.getValidAfterTime()); + break; + } + case VALID_INTERVAL: + { + mergeValidInterval(other.getValidInterval()); + break; + } + case STARTTIMINGCONSTRAINTS_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -4118,47 +4599,47 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getValidUntilDurationFieldBuilder().getBuilder(), - extensionRegistry); - startTimingConstraintsCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getValidUntilTimeFieldBuilder().getBuilder(), - extensionRegistry); - startTimingConstraintsCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getValidAfterDurationFieldBuilder().getBuilder(), - extensionRegistry); - startTimingConstraintsCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getValidAfterTimeFieldBuilder().getBuilder(), - extensionRegistry); - startTimingConstraintsCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getValidIntervalFieldBuilder().getBuilder(), - extensionRegistry); - startTimingConstraintsCase_ = 5; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getValidUntilDurationFieldBuilder().getBuilder(), extensionRegistry); + startTimingConstraintsCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getValidUntilTimeFieldBuilder().getBuilder(), extensionRegistry); + startTimingConstraintsCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getValidAfterDurationFieldBuilder().getBuilder(), extensionRegistry); + startTimingConstraintsCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getValidAfterTimeFieldBuilder().getBuilder(), extensionRegistry); + startTimingConstraintsCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getValidIntervalFieldBuilder().getBuilder(), extensionRegistry); + startTimingConstraintsCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4168,12 +4649,12 @@ public Builder mergeFrom( } // finally return this; } + private int startTimingConstraintsCase_ = 0; private java.lang.Object startTimingConstraints_; - public StartTimingConstraintsCase - getStartTimingConstraintsCase() { - return StartTimingConstraintsCase.forNumber( - startTimingConstraintsCase_); + + public StartTimingConstraintsCase getStartTimingConstraintsCase() { + return StartTimingConstraintsCase.forNumber(startTimingConstraintsCase_); } public Builder clearStartTimingConstraints() { @@ -4183,10 +4664,14 @@ public Builder clearStartTimingConstraints() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> validUntilDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + validUntilDurationBuilder_; /** + * + * *
        * A relative time after which resources should not be created.
        * If the request cannot be fulfilled by this time the request will be
@@ -4194,6 +4679,7 @@ public Builder clearStartTimingConstraints() {
        * 
* * .google.protobuf.Duration valid_until_duration = 1; + * * @return Whether the validUntilDuration field is set. */ @java.lang.Override @@ -4201,6 +4687,8 @@ public boolean hasValidUntilDuration() { return startTimingConstraintsCase_ == 1; } /** + * + * *
        * A relative time after which resources should not be created.
        * If the request cannot be fulfilled by this time the request will be
@@ -4208,6 +4696,7 @@ public boolean hasValidUntilDuration() {
        * 
* * .google.protobuf.Duration valid_until_duration = 1; + * * @return The validUntilDuration. */ @java.lang.Override @@ -4225,6 +4714,8 @@ public com.google.protobuf.Duration getValidUntilDuration() { } } /** + * + * *
        * A relative time after which resources should not be created.
        * If the request cannot be fulfilled by this time the request will be
@@ -4247,6 +4738,8 @@ public Builder setValidUntilDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * A relative time after which resources should not be created.
        * If the request cannot be fulfilled by this time the request will be
@@ -4255,8 +4748,7 @@ public Builder setValidUntilDuration(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration valid_until_duration = 1;
        */
-      public Builder setValidUntilDuration(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setValidUntilDuration(com.google.protobuf.Duration.Builder builderForValue) {
         if (validUntilDurationBuilder_ == null) {
           startTimingConstraints_ = builderForValue.build();
           onChanged();
@@ -4267,6 +4759,8 @@ public Builder setValidUntilDuration(
         return this;
       }
       /**
+       *
+       *
        * 
        * A relative time after which resources should not be created.
        * If the request cannot be fulfilled by this time the request will be
@@ -4277,10 +4771,13 @@ public Builder setValidUntilDuration(
        */
       public Builder mergeValidUntilDuration(com.google.protobuf.Duration value) {
         if (validUntilDurationBuilder_ == null) {
-          if (startTimingConstraintsCase_ == 1 &&
-              startTimingConstraints_ != com.google.protobuf.Duration.getDefaultInstance()) {
-            startTimingConstraints_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) startTimingConstraints_)
-                .mergeFrom(value).buildPartial();
+          if (startTimingConstraintsCase_ == 1
+              && startTimingConstraints_ != com.google.protobuf.Duration.getDefaultInstance()) {
+            startTimingConstraints_ =
+                com.google.protobuf.Duration.newBuilder(
+                        (com.google.protobuf.Duration) startTimingConstraints_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             startTimingConstraints_ = value;
           }
@@ -4296,6 +4793,8 @@ public Builder mergeValidUntilDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * A relative time after which resources should not be created.
        * If the request cannot be fulfilled by this time the request will be
@@ -4321,6 +4820,8 @@ public Builder clearValidUntilDuration() {
         return this;
       }
       /**
+       *
+       *
        * 
        * A relative time after which resources should not be created.
        * If the request cannot be fulfilled by this time the request will be
@@ -4333,6 +4834,8 @@ public com.google.protobuf.Duration.Builder getValidUntilDurationBuilder() {
         return getValidUntilDurationFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * A relative time after which resources should not be created.
        * If the request cannot be fulfilled by this time the request will be
@@ -4353,6 +4856,8 @@ public com.google.protobuf.DurationOrBuilder getValidUntilDurationOrBuilder() {
         }
       }
       /**
+       *
+       *
        * 
        * A relative time after which resources should not be created.
        * If the request cannot be fulfilled by this time the request will be
@@ -4362,27 +4867,38 @@ public com.google.protobuf.DurationOrBuilder getValidUntilDurationOrBuilder() {
        * .google.protobuf.Duration valid_until_duration = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
           getValidUntilDurationFieldBuilder() {
         if (validUntilDurationBuilder_ == null) {
           if (!(startTimingConstraintsCase_ == 1)) {
             startTimingConstraints_ = com.google.protobuf.Duration.getDefaultInstance();
           }
-          validUntilDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+          validUntilDurationBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
                   (com.google.protobuf.Duration) startTimingConstraints_,
                   getParentForChildren(),
                   isClean());
           startTimingConstraints_ = null;
         }
         startTimingConstraintsCase_ = 1;
-        onChanged();;
+        onChanged();
+        ;
         return validUntilDurationBuilder_;
       }
 
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> validUntilTimeBuilder_;
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
+          validUntilTimeBuilder_;
       /**
+       *
+       *
        * 
        * An absolute time after which resources should not be created.
        * If the request cannot be fulfilled by this time the request will be
@@ -4390,6 +4906,7 @@ public com.google.protobuf.DurationOrBuilder getValidUntilDurationOrBuilder() {
        * 
* * .google.protobuf.Timestamp valid_until_time = 2; + * * @return Whether the validUntilTime field is set. */ @java.lang.Override @@ -4397,6 +4914,8 @@ public boolean hasValidUntilTime() { return startTimingConstraintsCase_ == 2; } /** + * + * *
        * An absolute time after which resources should not be created.
        * If the request cannot be fulfilled by this time the request will be
@@ -4404,6 +4923,7 @@ public boolean hasValidUntilTime() {
        * 
* * .google.protobuf.Timestamp valid_until_time = 2; + * * @return The validUntilTime. */ @java.lang.Override @@ -4421,6 +4941,8 @@ public com.google.protobuf.Timestamp getValidUntilTime() { } } /** + * + * *
        * An absolute time after which resources should not be created.
        * If the request cannot be fulfilled by this time the request will be
@@ -4443,6 +4965,8 @@ public Builder setValidUntilTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * An absolute time after which resources should not be created.
        * If the request cannot be fulfilled by this time the request will be
@@ -4451,8 +4975,7 @@ public Builder setValidUntilTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp valid_until_time = 2;
        */
-      public Builder setValidUntilTime(
-          com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setValidUntilTime(com.google.protobuf.Timestamp.Builder builderForValue) {
         if (validUntilTimeBuilder_ == null) {
           startTimingConstraints_ = builderForValue.build();
           onChanged();
@@ -4463,6 +4986,8 @@ public Builder setValidUntilTime(
         return this;
       }
       /**
+       *
+       *
        * 
        * An absolute time after which resources should not be created.
        * If the request cannot be fulfilled by this time the request will be
@@ -4473,10 +4998,13 @@ public Builder setValidUntilTime(
        */
       public Builder mergeValidUntilTime(com.google.protobuf.Timestamp value) {
         if (validUntilTimeBuilder_ == null) {
-          if (startTimingConstraintsCase_ == 2 &&
-              startTimingConstraints_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-            startTimingConstraints_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) startTimingConstraints_)
-                .mergeFrom(value).buildPartial();
+          if (startTimingConstraintsCase_ == 2
+              && startTimingConstraints_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+            startTimingConstraints_ =
+                com.google.protobuf.Timestamp.newBuilder(
+                        (com.google.protobuf.Timestamp) startTimingConstraints_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             startTimingConstraints_ = value;
           }
@@ -4492,6 +5020,8 @@ public Builder mergeValidUntilTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * An absolute time after which resources should not be created.
        * If the request cannot be fulfilled by this time the request will be
@@ -4517,6 +5047,8 @@ public Builder clearValidUntilTime() {
         return this;
       }
       /**
+       *
+       *
        * 
        * An absolute time after which resources should not be created.
        * If the request cannot be fulfilled by this time the request will be
@@ -4529,6 +5061,8 @@ public com.google.protobuf.Timestamp.Builder getValidUntilTimeBuilder() {
         return getValidUntilTimeFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * An absolute time after which resources should not be created.
        * If the request cannot be fulfilled by this time the request will be
@@ -4549,6 +5083,8 @@ public com.google.protobuf.TimestampOrBuilder getValidUntilTimeOrBuilder() {
         }
       }
       /**
+       *
+       *
        * 
        * An absolute time after which resources should not be created.
        * If the request cannot be fulfilled by this time the request will be
@@ -4558,32 +5094,44 @@ public com.google.protobuf.TimestampOrBuilder getValidUntilTimeOrBuilder() {
        * .google.protobuf.Timestamp valid_until_time = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
           getValidUntilTimeFieldBuilder() {
         if (validUntilTimeBuilder_ == null) {
           if (!(startTimingConstraintsCase_ == 2)) {
             startTimingConstraints_ = com.google.protobuf.Timestamp.getDefaultInstance();
           }
-          validUntilTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+          validUntilTimeBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Timestamp,
+                  com.google.protobuf.Timestamp.Builder,
+                  com.google.protobuf.TimestampOrBuilder>(
                   (com.google.protobuf.Timestamp) startTimingConstraints_,
                   getParentForChildren(),
                   isClean());
           startTimingConstraints_ = null;
         }
         startTimingConstraintsCase_ = 2;
-        onChanged();;
+        onChanged();
+        ;
         return validUntilTimeBuilder_;
       }
 
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> validAfterDurationBuilder_;
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
+          validAfterDurationBuilder_;
       /**
+       *
+       *
        * 
        * A relative time after which resources may be created.
        * 
* * .google.protobuf.Duration valid_after_duration = 3; + * * @return Whether the validAfterDuration field is set. */ @java.lang.Override @@ -4591,11 +5139,14 @@ public boolean hasValidAfterDuration() { return startTimingConstraintsCase_ == 3; } /** + * + * *
        * A relative time after which resources may be created.
        * 
* * .google.protobuf.Duration valid_after_duration = 3; + * * @return The validAfterDuration. */ @java.lang.Override @@ -4613,6 +5164,8 @@ public com.google.protobuf.Duration getValidAfterDuration() { } } /** + * + * *
        * A relative time after which resources may be created.
        * 
@@ -4633,14 +5186,15 @@ public Builder setValidAfterDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * A relative time after which resources may be created.
        * 
* * .google.protobuf.Duration valid_after_duration = 3; */ - public Builder setValidAfterDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setValidAfterDuration(com.google.protobuf.Duration.Builder builderForValue) { if (validAfterDurationBuilder_ == null) { startTimingConstraints_ = builderForValue.build(); onChanged(); @@ -4651,6 +5205,8 @@ public Builder setValidAfterDuration( return this; } /** + * + * *
        * A relative time after which resources may be created.
        * 
@@ -4659,10 +5215,13 @@ public Builder setValidAfterDuration( */ public Builder mergeValidAfterDuration(com.google.protobuf.Duration value) { if (validAfterDurationBuilder_ == null) { - if (startTimingConstraintsCase_ == 3 && - startTimingConstraints_ != com.google.protobuf.Duration.getDefaultInstance()) { - startTimingConstraints_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) startTimingConstraints_) - .mergeFrom(value).buildPartial(); + if (startTimingConstraintsCase_ == 3 + && startTimingConstraints_ != com.google.protobuf.Duration.getDefaultInstance()) { + startTimingConstraints_ = + com.google.protobuf.Duration.newBuilder( + (com.google.protobuf.Duration) startTimingConstraints_) + .mergeFrom(value) + .buildPartial(); } else { startTimingConstraints_ = value; } @@ -4678,6 +5237,8 @@ public Builder mergeValidAfterDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * A relative time after which resources may be created.
        * 
@@ -4701,6 +5262,8 @@ public Builder clearValidAfterDuration() { return this; } /** + * + * *
        * A relative time after which resources may be created.
        * 
@@ -4711,6 +5274,8 @@ public com.google.protobuf.Duration.Builder getValidAfterDurationBuilder() { return getValidAfterDurationFieldBuilder().getBuilder(); } /** + * + * *
        * A relative time after which resources may be created.
        * 
@@ -4729,6 +5294,8 @@ public com.google.protobuf.DurationOrBuilder getValidAfterDurationOrBuilder() { } } /** + * + * *
        * A relative time after which resources may be created.
        * 
@@ -4736,32 +5303,44 @@ public com.google.protobuf.DurationOrBuilder getValidAfterDurationOrBuilder() { * .google.protobuf.Duration valid_after_duration = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getValidAfterDurationFieldBuilder() { if (validAfterDurationBuilder_ == null) { if (!(startTimingConstraintsCase_ == 3)) { startTimingConstraints_ = com.google.protobuf.Duration.getDefaultInstance(); } - validAfterDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + validAfterDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( (com.google.protobuf.Duration) startTimingConstraints_, getParentForChildren(), isClean()); startTimingConstraints_ = null; } startTimingConstraintsCase_ = 3; - onChanged();; + onChanged(); + ; return validAfterDurationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> validAfterTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + validAfterTimeBuilder_; /** + * + * *
        * An absolute time at which resources may be created.
        * 
* * .google.protobuf.Timestamp valid_after_time = 4; + * * @return Whether the validAfterTime field is set. */ @java.lang.Override @@ -4769,11 +5348,14 @@ public boolean hasValidAfterTime() { return startTimingConstraintsCase_ == 4; } /** + * + * *
        * An absolute time at which resources may be created.
        * 
* * .google.protobuf.Timestamp valid_after_time = 4; + * * @return The validAfterTime. */ @java.lang.Override @@ -4791,6 +5373,8 @@ public com.google.protobuf.Timestamp getValidAfterTime() { } } /** + * + * *
        * An absolute time at which resources may be created.
        * 
@@ -4811,14 +5395,15 @@ public Builder setValidAfterTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * An absolute time at which resources may be created.
        * 
* * .google.protobuf.Timestamp valid_after_time = 4; */ - public Builder setValidAfterTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setValidAfterTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (validAfterTimeBuilder_ == null) { startTimingConstraints_ = builderForValue.build(); onChanged(); @@ -4829,6 +5414,8 @@ public Builder setValidAfterTime( return this; } /** + * + * *
        * An absolute time at which resources may be created.
        * 
@@ -4837,10 +5424,13 @@ public Builder setValidAfterTime( */ public Builder mergeValidAfterTime(com.google.protobuf.Timestamp value) { if (validAfterTimeBuilder_ == null) { - if (startTimingConstraintsCase_ == 4 && - startTimingConstraints_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - startTimingConstraints_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) startTimingConstraints_) - .mergeFrom(value).buildPartial(); + if (startTimingConstraintsCase_ == 4 + && startTimingConstraints_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + startTimingConstraints_ = + com.google.protobuf.Timestamp.newBuilder( + (com.google.protobuf.Timestamp) startTimingConstraints_) + .mergeFrom(value) + .buildPartial(); } else { startTimingConstraints_ = value; } @@ -4856,6 +5446,8 @@ public Builder mergeValidAfterTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * An absolute time at which resources may be created.
        * 
@@ -4879,6 +5471,8 @@ public Builder clearValidAfterTime() { return this; } /** + * + * *
        * An absolute time at which resources may be created.
        * 
@@ -4889,6 +5483,8 @@ public com.google.protobuf.Timestamp.Builder getValidAfterTimeBuilder() { return getValidAfterTimeFieldBuilder().getBuilder(); } /** + * + * *
        * An absolute time at which resources may be created.
        * 
@@ -4907,6 +5503,8 @@ public com.google.protobuf.TimestampOrBuilder getValidAfterTimeOrBuilder() { } } /** + * + * *
        * An absolute time at which resources may be created.
        * 
@@ -4914,32 +5512,44 @@ public com.google.protobuf.TimestampOrBuilder getValidAfterTimeOrBuilder() { * .google.protobuf.Timestamp valid_after_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getValidAfterTimeFieldBuilder() { if (validAfterTimeBuilder_ == null) { if (!(startTimingConstraintsCase_ == 4)) { startTimingConstraints_ = com.google.protobuf.Timestamp.getDefaultInstance(); } - validAfterTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + validAfterTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( (com.google.protobuf.Timestamp) startTimingConstraints_, getParentForChildren(), isClean()); startTimingConstraints_ = null; } startTimingConstraintsCase_ = 4; - onChanged();; + onChanged(); + ; return validAfterTimeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder> validIntervalBuilder_; + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + validIntervalBuilder_; /** + * + * *
        * An absolute time interval within which resources may be created.
        * 
* * .google.type.Interval valid_interval = 5; + * * @return Whether the validInterval field is set. */ @java.lang.Override @@ -4947,11 +5557,14 @@ public boolean hasValidInterval() { return startTimingConstraintsCase_ == 5; } /** + * + * *
        * An absolute time interval within which resources may be created.
        * 
* * .google.type.Interval valid_interval = 5; + * * @return The validInterval. */ @java.lang.Override @@ -4969,6 +5582,8 @@ public com.google.type.Interval getValidInterval() { } } /** + * + * *
        * An absolute time interval within which resources may be created.
        * 
@@ -4989,14 +5604,15 @@ public Builder setValidInterval(com.google.type.Interval value) { return this; } /** + * + * *
        * An absolute time interval within which resources may be created.
        * 
* * .google.type.Interval valid_interval = 5; */ - public Builder setValidInterval( - com.google.type.Interval.Builder builderForValue) { + public Builder setValidInterval(com.google.type.Interval.Builder builderForValue) { if (validIntervalBuilder_ == null) { startTimingConstraints_ = builderForValue.build(); onChanged(); @@ -5007,6 +5623,8 @@ public Builder setValidInterval( return this; } /** + * + * *
        * An absolute time interval within which resources may be created.
        * 
@@ -5015,10 +5633,13 @@ public Builder setValidInterval( */ public Builder mergeValidInterval(com.google.type.Interval value) { if (validIntervalBuilder_ == null) { - if (startTimingConstraintsCase_ == 5 && - startTimingConstraints_ != com.google.type.Interval.getDefaultInstance()) { - startTimingConstraints_ = com.google.type.Interval.newBuilder((com.google.type.Interval) startTimingConstraints_) - .mergeFrom(value).buildPartial(); + if (startTimingConstraintsCase_ == 5 + && startTimingConstraints_ != com.google.type.Interval.getDefaultInstance()) { + startTimingConstraints_ = + com.google.type.Interval.newBuilder( + (com.google.type.Interval) startTimingConstraints_) + .mergeFrom(value) + .buildPartial(); } else { startTimingConstraints_ = value; } @@ -5034,6 +5655,8 @@ public Builder mergeValidInterval(com.google.type.Interval value) { return this; } /** + * + * *
        * An absolute time interval within which resources may be created.
        * 
@@ -5057,6 +5680,8 @@ public Builder clearValidInterval() { return this; } /** + * + * *
        * An absolute time interval within which resources may be created.
        * 
@@ -5067,6 +5692,8 @@ public com.google.type.Interval.Builder getValidIntervalBuilder() { return getValidIntervalFieldBuilder().getBuilder(); } /** + * + * *
        * An absolute time interval within which resources may be created.
        * 
@@ -5085,6 +5712,8 @@ public com.google.type.IntervalOrBuilder getValidIntervalOrBuilder() { } } /** + * + * *
        * An absolute time interval within which resources may be created.
        * 
@@ -5092,23 +5721,30 @@ public com.google.type.IntervalOrBuilder getValidIntervalOrBuilder() { * .google.type.Interval valid_interval = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder> + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> getValidIntervalFieldBuilder() { if (validIntervalBuilder_ == null) { if (!(startTimingConstraintsCase_ == 5)) { startTimingConstraints_ = com.google.type.Interval.getDefaultInstance(); } - validIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder>( + validIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder>( (com.google.type.Interval) startTimingConstraints_, getParentForChildren(), isClean()); startTimingConstraints_ = null; } startTimingConstraintsCase_ = 5; - onChanged();; + onChanged(); + ; return validIntervalBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5121,12 +5757,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy) - private static final com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy DEFAULT_INSTANCE; + private static final com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy(); } @@ -5135,27 +5772,28 @@ public static com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueueingPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueueingPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5170,17 +5808,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int resourceCase_ = 0; private java.lang.Object resource_; + public enum ResourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TPU(2), RESOURCE_NOT_SET(0); private final int value; + private ResourceCase(int value) { this.value = value; } @@ -5196,31 +5836,36 @@ public static ResourceCase valueOf(int value) { public static ResourceCase forNumber(int value) { switch (value) { - case 2: return TPU; - case 0: return RESOURCE_NOT_SET; - default: return null; + case 2: + return TPU; + case 0: + return RESOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ResourceCase - getResourceCase() { - return ResourceCase.forNumber( - resourceCase_); + public ResourceCase getResourceCase() { + return ResourceCase.forNumber(resourceCase_); } private int tierCase_ = 0; private java.lang.Object tier_; + public enum TierCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BEST_EFFORT(3), GUARANTEED(4), TIER_NOT_SET(0); private final int value; + private TierCase(int value) { this.value = value; } @@ -5236,31 +5881,39 @@ public static TierCase valueOf(int value) { public static TierCase forNumber(int value) { switch (value) { - case 3: return BEST_EFFORT; - case 4: return GUARANTEED; - case 0: return TIER_NOT_SET; - default: return null; + case 3: + return BEST_EFFORT; + case 4: + return GUARANTEED; + case 0: + return TIER_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public TierCase - getTierCase() { - return TierCase.forNumber( - tierCase_); + public TierCase getTierCase() { + return TierCase.forNumber(tierCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. Immutable. The name of the QueuedResource.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The name. */ @java.lang.Override @@ -5269,29 +5922,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Immutable. The name of the QueuedResource.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -5301,11 +5956,14 @@ public java.lang.String getName() { public static final int TPU_FIELD_NUMBER = 2; /** + * + * *
    * Defines a TPU resource.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2; + * * @return Whether the tpu field is set. */ @java.lang.Override @@ -5313,21 +5971,26 @@ public boolean hasTpu() { return resourceCase_ == 2; } /** + * + * *
    * Defines a TPU resource.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2; + * * @return The tpu. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu getTpu() { if (resourceCase_ == 2) { - return (com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu) resource_; + return (com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu) resource_; } return com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.getDefaultInstance(); } /** + * + * *
    * Defines a TPU resource.
    * 
@@ -5337,18 +6000,21 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu getTpu() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResource.TpuOrBuilder getTpuOrBuilder() { if (resourceCase_ == 2) { - return (com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu) resource_; + return (com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu) resource_; } return com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.getDefaultInstance(); } public static final int BEST_EFFORT_FIELD_NUMBER = 3; /** + * + * *
    * The BestEffort tier.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3; + * * @return Whether the bestEffort field is set. */ @java.lang.Override @@ -5356,21 +6022,26 @@ public boolean hasBestEffort() { return tierCase_ == 3; } /** + * + * *
    * The BestEffort tier.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3; + * * @return The bestEffort. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort getBestEffort() { if (tierCase_ == 3) { - return (com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) tier_; + return (com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) tier_; } return com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.getDefaultInstance(); } /** + * + * *
    * The BestEffort tier.
    * 
@@ -5380,18 +6051,21 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort getBestEffort() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffortOrBuilder getBestEffortOrBuilder() { if (tierCase_ == 3) { - return (com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) tier_; + return (com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) tier_; } return com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.getDefaultInstance(); } public static final int GUARANTEED_FIELD_NUMBER = 4; /** + * + * *
    * The Guaranteed tier
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4; + * * @return Whether the guaranteed field is set. */ @java.lang.Override @@ -5399,21 +6073,26 @@ public boolean hasGuaranteed() { return tierCase_ == 4; } /** + * + * *
    * The Guaranteed tier
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4; + * * @return The guaranteed. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed getGuaranteed() { if (tierCase_ == 4) { - return (com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) tier_; + return (com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) tier_; } return com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.getDefaultInstance(); } /** + * + * *
    * The Guaranteed tier
    * 
@@ -5423,7 +6102,7 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed getGuaranteed() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResource.GuaranteedOrBuilder getGuaranteedOrBuilder() { if (tierCase_ == 4) { - return (com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) tier_; + return (com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) tier_; } return com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.getDefaultInstance(); } @@ -5431,11 +6110,14 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.GuaranteedOrBuilder getGuara public static final int QUEUEING_POLICY_FIELD_NUMBER = 5; private com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueingPolicy_; /** + * + * *
    * The queueing policy of the QueuedRequest.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5; + * * @return Whether the queueingPolicy field is set. */ @java.lang.Override @@ -5443,18 +6125,25 @@ public boolean hasQueueingPolicy() { return queueingPolicy_ != null; } /** + * + * *
    * The queueing policy of the QueuedRequest.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5; + * * @return The queueingPolicy. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy getQueueingPolicy() { - return queueingPolicy_ == null ? com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.getDefaultInstance() : queueingPolicy_; + return queueingPolicy_ == null + ? com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.getDefaultInstance() + : queueingPolicy_; } /** + * + * *
    * The queueing policy of the QueuedRequest.
    * 
@@ -5462,18 +6151,24 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy getQueueingPo * .google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicyOrBuilder getQueueingPolicyOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicyOrBuilder + getQueueingPolicyOrBuilder() { return getQueueingPolicy(); } public static final int STATE_FIELD_NUMBER = 6; private com.google.cloud.tpu.v2alpha1.QueuedResourceState state_; /** + * + * *
    * Output only. State of the QueuedResource request
    * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ @java.lang.Override @@ -5481,23 +6176,34 @@ public boolean hasState() { return state_ != null; } /** + * + * *
    * Output only. State of the QueuedResource request
    * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState getState() { - return state_ == null ? com.google.cloud.tpu.v2alpha1.QueuedResourceState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.tpu.v2alpha1.QueuedResourceState.getDefaultInstance() + : state_; } /** + * + * *
    * Output only. State of the QueuedResource request
    * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceStateOrBuilder getStateOrBuilder() { @@ -5505,6 +6211,7 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceStateOrBuilder getStateOrBuil } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5516,8 +6223,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -5549,24 +6255,25 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (resourceCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu) resource_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu) resource_); } if (tierCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) tier_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) tier_); } if (tierCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) tier_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) tier_); } if (queueingPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getQueueingPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getQueueingPolicy()); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5576,30 +6283,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.QueuedResource)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.QueuedResource other = (com.google.cloud.tpu.v2alpha1.QueuedResource) obj; + com.google.cloud.tpu.v2alpha1.QueuedResource other = + (com.google.cloud.tpu.v2alpha1.QueuedResource) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasQueueingPolicy() != other.hasQueueingPolicy()) return false; if (hasQueueingPolicy()) { - if (!getQueueingPolicy() - .equals(other.getQueueingPolicy())) return false; + if (!getQueueingPolicy().equals(other.getQueueingPolicy())) return false; } if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState() - .equals(other.getState())) return false; + if (!getState().equals(other.getState())) return false; } if (!getResourceCase().equals(other.getResourceCase())) return false; switch (resourceCase_) { case 2: - if (!getTpu() - .equals(other.getTpu())) return false; + if (!getTpu().equals(other.getTpu())) return false; break; case 0: default: @@ -5607,12 +6311,10 @@ public boolean equals(final java.lang.Object obj) { if (!getTierCase().equals(other.getTierCase())) return false; switch (tierCase_) { case 3: - if (!getBestEffort() - .equals(other.getBestEffort())) return false; + if (!getBestEffort().equals(other.getBestEffort())) return false; break; case 4: - if (!getGuaranteed() - .equals(other.getGuaranteed())) return false; + if (!getGuaranteed().equals(other.getGuaranteed())) return false; break; case 0: default: @@ -5663,97 +6365,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.QueuedResource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.QueuedResource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource 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.tpu.v2alpha1.QueuedResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.QueuedResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A QueuedResource represents a request for resources that will be placed
    * in a queue and fulfilled when the necessary resources are available.
@@ -5761,33 +6470,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResource}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.QueuedResource)
       com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.tpu.v2alpha1.CloudTpuProto
+          .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_fieldAccessorTable
+      return com.google.cloud.tpu.v2alpha1.CloudTpuProto
+          .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.tpu.v2alpha1.QueuedResource.class, com.google.cloud.tpu.v2alpha1.QueuedResource.Builder.class);
+              com.google.cloud.tpu.v2alpha1.QueuedResource.class,
+              com.google.cloud.tpu.v2alpha1.QueuedResource.Builder.class);
     }
 
     // Construct using com.google.cloud.tpu.v2alpha1.QueuedResource.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -5822,9 +6530,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.tpu.v2alpha1.CloudTpuProto
+          .internal_static_google_cloud_tpu_v2alpha1_QueuedResource_descriptor;
     }
 
     @java.lang.Override
@@ -5843,7 +6551,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource build() {
 
     @java.lang.Override
     public com.google.cloud.tpu.v2alpha1.QueuedResource buildPartial() {
-      com.google.cloud.tpu.v2alpha1.QueuedResource result = new com.google.cloud.tpu.v2alpha1.QueuedResource(this);
+      com.google.cloud.tpu.v2alpha1.QueuedResource result =
+          new com.google.cloud.tpu.v2alpha1.QueuedResource(this);
       result.name_ = name_;
       if (resourceCase_ == 2) {
         if (tpuBuilder_ == null) {
@@ -5886,38 +6595,39 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.QueuedResource) {
-        return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResource)other);
+        return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResource) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -5937,26 +6647,31 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.QueuedResource other) {
         mergeState(other.getState());
       }
       switch (other.getResourceCase()) {
-        case TPU: {
-          mergeTpu(other.getTpu());
-          break;
-        }
-        case RESOURCE_NOT_SET: {
-          break;
-        }
+        case TPU:
+          {
+            mergeTpu(other.getTpu());
+            break;
+          }
+        case RESOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       switch (other.getTierCase()) {
-        case BEST_EFFORT: {
-          mergeBestEffort(other.getBestEffort());
-          break;
-        }
-        case GUARANTEED: {
-          mergeGuaranteed(other.getGuaranteed());
-          break;
-        }
-        case TIER_NOT_SET: {
-          break;
-        }
+        case BEST_EFFORT:
+          {
+            mergeBestEffort(other.getBestEffort());
+            break;
+          }
+        case GUARANTEED:
+          {
+            mergeGuaranteed(other.getGuaranteed());
+            break;
+          }
+        case TIER_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -5984,52 +6699,49 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getTpuFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              resourceCase_ = 2;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getBestEffortFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              tierCase_ = 3;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getGuaranteedFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              tierCase_ = 4;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getQueueingPolicyFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getTpuFieldBuilder().getBuilder(), extensionRegistry);
+                resourceCase_ = 2;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getBestEffortFieldBuilder().getBuilder(), extensionRegistry);
+                tierCase_ = 3;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getGuaranteedFieldBuilder().getBuilder(), extensionRegistry);
+                tierCase_ = 4;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getQueueingPolicyFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getStateFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getStateFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -6039,12 +6751,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int resourceCase_ = 0;
     private java.lang.Object resource_;
-    public ResourceCase
-        getResourceCase() {
-      return ResourceCase.forNumber(
-          resourceCase_);
+
+    public ResourceCase getResourceCase() {
+      return ResourceCase.forNumber(resourceCase_);
     }
 
     public Builder clearResource() {
@@ -6056,10 +6768,9 @@ public Builder clearResource() {
 
     private int tierCase_ = 0;
     private java.lang.Object tier_;
-    public TierCase
-        getTierCase() {
-      return TierCase.forNumber(
-          tierCase_);
+
+    public TierCase getTierCase() {
+      return TierCase.forNumber(tierCase_);
     }
 
     public Builder clearTier() {
@@ -6069,21 +6780,24 @@ public Builder clearTier() {
       return this;
     }
 
-
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Immutable. The name of the QueuedResource.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -6092,20 +6806,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Immutable. The name of the QueuedResource.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -6113,67 +6830,86 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Immutable. The name of the QueuedResource.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Immutable. The name of the QueuedResource.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Immutable. The name of the QueuedResource.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu, com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.Builder, com.google.cloud.tpu.v2alpha1.QueuedResource.TpuOrBuilder> tpuBuilder_; + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu, + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResource.TpuOrBuilder> + tpuBuilder_; /** + * + * *
      * Defines a TPU resource.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2; + * * @return Whether the tpu field is set. */ @java.lang.Override @@ -6181,11 +6917,14 @@ public boolean hasTpu() { return resourceCase_ == 2; } /** + * + * *
      * Defines a TPU resource.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2; + * * @return The tpu. */ @java.lang.Override @@ -6203,6 +6942,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu getTpu() { } } /** + * + * *
      * Defines a TPU resource.
      * 
@@ -6223,6 +6964,8 @@ public Builder setTpu(com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu value) { return this; } /** + * + * *
      * Defines a TPU resource.
      * 
@@ -6241,6 +6984,8 @@ public Builder setTpu( return this; } /** + * + * *
      * Defines a TPU resource.
      * 
@@ -6249,10 +6994,13 @@ public Builder setTpu( */ public Builder mergeTpu(com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu value) { if (tpuBuilder_ == null) { - if (resourceCase_ == 2 && - resource_ != com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.getDefaultInstance()) { - resource_ = com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.newBuilder((com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu) resource_) - .mergeFrom(value).buildPartial(); + if (resourceCase_ == 2 + && resource_ != com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.getDefaultInstance()) { + resource_ = + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.newBuilder( + (com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu) resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -6268,6 +7016,8 @@ public Builder mergeTpu(com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu value) return this; } /** + * + * *
      * Defines a TPU resource.
      * 
@@ -6291,6 +7041,8 @@ public Builder clearTpu() { return this; } /** + * + * *
      * Defines a TPU resource.
      * 
@@ -6301,6 +7053,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.Builder getTpuBuilder() return getTpuFieldBuilder().getBuilder(); } /** + * + * *
      * Defines a TPU resource.
      * 
@@ -6319,6 +7073,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.TpuOrBuilder getTpuOrBuilder } } /** + * + * *
      * Defines a TPU resource.
      * 
@@ -6326,32 +7082,44 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.TpuOrBuilder getTpuOrBuilder * .google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu, com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.Builder, com.google.cloud.tpu.v2alpha1.QueuedResource.TpuOrBuilder> + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu, + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResource.TpuOrBuilder> getTpuFieldBuilder() { if (tpuBuilder_ == null) { if (!(resourceCase_ == 2)) { resource_ = com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.getDefaultInstance(); } - tpuBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu, com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.Builder, com.google.cloud.tpu.v2alpha1.QueuedResource.TpuOrBuilder>( + tpuBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu, + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResource.TpuOrBuilder>( (com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu) resource_, getParentForChildren(), isClean()); resource_ = null; } resourceCase_ = 2; - onChanged();; + onChanged(); + ; return tpuBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort, com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.Builder, com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffortOrBuilder> bestEffortBuilder_; + com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort, + com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffortOrBuilder> + bestEffortBuilder_; /** + * + * *
      * The BestEffort tier.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3; + * * @return Whether the bestEffort field is set. */ @java.lang.Override @@ -6359,11 +7127,14 @@ public boolean hasBestEffort() { return tierCase_ == 3; } /** + * + * *
      * The BestEffort tier.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3; + * * @return The bestEffort. */ @java.lang.Override @@ -6381,6 +7152,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort getBestEffort() { } } /** + * + * *
      * The BestEffort tier.
      * 
@@ -6401,6 +7174,8 @@ public Builder setBestEffort(com.google.cloud.tpu.v2alpha1.QueuedResource.BestEf return this; } /** + * + * *
      * The BestEffort tier.
      * 
@@ -6419,6 +7194,8 @@ public Builder setBestEffort( return this; } /** + * + * *
      * The BestEffort tier.
      * 
@@ -6427,10 +7204,14 @@ public Builder setBestEffort( */ public Builder mergeBestEffort(com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort value) { if (bestEffortBuilder_ == null) { - if (tierCase_ == 3 && - tier_ != com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.getDefaultInstance()) { - tier_ = com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.newBuilder((com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) tier_) - .mergeFrom(value).buildPartial(); + if (tierCase_ == 3 + && tier_ + != com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.getDefaultInstance()) { + tier_ = + com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.newBuilder( + (com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) tier_) + .mergeFrom(value) + .buildPartial(); } else { tier_ = value; } @@ -6446,6 +7227,8 @@ public Builder mergeBestEffort(com.google.cloud.tpu.v2alpha1.QueuedResource.Best return this; } /** + * + * *
      * The BestEffort tier.
      * 
@@ -6469,6 +7252,8 @@ public Builder clearBestEffort() { return this; } /** + * + * *
      * The BestEffort tier.
      * 
@@ -6479,6 +7264,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.Builder getBestEf return getBestEffortFieldBuilder().getBuilder(); } /** + * + * *
      * The BestEffort tier.
      * 
@@ -6486,7 +7273,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.Builder getBestEf * .google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffortOrBuilder getBestEffortOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffortOrBuilder + getBestEffortOrBuilder() { if ((tierCase_ == 3) && (bestEffortBuilder_ != null)) { return bestEffortBuilder_.getMessageOrBuilder(); } else { @@ -6497,6 +7285,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffortOrBuilder getBestE } } /** + * + * *
      * The BestEffort tier.
      * 
@@ -6504,32 +7294,44 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffortOrBuilder getBestE * .google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort, com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.Builder, com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffortOrBuilder> + com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort, + com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffortOrBuilder> getBestEffortFieldBuilder() { if (bestEffortBuilder_ == null) { if (!(tierCase_ == 3)) { tier_ = com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.getDefaultInstance(); } - bestEffortBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort, com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.Builder, com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffortOrBuilder>( + bestEffortBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort, + com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffortOrBuilder>( (com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) tier_, getParentForChildren(), isClean()); tier_ = null; } tierCase_ = 3; - onChanged();; + onChanged(); + ; return bestEffortBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed, com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.Builder, com.google.cloud.tpu.v2alpha1.QueuedResource.GuaranteedOrBuilder> guaranteedBuilder_; + com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed, + com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResource.GuaranteedOrBuilder> + guaranteedBuilder_; /** + * + * *
      * The Guaranteed tier
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4; + * * @return Whether the guaranteed field is set. */ @java.lang.Override @@ -6537,11 +7339,14 @@ public boolean hasGuaranteed() { return tierCase_ == 4; } /** + * + * *
      * The Guaranteed tier
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4; + * * @return The guaranteed. */ @java.lang.Override @@ -6559,6 +7364,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed getGuaranteed() { } } /** + * + * *
      * The Guaranteed tier
      * 
@@ -6579,6 +7386,8 @@ public Builder setGuaranteed(com.google.cloud.tpu.v2alpha1.QueuedResource.Guaran return this; } /** + * + * *
      * The Guaranteed tier
      * 
@@ -6597,6 +7406,8 @@ public Builder setGuaranteed( return this; } /** + * + * *
      * The Guaranteed tier
      * 
@@ -6605,10 +7416,14 @@ public Builder setGuaranteed( */ public Builder mergeGuaranteed(com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed value) { if (guaranteedBuilder_ == null) { - if (tierCase_ == 4 && - tier_ != com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.getDefaultInstance()) { - tier_ = com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.newBuilder((com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) tier_) - .mergeFrom(value).buildPartial(); + if (tierCase_ == 4 + && tier_ + != com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.getDefaultInstance()) { + tier_ = + com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.newBuilder( + (com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) tier_) + .mergeFrom(value) + .buildPartial(); } else { tier_ = value; } @@ -6624,6 +7439,8 @@ public Builder mergeGuaranteed(com.google.cloud.tpu.v2alpha1.QueuedResource.Guar return this; } /** + * + * *
      * The Guaranteed tier
      * 
@@ -6647,6 +7464,8 @@ public Builder clearGuaranteed() { return this; } /** + * + * *
      * The Guaranteed tier
      * 
@@ -6657,6 +7476,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.Builder getGuaran return getGuaranteedFieldBuilder().getBuilder(); } /** + * + * *
      * The Guaranteed tier
      * 
@@ -6664,7 +7485,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.Builder getGuaran * .google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResource.GuaranteedOrBuilder getGuaranteedOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResource.GuaranteedOrBuilder + getGuaranteedOrBuilder() { if ((tierCase_ == 4) && (guaranteedBuilder_ != null)) { return guaranteedBuilder_.getMessageOrBuilder(); } else { @@ -6675,6 +7497,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.GuaranteedOrBuilder getGuara } } /** + * + * *
      * The Guaranteed tier
      * 
@@ -6682,61 +7506,81 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.GuaranteedOrBuilder getGuara * .google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed, com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.Builder, com.google.cloud.tpu.v2alpha1.QueuedResource.GuaranteedOrBuilder> + com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed, + com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResource.GuaranteedOrBuilder> getGuaranteedFieldBuilder() { if (guaranteedBuilder_ == null) { if (!(tierCase_ == 4)) { tier_ = com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.getDefaultInstance(); } - guaranteedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed, com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.Builder, com.google.cloud.tpu.v2alpha1.QueuedResource.GuaranteedOrBuilder>( + guaranteedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed, + com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResource.GuaranteedOrBuilder>( (com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) tier_, getParentForChildren(), isClean()); tier_ = null; } tierCase_ = 4; - onChanged();; + onChanged(); + ; return guaranteedBuilder_; } private com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueingPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy, com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.Builder, com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicyOrBuilder> queueingPolicyBuilder_; + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy, + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicyOrBuilder> + queueingPolicyBuilder_; /** + * + * *
      * The queueing policy of the QueuedRequest.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5; + * * @return Whether the queueingPolicy field is set. */ public boolean hasQueueingPolicy() { return queueingPolicyBuilder_ != null || queueingPolicy_ != null; } /** + * + * *
      * The queueing policy of the QueuedRequest.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5; + * * @return The queueingPolicy. */ public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy getQueueingPolicy() { if (queueingPolicyBuilder_ == null) { - return queueingPolicy_ == null ? com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.getDefaultInstance() : queueingPolicy_; + return queueingPolicy_ == null + ? com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.getDefaultInstance() + : queueingPolicy_; } else { return queueingPolicyBuilder_.getMessage(); } } /** + * + * *
      * The queueing policy of the QueuedRequest.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5; */ - public Builder setQueueingPolicy(com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy value) { + public Builder setQueueingPolicy( + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy value) { if (queueingPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6750,6 +7594,8 @@ public Builder setQueueingPolicy(com.google.cloud.tpu.v2alpha1.QueuedResource.Qu return this; } /** + * + * *
      * The queueing policy of the QueuedRequest.
      * 
@@ -6768,17 +7614,23 @@ public Builder setQueueingPolicy( return this; } /** + * + * *
      * The queueing policy of the QueuedRequest.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5; */ - public Builder mergeQueueingPolicy(com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy value) { + public Builder mergeQueueingPolicy( + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy value) { if (queueingPolicyBuilder_ == null) { if (queueingPolicy_ != null) { queueingPolicy_ = - com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.newBuilder(queueingPolicy_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.newBuilder( + queueingPolicy_) + .mergeFrom(value) + .buildPartial(); } else { queueingPolicy_ = value; } @@ -6790,6 +7642,8 @@ public Builder mergeQueueingPolicy(com.google.cloud.tpu.v2alpha1.QueuedResource. return this; } /** + * + * *
      * The queueing policy of the QueuedRequest.
      * 
@@ -6808,33 +7662,42 @@ public Builder clearQueueingPolicy() { return this; } /** + * + * *
      * The queueing policy of the QueuedRequest.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5; */ - public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.Builder getQueueingPolicyBuilder() { - + public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.Builder + getQueueingPolicyBuilder() { + onChanged(); return getQueueingPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * The queueing policy of the QueuedRequest.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5; */ - public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicyOrBuilder getQueueingPolicyOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicyOrBuilder + getQueueingPolicyOrBuilder() { if (queueingPolicyBuilder_ != null) { return queueingPolicyBuilder_.getMessageOrBuilder(); } else { - return queueingPolicy_ == null ? - com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.getDefaultInstance() : queueingPolicy_; + return queueingPolicy_ == null + ? com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.getDefaultInstance() + : queueingPolicy_; } } /** + * + * *
      * The queueing policy of the QueuedRequest.
      * 
@@ -6842,14 +7705,17 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicyOrBuilder getQ * .google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy, com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.Builder, com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicyOrBuilder> + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy, + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicyOrBuilder> getQueueingPolicyFieldBuilder() { if (queueingPolicyBuilder_ == null) { - queueingPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy, com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.Builder, com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicyOrBuilder>( - getQueueingPolicy(), - getParentForChildren(), - isClean()); + queueingPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy, + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicyOrBuilder>( + getQueueingPolicy(), getParentForChildren(), isClean()); queueingPolicy_ = null; } return queueingPolicyBuilder_; @@ -6857,39 +7723,58 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicyOrBuilder getQ private com.google.cloud.tpu.v2alpha1.QueuedResourceState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState, com.google.cloud.tpu.v2alpha1.QueuedResourceState.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceStateOrBuilder> stateBuilder_; + com.google.cloud.tpu.v2alpha1.QueuedResourceState, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceStateOrBuilder> + stateBuilder_; /** + * + * *
      * Output only. State of the QueuedResource request
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** + * + * *
      * Output only. State of the QueuedResource request
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ public com.google.cloud.tpu.v2alpha1.QueuedResourceState getState() { if (stateBuilder_ == null) { - return state_ == null ? com.google.cloud.tpu.v2alpha1.QueuedResourceState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.tpu.v2alpha1.QueuedResourceState.getDefaultInstance() + : state_; } else { return stateBuilder_.getMessage(); } } /** + * + * *
      * Output only. State of the QueuedResource request
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setState(com.google.cloud.tpu.v2alpha1.QueuedResourceState value) { if (stateBuilder_ == null) { @@ -6905,11 +7790,15 @@ public Builder setState(com.google.cloud.tpu.v2alpha1.QueuedResourceState value) return this; } /** + * + * *
      * Output only. State of the QueuedResource request
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setState( com.google.cloud.tpu.v2alpha1.QueuedResourceState.Builder builderForValue) { @@ -6923,17 +7812,23 @@ public Builder setState( return this; } /** + * + * *
      * Output only. State of the QueuedResource request
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeState(com.google.cloud.tpu.v2alpha1.QueuedResourceState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.tpu.v2alpha1.QueuedResourceState.newBuilder(state_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.newBuilder(state_) + .mergeFrom(value) + .buildPartial(); } else { state_ = value; } @@ -6945,11 +7840,15 @@ public Builder mergeState(com.google.cloud.tpu.v2alpha1.QueuedResourceState valu return this; } /** + * + * *
      * Output only. State of the QueuedResource request
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearState() { if (stateBuilder_ == null) { @@ -6963,55 +7862,71 @@ public Builder clearState() { return this; } /** + * + * *
      * Output only. State of the QueuedResource request
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. State of the QueuedResource request
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.tpu.v2alpha1.QueuedResourceStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null ? - com.google.cloud.tpu.v2alpha1.QueuedResourceState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.tpu.v2alpha1.QueuedResourceState.getDefaultInstance() + : state_; } } /** + * + * *
      * Output only. State of the QueuedResource request
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState, com.google.cloud.tpu.v2alpha1.QueuedResourceState.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceStateOrBuilder> + com.google.cloud.tpu.v2alpha1.QueuedResourceState, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState, com.google.cloud.tpu.v2alpha1.QueuedResourceState.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceStateOrBuilder>( - getState(), - getParentForChildren(), - isClean()); + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.QueuedResourceState, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceStateOrBuilder>( + getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7021,12 +7936,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.QueuedResource) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.QueuedResource) private static final com.google.cloud.tpu.v2alpha1.QueuedResource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.QueuedResource(); } @@ -7035,27 +7950,27 @@ public static com.google.cloud.tpu.v2alpha1.QueuedResource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueuedResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueuedResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7070,6 +7985,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.QueuedResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceName.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceName.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceName.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceName.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceOrBuilder.java similarity index 72% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceOrBuilder.java index 2514810929eb..5aaf8a103580 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceOrBuilder.java @@ -1,51 +1,84 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface QueuedResourceOrBuilder extends +public interface QueuedResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.QueuedResource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Immutable. The name of the QueuedResource.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Immutable. The name of the QueuedResource.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Defines a TPU resource.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2; + * * @return Whether the tpu field is set. */ boolean hasTpu(); /** + * + * *
    * Defines a TPU resource.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2; + * * @return The tpu. */ com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu getTpu(); /** + * + * *
    * Defines a TPU resource.
    * 
@@ -55,24 +88,32 @@ public interface QueuedResourceOrBuilder extends com.google.cloud.tpu.v2alpha1.QueuedResource.TpuOrBuilder getTpuOrBuilder(); /** + * + * *
    * The BestEffort tier.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3; + * * @return Whether the bestEffort field is set. */ boolean hasBestEffort(); /** + * + * *
    * The BestEffort tier.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3; + * * @return The bestEffort. */ com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort getBestEffort(); /** + * + * *
    * The BestEffort tier.
    * 
@@ -82,24 +123,32 @@ public interface QueuedResourceOrBuilder extends com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffortOrBuilder getBestEffortOrBuilder(); /** + * + * *
    * The Guaranteed tier
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4; + * * @return Whether the guaranteed field is set. */ boolean hasGuaranteed(); /** + * + * *
    * The Guaranteed tier
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4; + * * @return The guaranteed. */ com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed getGuaranteed(); /** + * + * *
    * The Guaranteed tier
    * 
@@ -109,24 +158,32 @@ public interface QueuedResourceOrBuilder extends com.google.cloud.tpu.v2alpha1.QueuedResource.GuaranteedOrBuilder getGuaranteedOrBuilder(); /** + * + * *
    * The queueing policy of the QueuedRequest.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5; + * * @return Whether the queueingPolicy field is set. */ boolean hasQueueingPolicy(); /** + * + * *
    * The queueing policy of the QueuedRequest.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5; + * * @return The queueingPolicy. */ com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy getQueueingPolicy(); /** + * + * *
    * The queueing policy of the QueuedRequest.
    * 
@@ -136,29 +193,43 @@ public interface QueuedResourceOrBuilder extends com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicyOrBuilder getQueueingPolicyOrBuilder(); /** + * + * *
    * Output only. State of the QueuedResource request
    * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ boolean hasState(); /** + * + * *
    * Output only. State of the QueuedResource request
    * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.tpu.v2alpha1.QueuedResourceState getState(); /** + * + * *
    * Output only. State of the QueuedResource request
    * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.tpu.v2alpha1.QueuedResourceStateOrBuilder getStateOrBuilder(); diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceState.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceState.java similarity index 66% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceState.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceState.java index 048db0e52688..29e16adf9b35 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceState.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceState.java @@ -1,63 +1,85 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * QueuedResourceState defines the details of the QueuedResource request.
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResourceState} */ -public final class QueuedResourceState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class QueuedResourceState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.QueuedResourceState) QueuedResourceStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QueuedResourceState.newBuilder() to construct. private QueuedResourceState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private QueuedResourceState() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueuedResourceState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.class, com.google.cloud.tpu.v2alpha1.QueuedResourceState.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.class, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.Builder.class); } /** + * + * *
    * Output only state of the request
    * 
* * Protobuf enum {@code google.cloud.tpu.v2alpha1.QueuedResourceState.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * State of the QueuedResource request is not known/set.
      * 
@@ -66,6 +88,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The QueuedResource request has been received. We're still working on
      * determining if we will be able to honor this request.
@@ -75,6 +99,8 @@ public enum State
      */
     CREATING(1),
     /**
+     *
+     *
      * 
      * The QueuedResource request has passed initial validation/admission
      * control and has been persisted in the queue.
@@ -84,6 +110,8 @@ public enum State
      */
     ACCEPTED(2),
     /**
+     *
+     *
      * 
      * The QueuedResource request has been selected. The
      * associated resources are currently being provisioned (or very soon
@@ -94,6 +122,8 @@ public enum State
      */
     PROVISIONING(3),
     /**
+     *
+     *
      * 
      * The request could not be completed. This may be due to some
      * late-discovered problem with the request itself, or due to
@@ -105,6 +135,8 @@ public enum State
      */
     FAILED(4),
     /**
+     *
+     *
      * 
      * The QueuedResource is being deleted.
      * 
@@ -113,6 +145,8 @@ public enum State */ DELETING(5), /** + * + * *
      * The resources specified in the QueuedResource request have been
      * provisioned and are ready for use by the end-user/consumer.
@@ -122,6 +156,8 @@ public enum State
      */
     ACTIVE(6),
     /**
+     *
+     *
      * 
      * The resources specified in the QueuedResource request are being
      * deleted. This may have been initiated by the user, or
@@ -132,6 +168,8 @@ public enum State
      */
     SUSPENDING(7),
     /**
+     *
+     *
      * 
      * The resources specified in the QueuedResource request have been
      * deleted.
@@ -144,6 +182,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * State of the QueuedResource request is not known/set.
      * 
@@ -152,6 +192,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The QueuedResource request has been received. We're still working on
      * determining if we will be able to honor this request.
@@ -161,6 +203,8 @@ public enum State
      */
     public static final int CREATING_VALUE = 1;
     /**
+     *
+     *
      * 
      * The QueuedResource request has passed initial validation/admission
      * control and has been persisted in the queue.
@@ -170,6 +214,8 @@ public enum State
      */
     public static final int ACCEPTED_VALUE = 2;
     /**
+     *
+     *
      * 
      * The QueuedResource request has been selected. The
      * associated resources are currently being provisioned (or very soon
@@ -180,6 +226,8 @@ public enum State
      */
     public static final int PROVISIONING_VALUE = 3;
     /**
+     *
+     *
      * 
      * The request could not be completed. This may be due to some
      * late-discovered problem with the request itself, or due to
@@ -191,6 +239,8 @@ public enum State
      */
     public static final int FAILED_VALUE = 4;
     /**
+     *
+     *
      * 
      * The QueuedResource is being deleted.
      * 
@@ -199,6 +249,8 @@ public enum State */ public static final int DELETING_VALUE = 5; /** + * + * *
      * The resources specified in the QueuedResource request have been
      * provisioned and are ready for use by the end-user/consumer.
@@ -208,6 +260,8 @@ public enum State
      */
     public static final int ACTIVE_VALUE = 6;
     /**
+     *
+     *
      * 
      * The resources specified in the QueuedResource request are being
      * deleted. This may have been initiated by the user, or
@@ -218,6 +272,8 @@ public enum State
      */
     public static final int SUSPENDING_VALUE = 7;
     /**
+     *
+     *
      * 
      * The resources specified in the QueuedResource request have been
      * deleted.
@@ -227,7 +283,6 @@ public enum State
      */
     public static final int SUSPENDED_VALUE = 8;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -252,55 +307,63 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return CREATING;
-        case 2: return ACCEPTED;
-        case 3: return PROVISIONING;
-        case 4: return FAILED;
-        case 5: return DELETING;
-        case 6: return ACTIVE;
-        case 7: return SUSPENDING;
-        case 8: return SUSPENDED;
-        default: return null;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return CREATING;
+        case 2:
+          return ACCEPTED;
+        case 3:
+          return PROVISIONING;
+        case 4:
+          return FAILED;
+        case 5:
+          return DELETING;
+        case 6:
+          return ACTIVE;
+        case 7:
+          return SUSPENDING;
+        case 8:
+          return SUSPENDED;
+        default:
+          return null;
+      }
+    }
+
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    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() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.tpu.v2alpha1.QueuedResourceState.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.tpu.v2alpha1.QueuedResourceState.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    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.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -317,55 +380,59 @@ private State(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.tpu.v2alpha1.QueuedResourceState.State)
   }
 
-  public interface CreatingDataOrBuilder extends
+  public interface CreatingDataOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData)
-      com.google.protobuf.MessageOrBuilder {
-  }
+      com.google.protobuf.MessageOrBuilder {}
   /**
+   *
+   *
    * 
    * Further data for the creating state.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData} */ - public static final class CreatingData extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CreatingData extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) CreatingDataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreatingData.newBuilder() to construct. private CreatingData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreatingData() { - } + + private CreatingData() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreatingData(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_CreatingData_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_CreatingData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_CreatingData_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_CreatingData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.class, com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.class, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -377,8 +444,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -396,12 +462,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData other = (com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) obj; + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData other = + (com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -420,87 +487,94 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData 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.tpu.v2alpha1.QueuedResourceState.CreatingData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -510,39 +584,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Further data for the creating state.
      * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_CreatingData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_CreatingData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_CreatingData_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_CreatingData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.class, com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.class, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -550,13 +626,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_CreatingData_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_CreatingData_descriptor; } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData getDefaultInstanceForType() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData + getDefaultInstanceForType() { return com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.getDefaultInstance(); } @@ -571,7 +648,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData buildPartial() { - com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData result = new com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData(this); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData result = + new com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData(this); onBuilt(); return result; } @@ -580,46 +658,52 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.QueuedResourceState.CreatingData) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData other) { - if (other == com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData other) { + if (other + == com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -646,12 +730,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -661,6 +746,7 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -673,41 +759,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) - private static final com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData DEFAULT_INSTANCE; + private static final com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData(); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData getDefaultInstance() { + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatingData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatingData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -719,61 +808,65 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData getDefaultInstanceForType() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface AcceptedDataOrBuilder extends + public interface AcceptedDataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) - com.google.protobuf.MessageOrBuilder { - } + com.google.protobuf.MessageOrBuilder {} /** + * + * *
    * Further data for the accepted state.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData} */ - public static final class AcceptedData extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AcceptedData extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) AcceptedDataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AcceptedData.newBuilder() to construct. private AcceptedData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AcceptedData() { - } + + private AcceptedData() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AcceptedData(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_AcceptedData_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_AcceptedData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_AcceptedData_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_AcceptedData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.class, com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.class, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -785,8 +878,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -804,12 +896,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData other = (com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) obj; + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData other = + (com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -828,87 +921,94 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData 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.tpu.v2alpha1.QueuedResourceState.AcceptedData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -918,39 +1018,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Further data for the accepted state.
      * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_AcceptedData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_AcceptedData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_AcceptedData_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_AcceptedData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.class, com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.class, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -958,13 +1060,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_AcceptedData_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_AcceptedData_descriptor; } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData getDefaultInstanceForType() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData + getDefaultInstanceForType() { return com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.getDefaultInstance(); } @@ -979,7 +1082,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData buildPartial() { - com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData result = new com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData(this); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData result = + new com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData(this); onBuilt(); return result; } @@ -988,46 +1092,52 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.QueuedResourceState.AcceptedData) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData other) { - if (other == com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData other) { + if (other + == com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1054,12 +1164,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1069,6 +1180,7 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1081,41 +1193,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) - private static final com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData DEFAULT_INSTANCE; + private static final com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData(); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData getDefaultInstance() { + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcceptedData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcceptedData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1127,61 +1242,65 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData getDefaultInstanceForType() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ProvisioningDataOrBuilder extends + public interface ProvisioningDataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) - com.google.protobuf.MessageOrBuilder { - } + com.google.protobuf.MessageOrBuilder {} /** + * + * *
    * Further data for the provisioning state.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData} */ - public static final class ProvisioningData extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ProvisioningData extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) ProvisioningDataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProvisioningData.newBuilder() to construct. private ProvisioningData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProvisioningData() { - } + + private ProvisioningData() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProvisioningData(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ProvisioningData_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ProvisioningData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ProvisioningData_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ProvisioningData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.class, com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.class, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1193,8 +1312,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -1212,12 +1330,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData other = (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) obj; + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData other = + (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1236,87 +1355,95 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData 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.tpu.v2alpha1.QueuedResourceState.ProvisioningData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData parseDelimitedFrom( - 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.tpu.v2alpha1.QueuedResourceState.ProvisioningData + parseDelimitedFrom( + 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.tpu.v2alpha1.QueuedResourceState.ProvisioningData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1326,39 +1453,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Further data for the provisioning state.
      * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ProvisioningData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ProvisioningData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ProvisioningData_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ProvisioningData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.class, com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.class, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.Builder.class); } - // Construct using com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1366,14 +1496,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ProvisioningData_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ProvisioningData_descriptor; } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData getDefaultInstanceForType() { - return com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.getDefaultInstance(); + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData + getDefaultInstanceForType() { + return com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData + .getDefaultInstance(); } @java.lang.Override @@ -1387,7 +1519,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData build( @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData buildPartial() { - com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData result = new com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData(this); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData result = + new com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData(this); onBuilt(); return result; } @@ -1396,46 +1529,53 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.QueuedResourceState.ProvisioningData) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData)other); + return mergeFrom( + (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData other) { - if (other == com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData other) { + if (other + == com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData + .getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1462,12 +1602,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1477,6 +1618,7 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1489,41 +1631,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) - private static final com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData DEFAULT_INSTANCE; + private static final com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData(); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData getDefaultInstance() { + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProvisioningData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProvisioningData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1535,35 +1680,44 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData getDefaultInstanceForType() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface FailedDataOrBuilder extends + public interface FailedDataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The error that caused the queued resource to enter the FAILED state.
      * 
* * .google.rpc.Status error = 1; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
      * The error that caused the queued resource to enter the FAILED state.
      * 
* * .google.rpc.Status error = 1; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
      * The error that caused the queued resource to enter the FAILED state.
      * 
@@ -1573,57 +1727,63 @@ public interface FailedDataOrBuilder extends com.google.rpc.StatusOrBuilder getErrorOrBuilder(); } /** + * + * *
    * Further data for the failed state.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData} */ - public static final class FailedData extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class FailedData extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) FailedDataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FailedData.newBuilder() to construct. private FailedData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FailedData() { - } + + private FailedData() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FailedData(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_FailedData_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_FailedData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_FailedData_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_FailedData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.class, com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.class, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.Builder.class); } public static final int ERROR_FIELD_NUMBER = 1; private com.google.rpc.Status error_; /** + * + * *
      * The error that caused the queued resource to enter the FAILED state.
      * 
* * .google.rpc.Status error = 1; + * * @return Whether the error field is set. */ @java.lang.Override @@ -1631,11 +1791,14 @@ public boolean hasError() { return error_ != null; } /** + * + * *
      * The error that caused the queued resource to enter the FAILED state.
      * 
* * .google.rpc.Status error = 1; + * * @return The error. */ @java.lang.Override @@ -1643,6 +1806,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
      * The error that caused the queued resource to enter the FAILED state.
      * 
@@ -1655,6 +1820,7 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1666,8 +1832,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (error_ != null) { output.writeMessage(1, getError()); } @@ -1681,8 +1846,7 @@ public int getSerializedSize() { size = 0; if (error_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1692,17 +1856,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData other = (com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) obj; + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData other = + (com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) obj; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1725,87 +1889,94 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData 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.tpu.v2alpha1.QueuedResourceState.FailedData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1815,39 +1986,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Further data for the failed state.
      * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_FailedData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_FailedData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_FailedData_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_FailedData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.class, com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.class, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1861,13 +2034,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_FailedData_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_FailedData_descriptor; } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData getDefaultInstanceForType() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData + getDefaultInstanceForType() { return com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.getDefaultInstance(); } @@ -1882,7 +2056,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData buildPartial() { - com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData result = new com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData(this); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData result = + new com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData(this); if (errorBuilder_ == null) { result.error_ = error_; } else { @@ -1896,38 +2071,41 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.QueuedResourceState.FailedData) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) other); } else { super.mergeFrom(other); return this; @@ -1935,7 +2113,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData other) { - if (other == com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.getDefaultInstance()) return this; + if (other + == com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.getDefaultInstance()) + return this; if (other.hasError()) { mergeError(other.getError()); } @@ -1965,19 +2145,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getErrorFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1990,24 +2170,31 @@ public Builder mergeFrom( 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_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
        * The error that caused the queued resource to enter the FAILED state.
        * 
* * .google.rpc.Status error = 1; + * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** + * + * *
        * The error that caused the queued resource to enter the FAILED state.
        * 
* * .google.rpc.Status error = 1; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -2018,6 +2205,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
        * The error that caused the queued resource to enter the FAILED state.
        * 
@@ -2038,14 +2227,15 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** + * + * *
        * The error that caused the queued resource to enter the FAILED state.
        * 
* * .google.rpc.Status error = 1; */ - public Builder setError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); @@ -2056,6 +2246,8 @@ public Builder setError( return this; } /** + * + * *
        * The error that caused the queued resource to enter the FAILED state.
        * 
@@ -2065,8 +2257,7 @@ public Builder setError( public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { if (error_ != null) { - error_ = - com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } @@ -2078,6 +2269,8 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** + * + * *
        * The error that caused the queued resource to enter the FAILED state.
        * 
@@ -2096,6 +2289,8 @@ public Builder clearError() { return this; } /** + * + * *
        * The error that caused the queued resource to enter the FAILED state.
        * 
@@ -2103,11 +2298,13 @@ public Builder clearError() { * .google.rpc.Status error = 1; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + onChanged(); return getErrorFieldBuilder().getBuilder(); } /** + * + * *
        * The error that caused the queued resource to enter the FAILED state.
        * 
@@ -2118,11 +2315,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { - return error_ == null ? - com.google.rpc.Status.getDefaultInstance() : error_; + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } } /** + * + * *
        * The error that caused the queued resource to enter the FAILED state.
        * 
@@ -2130,18 +2328,19 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + 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()); + 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_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2154,41 +2353,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) - private static final com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData DEFAULT_INSTANCE; + private static final com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData(); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData getDefaultInstance() { + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FailedData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FailedData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2200,61 +2402,65 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData getDefaultInstanceForType() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface DeletingDataOrBuilder extends + public interface DeletingDataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) - com.google.protobuf.MessageOrBuilder { - } + com.google.protobuf.MessageOrBuilder {} /** + * + * *
    * Further data for the deleting state.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData} */ - public static final class DeletingData extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class DeletingData extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) DeletingDataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeletingData.newBuilder() to construct. private DeletingData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeletingData() { - } + + private DeletingData() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeletingData(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_DeletingData_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_DeletingData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_DeletingData_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_DeletingData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.class, com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.class, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2266,8 +2472,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -2285,12 +2490,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData other = (com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) obj; + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData other = + (com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2309,87 +2515,94 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData 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.tpu.v2alpha1.QueuedResourceState.DeletingData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2399,39 +2612,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Further data for the deleting state.
      * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_DeletingData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_DeletingData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_DeletingData_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_DeletingData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.class, com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.class, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2439,13 +2654,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_DeletingData_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_DeletingData_descriptor; } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData getDefaultInstanceForType() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData + getDefaultInstanceForType() { return com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.getDefaultInstance(); } @@ -2460,7 +2676,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData buildPartial() { - com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData result = new com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData(this); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData result = + new com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData(this); onBuilt(); return result; } @@ -2469,46 +2686,52 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.QueuedResourceState.DeletingData) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData other) { - if (other == com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData other) { + if (other + == com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2535,12 +2758,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2550,6 +2774,7 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2562,41 +2787,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) - private static final com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData DEFAULT_INSTANCE; + private static final com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData(); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData getDefaultInstance() { + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletingData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletingData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2608,61 +2836,65 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData getDefaultInstanceForType() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ActiveDataOrBuilder extends + public interface ActiveDataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) - com.google.protobuf.MessageOrBuilder { - } + com.google.protobuf.MessageOrBuilder {} /** + * + * *
    * Further data for the active state.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData} */ - public static final class ActiveData extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ActiveData extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) ActiveDataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ActiveData.newBuilder() to construct. private ActiveData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ActiveData() { - } + + private ActiveData() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ActiveData(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ActiveData_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ActiveData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ActiveData_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ActiveData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.class, com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.class, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2674,8 +2906,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -2693,12 +2924,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData other = (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) obj; + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData other = + (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2717,87 +2949,94 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData 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.tpu.v2alpha1.QueuedResourceState.ActiveData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2807,39 +3046,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Further data for the active state.
      * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ActiveData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ActiveData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ActiveData_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ActiveData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.class, com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.class, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2847,13 +3088,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ActiveData_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ActiveData_descriptor; } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData getDefaultInstanceForType() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData + getDefaultInstanceForType() { return com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.getDefaultInstance(); } @@ -2868,7 +3110,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData buildPartial() { - com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData result = new com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData(this); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData result = + new com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData(this); onBuilt(); return result; } @@ -2877,38 +3120,41 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.QueuedResourceState.ActiveData) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) other); } else { super.mergeFrom(other); return this; @@ -2916,7 +3162,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData other) { - if (other == com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.getDefaultInstance()) return this; + if (other + == com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2943,12 +3191,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2958,6 +3207,7 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2970,41 +3220,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) - private static final com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData DEFAULT_INSTANCE; + private static final com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData(); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData getDefaultInstance() { + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ActiveData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActiveData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3016,61 +3269,65 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData getDefaultInstanceForType() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface SuspendingDataOrBuilder extends + public interface SuspendingDataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) - com.google.protobuf.MessageOrBuilder { - } + com.google.protobuf.MessageOrBuilder {} /** + * + * *
    * Further data for the suspending state.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData} */ - public static final class SuspendingData extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SuspendingData extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) SuspendingDataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SuspendingData.newBuilder() to construct. private SuspendingData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SuspendingData() { - } + + private SuspendingData() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SuspendingData(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendingData_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendingData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendingData_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendingData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.class, com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.class, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3082,8 +3339,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -3101,12 +3357,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData other = (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) obj; + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData other = + (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3125,87 +3382,95 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData 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.tpu.v2alpha1.QueuedResourceState.SuspendingData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData parseDelimitedFrom( - 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.tpu.v2alpha1.QueuedResourceState.SuspendingData + parseDelimitedFrom( + 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.tpu.v2alpha1.QueuedResourceState.SuspendingData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3215,39 +3480,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Further data for the suspending state.
      * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendingData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendingData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendingData_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendingData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.class, com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.class, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.Builder.class); } - // Construct using com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3255,14 +3523,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendingData_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendingData_descriptor; } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData getDefaultInstanceForType() { - return com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.getDefaultInstance(); + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData + getDefaultInstanceForType() { + return com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData + .getDefaultInstance(); } @java.lang.Override @@ -3276,7 +3546,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData build() @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData buildPartial() { - com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData result = new com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData(this); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData result = + new com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData(this); onBuilt(); return result; } @@ -3285,46 +3556,53 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.QueuedResourceState.SuspendingData) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData)other); + return mergeFrom( + (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData other) { - if (other == com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData other) { + if (other + == com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData + .getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3351,12 +3629,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3366,6 +3645,7 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3378,41 +3658,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) - private static final com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData DEFAULT_INSTANCE; + private static final com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData(); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData getDefaultInstance() { + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SuspendingData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuspendingData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3424,61 +3707,65 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData getDefaultInstanceForType() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface SuspendedDataOrBuilder extends + public interface SuspendedDataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) - com.google.protobuf.MessageOrBuilder { - } + com.google.protobuf.MessageOrBuilder {} /** + * + * *
    * Further data for the suspended state.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData} */ - public static final class SuspendedData extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SuspendedData extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) SuspendedDataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SuspendedData.newBuilder() to construct. private SuspendedData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SuspendedData() { - } + + private SuspendedData() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SuspendedData(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendedData_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendedData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendedData_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendedData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.class, com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.class, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3490,8 +3777,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -3509,12 +3795,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData other = (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) obj; + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData other = + (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3533,87 +3820,95 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData 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.tpu.v2alpha1.QueuedResourceState.SuspendedData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData parseDelimitedFrom( - 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.tpu.v2alpha1.QueuedResourceState.SuspendedData + parseDelimitedFrom( + 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.tpu.v2alpha1.QueuedResourceState.SuspendedData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3623,39 +3918,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Further data for the suspended state.
      * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendedData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendedData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendedData_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendedData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.class, com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.class, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.Builder.class); } - // Construct using com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3663,13 +3961,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendedData_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendedData_descriptor; } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData getDefaultInstanceForType() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData + getDefaultInstanceForType() { return com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.getDefaultInstance(); } @@ -3684,7 +3983,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData buildPartial() { - com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData result = new com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData(this); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData result = + new com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData(this); onBuilt(); return result; } @@ -3693,46 +3993,52 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.QueuedResourceState.SuspendedData) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData other) { - if (other == com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData other) { + if (other + == com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3759,12 +4065,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3774,6 +4081,7 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3786,41 +4094,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) - private static final com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData DEFAULT_INSTANCE; + private static final com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData(); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData getDefaultInstance() { + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SuspendedData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuspendedData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3832,16 +4143,18 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData getDefaultInstanceForType() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int stateDataCase_ = 0; private java.lang.Object stateData_; + public enum StateDataCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CREATING_DATA(2), ACCEPTED_DATA(3), @@ -3853,6 +4166,7 @@ public enum StateDataCase SUSPENDED_DATA(9), STATEDATA_NOT_SET(0); private final int value; + private StateDataCase(int value) { this.value = value; } @@ -3868,63 +4182,86 @@ public static StateDataCase valueOf(int value) { public static StateDataCase forNumber(int value) { switch (value) { - case 2: return CREATING_DATA; - case 3: return ACCEPTED_DATA; - case 4: return PROVISIONING_DATA; - case 5: return FAILED_DATA; - case 6: return DELETING_DATA; - case 7: return ACTIVE_DATA; - case 8: return SUSPENDING_DATA; - case 9: return SUSPENDED_DATA; - case 0: return STATEDATA_NOT_SET; - default: return null; + case 2: + return CREATING_DATA; + case 3: + return ACCEPTED_DATA; + case 4: + return PROVISIONING_DATA; + case 5: + return FAILED_DATA; + case 6: + return DELETING_DATA; + case 7: + return ACTIVE_DATA; + case 8: + return SUSPENDING_DATA; + case 9: + return SUSPENDED_DATA; + case 0: + return STATEDATA_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public StateDataCase - getStateDataCase() { - return StateDataCase.forNumber( - stateDataCase_); + public StateDataCase getStateDataCase() { + return StateDataCase.forNumber(stateDataCase_); } public static final int STATE_FIELD_NUMBER = 1; private int state_; /** + * + * *
    * State of the QueuedResource request.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * State of the QueuedResource request.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState.State getState() { + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2alpha1.QueuedResourceState.State result = com.google.cloud.tpu.v2alpha1.QueuedResourceState.State.valueOf(state_); - return result == null ? com.google.cloud.tpu.v2alpha1.QueuedResourceState.State.UNRECOGNIZED : result; + com.google.cloud.tpu.v2alpha1.QueuedResourceState.State result = + com.google.cloud.tpu.v2alpha1.QueuedResourceState.State.valueOf(state_); + return result == null + ? com.google.cloud.tpu.v2alpha1.QueuedResourceState.State.UNRECOGNIZED + : result; } public static final int CREATING_DATA_FIELD_NUMBER = 2; /** + * + * *
    * Further data for the creating state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData creating_data = 2; + * * @return Whether the creatingData field is set. */ @java.lang.Override @@ -3932,21 +4269,26 @@ public boolean hasCreatingData() { return stateDataCase_ == 2; } /** + * + * *
    * Further data for the creating state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData creating_data = 2; + * * @return The creatingData. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData getCreatingData() { if (stateDataCase_ == 2) { - return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) stateData_; + return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) stateData_; } return com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.getDefaultInstance(); } /** + * + * *
    * Further data for the creating state.
    * 
@@ -3954,20 +4296,24 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData getCreatin * .google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData creating_data = 2; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingDataOrBuilder getCreatingDataOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingDataOrBuilder + getCreatingDataOrBuilder() { if (stateDataCase_ == 2) { - return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) stateData_; + return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) stateData_; } return com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.getDefaultInstance(); } public static final int ACCEPTED_DATA_FIELD_NUMBER = 3; /** + * + * *
    * Further data for the accepted state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData accepted_data = 3; + * * @return Whether the acceptedData field is set. */ @java.lang.Override @@ -3975,21 +4321,26 @@ public boolean hasAcceptedData() { return stateDataCase_ == 3; } /** + * + * *
    * Further data for the accepted state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData accepted_data = 3; + * * @return The acceptedData. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData getAcceptedData() { if (stateDataCase_ == 3) { - return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) stateData_; + return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) stateData_; } return com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.getDefaultInstance(); } /** + * + * *
    * Further data for the accepted state.
    * 
@@ -3997,20 +4348,25 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData getAccepte * .google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData accepted_data = 3; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedDataOrBuilder getAcceptedDataOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedDataOrBuilder + getAcceptedDataOrBuilder() { if (stateDataCase_ == 3) { - return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) stateData_; + return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) stateData_; } return com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.getDefaultInstance(); } public static final int PROVISIONING_DATA_FIELD_NUMBER = 4; /** + * + * *
    * Further data for the provisioning state.
    * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * + * * @return Whether the provisioningData field is set. */ @java.lang.Override @@ -4018,42 +4374,53 @@ public boolean hasProvisioningData() { return stateDataCase_ == 4; } /** + * + * *
    * Further data for the provisioning state.
    * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * + * * @return The provisioningData. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData getProvisioningData() { if (stateDataCase_ == 4) { - return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) stateData_; + return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) stateData_; } return com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.getDefaultInstance(); } /** + * + * *
    * Further data for the provisioning state.
    * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningDataOrBuilder getProvisioningDataOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningDataOrBuilder + getProvisioningDataOrBuilder() { if (stateDataCase_ == 4) { - return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) stateData_; + return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) stateData_; } return com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.getDefaultInstance(); } public static final int FAILED_DATA_FIELD_NUMBER = 5; /** + * + * *
    * Further data for the failed state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData failed_data = 5; + * * @return Whether the failedData field is set. */ @java.lang.Override @@ -4061,21 +4428,26 @@ public boolean hasFailedData() { return stateDataCase_ == 5; } /** + * + * *
    * Further data for the failed state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData failed_data = 5; + * * @return The failedData. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData getFailedData() { if (stateDataCase_ == 5) { - return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) stateData_; + return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) stateData_; } return com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.getDefaultInstance(); } /** + * + * *
    * Further data for the failed state.
    * 
@@ -4083,20 +4455,24 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData getFailedDat * .google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData failed_data = 5; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedDataOrBuilder getFailedDataOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedDataOrBuilder + getFailedDataOrBuilder() { if (stateDataCase_ == 5) { - return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) stateData_; + return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) stateData_; } return com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.getDefaultInstance(); } public static final int DELETING_DATA_FIELD_NUMBER = 6; /** + * + * *
    * Further data for the deleting state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData deleting_data = 6; + * * @return Whether the deletingData field is set. */ @java.lang.Override @@ -4104,21 +4480,26 @@ public boolean hasDeletingData() { return stateDataCase_ == 6; } /** + * + * *
    * Further data for the deleting state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData deleting_data = 6; + * * @return The deletingData. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData getDeletingData() { if (stateDataCase_ == 6) { - return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) stateData_; + return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) stateData_; } return com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.getDefaultInstance(); } /** + * + * *
    * Further data for the deleting state.
    * 
@@ -4126,20 +4507,24 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData getDeletin * .google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData deleting_data = 6; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingDataOrBuilder getDeletingDataOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingDataOrBuilder + getDeletingDataOrBuilder() { if (stateDataCase_ == 6) { - return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) stateData_; + return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) stateData_; } return com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.getDefaultInstance(); } public static final int ACTIVE_DATA_FIELD_NUMBER = 7; /** + * + * *
    * Further data for the active state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData active_data = 7; + * * @return Whether the activeData field is set. */ @java.lang.Override @@ -4147,21 +4532,26 @@ public boolean hasActiveData() { return stateDataCase_ == 7; } /** + * + * *
    * Further data for the active state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData active_data = 7; + * * @return The activeData. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData getActiveData() { if (stateDataCase_ == 7) { - return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) stateData_; + return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) stateData_; } return com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.getDefaultInstance(); } /** + * + * *
    * Further data for the active state.
    * 
@@ -4169,20 +4559,24 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData getActiveDat * .google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData active_data = 7; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveDataOrBuilder getActiveDataOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveDataOrBuilder + getActiveDataOrBuilder() { if (stateDataCase_ == 7) { - return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) stateData_; + return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) stateData_; } return com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.getDefaultInstance(); } public static final int SUSPENDING_DATA_FIELD_NUMBER = 8; /** + * + * *
    * Further data for the suspending state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * * @return Whether the suspendingData field is set. */ @java.lang.Override @@ -4190,21 +4584,26 @@ public boolean hasSuspendingData() { return stateDataCase_ == 8; } /** + * + * *
    * Further data for the suspending state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * * @return The suspendingData. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData getSuspendingData() { if (stateDataCase_ == 8) { - return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) stateData_; + return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) stateData_; } return com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.getDefaultInstance(); } /** + * + * *
    * Further data for the suspending state.
    * 
@@ -4212,20 +4611,24 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData getSuspe * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingDataOrBuilder getSuspendingDataOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingDataOrBuilder + getSuspendingDataOrBuilder() { if (stateDataCase_ == 8) { - return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) stateData_; + return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) stateData_; } return com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.getDefaultInstance(); } public static final int SUSPENDED_DATA_FIELD_NUMBER = 9; /** + * + * *
    * Further data for the suspended state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData suspended_data = 9; + * * @return Whether the suspendedData field is set. */ @java.lang.Override @@ -4233,21 +4636,26 @@ public boolean hasSuspendedData() { return stateDataCase_ == 9; } /** + * + * *
    * Further data for the suspended state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData suspended_data = 9; + * * @return The suspendedData. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData getSuspendedData() { if (stateDataCase_ == 9) { - return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) stateData_; + return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) stateData_; } return com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.getDefaultInstance(); } /** + * + * *
    * Further data for the suspended state.
    * 
@@ -4255,14 +4663,16 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData getSuspen * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData suspended_data = 9; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedDataOrBuilder getSuspendedDataOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedDataOrBuilder + getSuspendedDataOrBuilder() { if (stateDataCase_ == 9) { - return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) stateData_; + return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) stateData_; } return com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4274,34 +4684,42 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.tpu.v2alpha1.QueuedResourceState.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.tpu.v2alpha1.QueuedResourceState.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (stateDataCase_ == 2) { - output.writeMessage(2, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) stateData_); + output.writeMessage( + 2, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) stateData_); } if (stateDataCase_ == 3) { - output.writeMessage(3, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) stateData_); + output.writeMessage( + 3, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) stateData_); } if (stateDataCase_ == 4) { - output.writeMessage(4, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) stateData_); + output.writeMessage( + 4, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) stateData_); } if (stateDataCase_ == 5) { - output.writeMessage(5, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) stateData_); + output.writeMessage( + 5, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) stateData_); } if (stateDataCase_ == 6) { - output.writeMessage(6, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) stateData_); + output.writeMessage( + 6, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) stateData_); } if (stateDataCase_ == 7) { - output.writeMessage(7, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) stateData_); + output.writeMessage( + 7, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) stateData_); } if (stateDataCase_ == 8) { - output.writeMessage(8, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) stateData_); + output.writeMessage( + 8, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) stateData_); } if (stateDataCase_ == 9) { - output.writeMessage(9, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) stateData_); + output.writeMessage( + 9, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) stateData_); } getUnknownFields().writeTo(output); } @@ -4312,41 +4730,49 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.tpu.v2alpha1.QueuedResourceState.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.tpu.v2alpha1.QueuedResourceState.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (stateDataCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) stateData_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) stateData_); } if (stateDataCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) stateData_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) stateData_); } if (stateDataCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) stateData_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) stateData_); } if (stateDataCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) stateData_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) stateData_); } if (stateDataCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) stateData_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) stateData_); } if (stateDataCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) stateData_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) stateData_); } if (stateDataCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) stateData_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) stateData_); } if (stateDataCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) stateData_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) stateData_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4356,47 +4782,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.QueuedResourceState)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.QueuedResourceState other = (com.google.cloud.tpu.v2alpha1.QueuedResourceState) obj; + com.google.cloud.tpu.v2alpha1.QueuedResourceState other = + (com.google.cloud.tpu.v2alpha1.QueuedResourceState) obj; if (state_ != other.state_) return false; if (!getStateDataCase().equals(other.getStateDataCase())) return false; switch (stateDataCase_) { case 2: - if (!getCreatingData() - .equals(other.getCreatingData())) return false; + if (!getCreatingData().equals(other.getCreatingData())) return false; break; case 3: - if (!getAcceptedData() - .equals(other.getAcceptedData())) return false; + if (!getAcceptedData().equals(other.getAcceptedData())) return false; break; case 4: - if (!getProvisioningData() - .equals(other.getProvisioningData())) return false; + if (!getProvisioningData().equals(other.getProvisioningData())) return false; break; case 5: - if (!getFailedData() - .equals(other.getFailedData())) return false; + if (!getFailedData().equals(other.getFailedData())) return false; break; case 6: - if (!getDeletingData() - .equals(other.getDeletingData())) return false; + if (!getDeletingData().equals(other.getDeletingData())) return false; break; case 7: - if (!getActiveData() - .equals(other.getActiveData())) return false; + if (!getActiveData().equals(other.getActiveData())) return false; break; case 8: - if (!getSuspendingData() - .equals(other.getSuspendingData())) return false; + if (!getSuspendingData().equals(other.getSuspendingData())) return false; break; case 9: - if (!getSuspendedData() - .equals(other.getSuspendedData())) return false; + if (!getSuspendedData().equals(other.getSuspendedData())) return false; break; case 0: default: @@ -4456,129 +4875,135 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.QueuedResourceState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState 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.tpu.v2alpha1.QueuedResourceState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.QueuedResourceState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.QueuedResourceState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.QueuedResourceState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * QueuedResourceState defines the details of the QueuedResource request.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.QueuedResourceState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.QueuedResourceState) com.google.cloud.tpu.v2alpha1.QueuedResourceStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.class, com.google.cloud.tpu.v2alpha1.QueuedResourceState.Builder.class); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.class, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.QueuedResourceState.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -4614,9 +5039,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_descriptor; } @java.lang.Override @@ -4635,7 +5060,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState buildPartial() { - com.google.cloud.tpu.v2alpha1.QueuedResourceState result = new com.google.cloud.tpu.v2alpha1.QueuedResourceState(this); + com.google.cloud.tpu.v2alpha1.QueuedResourceState result = + new com.google.cloud.tpu.v2alpha1.QueuedResourceState(this); result.state_ = state_; if (stateDataCase_ == 2) { if (creatingDataBuilder_ == null) { @@ -4702,38 +5128,39 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.QueuedResourceState) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResourceState)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.QueuedResourceState) other); } else { super.mergeFrom(other); return this; @@ -4741,46 +5168,56 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.QueuedResourceState other) { - if (other == com.google.cloud.tpu.v2alpha1.QueuedResourceState.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.QueuedResourceState.getDefaultInstance()) + return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } switch (other.getStateDataCase()) { - case CREATING_DATA: { - mergeCreatingData(other.getCreatingData()); - break; - } - case ACCEPTED_DATA: { - mergeAcceptedData(other.getAcceptedData()); - break; - } - case PROVISIONING_DATA: { - mergeProvisioningData(other.getProvisioningData()); - break; - } - case FAILED_DATA: { - mergeFailedData(other.getFailedData()); - break; - } - case DELETING_DATA: { - mergeDeletingData(other.getDeletingData()); - break; - } - case ACTIVE_DATA: { - mergeActiveData(other.getActiveData()); - break; - } - case SUSPENDING_DATA: { - mergeSuspendingData(other.getSuspendingData()); - break; - } - case SUSPENDED_DATA: { - mergeSuspendedData(other.getSuspendedData()); - break; - } - case STATEDATA_NOT_SET: { - break; - } + case CREATING_DATA: + { + mergeCreatingData(other.getCreatingData()); + break; + } + case ACCEPTED_DATA: + { + mergeAcceptedData(other.getAcceptedData()); + break; + } + case PROVISIONING_DATA: + { + mergeProvisioningData(other.getProvisioningData()); + break; + } + case FAILED_DATA: + { + mergeFailedData(other.getFailedData()); + break; + } + case DELETING_DATA: + { + mergeDeletingData(other.getDeletingData()); + break; + } + case ACTIVE_DATA: + { + mergeActiveData(other.getActiveData()); + break; + } + case SUSPENDING_DATA: + { + mergeSuspendingData(other.getSuspendingData()); + break; + } + case SUSPENDED_DATA: + { + mergeSuspendedData(other.getSuspendedData()); + break; + } + case STATEDATA_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -4808,73 +5245,68 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - state_ = input.readEnum(); + case 8: + { + state_ = input.readEnum(); - break; - } // case 8 - case 18: { - input.readMessage( - getCreatingDataFieldBuilder().getBuilder(), - extensionRegistry); - stateDataCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getAcceptedDataFieldBuilder().getBuilder(), - extensionRegistry); - stateDataCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getProvisioningDataFieldBuilder().getBuilder(), - extensionRegistry); - stateDataCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getFailedDataFieldBuilder().getBuilder(), - extensionRegistry); - stateDataCase_ = 5; - break; - } // case 42 - case 50: { - input.readMessage( - getDeletingDataFieldBuilder().getBuilder(), - extensionRegistry); - stateDataCase_ = 6; - break; - } // case 50 - case 58: { - input.readMessage( - getActiveDataFieldBuilder().getBuilder(), - extensionRegistry); - stateDataCase_ = 7; - break; - } // case 58 - case 66: { - input.readMessage( - getSuspendingDataFieldBuilder().getBuilder(), - extensionRegistry); - stateDataCase_ = 8; - break; - } // case 66 - case 74: { - input.readMessage( - getSuspendedDataFieldBuilder().getBuilder(), - extensionRegistry); - stateDataCase_ = 9; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 8 + case 18: + { + input.readMessage(getCreatingDataFieldBuilder().getBuilder(), extensionRegistry); + stateDataCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getAcceptedDataFieldBuilder().getBuilder(), extensionRegistry); + stateDataCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getProvisioningDataFieldBuilder().getBuilder(), extensionRegistry); + stateDataCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getFailedDataFieldBuilder().getBuilder(), extensionRegistry); + stateDataCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getDeletingDataFieldBuilder().getBuilder(), extensionRegistry); + stateDataCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getActiveDataFieldBuilder().getBuilder(), extensionRegistry); + stateDataCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage(getSuspendingDataFieldBuilder().getBuilder(), extensionRegistry); + stateDataCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage(getSuspendedDataFieldBuilder().getBuilder(), extensionRegistry); + stateDataCase_ = 9; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4884,12 +5316,12 @@ public Builder mergeFrom( } // finally return this; } + private int stateDataCase_ = 0; private java.lang.Object stateData_; - public StateDataCase - getStateDataCase() { - return StateDataCase.forNumber( - stateDataCase_); + + public StateDataCase getStateDataCase() { + return StateDataCase.forNumber(stateDataCase_); } public Builder clearStateData() { @@ -4899,54 +5331,69 @@ public Builder clearStateData() { return this; } - private int state_ = 0; /** + * + * *
      * State of the QueuedResource request.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * State of the QueuedResource request.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.State state = 1; + * * @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; } /** + * + * *
      * State of the QueuedResource request.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.QueuedResourceState.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2alpha1.QueuedResourceState.State result = com.google.cloud.tpu.v2alpha1.QueuedResourceState.State.valueOf(state_); - return result == null ? com.google.cloud.tpu.v2alpha1.QueuedResourceState.State.UNRECOGNIZED : result; + com.google.cloud.tpu.v2alpha1.QueuedResourceState.State result = + com.google.cloud.tpu.v2alpha1.QueuedResourceState.State.valueOf(state_); + return result == null + ? com.google.cloud.tpu.v2alpha1.QueuedResourceState.State.UNRECOGNIZED + : result; } /** + * + * *
      * State of the QueuedResource request.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ @@ -4954,34 +5401,43 @@ public Builder setState(com.google.cloud.tpu.v2alpha1.QueuedResourceState.State if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * State of the QueuedResource request.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingDataOrBuilder> creatingDataBuilder_; + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingDataOrBuilder> + creatingDataBuilder_; /** + * + * *
      * Further data for the creating state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData creating_data = 2; + * * @return Whether the creatingData field is set. */ @java.lang.Override @@ -4989,11 +5445,14 @@ public boolean hasCreatingData() { return stateDataCase_ == 2; } /** + * + * *
      * Further data for the creating state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData creating_data = 2; + * * @return The creatingData. */ @java.lang.Override @@ -5011,13 +5470,16 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData getCreatin } } /** + * + * *
      * Further data for the creating state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData creating_data = 2; */ - public Builder setCreatingData(com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData value) { + public Builder setCreatingData( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData value) { if (creatingDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5031,6 +5493,8 @@ public Builder setCreatingData(com.google.cloud.tpu.v2alpha1.QueuedResourceState return this; } /** + * + * *
      * Further data for the creating state.
      * 
@@ -5049,18 +5513,26 @@ public Builder setCreatingData( return this; } /** + * + * *
      * Further data for the creating state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData creating_data = 2; */ - public Builder mergeCreatingData(com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData value) { + public Builder mergeCreatingData( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData value) { if (creatingDataBuilder_ == null) { - if (stateDataCase_ == 2 && - stateData_ != com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.getDefaultInstance()) { - stateData_ = com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.newBuilder((com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) stateData_) - .mergeFrom(value).buildPartial(); + if (stateDataCase_ == 2 + && stateData_ + != com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData + .getDefaultInstance()) { + stateData_ = + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.newBuilder( + (com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) stateData_) + .mergeFrom(value) + .buildPartial(); } else { stateData_ = value; } @@ -5076,6 +5548,8 @@ public Builder mergeCreatingData(com.google.cloud.tpu.v2alpha1.QueuedResourceSta return this; } /** + * + * *
      * Further data for the creating state.
      * 
@@ -5099,16 +5573,21 @@ public Builder clearCreatingData() { return this; } /** + * + * *
      * Further data for the creating state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData creating_data = 2; */ - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.Builder getCreatingDataBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.Builder + getCreatingDataBuilder() { return getCreatingDataFieldBuilder().getBuilder(); } /** + * + * *
      * Further data for the creating state.
      * 
@@ -5116,7 +5595,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.Builder ge * .google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData creating_data = 2; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingDataOrBuilder getCreatingDataOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingDataOrBuilder + getCreatingDataOrBuilder() { if ((stateDataCase_ == 2) && (creatingDataBuilder_ != null)) { return creatingDataBuilder_.getMessageOrBuilder(); } else { @@ -5127,6 +5607,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingDataOrBuilder g } } /** + * + * *
      * Further data for the creating state.
      * 
@@ -5134,32 +5616,45 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingDataOrBuilder g * .google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData creating_data = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingDataOrBuilder> + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingDataOrBuilder> getCreatingDataFieldBuilder() { if (creatingDataBuilder_ == null) { if (!(stateDataCase_ == 2)) { - stateData_ = com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.getDefaultInstance(); - } - creatingDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingDataOrBuilder>( + stateData_ = + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.getDefaultInstance(); + } + creatingDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingDataOrBuilder>( (com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) stateData_, getParentForChildren(), isClean()); stateData_ = null; } stateDataCase_ = 2; - onChanged();; + onChanged(); + ; return creatingDataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedDataOrBuilder> acceptedDataBuilder_; + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedDataOrBuilder> + acceptedDataBuilder_; /** + * + * *
      * Further data for the accepted state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData accepted_data = 3; + * * @return Whether the acceptedData field is set. */ @java.lang.Override @@ -5167,11 +5662,14 @@ public boolean hasAcceptedData() { return stateDataCase_ == 3; } /** + * + * *
      * Further data for the accepted state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData accepted_data = 3; + * * @return The acceptedData. */ @java.lang.Override @@ -5189,13 +5687,16 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData getAccepte } } /** + * + * *
      * Further data for the accepted state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData accepted_data = 3; */ - public Builder setAcceptedData(com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData value) { + public Builder setAcceptedData( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData value) { if (acceptedDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5209,6 +5710,8 @@ public Builder setAcceptedData(com.google.cloud.tpu.v2alpha1.QueuedResourceState return this; } /** + * + * *
      * Further data for the accepted state.
      * 
@@ -5227,18 +5730,26 @@ public Builder setAcceptedData( return this; } /** + * + * *
      * Further data for the accepted state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData accepted_data = 3; */ - public Builder mergeAcceptedData(com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData value) { + public Builder mergeAcceptedData( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData value) { if (acceptedDataBuilder_ == null) { - if (stateDataCase_ == 3 && - stateData_ != com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.getDefaultInstance()) { - stateData_ = com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.newBuilder((com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) stateData_) - .mergeFrom(value).buildPartial(); + if (stateDataCase_ == 3 + && stateData_ + != com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData + .getDefaultInstance()) { + stateData_ = + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.newBuilder( + (com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) stateData_) + .mergeFrom(value) + .buildPartial(); } else { stateData_ = value; } @@ -5254,6 +5765,8 @@ public Builder mergeAcceptedData(com.google.cloud.tpu.v2alpha1.QueuedResourceSta return this; } /** + * + * *
      * Further data for the accepted state.
      * 
@@ -5277,16 +5790,21 @@ public Builder clearAcceptedData() { return this; } /** + * + * *
      * Further data for the accepted state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData accepted_data = 3; */ - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.Builder getAcceptedDataBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.Builder + getAcceptedDataBuilder() { return getAcceptedDataFieldBuilder().getBuilder(); } /** + * + * *
      * Further data for the accepted state.
      * 
@@ -5294,7 +5812,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.Builder ge * .google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData accepted_data = 3; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedDataOrBuilder getAcceptedDataOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedDataOrBuilder + getAcceptedDataOrBuilder() { if ((stateDataCase_ == 3) && (acceptedDataBuilder_ != null)) { return acceptedDataBuilder_.getMessageOrBuilder(); } else { @@ -5305,6 +5824,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedDataOrBuilder g } } /** + * + * *
      * Further data for the accepted state.
      * 
@@ -5312,32 +5833,46 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedDataOrBuilder g * .google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData accepted_data = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedDataOrBuilder> + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedDataOrBuilder> getAcceptedDataFieldBuilder() { if (acceptedDataBuilder_ == null) { if (!(stateDataCase_ == 3)) { - stateData_ = com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.getDefaultInstance(); - } - acceptedDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedDataOrBuilder>( + stateData_ = + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.getDefaultInstance(); + } + acceptedDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedDataOrBuilder>( (com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) stateData_, getParentForChildren(), isClean()); stateData_ = null; } stateDataCase_ = 3; - onChanged();; + onChanged(); + ; return acceptedDataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningDataOrBuilder> provisioningDataBuilder_; + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningDataOrBuilder> + provisioningDataBuilder_; /** + * + * *
      * Further data for the provisioning state.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * + * * @return Whether the provisioningData field is set. */ @java.lang.Override @@ -5345,35 +5880,46 @@ public boolean hasProvisioningData() { return stateDataCase_ == 4; } /** + * + * *
      * Further data for the provisioning state.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * + * * @return The provisioningData. */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData getProvisioningData() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData + getProvisioningData() { if (provisioningDataBuilder_ == null) { if (stateDataCase_ == 4) { return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) stateData_; } - return com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.getDefaultInstance(); + return com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData + .getDefaultInstance(); } else { if (stateDataCase_ == 4) { return provisioningDataBuilder_.getMessage(); } - return com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.getDefaultInstance(); + return com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData + .getDefaultInstance(); } } /** + * + * *
      * Further data for the provisioning state.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * */ - public Builder setProvisioningData(com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData value) { + public Builder setProvisioningData( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData value) { if (provisioningDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5387,14 +5933,18 @@ public Builder setProvisioningData(com.google.cloud.tpu.v2alpha1.QueuedResourceS return this; } /** + * + * *
      * Further data for the provisioning state.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * */ public Builder setProvisioningData( - com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.Builder builderForValue) { + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.Builder + builderForValue) { if (provisioningDataBuilder_ == null) { stateData_ = builderForValue.build(); onChanged(); @@ -5405,18 +5955,28 @@ public Builder setProvisioningData( return this; } /** + * + * *
      * Further data for the provisioning state.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * */ - public Builder mergeProvisioningData(com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData value) { + public Builder mergeProvisioningData( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData value) { if (provisioningDataBuilder_ == null) { - if (stateDataCase_ == 4 && - stateData_ != com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.getDefaultInstance()) { - stateData_ = com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.newBuilder((com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) stateData_) - .mergeFrom(value).buildPartial(); + if (stateDataCase_ == 4 + && stateData_ + != com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData + .getDefaultInstance()) { + stateData_ = + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.newBuilder( + (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) + stateData_) + .mergeFrom(value) + .buildPartial(); } else { stateData_ = value; } @@ -5432,11 +5992,14 @@ public Builder mergeProvisioningData(com.google.cloud.tpu.v2alpha1.QueuedResourc return this; } /** + * + * *
      * Further data for the provisioning state.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * */ public Builder clearProvisioningData() { if (provisioningDataBuilder_ == null) { @@ -5455,67 +6018,93 @@ public Builder clearProvisioningData() { return this; } /** + * + * *
      * Further data for the provisioning state.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * */ - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.Builder getProvisioningDataBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.Builder + getProvisioningDataBuilder() { return getProvisioningDataFieldBuilder().getBuilder(); } /** + * + * *
      * Further data for the provisioning state.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningDataOrBuilder getProvisioningDataOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningDataOrBuilder + getProvisioningDataOrBuilder() { if ((stateDataCase_ == 4) && (provisioningDataBuilder_ != null)) { return provisioningDataBuilder_.getMessageOrBuilder(); } else { if (stateDataCase_ == 4) { return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) stateData_; } - return com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.getDefaultInstance(); + return com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData + .getDefaultInstance(); } } /** + * + * *
      * Further data for the provisioning state.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningDataOrBuilder> + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningDataOrBuilder> getProvisioningDataFieldBuilder() { if (provisioningDataBuilder_ == null) { if (!(stateDataCase_ == 4)) { - stateData_ = com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.getDefaultInstance(); - } - provisioningDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningDataOrBuilder>( + stateData_ = + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData + .getDefaultInstance(); + } + provisioningDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningDataOrBuilder>( (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) stateData_, getParentForChildren(), isClean()); stateData_ = null; } stateDataCase_ = 4; - onChanged();; + onChanged(); + ; return provisioningDataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedDataOrBuilder> failedDataBuilder_; + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedDataOrBuilder> + failedDataBuilder_; /** + * + * *
      * Further data for the failed state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData failed_data = 5; + * * @return Whether the failedData field is set. */ @java.lang.Override @@ -5523,11 +6112,14 @@ public boolean hasFailedData() { return stateDataCase_ == 5; } /** + * + * *
      * Further data for the failed state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData failed_data = 5; + * * @return The failedData. */ @java.lang.Override @@ -5545,13 +6137,16 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData getFailedDat } } /** + * + * *
      * Further data for the failed state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData failed_data = 5; */ - public Builder setFailedData(com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData value) { + public Builder setFailedData( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData value) { if (failedDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5565,6 +6160,8 @@ public Builder setFailedData(com.google.cloud.tpu.v2alpha1.QueuedResourceState.F return this; } /** + * + * *
      * Further data for the failed state.
      * 
@@ -5583,18 +6180,26 @@ public Builder setFailedData( return this; } /** + * + * *
      * Further data for the failed state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData failed_data = 5; */ - public Builder mergeFailedData(com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData value) { + public Builder mergeFailedData( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData value) { if (failedDataBuilder_ == null) { - if (stateDataCase_ == 5 && - stateData_ != com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.getDefaultInstance()) { - stateData_ = com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.newBuilder((com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) stateData_) - .mergeFrom(value).buildPartial(); + if (stateDataCase_ == 5 + && stateData_ + != com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData + .getDefaultInstance()) { + stateData_ = + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.newBuilder( + (com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) stateData_) + .mergeFrom(value) + .buildPartial(); } else { stateData_ = value; } @@ -5610,6 +6215,8 @@ public Builder mergeFailedData(com.google.cloud.tpu.v2alpha1.QueuedResourceState return this; } /** + * + * *
      * Further data for the failed state.
      * 
@@ -5633,16 +6240,21 @@ public Builder clearFailedData() { return this; } /** + * + * *
      * Further data for the failed state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData failed_data = 5; */ - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.Builder getFailedDataBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.Builder + getFailedDataBuilder() { return getFailedDataFieldBuilder().getBuilder(); } /** + * + * *
      * Further data for the failed state.
      * 
@@ -5650,7 +6262,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.Builder getF * .google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData failed_data = 5; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedDataOrBuilder getFailedDataOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedDataOrBuilder + getFailedDataOrBuilder() { if ((stateDataCase_ == 5) && (failedDataBuilder_ != null)) { return failedDataBuilder_.getMessageOrBuilder(); } else { @@ -5661,6 +6274,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedDataOrBuilder get } } /** + * + * *
      * Further data for the failed state.
      * 
@@ -5668,32 +6283,45 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedDataOrBuilder get * .google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData failed_data = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedDataOrBuilder> + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedDataOrBuilder> getFailedDataFieldBuilder() { if (failedDataBuilder_ == null) { if (!(stateDataCase_ == 5)) { - stateData_ = com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.getDefaultInstance(); - } - failedDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedDataOrBuilder>( + stateData_ = + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.getDefaultInstance(); + } + failedDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedDataOrBuilder>( (com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) stateData_, getParentForChildren(), isClean()); stateData_ = null; } stateDataCase_ = 5; - onChanged();; + onChanged(); + ; return failedDataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingDataOrBuilder> deletingDataBuilder_; + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingDataOrBuilder> + deletingDataBuilder_; /** + * + * *
      * Further data for the deleting state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData deleting_data = 6; + * * @return Whether the deletingData field is set. */ @java.lang.Override @@ -5701,11 +6329,14 @@ public boolean hasDeletingData() { return stateDataCase_ == 6; } /** + * + * *
      * Further data for the deleting state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData deleting_data = 6; + * * @return The deletingData. */ @java.lang.Override @@ -5723,13 +6354,16 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData getDeletin } } /** + * + * *
      * Further data for the deleting state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData deleting_data = 6; */ - public Builder setDeletingData(com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData value) { + public Builder setDeletingData( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData value) { if (deletingDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5743,6 +6377,8 @@ public Builder setDeletingData(com.google.cloud.tpu.v2alpha1.QueuedResourceState return this; } /** + * + * *
      * Further data for the deleting state.
      * 
@@ -5761,18 +6397,26 @@ public Builder setDeletingData( return this; } /** + * + * *
      * Further data for the deleting state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData deleting_data = 6; */ - public Builder mergeDeletingData(com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData value) { + public Builder mergeDeletingData( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData value) { if (deletingDataBuilder_ == null) { - if (stateDataCase_ == 6 && - stateData_ != com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.getDefaultInstance()) { - stateData_ = com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.newBuilder((com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) stateData_) - .mergeFrom(value).buildPartial(); + if (stateDataCase_ == 6 + && stateData_ + != com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData + .getDefaultInstance()) { + stateData_ = + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.newBuilder( + (com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) stateData_) + .mergeFrom(value) + .buildPartial(); } else { stateData_ = value; } @@ -5788,6 +6432,8 @@ public Builder mergeDeletingData(com.google.cloud.tpu.v2alpha1.QueuedResourceSta return this; } /** + * + * *
      * Further data for the deleting state.
      * 
@@ -5811,16 +6457,21 @@ public Builder clearDeletingData() { return this; } /** + * + * *
      * Further data for the deleting state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData deleting_data = 6; */ - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.Builder getDeletingDataBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.Builder + getDeletingDataBuilder() { return getDeletingDataFieldBuilder().getBuilder(); } /** + * + * *
      * Further data for the deleting state.
      * 
@@ -5828,7 +6479,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.Builder ge * .google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData deleting_data = 6; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingDataOrBuilder getDeletingDataOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingDataOrBuilder + getDeletingDataOrBuilder() { if ((stateDataCase_ == 6) && (deletingDataBuilder_ != null)) { return deletingDataBuilder_.getMessageOrBuilder(); } else { @@ -5839,6 +6491,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingDataOrBuilder g } } /** + * + * *
      * Further data for the deleting state.
      * 
@@ -5846,32 +6500,45 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingDataOrBuilder g * .google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData deleting_data = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingDataOrBuilder> + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingDataOrBuilder> getDeletingDataFieldBuilder() { if (deletingDataBuilder_ == null) { if (!(stateDataCase_ == 6)) { - stateData_ = com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.getDefaultInstance(); - } - deletingDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingDataOrBuilder>( + stateData_ = + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.getDefaultInstance(); + } + deletingDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingDataOrBuilder>( (com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) stateData_, getParentForChildren(), isClean()); stateData_ = null; } stateDataCase_ = 6; - onChanged();; + onChanged(); + ; return deletingDataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveDataOrBuilder> activeDataBuilder_; + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveDataOrBuilder> + activeDataBuilder_; /** + * + * *
      * Further data for the active state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData active_data = 7; + * * @return Whether the activeData field is set. */ @java.lang.Override @@ -5879,11 +6546,14 @@ public boolean hasActiveData() { return stateDataCase_ == 7; } /** + * + * *
      * Further data for the active state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData active_data = 7; + * * @return The activeData. */ @java.lang.Override @@ -5901,13 +6571,16 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData getActiveDat } } /** + * + * *
      * Further data for the active state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData active_data = 7; */ - public Builder setActiveData(com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData value) { + public Builder setActiveData( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData value) { if (activeDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5921,6 +6594,8 @@ public Builder setActiveData(com.google.cloud.tpu.v2alpha1.QueuedResourceState.A return this; } /** + * + * *
      * Further data for the active state.
      * 
@@ -5939,18 +6614,26 @@ public Builder setActiveData( return this; } /** + * + * *
      * Further data for the active state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData active_data = 7; */ - public Builder mergeActiveData(com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData value) { + public Builder mergeActiveData( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData value) { if (activeDataBuilder_ == null) { - if (stateDataCase_ == 7 && - stateData_ != com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.getDefaultInstance()) { - stateData_ = com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.newBuilder((com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) stateData_) - .mergeFrom(value).buildPartial(); + if (stateDataCase_ == 7 + && stateData_ + != com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData + .getDefaultInstance()) { + stateData_ = + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.newBuilder( + (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) stateData_) + .mergeFrom(value) + .buildPartial(); } else { stateData_ = value; } @@ -5966,6 +6649,8 @@ public Builder mergeActiveData(com.google.cloud.tpu.v2alpha1.QueuedResourceState return this; } /** + * + * *
      * Further data for the active state.
      * 
@@ -5989,16 +6674,21 @@ public Builder clearActiveData() { return this; } /** + * + * *
      * Further data for the active state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData active_data = 7; */ - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.Builder getActiveDataBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.Builder + getActiveDataBuilder() { return getActiveDataFieldBuilder().getBuilder(); } /** + * + * *
      * Further data for the active state.
      * 
@@ -6006,7 +6696,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.Builder getA * .google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData active_data = 7; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveDataOrBuilder getActiveDataOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveDataOrBuilder + getActiveDataOrBuilder() { if ((stateDataCase_ == 7) && (activeDataBuilder_ != null)) { return activeDataBuilder_.getMessageOrBuilder(); } else { @@ -6017,6 +6708,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveDataOrBuilder get } } /** + * + * *
      * Further data for the active state.
      * 
@@ -6024,32 +6717,46 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveDataOrBuilder get * .google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData active_data = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveDataOrBuilder> + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveDataOrBuilder> getActiveDataFieldBuilder() { if (activeDataBuilder_ == null) { if (!(stateDataCase_ == 7)) { - stateData_ = com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.getDefaultInstance(); - } - activeDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveDataOrBuilder>( + stateData_ = + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.getDefaultInstance(); + } + activeDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveDataOrBuilder>( (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) stateData_, getParentForChildren(), isClean()); stateData_ = null; } stateDataCase_ = 7; - onChanged();; + onChanged(); + ; return activeDataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingDataOrBuilder> suspendingDataBuilder_; + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingDataOrBuilder> + suspendingDataBuilder_; /** + * + * *
      * Further data for the suspending state.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * + * * @return Whether the suspendingData field is set. */ @java.lang.Override @@ -6057,11 +6764,15 @@ public boolean hasSuspendingData() { return stateDataCase_ == 8; } /** + * + * *
      * Further data for the suspending state.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * + * * @return The suspendingData. */ @java.lang.Override @@ -6070,22 +6781,28 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData getSuspe if (stateDataCase_ == 8) { return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) stateData_; } - return com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.getDefaultInstance(); + return com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData + .getDefaultInstance(); } else { if (stateDataCase_ == 8) { return suspendingDataBuilder_.getMessage(); } - return com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.getDefaultInstance(); + return com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData + .getDefaultInstance(); } } /** + * + * *
      * Further data for the suspending state.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * */ - public Builder setSuspendingData(com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData value) { + public Builder setSuspendingData( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData value) { if (suspendingDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6099,11 +6816,14 @@ public Builder setSuspendingData(com.google.cloud.tpu.v2alpha1.QueuedResourceSta return this; } /** + * + * *
      * Further data for the suspending state.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * */ public Builder setSuspendingData( com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.Builder builderForValue) { @@ -6117,18 +6837,27 @@ public Builder setSuspendingData( return this; } /** + * + * *
      * Further data for the suspending state.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * */ - public Builder mergeSuspendingData(com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData value) { + public Builder mergeSuspendingData( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData value) { if (suspendingDataBuilder_ == null) { - if (stateDataCase_ == 8 && - stateData_ != com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.getDefaultInstance()) { - stateData_ = com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.newBuilder((com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) stateData_) - .mergeFrom(value).buildPartial(); + if (stateDataCase_ == 8 + && stateData_ + != com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData + .getDefaultInstance()) { + stateData_ = + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.newBuilder( + (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) stateData_) + .mergeFrom(value) + .buildPartial(); } else { stateData_ = value; } @@ -6144,11 +6873,14 @@ public Builder mergeSuspendingData(com.google.cloud.tpu.v2alpha1.QueuedResourceS return this; } /** + * + * *
      * Further data for the suspending state.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * */ public Builder clearSuspendingData() { if (suspendingDataBuilder_ == null) { @@ -6167,67 +6899,92 @@ public Builder clearSuspendingData() { return this; } /** + * + * *
      * Further data for the suspending state.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * */ - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.Builder getSuspendingDataBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.Builder + getSuspendingDataBuilder() { return getSuspendingDataFieldBuilder().getBuilder(); } /** + * + * *
      * Further data for the suspending state.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingDataOrBuilder getSuspendingDataOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingDataOrBuilder + getSuspendingDataOrBuilder() { if ((stateDataCase_ == 8) && (suspendingDataBuilder_ != null)) { return suspendingDataBuilder_.getMessageOrBuilder(); } else { if (stateDataCase_ == 8) { return (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) stateData_; } - return com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.getDefaultInstance(); + return com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData + .getDefaultInstance(); } } /** + * + * *
      * Further data for the suspending state.
      * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingDataOrBuilder> + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingDataOrBuilder> getSuspendingDataFieldBuilder() { if (suspendingDataBuilder_ == null) { if (!(stateDataCase_ == 8)) { - stateData_ = com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.getDefaultInstance(); - } - suspendingDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingDataOrBuilder>( + stateData_ = + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.getDefaultInstance(); + } + suspendingDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingDataOrBuilder>( (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) stateData_, getParentForChildren(), isClean()); stateData_ = null; } stateDataCase_ = 8; - onChanged();; + onChanged(); + ; return suspendingDataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedDataOrBuilder> suspendedDataBuilder_; + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedDataOrBuilder> + suspendedDataBuilder_; /** + * + * *
      * Further data for the suspended state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData suspended_data = 9; + * * @return Whether the suspendedData field is set. */ @java.lang.Override @@ -6235,11 +6992,14 @@ public boolean hasSuspendedData() { return stateDataCase_ == 9; } /** + * + * *
      * Further data for the suspended state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData suspended_data = 9; + * * @return The suspendedData. */ @java.lang.Override @@ -6257,13 +7017,16 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData getSuspen } } /** + * + * *
      * Further data for the suspended state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData suspended_data = 9; */ - public Builder setSuspendedData(com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData value) { + public Builder setSuspendedData( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData value) { if (suspendedDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6277,6 +7040,8 @@ public Builder setSuspendedData(com.google.cloud.tpu.v2alpha1.QueuedResourceStat return this; } /** + * + * *
      * Further data for the suspended state.
      * 
@@ -6295,18 +7060,26 @@ public Builder setSuspendedData( return this; } /** + * + * *
      * Further data for the suspended state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData suspended_data = 9; */ - public Builder mergeSuspendedData(com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData value) { + public Builder mergeSuspendedData( + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData value) { if (suspendedDataBuilder_ == null) { - if (stateDataCase_ == 9 && - stateData_ != com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.getDefaultInstance()) { - stateData_ = com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.newBuilder((com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) stateData_) - .mergeFrom(value).buildPartial(); + if (stateDataCase_ == 9 + && stateData_ + != com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData + .getDefaultInstance()) { + stateData_ = + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.newBuilder( + (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) stateData_) + .mergeFrom(value) + .buildPartial(); } else { stateData_ = value; } @@ -6322,6 +7095,8 @@ public Builder mergeSuspendedData(com.google.cloud.tpu.v2alpha1.QueuedResourceSt return this; } /** + * + * *
      * Further data for the suspended state.
      * 
@@ -6345,16 +7120,21 @@ public Builder clearSuspendedData() { return this; } /** + * + * *
      * Further data for the suspended state.
      * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData suspended_data = 9; */ - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.Builder getSuspendedDataBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.Builder + getSuspendedDataBuilder() { return getSuspendedDataFieldBuilder().getBuilder(); } /** + * + * *
      * Further data for the suspended state.
      * 
@@ -6362,7 +7142,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.Builder g * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData suspended_data = 9; */ @java.lang.Override - public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedDataOrBuilder getSuspendedDataOrBuilder() { + public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedDataOrBuilder + getSuspendedDataOrBuilder() { if ((stateDataCase_ == 9) && (suspendedDataBuilder_ != null)) { return suspendedDataBuilder_.getMessageOrBuilder(); } else { @@ -6373,6 +7154,8 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedDataOrBuilder } } /** + * + * *
      * Further data for the suspended state.
      * 
@@ -6380,26 +7163,33 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedDataOrBuilder * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData suspended_data = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedDataOrBuilder> + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedDataOrBuilder> getSuspendedDataFieldBuilder() { if (suspendedDataBuilder_ == null) { if (!(stateDataCase_ == 9)) { - stateData_ = com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.getDefaultInstance(); - } - suspendedDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData, com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.Builder, com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedDataOrBuilder>( + stateData_ = + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.getDefaultInstance(); + } + suspendedDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData.Builder, + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedDataOrBuilder>( (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) stateData_, getParentForChildren(), isClean()); stateData_ = null; } stateDataCase_ = 9; - onChanged();; + onChanged(); + ; return suspendedDataBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6409,12 +7199,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.QueuedResourceState) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.QueuedResourceState) private static final com.google.cloud.tpu.v2alpha1.QueuedResourceState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.QueuedResourceState(); } @@ -6423,27 +7213,27 @@ public static com.google.cloud.tpu.v2alpha1.QueuedResourceState getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueuedResourceState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueuedResourceState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6458,6 +7248,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.QueuedResourceState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceStateOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceStateOrBuilder.java similarity index 83% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceStateOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceStateOrBuilder.java index 22322f40f69a..a1247577c5e7 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceStateOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceStateOrBuilder.java @@ -1,131 +1,191 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface QueuedResourceStateOrBuilder extends +public interface QueuedResourceStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.QueuedResourceState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * State of the QueuedResource request.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * State of the QueuedResource request.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.State state = 1; + * * @return The state. */ com.google.cloud.tpu.v2alpha1.QueuedResourceState.State getState(); /** + * + * *
    * Further data for the creating state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData creating_data = 2; + * * @return Whether the creatingData field is set. */ boolean hasCreatingData(); /** + * + * *
    * Further data for the creating state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData creating_data = 2; + * * @return The creatingData. */ com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData getCreatingData(); /** + * + * *
    * Further data for the creating state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData creating_data = 2; */ - com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingDataOrBuilder getCreatingDataOrBuilder(); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingDataOrBuilder + getCreatingDataOrBuilder(); /** + * + * *
    * Further data for the accepted state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData accepted_data = 3; + * * @return Whether the acceptedData field is set. */ boolean hasAcceptedData(); /** + * + * *
    * Further data for the accepted state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData accepted_data = 3; + * * @return The acceptedData. */ com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData getAcceptedData(); /** + * + * *
    * Further data for the accepted state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData accepted_data = 3; */ - com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedDataOrBuilder getAcceptedDataOrBuilder(); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedDataOrBuilder + getAcceptedDataOrBuilder(); /** + * + * *
    * Further data for the provisioning state.
    * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * + * * @return Whether the provisioningData field is set. */ boolean hasProvisioningData(); /** + * + * *
    * Further data for the provisioning state.
    * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * + * * @return The provisioningData. */ com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData getProvisioningData(); /** + * + * *
    * Further data for the provisioning state.
    * 
* - * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * .google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData provisioning_data = 4; + * */ - com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningDataOrBuilder getProvisioningDataOrBuilder(); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningDataOrBuilder + getProvisioningDataOrBuilder(); /** + * + * *
    * Further data for the failed state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData failed_data = 5; + * * @return Whether the failedData field is set. */ boolean hasFailedData(); /** + * + * *
    * Further data for the failed state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData failed_data = 5; + * * @return The failedData. */ com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData getFailedData(); /** + * + * *
    * Further data for the failed state.
    * 
@@ -135,51 +195,68 @@ public interface QueuedResourceStateOrBuilder extends com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedDataOrBuilder getFailedDataOrBuilder(); /** + * + * *
    * Further data for the deleting state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData deleting_data = 6; + * * @return Whether the deletingData field is set. */ boolean hasDeletingData(); /** + * + * *
    * Further data for the deleting state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData deleting_data = 6; + * * @return The deletingData. */ com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData getDeletingData(); /** + * + * *
    * Further data for the deleting state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData deleting_data = 6; */ - com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingDataOrBuilder getDeletingDataOrBuilder(); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingDataOrBuilder + getDeletingDataOrBuilder(); /** + * + * *
    * Further data for the active state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData active_data = 7; + * * @return Whether the activeData field is set. */ boolean hasActiveData(); /** + * + * *
    * Further data for the active state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData active_data = 7; + * * @return The activeData. */ com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData getActiveData(); /** + * + * *
    * Further data for the active state.
    * 
@@ -189,58 +266,76 @@ public interface QueuedResourceStateOrBuilder extends com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveDataOrBuilder getActiveDataOrBuilder(); /** + * + * *
    * Further data for the suspending state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * * @return Whether the suspendingData field is set. */ boolean hasSuspendingData(); /** + * + * *
    * Further data for the suspending state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; + * * @return The suspendingData. */ com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData getSuspendingData(); /** + * + * *
    * Further data for the suspending state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData suspending_data = 8; */ - com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingDataOrBuilder getSuspendingDataOrBuilder(); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingDataOrBuilder + getSuspendingDataOrBuilder(); /** + * + * *
    * Further data for the suspended state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData suspended_data = 9; + * * @return Whether the suspendedData field is set. */ boolean hasSuspendedData(); /** + * + * *
    * Further data for the suspended state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData suspended_data = 9; + * * @return The suspendedData. */ com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData getSuspendedData(); /** + * + * *
    * Further data for the suspended state.
    * 
* * .google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData suspended_data = 9; */ - com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedDataOrBuilder getSuspendedDataOrBuilder(); + com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedDataOrBuilder + getSuspendedDataOrBuilder(); public com.google.cloud.tpu.v2alpha1.QueuedResourceState.StateDataCase getStateDataCase(); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersion.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersion.java similarity index 66% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersion.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersion.java index e21251a63412..e807de6b1fcc 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersion.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersion.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * A runtime version that a Node can be configured with.
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.RuntimeVersion} */ -public final class RuntimeVersion extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RuntimeVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.RuntimeVersion) RuntimeVersionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RuntimeVersion.newBuilder() to construct. private RuntimeVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RuntimeVersion() { name_ = ""; version_ = ""; @@ -26,37 +44,41 @@ private RuntimeVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RuntimeVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_RuntimeVersion_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_RuntimeVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_RuntimeVersion_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_RuntimeVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.RuntimeVersion.class, com.google.cloud.tpu.v2alpha1.RuntimeVersion.Builder.class); + com.google.cloud.tpu.v2alpha1.RuntimeVersion.class, + com.google.cloud.tpu.v2alpha1.RuntimeVersion.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -65,29 +87,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,11 +120,14 @@ public java.lang.String getName() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** + * + * *
    * The runtime version.
    * 
* * string version = 2; + * * @return The version. */ @java.lang.Override @@ -111,29 +136,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * The runtime version.
    * 
* * string version = 2; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -142,6 +167,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -184,17 +209,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.RuntimeVersion)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.RuntimeVersion other = (com.google.cloud.tpu.v2alpha1.RuntimeVersion) obj; + com.google.cloud.tpu.v2alpha1.RuntimeVersion other = + (com.google.cloud.tpu.v2alpha1.RuntimeVersion) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getName().equals(other.getName())) return false; + if (!getVersion().equals(other.getVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -215,130 +239,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.RuntimeVersion parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.RuntimeVersion parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.RuntimeVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.RuntimeVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.RuntimeVersion 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.tpu.v2alpha1.RuntimeVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.RuntimeVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.RuntimeVersion parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.RuntimeVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.RuntimeVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.RuntimeVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.RuntimeVersion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.RuntimeVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.RuntimeVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.RuntimeVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A runtime version that a Node can be configured with.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.RuntimeVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.RuntimeVersion) com.google.cloud.tpu.v2alpha1.RuntimeVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_RuntimeVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_RuntimeVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_RuntimeVersion_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_RuntimeVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.RuntimeVersion.class, com.google.cloud.tpu.v2alpha1.RuntimeVersion.Builder.class); + com.google.cloud.tpu.v2alpha1.RuntimeVersion.class, + com.google.cloud.tpu.v2alpha1.RuntimeVersion.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.RuntimeVersion.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_RuntimeVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_RuntimeVersion_descriptor; } @java.lang.Override @@ -371,7 +401,8 @@ public com.google.cloud.tpu.v2alpha1.RuntimeVersion build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.RuntimeVersion buildPartial() { - com.google.cloud.tpu.v2alpha1.RuntimeVersion result = new com.google.cloud.tpu.v2alpha1.RuntimeVersion(this); + com.google.cloud.tpu.v2alpha1.RuntimeVersion result = + new com.google.cloud.tpu.v2alpha1.RuntimeVersion(this); result.name_ = name_; result.version_ = version_; onBuilt(); @@ -382,38 +413,39 @@ public com.google.cloud.tpu.v2alpha1.RuntimeVersion buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.RuntimeVersion) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.RuntimeVersion)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.RuntimeVersion) other); } else { super.mergeFrom(other); return this; @@ -456,22 +488,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - version_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -484,18 +519,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -504,20 +541,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -525,54 +563,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -580,18 +625,20 @@ public Builder setNameBytes( private java.lang.Object version_ = ""; /** + * + * *
      * The runtime version.
      * 
* * string version = 2; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -600,20 +647,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The runtime version.
      * 
* * string version = 2; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -621,61 +669,68 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The runtime version.
      * 
* * string version = 2; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * The runtime version.
      * 
* * string version = 2; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * The runtime version.
      * 
* * string version = 2; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -685,12 +740,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.RuntimeVersion) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.RuntimeVersion) private static final com.google.cloud.tpu.v2alpha1.RuntimeVersion DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.RuntimeVersion(); } @@ -699,27 +754,27 @@ public static com.google.cloud.tpu.v2alpha1.RuntimeVersion getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuntimeVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -734,6 +789,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.RuntimeVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersionName.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersionName.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersionName.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersionName.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersionOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersionOrBuilder.java similarity index 52% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersionOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersionOrBuilder.java index 61ba8883f9e3..06fc731dd3cd 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersionOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersionOrBuilder.java @@ -1,49 +1,75 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface RuntimeVersionOrBuilder extends +public interface RuntimeVersionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.RuntimeVersion) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The runtime version.
    * 
* * string version = 2; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * The runtime version.
    * 
* * string version = 2; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfig.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfig.java similarity index 66% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfig.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfig.java index 0c16941e0d38..88257d0fd561 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfig.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfig.java @@ -1,60 +1,81 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Sets the scheduling options for this node.
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.SchedulingConfig} */ -public final class SchedulingConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SchedulingConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.SchedulingConfig) SchedulingConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SchedulingConfig.newBuilder() to construct. private SchedulingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SchedulingConfig() { - } + + private SchedulingConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SchedulingConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_SchedulingConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_SchedulingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_SchedulingConfig_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_SchedulingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.SchedulingConfig.class, com.google.cloud.tpu.v2alpha1.SchedulingConfig.Builder.class); + com.google.cloud.tpu.v2alpha1.SchedulingConfig.class, + com.google.cloud.tpu.v2alpha1.SchedulingConfig.Builder.class); } public static final int PREEMPTIBLE_FIELD_NUMBER = 1; private boolean preemptible_; /** + * + * *
    * Defines whether the node is preemptible.
    * 
* * bool preemptible = 1; + * * @return The preemptible. */ @java.lang.Override @@ -65,11 +86,14 @@ public boolean getPreemptible() { public static final int RESERVED_FIELD_NUMBER = 2; private boolean reserved_; /** + * + * *
    * Whether the node is created under a reservation.
    * 
* * bool reserved = 2; + * * @return The reserved. */ @java.lang.Override @@ -78,6 +102,7 @@ public boolean getReserved() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -89,8 +114,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (preemptible_ != false) { output.writeBool(1, preemptible_); } @@ -107,12 +131,10 @@ public int getSerializedSize() { size = 0; if (preemptible_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, preemptible_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, preemptible_); } if (reserved_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, reserved_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, reserved_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -122,17 +144,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.SchedulingConfig)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.SchedulingConfig other = (com.google.cloud.tpu.v2alpha1.SchedulingConfig) obj; + com.google.cloud.tpu.v2alpha1.SchedulingConfig other = + (com.google.cloud.tpu.v2alpha1.SchedulingConfig) obj; - if (getPreemptible() - != other.getPreemptible()) return false; - if (getReserved() - != other.getReserved()) return false; + if (getPreemptible() != other.getPreemptible()) return false; + if (getReserved() != other.getReserved()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -145,140 +166,144 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PREEMPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPreemptible()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreemptible()); hash = (37 * hash) + RESERVED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReserved()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReserved()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.tpu.v2alpha1.SchedulingConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.SchedulingConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.SchedulingConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.SchedulingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.SchedulingConfig 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.tpu.v2alpha1.SchedulingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.SchedulingConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.SchedulingConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.SchedulingConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.SchedulingConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.SchedulingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.SchedulingConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.SchedulingConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.SchedulingConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.SchedulingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Sets the scheduling options for this node.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.SchedulingConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.SchedulingConfig) com.google.cloud.tpu.v2alpha1.SchedulingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_SchedulingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_SchedulingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_SchedulingConfig_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_SchedulingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.SchedulingConfig.class, com.google.cloud.tpu.v2alpha1.SchedulingConfig.Builder.class); + com.google.cloud.tpu.v2alpha1.SchedulingConfig.class, + com.google.cloud.tpu.v2alpha1.SchedulingConfig.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.SchedulingConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -290,9 +315,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_SchedulingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_SchedulingConfig_descriptor; } @java.lang.Override @@ -311,7 +336,8 @@ public com.google.cloud.tpu.v2alpha1.SchedulingConfig build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.SchedulingConfig buildPartial() { - com.google.cloud.tpu.v2alpha1.SchedulingConfig result = new com.google.cloud.tpu.v2alpha1.SchedulingConfig(this); + com.google.cloud.tpu.v2alpha1.SchedulingConfig result = + new com.google.cloud.tpu.v2alpha1.SchedulingConfig(this); result.preemptible_ = preemptible_; result.reserved_ = reserved_; onBuilt(); @@ -322,38 +348,39 @@ public com.google.cloud.tpu.v2alpha1.SchedulingConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.SchedulingConfig) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.SchedulingConfig)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.SchedulingConfig) other); } else { super.mergeFrom(other); return this; @@ -394,22 +421,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - preemptible_ = input.readBool(); - - break; - } // case 8 - case 16: { - reserved_ = input.readBool(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + preemptible_ = input.readBool(); + + break; + } // case 8 + case 16: + { + reserved_ = input.readBool(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,13 +450,16 @@ public Builder mergeFrom( return this; } - private boolean preemptible_ ; + private boolean preemptible_; /** + * + * *
      * Defines whether the node is preemptible.
      * 
* * bool preemptible = 1; + * * @return The preemptible. */ @java.lang.Override @@ -434,42 +467,51 @@ public boolean getPreemptible() { return preemptible_; } /** + * + * *
      * Defines whether the node is preemptible.
      * 
* * bool preemptible = 1; + * * @param value The preemptible to set. * @return This builder for chaining. */ public Builder setPreemptible(boolean value) { - + preemptible_ = value; onChanged(); return this; } /** + * + * *
      * Defines whether the node is preemptible.
      * 
* * bool preemptible = 1; + * * @return This builder for chaining. */ public Builder clearPreemptible() { - + preemptible_ = false; onChanged(); return this; } - private boolean reserved_ ; + private boolean reserved_; /** + * + * *
      * Whether the node is created under a reservation.
      * 
* * bool reserved = 2; + * * @return The reserved. */ @java.lang.Override @@ -477,37 +519,43 @@ public boolean getReserved() { return reserved_; } /** + * + * *
      * Whether the node is created under a reservation.
      * 
* * bool reserved = 2; + * * @param value The reserved to set. * @return This builder for chaining. */ public Builder setReserved(boolean value) { - + reserved_ = value; onChanged(); return this; } /** + * + * *
      * Whether the node is created under a reservation.
      * 
* * bool reserved = 2; + * * @return This builder for chaining. */ public Builder clearReserved() { - + reserved_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -517,12 +565,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.SchedulingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.SchedulingConfig) private static final com.google.cloud.tpu.v2alpha1.SchedulingConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.SchedulingConfig(); } @@ -531,27 +579,27 @@ public static com.google.cloud.tpu.v2alpha1.SchedulingConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SchedulingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchedulingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -566,6 +614,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.SchedulingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfigOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfigOrBuilder.java new file mode 100644 index 000000000000..4f174ebe747d --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfigOrBuilder.java @@ -0,0 +1,51 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto + +package com.google.cloud.tpu.v2alpha1; + +public interface SchedulingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.SchedulingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Defines whether the node is preemptible.
+   * 
+ * + * bool preemptible = 1; + * + * @return The preemptible. + */ + boolean getPreemptible(); + + /** + * + * + *
+   * Whether the node is created under a reservation.
+   * 
+ * + * bool reserved = 2; + * + * @return The reserved. + */ + boolean getReserved(); +} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceAccount.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceAccount.java similarity index 69% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceAccount.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceAccount.java index 5a539b853547..b5ea84fe9ab9 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceAccount.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceAccount.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * A service account.
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ServiceAccount} */ -public final class ServiceAccount extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ServiceAccount extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.ServiceAccount) ServiceAccountOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ServiceAccount.newBuilder() to construct. private ServiceAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ServiceAccount() { email_ = ""; scope_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,38 +44,42 @@ private ServiceAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ServiceAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ServiceAccount_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ServiceAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ServiceAccount_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ServiceAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ServiceAccount.class, com.google.cloud.tpu.v2alpha1.ServiceAccount.Builder.class); + com.google.cloud.tpu.v2alpha1.ServiceAccount.class, + com.google.cloud.tpu.v2alpha1.ServiceAccount.Builder.class); } public static final int EMAIL_FIELD_NUMBER = 1; private volatile java.lang.Object email_; /** + * + * *
    * Email address of the service account. If empty, default Compute service
    * account will be used.
    * 
* * string email = 1; + * * @return The email. */ @java.lang.Override @@ -66,30 +88,30 @@ public java.lang.String getEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** + * + * *
    * Email address of the service account. If empty, default Compute service
    * account will be used.
    * 
* * string email = 1; + * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -100,37 +122,45 @@ public java.lang.String getEmail() { public static final int SCOPE_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList scope_; /** + * + * *
    * The list of scopes to be made available for this service account. If empty,
    * access to all Cloud APIs will be allowed.
    * 
* * repeated string scope = 2; + * * @return A list containing the scope. */ - public com.google.protobuf.ProtocolStringList - getScopeList() { + public com.google.protobuf.ProtocolStringList getScopeList() { return scope_; } /** + * + * *
    * The list of scopes to be made available for this service account. If empty,
    * access to all Cloud APIs will be allowed.
    * 
* * repeated string scope = 2; + * * @return The count of scope. */ public int getScopeCount() { return scope_.size(); } /** + * + * *
    * The list of scopes to be made available for this service account. If empty,
    * access to all Cloud APIs will be allowed.
    * 
* * repeated string scope = 2; + * * @param index The index of the element to return. * @return The scope at the given index. */ @@ -138,21 +168,24 @@ public java.lang.String getScope(int index) { return scope_.get(index); } /** + * + * *
    * The list of scopes to be made available for this service account. If empty,
    * access to all Cloud APIs will be allowed.
    * 
* * repeated string scope = 2; + * * @param index The index of the value to return. * @return The bytes of the scope at the given index. */ - public com.google.protobuf.ByteString - getScopeBytes(int index) { + public com.google.protobuf.ByteString getScopeBytes(int index) { return scope_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,8 +197,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, email_); } @@ -200,17 +232,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.ServiceAccount)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.ServiceAccount other = (com.google.cloud.tpu.v2alpha1.ServiceAccount) obj; + com.google.cloud.tpu.v2alpha1.ServiceAccount other = + (com.google.cloud.tpu.v2alpha1.ServiceAccount) obj; - if (!getEmail() - .equals(other.getEmail())) return false; - if (!getScopeList() - .equals(other.getScopeList())) return false; + if (!getEmail().equals(other.getEmail())) return false; + if (!getScopeList().equals(other.getScopeList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,130 +264,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.ServiceAccount parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.ServiceAccount parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ServiceAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ServiceAccount parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ServiceAccount 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.tpu.v2alpha1.ServiceAccount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ServiceAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ServiceAccount parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ServiceAccount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.ServiceAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.ServiceAccount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ServiceAccount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ServiceAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ServiceAccount parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.ServiceAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A service account.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ServiceAccount} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.ServiceAccount) com.google.cloud.tpu.v2alpha1.ServiceAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ServiceAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ServiceAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ServiceAccount_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ServiceAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ServiceAccount.class, com.google.cloud.tpu.v2alpha1.ServiceAccount.Builder.class); + com.google.cloud.tpu.v2alpha1.ServiceAccount.class, + com.google.cloud.tpu.v2alpha1.ServiceAccount.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.ServiceAccount.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -368,9 +405,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ServiceAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ServiceAccount_descriptor; } @java.lang.Override @@ -389,7 +426,8 @@ public com.google.cloud.tpu.v2alpha1.ServiceAccount build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.ServiceAccount buildPartial() { - com.google.cloud.tpu.v2alpha1.ServiceAccount result = new com.google.cloud.tpu.v2alpha1.ServiceAccount(this); + com.google.cloud.tpu.v2alpha1.ServiceAccount result = + new com.google.cloud.tpu.v2alpha1.ServiceAccount(this); int from_bitField0_ = bitField0_; result.email_ = email_; if (((bitField0_ & 0x00000001) != 0)) { @@ -405,38 +443,39 @@ public com.google.cloud.tpu.v2alpha1.ServiceAccount buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.ServiceAccount) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.ServiceAccount)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.ServiceAccount) other); } else { super.mergeFrom(other); return this; @@ -485,23 +524,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - email_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureScopeIsMutable(); - scope_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + email_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopeIsMutable(); + scope_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -511,23 +553,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object email_ = ""; /** + * + * *
      * Email address of the service account. If empty, default Compute service
      * account will be used.
      * 
* * string email = 1; + * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; @@ -536,21 +581,22 @@ public java.lang.String getEmail() { } } /** + * + * *
      * Email address of the service account. If empty, default Compute service
      * account will be used.
      * 
* * string email = 1; + * * @return The bytes for email. */ - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -558,101 +604,118 @@ public java.lang.String getEmail() { } } /** + * + * *
      * Email address of the service account. If empty, default Compute service
      * account will be used.
      * 
* * string email = 1; + * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail( - java.lang.String value) { + public Builder setEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + email_ = value; onChanged(); return this; } /** + * + * *
      * Email address of the service account. If empty, default Compute service
      * account will be used.
      * 
* * string email = 1; + * * @return This builder for chaining. */ public Builder clearEmail() { - + email_ = getDefaultInstance().getEmail(); onChanged(); return this; } /** + * + * *
      * Email address of the service account. If empty, default Compute service
      * account will be used.
      * 
* * string email = 1; + * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + email_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList scope_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList scope_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureScopeIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { scope_ = new com.google.protobuf.LazyStringArrayList(scope_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The list of scopes to be made available for this service account. If empty,
      * access to all Cloud APIs will be allowed.
      * 
* * repeated string scope = 2; + * * @return A list containing the scope. */ - public com.google.protobuf.ProtocolStringList - getScopeList() { + public com.google.protobuf.ProtocolStringList getScopeList() { return scope_.getUnmodifiableView(); } /** + * + * *
      * The list of scopes to be made available for this service account. If empty,
      * access to all Cloud APIs will be allowed.
      * 
* * repeated string scope = 2; + * * @return The count of scope. */ public int getScopeCount() { return scope_.size(); } /** + * + * *
      * The list of scopes to be made available for this service account. If empty,
      * access to all Cloud APIs will be allowed.
      * 
* * repeated string scope = 2; + * * @param index The index of the element to return. * @return The scope at the given index. */ @@ -660,85 +723,95 @@ public java.lang.String getScope(int index) { return scope_.get(index); } /** + * + * *
      * The list of scopes to be made available for this service account. If empty,
      * access to all Cloud APIs will be allowed.
      * 
* * repeated string scope = 2; + * * @param index The index of the value to return. * @return The bytes of the scope at the given index. */ - public com.google.protobuf.ByteString - getScopeBytes(int index) { + public com.google.protobuf.ByteString getScopeBytes(int index) { return scope_.getByteString(index); } /** + * + * *
      * The list of scopes to be made available for this service account. If empty,
      * access to all Cloud APIs will be allowed.
      * 
* * repeated string scope = 2; + * * @param index The index to set the value at. * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope( - int index, java.lang.String value) { + public Builder setScope(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureScopeIsMutable(); + throw new NullPointerException(); + } + ensureScopeIsMutable(); scope_.set(index, value); onChanged(); return this; } /** + * + * *
      * The list of scopes to be made available for this service account. If empty,
      * access to all Cloud APIs will be allowed.
      * 
* * repeated string scope = 2; + * * @param value The scope to add. * @return This builder for chaining. */ - public Builder addScope( - java.lang.String value) { + public Builder addScope(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureScopeIsMutable(); + throw new NullPointerException(); + } + ensureScopeIsMutable(); scope_.add(value); onChanged(); return this; } /** + * + * *
      * The list of scopes to be made available for this service account. If empty,
      * access to all Cloud APIs will be allowed.
      * 
* * repeated string scope = 2; + * * @param values The scope to add. * @return This builder for chaining. */ - public Builder addAllScope( - java.lang.Iterable values) { + public Builder addAllScope(java.lang.Iterable values) { ensureScopeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, scope_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scope_); onChanged(); return this; } /** + * + * *
      * The list of scopes to be made available for this service account. If empty,
      * access to all Cloud APIs will be allowed.
      * 
* * repeated string scope = 2; + * * @return This builder for chaining. */ public Builder clearScope() { @@ -748,29 +821,31 @@ public Builder clearScope() { return this; } /** + * + * *
      * The list of scopes to be made available for this service account. If empty,
      * access to all Cloud APIs will be allowed.
      * 
* * repeated string scope = 2; + * * @param value The bytes of the scope to add. * @return This builder for chaining. */ - public Builder addScopeBytes( - com.google.protobuf.ByteString value) { + public Builder addScopeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureScopeIsMutable(); scope_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -780,12 +855,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.ServiceAccount) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.ServiceAccount) private static final com.google.cloud.tpu.v2alpha1.ServiceAccount DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.ServiceAccount(); } @@ -794,27 +869,27 @@ public static com.google.cloud.tpu.v2alpha1.ServiceAccount getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -829,6 +904,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.ServiceAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceAccountOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceAccountOrBuilder.java similarity index 68% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceAccountOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceAccountOrBuilder.java index b066871c5cad..34e4ff1082bf 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceAccountOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceAccountOrBuilder.java @@ -1,76 +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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface ServiceAccountOrBuilder extends +public interface ServiceAccountOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.ServiceAccount) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Email address of the service account. If empty, default Compute service
    * account will be used.
    * 
* * string email = 1; + * * @return The email. */ java.lang.String getEmail(); /** + * + * *
    * Email address of the service account. If empty, default Compute service
    * account will be used.
    * 
* * string email = 1; + * * @return The bytes for email. */ - com.google.protobuf.ByteString - getEmailBytes(); + com.google.protobuf.ByteString getEmailBytes(); /** + * + * *
    * The list of scopes to be made available for this service account. If empty,
    * access to all Cloud APIs will be allowed.
    * 
* * repeated string scope = 2; + * * @return A list containing the scope. */ - java.util.List - getScopeList(); + java.util.List getScopeList(); /** + * + * *
    * The list of scopes to be made available for this service account. If empty,
    * access to all Cloud APIs will be allowed.
    * 
* * repeated string scope = 2; + * * @return The count of scope. */ int getScopeCount(); /** + * + * *
    * The list of scopes to be made available for this service account. If empty,
    * access to all Cloud APIs will be allowed.
    * 
* * repeated string scope = 2; + * * @param index The index of the element to return. * @return The scope at the given index. */ java.lang.String getScope(int index); /** + * + * *
    * The list of scopes to be made available for this service account. If empty,
    * access to all Cloud APIs will be allowed.
    * 
* * repeated string scope = 2; + * * @param index The index of the value to return. * @return The bytes of the scope at the given index. */ - com.google.protobuf.ByteString - getScopeBytes(int index); + com.google.protobuf.ByteString getScopeBytes(int index); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceIdentity.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceIdentity.java similarity index 65% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceIdentity.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceIdentity.java index 225377b132b2..c7e5a1654140 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceIdentity.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceIdentity.java @@ -1,61 +1,83 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * The per-product per-project service identity for Cloud TPU service.
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ServiceIdentity} */ -public final class ServiceIdentity extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ServiceIdentity extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.ServiceIdentity) ServiceIdentityOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ServiceIdentity.newBuilder() to construct. private ServiceIdentity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ServiceIdentity() { email_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ServiceIdentity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ServiceIdentity_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ServiceIdentity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ServiceIdentity_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ServiceIdentity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ServiceIdentity.class, com.google.cloud.tpu.v2alpha1.ServiceIdentity.Builder.class); + com.google.cloud.tpu.v2alpha1.ServiceIdentity.class, + com.google.cloud.tpu.v2alpha1.ServiceIdentity.Builder.class); } public static final int EMAIL_FIELD_NUMBER = 1; private volatile java.lang.Object email_; /** + * + * *
    * The email address of the service identity.
    * 
* * string email = 1; + * * @return The email. */ @java.lang.Override @@ -64,29 +86,29 @@ public java.lang.String getEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** + * + * *
    * The email address of the service identity.
    * 
* * string email = 1; + * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -95,6 +117,7 @@ public java.lang.String getEmail() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +129,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, email_); } @@ -131,15 +153,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.ServiceIdentity)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.ServiceIdentity other = (com.google.cloud.tpu.v2alpha1.ServiceIdentity) obj; + com.google.cloud.tpu.v2alpha1.ServiceIdentity other = + (com.google.cloud.tpu.v2alpha1.ServiceIdentity) obj; - if (!getEmail() - .equals(other.getEmail())) return false; + if (!getEmail().equals(other.getEmail())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +180,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.ServiceIdentity parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.ServiceIdentity parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ServiceIdentity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ServiceIdentity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ServiceIdentity 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.tpu.v2alpha1.ServiceIdentity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ServiceIdentity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ServiceIdentity parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ServiceIdentity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.ServiceIdentity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.ServiceIdentity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ServiceIdentity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ServiceIdentity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ServiceIdentity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.ServiceIdentity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The per-product per-project service identity for Cloud TPU service.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ServiceIdentity} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.ServiceIdentity) com.google.cloud.tpu.v2alpha1.ServiceIdentityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ServiceIdentity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ServiceIdentity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ServiceIdentity_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ServiceIdentity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ServiceIdentity.class, com.google.cloud.tpu.v2alpha1.ServiceIdentity.Builder.class); + com.google.cloud.tpu.v2alpha1.ServiceIdentity.class, + com.google.cloud.tpu.v2alpha1.ServiceIdentity.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.ServiceIdentity.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +319,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ServiceIdentity_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ServiceIdentity_descriptor; } @java.lang.Override @@ -312,7 +340,8 @@ public com.google.cloud.tpu.v2alpha1.ServiceIdentity build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.ServiceIdentity buildPartial() { - com.google.cloud.tpu.v2alpha1.ServiceIdentity result = new com.google.cloud.tpu.v2alpha1.ServiceIdentity(this); + com.google.cloud.tpu.v2alpha1.ServiceIdentity result = + new com.google.cloud.tpu.v2alpha1.ServiceIdentity(this); result.email_ = email_; onBuilt(); return result; @@ -322,38 +351,39 @@ public com.google.cloud.tpu.v2alpha1.ServiceIdentity buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.ServiceIdentity) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.ServiceIdentity)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.ServiceIdentity) other); } else { super.mergeFrom(other); return this; @@ -392,17 +422,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - email_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + email_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +447,20 @@ public Builder mergeFrom( private java.lang.Object email_ = ""; /** + * + * *
      * The email address of the service identity.
      * 
* * string email = 1; + * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; @@ -435,20 +469,21 @@ public java.lang.String getEmail() { } } /** + * + * *
      * The email address of the service identity.
      * 
* * string email = 1; + * * @return The bytes for email. */ - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -456,61 +491,68 @@ public java.lang.String getEmail() { } } /** + * + * *
      * The email address of the service identity.
      * 
* * string email = 1; + * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail( - java.lang.String value) { + public Builder setEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + email_ = value; onChanged(); return this; } /** + * + * *
      * The email address of the service identity.
      * 
* * string email = 1; + * * @return This builder for chaining. */ public Builder clearEmail() { - + email_ = getDefaultInstance().getEmail(); onChanged(); return this; } /** + * + * *
      * The email address of the service identity.
      * 
* * string email = 1; + * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + email_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +562,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.ServiceIdentity) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.ServiceIdentity) private static final com.google.cloud.tpu.v2alpha1.ServiceIdentity DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.ServiceIdentity(); } @@ -534,27 +576,27 @@ public static com.google.cloud.tpu.v2alpha1.ServiceIdentity getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceIdentity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceIdentity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +611,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.ServiceIdentity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceIdentityOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceIdentityOrBuilder.java new file mode 100644 index 000000000000..41e7346d40ba --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceIdentityOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto + +package com.google.cloud.tpu.v2alpha1; + +public interface ServiceIdentityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.ServiceIdentity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The email address of the service identity.
+   * 
+ * + * string email = 1; + * + * @return The email. + */ + java.lang.String getEmail(); + /** + * + * + *
+   * The email address of the service identity.
+   * 
+ * + * string email = 1; + * + * @return The bytes for email. + */ + com.google.protobuf.ByteString getEmailBytes(); +} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ShieldedInstanceConfig.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ShieldedInstanceConfig.java similarity index 64% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ShieldedInstanceConfig.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ShieldedInstanceConfig.java index a5db02be0049..01ee73e7e08e 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ShieldedInstanceConfig.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ShieldedInstanceConfig.java @@ -1,60 +1,81 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * A set of Shielded Instance options.
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ShieldedInstanceConfig} */ -public final class ShieldedInstanceConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ShieldedInstanceConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.ShieldedInstanceConfig) ShieldedInstanceConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ShieldedInstanceConfig.newBuilder() to construct. private ShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ShieldedInstanceConfig() { - } + + private ShieldedInstanceConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ShieldedInstanceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.class, com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.Builder.class); + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.class, + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.Builder.class); } public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1; private boolean enableSecureBoot_; /** + * + * *
    * Defines whether the instance has Secure Boot enabled.
    * 
* * bool enable_secure_boot = 1; + * * @return The enableSecureBoot. */ @java.lang.Override @@ -63,6 +84,7 @@ public boolean getEnableSecureBoot() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -74,8 +96,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enableSecureBoot_ != false) { output.writeBool(1, enableSecureBoot_); } @@ -89,8 +110,7 @@ public int getSerializedSize() { size = 0; if (enableSecureBoot_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableSecureBoot_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSecureBoot_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -100,15 +120,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig other = (com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig) obj; + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig other = + (com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig) obj; - if (getEnableSecureBoot() - != other.getEnableSecureBoot()) return false; + if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -121,137 +141,142 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_SECURE_BOOT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSecureBoot()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSecureBoot()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig 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.tpu.v2alpha1.ShieldedInstanceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A set of Shielded Instance options.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.ShieldedInstanceConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.ShieldedInstanceConfig) com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.class, com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.Builder.class); + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.class, + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -261,9 +286,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_descriptor; } @java.lang.Override @@ -282,7 +307,8 @@ public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig buildPartial() { - com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig result = new com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig(this); + com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig result = + new com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig(this); result.enableSecureBoot_ = enableSecureBoot_; onBuilt(); return result; @@ -292,38 +318,39 @@ public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.ShieldedInstanceConfig) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig) other); } else { super.mergeFrom(other); return this; @@ -331,7 +358,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig other) { - if (other == com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.getDefaultInstance()) + return this; if (other.getEnableSecureBoot() != false) { setEnableSecureBoot(other.getEnableSecureBoot()); } @@ -361,17 +389,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableSecureBoot_ = input.readBool(); - - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableSecureBoot_ = input.readBool(); + + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -382,13 +412,16 @@ public Builder mergeFrom( return this; } - private boolean enableSecureBoot_ ; + private boolean enableSecureBoot_; /** + * + * *
      * Defines whether the instance has Secure Boot enabled.
      * 
* * bool enable_secure_boot = 1; + * * @return The enableSecureBoot. */ @java.lang.Override @@ -396,37 +429,43 @@ public boolean getEnableSecureBoot() { return enableSecureBoot_; } /** + * + * *
      * Defines whether the instance has Secure Boot enabled.
      * 
* * bool enable_secure_boot = 1; + * * @param value The enableSecureBoot to set. * @return This builder for chaining. */ public Builder setEnableSecureBoot(boolean value) { - + enableSecureBoot_ = value; onChanged(); return this; } /** + * + * *
      * Defines whether the instance has Secure Boot enabled.
      * 
* * bool enable_secure_boot = 1; + * * @return This builder for chaining. */ public Builder clearEnableSecureBoot() { - + enableSecureBoot_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -436,12 +475,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.ShieldedInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.ShieldedInstanceConfig) private static final com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig(); } @@ -450,27 +489,27 @@ public static com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShieldedInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShieldedInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -485,6 +524,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ShieldedInstanceConfigOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ShieldedInstanceConfigOrBuilder.java new file mode 100644 index 000000000000..6172d0e72cd5 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ShieldedInstanceConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto + +package com.google.cloud.tpu.v2alpha1; + +public interface ShieldedInstanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.ShieldedInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Defines whether the instance has Secure Boot enabled.
+   * 
+ * + * bool enable_secure_boot = 1; + * + * @return The enableSecureBoot. + */ + boolean getEnableSecureBoot(); +} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SimulateMaintenanceEventRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SimulateMaintenanceEventRequest.java similarity index 67% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SimulateMaintenanceEventRequest.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SimulateMaintenanceEventRequest.java index af3593be0065..8e9a629a0cde 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SimulateMaintenanceEventRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SimulateMaintenanceEventRequest.java @@ -1,24 +1,43 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Request for [SimulateMaintenanceEvent][google.cloud.tpu.v2alpha1.Tpu.SimulateMaintenanceEvent].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest} */ -public final class SimulateMaintenanceEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SimulateMaintenanceEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest) SimulateMaintenanceEventRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SimulateMaintenanceEventRequest.newBuilder() to construct. - private SimulateMaintenanceEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SimulateMaintenanceEventRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SimulateMaintenanceEventRequest() { name_ = ""; workerIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,37 +45,43 @@ private SimulateMaintenanceEventRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SimulateMaintenanceEventRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_SimulateMaintenanceEventRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_SimulateMaintenanceEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_SimulateMaintenanceEventRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_SimulateMaintenanceEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest.class, com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest.class, + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,6 +125,8 @@ public java.lang.String getName() { public static final int WORKER_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList workerIds_; /** + * + * *
    * The 0-based worker ID. If it is empty, worker ID 0 will be selected for
    * maintenance event simulation. A maintenance event will only be fired on the
@@ -106,13 +135,15 @@ public java.lang.String getName() {
    * 
* * repeated string worker_ids = 2; + * * @return A list containing the workerIds. */ - public com.google.protobuf.ProtocolStringList - getWorkerIdsList() { + public com.google.protobuf.ProtocolStringList getWorkerIdsList() { return workerIds_; } /** + * + * *
    * The 0-based worker ID. If it is empty, worker ID 0 will be selected for
    * maintenance event simulation. A maintenance event will only be fired on the
@@ -121,12 +152,15 @@ public java.lang.String getName() {
    * 
* * repeated string worker_ids = 2; + * * @return The count of workerIds. */ public int getWorkerIdsCount() { return workerIds_.size(); } /** + * + * *
    * The 0-based worker ID. If it is empty, worker ID 0 will be selected for
    * maintenance event simulation. A maintenance event will only be fired on the
@@ -135,6 +169,7 @@ public int getWorkerIdsCount() {
    * 
* * repeated string worker_ids = 2; + * * @param index The index of the element to return. * @return The workerIds at the given index. */ @@ -142,6 +177,8 @@ public java.lang.String getWorkerIds(int index) { return workerIds_.get(index); } /** + * + * *
    * The 0-based worker ID. If it is empty, worker ID 0 will be selected for
    * maintenance event simulation. A maintenance event will only be fired on the
@@ -150,15 +187,16 @@ public java.lang.String getWorkerIds(int index) {
    * 
* * repeated string worker_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the workerIds at the given index. */ - public com.google.protobuf.ByteString - getWorkerIdsBytes(int index) { + public com.google.protobuf.ByteString getWorkerIdsBytes(int index) { return workerIds_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +208,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -206,17 +243,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest other = (com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest) obj; + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest other = + (com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getWorkerIdsList() - .equals(other.getWorkerIdsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getWorkerIdsList().equals(other.getWorkerIdsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,129 +276,136 @@ public int hashCode() { } public static com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest 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.tpu.v2alpha1.SimulateMaintenanceEventRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [SimulateMaintenanceEvent][google.cloud.tpu.v2alpha1.Tpu.SimulateMaintenanceEvent].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest) com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_SimulateMaintenanceEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_SimulateMaintenanceEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_SimulateMaintenanceEventRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_SimulateMaintenanceEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest.class, com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest.class, + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,13 +417,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_SimulateMaintenanceEventRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_SimulateMaintenanceEventRequest_descriptor; } @java.lang.Override - public com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest getDefaultInstanceForType() { + public com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest + getDefaultInstanceForType() { return com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest.getDefaultInstance(); } @@ -395,7 +439,8 @@ public com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest buildPartial() { - com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest result = new com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest(this); + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest result = + new com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { @@ -411,38 +456,39 @@ public com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.SimulateMaintenanceEventRequest) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest) other); } else { super.mergeFrom(other); return this; @@ -450,7 +496,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest other) { - if (other == com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -491,23 +539,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureWorkerIdsIsMutable(); - workerIds_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureWorkerIdsIsMutable(); + workerIds_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -517,22 +568,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -541,20 +597,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -562,67 +621,84 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList workerIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList workerIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureWorkerIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { workerIds_ = new com.google.protobuf.LazyStringArrayList(workerIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The 0-based worker ID. If it is empty, worker ID 0 will be selected for
      * maintenance event simulation. A maintenance event will only be fired on the
@@ -631,13 +707,15 @@ private void ensureWorkerIdsIsMutable() {
      * 
* * repeated string worker_ids = 2; + * * @return A list containing the workerIds. */ - public com.google.protobuf.ProtocolStringList - getWorkerIdsList() { + public com.google.protobuf.ProtocolStringList getWorkerIdsList() { return workerIds_.getUnmodifiableView(); } /** + * + * *
      * The 0-based worker ID. If it is empty, worker ID 0 will be selected for
      * maintenance event simulation. A maintenance event will only be fired on the
@@ -646,12 +724,15 @@ private void ensureWorkerIdsIsMutable() {
      * 
* * repeated string worker_ids = 2; + * * @return The count of workerIds. */ public int getWorkerIdsCount() { return workerIds_.size(); } /** + * + * *
      * The 0-based worker ID. If it is empty, worker ID 0 will be selected for
      * maintenance event simulation. A maintenance event will only be fired on the
@@ -660,6 +741,7 @@ public int getWorkerIdsCount() {
      * 
* * repeated string worker_ids = 2; + * * @param index The index of the element to return. * @return The workerIds at the given index. */ @@ -667,6 +749,8 @@ public java.lang.String getWorkerIds(int index) { return workerIds_.get(index); } /** + * + * *
      * The 0-based worker ID. If it is empty, worker ID 0 will be selected for
      * maintenance event simulation. A maintenance event will only be fired on the
@@ -675,14 +759,16 @@ public java.lang.String getWorkerIds(int index) {
      * 
* * repeated string worker_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the workerIds at the given index. */ - public com.google.protobuf.ByteString - getWorkerIdsBytes(int index) { + public com.google.protobuf.ByteString getWorkerIdsBytes(int index) { return workerIds_.getByteString(index); } /** + * + * *
      * The 0-based worker ID. If it is empty, worker ID 0 will be selected for
      * maintenance event simulation. A maintenance event will only be fired on the
@@ -691,21 +777,23 @@ public java.lang.String getWorkerIds(int index) {
      * 
* * repeated string worker_ids = 2; + * * @param index The index to set the value at. * @param value The workerIds to set. * @return This builder for chaining. */ - public Builder setWorkerIds( - int index, java.lang.String value) { + public Builder setWorkerIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWorkerIdsIsMutable(); + throw new NullPointerException(); + } + ensureWorkerIdsIsMutable(); workerIds_.set(index, value); onChanged(); return this; } /** + * + * *
      * The 0-based worker ID. If it is empty, worker ID 0 will be selected for
      * maintenance event simulation. A maintenance event will only be fired on the
@@ -714,20 +802,22 @@ public Builder setWorkerIds(
      * 
* * repeated string worker_ids = 2; + * * @param value The workerIds to add. * @return This builder for chaining. */ - public Builder addWorkerIds( - java.lang.String value) { + public Builder addWorkerIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWorkerIdsIsMutable(); + throw new NullPointerException(); + } + ensureWorkerIdsIsMutable(); workerIds_.add(value); onChanged(); return this; } /** + * + * *
      * The 0-based worker ID. If it is empty, worker ID 0 will be selected for
      * maintenance event simulation. A maintenance event will only be fired on the
@@ -736,18 +826,19 @@ public Builder addWorkerIds(
      * 
* * repeated string worker_ids = 2; + * * @param values The workerIds to add. * @return This builder for chaining. */ - public Builder addAllWorkerIds( - java.lang.Iterable values) { + public Builder addAllWorkerIds(java.lang.Iterable values) { ensureWorkerIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workerIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workerIds_); onChanged(); return this; } /** + * + * *
      * The 0-based worker ID. If it is empty, worker ID 0 will be selected for
      * maintenance event simulation. A maintenance event will only be fired on the
@@ -756,6 +847,7 @@ public Builder addAllWorkerIds(
      * 
* * repeated string worker_ids = 2; + * * @return This builder for chaining. */ public Builder clearWorkerIds() { @@ -765,6 +857,8 @@ public Builder clearWorkerIds() { return this; } /** + * + * *
      * The 0-based worker ID. If it is empty, worker ID 0 will be selected for
      * maintenance event simulation. A maintenance event will only be fired on the
@@ -773,23 +867,23 @@ public Builder clearWorkerIds() {
      * 
* * repeated string worker_ids = 2; + * * @param value The bytes of the workerIds to add. * @return This builder for chaining. */ - public Builder addWorkerIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addWorkerIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureWorkerIdsIsMutable(); workerIds_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -799,12 +893,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest) - private static final com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest DEFAULT_INSTANCE; + private static final com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest(); } @@ -813,27 +908,27 @@ public static com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SimulateMaintenanceEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SimulateMaintenanceEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -848,6 +943,4 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SimulateMaintenanceEventRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SimulateMaintenanceEventRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SimulateMaintenanceEventRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SimulateMaintenanceEventRequestOrBuilder.java index d39424314b2f..f2d12a2d72ea 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SimulateMaintenanceEventRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SimulateMaintenanceEventRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface SimulateMaintenanceEventRequestOrBuilder extends +public interface SimulateMaintenanceEventRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The 0-based worker ID. If it is empty, worker ID 0 will be selected for
    * maintenance event simulation. A maintenance event will only be fired on the
@@ -36,11 +63,13 @@ public interface SimulateMaintenanceEventRequestOrBuilder extends
    * 
* * repeated string worker_ids = 2; + * * @return A list containing the workerIds. */ - java.util.List - getWorkerIdsList(); + java.util.List getWorkerIdsList(); /** + * + * *
    * The 0-based worker ID. If it is empty, worker ID 0 will be selected for
    * maintenance event simulation. A maintenance event will only be fired on the
@@ -49,10 +78,13 @@ public interface SimulateMaintenanceEventRequestOrBuilder extends
    * 
* * repeated string worker_ids = 2; + * * @return The count of workerIds. */ int getWorkerIdsCount(); /** + * + * *
    * The 0-based worker ID. If it is empty, worker ID 0 will be selected for
    * maintenance event simulation. A maintenance event will only be fired on the
@@ -61,11 +93,14 @@ public interface SimulateMaintenanceEventRequestOrBuilder extends
    * 
* * repeated string worker_ids = 2; + * * @param index The index of the element to return. * @return The workerIds at the given index. */ java.lang.String getWorkerIds(int index); /** + * + * *
    * The 0-based worker ID. If it is empty, worker ID 0 will be selected for
    * maintenance event simulation. A maintenance event will only be fired on the
@@ -74,9 +109,9 @@ public interface SimulateMaintenanceEventRequestOrBuilder extends
    * 
* * repeated string worker_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the workerIds at the given index. */ - com.google.protobuf.ByteString - getWorkerIdsBytes(int index); + com.google.protobuf.ByteString getWorkerIdsBytes(int index); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StartNodeRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StartNodeRequest.java similarity index 61% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StartNodeRequest.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StartNodeRequest.java index 67c1c76e232e..4736158d8da4 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StartNodeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StartNodeRequest.java @@ -1,61 +1,85 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Request for [StartNode][google.cloud.tpu.v2alpha1.Tpu.StartNode].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.StartNodeRequest} */ -public final class StartNodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.StartNodeRequest) StartNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartNodeRequest.newBuilder() to construct. private StartNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartNodeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartNodeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_StartNodeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_StartNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_StartNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_StartNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.StartNodeRequest.class, com.google.cloud.tpu.v2alpha1.StartNodeRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.StartNodeRequest.class, + com.google.cloud.tpu.v2alpha1.StartNodeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.StartNodeRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.StartNodeRequest other = (com.google.cloud.tpu.v2alpha1.StartNodeRequest) obj; + com.google.cloud.tpu.v2alpha1.StartNodeRequest other = + (com.google.cloud.tpu.v2alpha1.StartNodeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +184,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.StartNodeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.StartNodeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.StartNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.StartNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.StartNodeRequest 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.tpu.v2alpha1.StartNodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.StartNodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.StartNodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.StartNodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.StartNodeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.StartNodeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.StartNodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.StartNodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.StartNodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.StartNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [StartNode][google.cloud.tpu.v2alpha1.Tpu.StartNode].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.StartNodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.StartNodeRequest) com.google.cloud.tpu.v2alpha1.StartNodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_StartNodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_StartNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_StartNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_StartNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.StartNodeRequest.class, com.google.cloud.tpu.v2alpha1.StartNodeRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.StartNodeRequest.class, + com.google.cloud.tpu.v2alpha1.StartNodeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.StartNodeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_StartNodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_StartNodeRequest_descriptor; } @java.lang.Override @@ -312,7 +344,8 @@ public com.google.cloud.tpu.v2alpha1.StartNodeRequest build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.StartNodeRequest buildPartial() { - com.google.cloud.tpu.v2alpha1.StartNodeRequest result = new com.google.cloud.tpu.v2alpha1.StartNodeRequest(this); + com.google.cloud.tpu.v2alpha1.StartNodeRequest result = + new com.google.cloud.tpu.v2alpha1.StartNodeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +355,39 @@ public com.google.cloud.tpu.v2alpha1.StartNodeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.StartNodeRequest) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.StartNodeRequest)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.StartNodeRequest) other); } else { super.mergeFrom(other); return this; @@ -392,17 +426,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +451,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -435,20 +475,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -456,61 +499,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +576,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.StartNodeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.StartNodeRequest) private static final com.google.cloud.tpu.v2alpha1.StartNodeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.StartNodeRequest(); } @@ -534,27 +590,27 @@ public static com.google.cloud.tpu.v2alpha1.StartNodeRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartNodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartNodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +625,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.StartNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StartNodeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StartNodeRequestOrBuilder.java new file mode 100644 index 000000000000..dd57e32134c3 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StartNodeRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +package com.google.cloud.tpu.v2alpha1; + +public interface StartNodeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.StartNodeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StopNodeRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StopNodeRequest.java similarity index 61% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StopNodeRequest.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StopNodeRequest.java index d3569030ee33..8f1cb269d416 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StopNodeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StopNodeRequest.java @@ -1,61 +1,85 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Request for [StopNode][google.cloud.tpu.v2alpha1.Tpu.StopNode].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.StopNodeRequest} */ -public final class StopNodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.StopNodeRequest) StopNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopNodeRequest.newBuilder() to construct. private StopNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StopNodeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopNodeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_StopNodeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_StopNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_StopNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_StopNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.StopNodeRequest.class, com.google.cloud.tpu.v2alpha1.StopNodeRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.StopNodeRequest.class, + com.google.cloud.tpu.v2alpha1.StopNodeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.StopNodeRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.StopNodeRequest other = (com.google.cloud.tpu.v2alpha1.StopNodeRequest) obj; + com.google.cloud.tpu.v2alpha1.StopNodeRequest other = + (com.google.cloud.tpu.v2alpha1.StopNodeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +184,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.StopNodeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.StopNodeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.StopNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.StopNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.StopNodeRequest 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.tpu.v2alpha1.StopNodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.StopNodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.StopNodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.StopNodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.StopNodeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.StopNodeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.StopNodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.StopNodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.StopNodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.StopNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [StopNode][google.cloud.tpu.v2alpha1.Tpu.StopNode].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.StopNodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.StopNodeRequest) com.google.cloud.tpu.v2alpha1.StopNodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_StopNodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_StopNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_StopNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_StopNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.StopNodeRequest.class, com.google.cloud.tpu.v2alpha1.StopNodeRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.StopNodeRequest.class, + com.google.cloud.tpu.v2alpha1.StopNodeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.StopNodeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_StopNodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_StopNodeRequest_descriptor; } @java.lang.Override @@ -312,7 +344,8 @@ public com.google.cloud.tpu.v2alpha1.StopNodeRequest build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.StopNodeRequest buildPartial() { - com.google.cloud.tpu.v2alpha1.StopNodeRequest result = new com.google.cloud.tpu.v2alpha1.StopNodeRequest(this); + com.google.cloud.tpu.v2alpha1.StopNodeRequest result = + new com.google.cloud.tpu.v2alpha1.StopNodeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +355,39 @@ public com.google.cloud.tpu.v2alpha1.StopNodeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.StopNodeRequest) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.StopNodeRequest)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.StopNodeRequest) other); } else { super.mergeFrom(other); return this; @@ -392,17 +426,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +451,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -435,20 +475,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -456,61 +499,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +576,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.StopNodeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.StopNodeRequest) private static final com.google.cloud.tpu.v2alpha1.StopNodeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.StopNodeRequest(); } @@ -534,27 +590,27 @@ public static com.google.cloud.tpu.v2alpha1.StopNodeRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopNodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopNodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +625,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.StopNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StopNodeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StopNodeRequestOrBuilder.java new file mode 100644 index 000000000000..bda150b96734 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StopNodeRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +package com.google.cloud.tpu.v2alpha1; + +public interface StopNodeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.StopNodeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Symptom.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Symptom.java similarity index 70% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Symptom.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Symptom.java index 696a76b03ce9..14f40a2e2bb2 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Symptom.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Symptom.java @@ -1,24 +1,42 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * A Symptom instance.
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.Symptom} */ -public final class Symptom extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Symptom extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.Symptom) SymptomOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Symptom.newBuilder() to construct. private Symptom(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Symptom() { symptomType_ = 0; details_ = ""; @@ -27,30 +45,33 @@ private Symptom() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Symptom(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_Symptom_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Symptom_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_Symptom_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Symptom_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.Symptom.class, com.google.cloud.tpu.v2alpha1.Symptom.Builder.class); + com.google.cloud.tpu.v2alpha1.Symptom.class, + com.google.cloud.tpu.v2alpha1.Symptom.Builder.class); } /** + * + * *
    * SymptomType represents the different types of Symptoms that a TPU can be
    * at.
@@ -58,9 +79,10 @@ protected java.lang.Object newInstance(
    *
    * Protobuf enum {@code google.cloud.tpu.v2alpha1.Symptom.SymptomType}
    */
-  public enum SymptomType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum SymptomType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified symptom.
      * 
@@ -69,6 +91,8 @@ public enum SymptomType */ SYMPTOM_TYPE_UNSPECIFIED(0), /** + * + * *
      * TPU VM memory is low.
      * 
@@ -77,6 +101,8 @@ public enum SymptomType */ LOW_MEMORY(1), /** + * + * *
      * TPU runtime is out of memory.
      * 
@@ -85,6 +111,8 @@ public enum SymptomType */ OUT_OF_MEMORY(2), /** + * + * *
      * TPU runtime execution has timed out.
      * 
@@ -93,6 +121,8 @@ public enum SymptomType */ EXECUTE_TIMED_OUT(3), /** + * + * *
      * TPU runtime fails to construct a mesh that recognizes each TPU device's
      * neighbors.
@@ -102,6 +132,8 @@ public enum SymptomType
      */
     MESH_BUILD_FAIL(4),
     /**
+     *
+     *
      * 
      * TPU HBM is out of memory.
      * 
@@ -110,6 +142,8 @@ public enum SymptomType */ HBM_OUT_OF_MEMORY(5), /** + * + * *
      * Abusive behaviors have been identified on the current project.
      * 
@@ -121,6 +155,8 @@ public enum SymptomType ; /** + * + * *
      * Unspecified symptom.
      * 
@@ -129,6 +165,8 @@ public enum SymptomType */ public static final int SYMPTOM_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * TPU VM memory is low.
      * 
@@ -137,6 +175,8 @@ public enum SymptomType */ public static final int LOW_MEMORY_VALUE = 1; /** + * + * *
      * TPU runtime is out of memory.
      * 
@@ -145,6 +185,8 @@ public enum SymptomType */ public static final int OUT_OF_MEMORY_VALUE = 2; /** + * + * *
      * TPU runtime execution has timed out.
      * 
@@ -153,6 +195,8 @@ public enum SymptomType */ public static final int EXECUTE_TIMED_OUT_VALUE = 3; /** + * + * *
      * TPU runtime fails to construct a mesh that recognizes each TPU device's
      * neighbors.
@@ -162,6 +206,8 @@ public enum SymptomType
      */
     public static final int MESH_BUILD_FAIL_VALUE = 4;
     /**
+     *
+     *
      * 
      * TPU HBM is out of memory.
      * 
@@ -170,6 +216,8 @@ public enum SymptomType */ public static final int HBM_OUT_OF_MEMORY_VALUE = 5; /** + * + * *
      * Abusive behaviors have been identified on the current project.
      * 
@@ -178,7 +226,6 @@ public enum SymptomType */ public static final int PROJECT_ABUSE_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -203,53 +250,57 @@ public static SymptomType valueOf(int value) { */ public static SymptomType forNumber(int value) { switch (value) { - case 0: return SYMPTOM_TYPE_UNSPECIFIED; - case 1: return LOW_MEMORY; - case 2: return OUT_OF_MEMORY; - case 3: return EXECUTE_TIMED_OUT; - case 4: return MESH_BUILD_FAIL; - case 5: return HBM_OUT_OF_MEMORY; - case 6: return PROJECT_ABUSE; - default: return null; + case 0: + return SYMPTOM_TYPE_UNSPECIFIED; + case 1: + return LOW_MEMORY; + case 2: + return OUT_OF_MEMORY; + case 3: + return EXECUTE_TIMED_OUT; + case 4: + return MESH_BUILD_FAIL; + case 5: + return HBM_OUT_OF_MEMORY; + case 6: + return PROJECT_ABUSE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SymptomType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SymptomType findValueByNumber(int number) { - return SymptomType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SymptomType findValueByNumber(int number) { + return SymptomType.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.tpu.v2alpha1.Symptom.getDescriptor().getEnumTypes().get(0); } private static final SymptomType[] VALUES = values(); - public static SymptomType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SymptomType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -269,11 +320,14 @@ private SymptomType(int value) { public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Timestamp when the Symptom is created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -281,11 +335,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Timestamp when the Symptom is created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -293,6 +350,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Timestamp when the Symptom is created.
    * 
@@ -307,38 +366,50 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int SYMPTOM_TYPE_FIELD_NUMBER = 2; private int symptomType_; /** + * + * *
    * Type of the Symptom.
    * 
* * .google.cloud.tpu.v2alpha1.Symptom.SymptomType symptom_type = 2; + * * @return The enum numeric value on the wire for symptomType. */ - @java.lang.Override public int getSymptomTypeValue() { + @java.lang.Override + public int getSymptomTypeValue() { return symptomType_; } /** + * + * *
    * Type of the Symptom.
    * 
* * .google.cloud.tpu.v2alpha1.Symptom.SymptomType symptom_type = 2; + * * @return The symptomType. */ - @java.lang.Override public com.google.cloud.tpu.v2alpha1.Symptom.SymptomType getSymptomType() { + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Symptom.SymptomType getSymptomType() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2alpha1.Symptom.SymptomType result = com.google.cloud.tpu.v2alpha1.Symptom.SymptomType.valueOf(symptomType_); + com.google.cloud.tpu.v2alpha1.Symptom.SymptomType result = + com.google.cloud.tpu.v2alpha1.Symptom.SymptomType.valueOf(symptomType_); return result == null ? com.google.cloud.tpu.v2alpha1.Symptom.SymptomType.UNRECOGNIZED : result; } public static final int DETAILS_FIELD_NUMBER = 3; private volatile java.lang.Object details_; /** + * + * *
    * Detailed information of the current Symptom.
    * 
* * string details = 3; + * * @return The details. */ @java.lang.Override @@ -347,29 +418,29 @@ public java.lang.String getDetails() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; } } /** + * + * *
    * Detailed information of the current Symptom.
    * 
* * string details = 3; + * * @return The bytes for details. */ @java.lang.Override - public com.google.protobuf.ByteString - getDetailsBytes() { + public com.google.protobuf.ByteString getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); details_ = b; return b; } else { @@ -380,11 +451,14 @@ public java.lang.String getDetails() { public static final int WORKER_ID_FIELD_NUMBER = 4; private volatile java.lang.Object workerId_; /** + * + * *
    * A string used to uniquely distinguish a worker within a TPU node.
    * 
* * string worker_id = 4; + * * @return The workerId. */ @java.lang.Override @@ -393,29 +467,29 @@ public java.lang.String getWorkerId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workerId_ = s; return s; } } /** + * + * *
    * A string used to uniquely distinguish a worker within a TPU node.
    * 
* * string worker_id = 4; + * * @return The bytes for workerId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkerIdBytes() { + public com.google.protobuf.ByteString getWorkerIdBytes() { java.lang.Object ref = workerId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workerId_ = b; return b; } else { @@ -424,6 +498,7 @@ public java.lang.String getWorkerId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -435,12 +510,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } - if (symptomType_ != com.google.cloud.tpu.v2alpha1.Symptom.SymptomType.SYMPTOM_TYPE_UNSPECIFIED.getNumber()) { + if (symptomType_ + != com.google.cloud.tpu.v2alpha1.Symptom.SymptomType.SYMPTOM_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, symptomType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { @@ -459,12 +534,11 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } - if (symptomType_ != com.google.cloud.tpu.v2alpha1.Symptom.SymptomType.SYMPTOM_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, symptomType_); + if (symptomType_ + != com.google.cloud.tpu.v2alpha1.Symptom.SymptomType.SYMPTOM_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, symptomType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, details_); @@ -480,7 +554,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.Symptom)) { return super.equals(obj); @@ -489,14 +563,11 @@ public boolean equals(final java.lang.Object obj) { if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (symptomType_ != other.symptomType_) return false; - if (!getDetails() - .equals(other.getDetails())) return false; - if (!getWorkerId() - .equals(other.getWorkerId())) return false; + if (!getDetails().equals(other.getDetails())) return false; + if (!getWorkerId().equals(other.getWorkerId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -523,130 +594,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.Symptom parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.Symptom parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.Symptom parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.Symptom parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.tpu.v2alpha1.Symptom parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.Symptom 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.tpu.v2alpha1.Symptom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.Symptom parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.Symptom parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.Symptom parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.Symptom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.Symptom parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.Symptom parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.Symptom parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.Symptom prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A Symptom instance.
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.Symptom} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.Symptom) com.google.cloud.tpu.v2alpha1.SymptomOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_Symptom_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Symptom_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_Symptom_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Symptom_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.Symptom.class, com.google.cloud.tpu.v2alpha1.Symptom.Builder.class); + com.google.cloud.tpu.v2alpha1.Symptom.class, + com.google.cloud.tpu.v2alpha1.Symptom.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.Symptom.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -666,9 +742,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_Symptom_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Symptom_descriptor; } @java.lang.Override @@ -687,7 +763,8 @@ public com.google.cloud.tpu.v2alpha1.Symptom build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.Symptom buildPartial() { - com.google.cloud.tpu.v2alpha1.Symptom result = new com.google.cloud.tpu.v2alpha1.Symptom(this); + com.google.cloud.tpu.v2alpha1.Symptom result = + new com.google.cloud.tpu.v2alpha1.Symptom(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -704,38 +781,39 @@ public com.google.cloud.tpu.v2alpha1.Symptom buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.Symptom) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.Symptom)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.Symptom) other); } else { super.mergeFrom(other); return this; @@ -784,34 +862,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 16: { - symptomType_ = input.readEnum(); - - break; - } // case 16 - case 26: { - details_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - workerId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 16: + { + symptomType_ = input.readEnum(); + + break; + } // case 16 + case 26: + { + details_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + workerId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -824,34 +905,47 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Timestamp when the Symptom is created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
@@ -872,14 +966,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -890,6 +985,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
@@ -900,7 +997,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -912,6 +1009,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
@@ -930,6 +1029,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
@@ -937,11 +1038,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
@@ -952,11 +1055,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Timestamp when the Symptom is created.
      * 
@@ -964,14 +1070,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -979,51 +1088,67 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int symptomType_ = 0; /** + * + * *
      * Type of the Symptom.
      * 
* * .google.cloud.tpu.v2alpha1.Symptom.SymptomType symptom_type = 2; + * * @return The enum numeric value on the wire for symptomType. */ - @java.lang.Override public int getSymptomTypeValue() { + @java.lang.Override + public int getSymptomTypeValue() { return symptomType_; } /** + * + * *
      * Type of the Symptom.
      * 
* * .google.cloud.tpu.v2alpha1.Symptom.SymptomType symptom_type = 2; + * * @param value The enum numeric value on the wire for symptomType to set. * @return This builder for chaining. */ public Builder setSymptomTypeValue(int value) { - + symptomType_ = value; onChanged(); return this; } /** + * + * *
      * Type of the Symptom.
      * 
* * .google.cloud.tpu.v2alpha1.Symptom.SymptomType symptom_type = 2; + * * @return The symptomType. */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.Symptom.SymptomType getSymptomType() { @SuppressWarnings("deprecation") - com.google.cloud.tpu.v2alpha1.Symptom.SymptomType result = com.google.cloud.tpu.v2alpha1.Symptom.SymptomType.valueOf(symptomType_); - return result == null ? com.google.cloud.tpu.v2alpha1.Symptom.SymptomType.UNRECOGNIZED : result; + com.google.cloud.tpu.v2alpha1.Symptom.SymptomType result = + com.google.cloud.tpu.v2alpha1.Symptom.SymptomType.valueOf(symptomType_); + return result == null + ? com.google.cloud.tpu.v2alpha1.Symptom.SymptomType.UNRECOGNIZED + : result; } /** + * + * *
      * Type of the Symptom.
      * 
* * .google.cloud.tpu.v2alpha1.Symptom.SymptomType symptom_type = 2; + * * @param value The symptomType to set. * @return This builder for chaining. */ @@ -1031,21 +1156,24 @@ public Builder setSymptomType(com.google.cloud.tpu.v2alpha1.Symptom.SymptomType if (value == null) { throw new NullPointerException(); } - + symptomType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Type of the Symptom.
      * 
* * .google.cloud.tpu.v2alpha1.Symptom.SymptomType symptom_type = 2; + * * @return This builder for chaining. */ public Builder clearSymptomType() { - + symptomType_ = 0; onChanged(); return this; @@ -1053,18 +1181,20 @@ public Builder clearSymptomType() { private java.lang.Object details_ = ""; /** + * + * *
      * Detailed information of the current Symptom.
      * 
* * string details = 3; + * * @return The details. */ public java.lang.String getDetails() { java.lang.Object ref = details_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; @@ -1073,20 +1203,21 @@ public java.lang.String getDetails() { } } /** + * + * *
      * Detailed information of the current Symptom.
      * 
* * string details = 3; + * * @return The bytes for details. */ - public com.google.protobuf.ByteString - getDetailsBytes() { + public com.google.protobuf.ByteString getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); details_ = b; return b; } else { @@ -1094,54 +1225,61 @@ public java.lang.String getDetails() { } } /** + * + * *
      * Detailed information of the current Symptom.
      * 
* * string details = 3; + * * @param value The details to set. * @return This builder for chaining. */ - public Builder setDetails( - java.lang.String value) { + public Builder setDetails(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + details_ = value; onChanged(); return this; } /** + * + * *
      * Detailed information of the current Symptom.
      * 
* * string details = 3; + * * @return This builder for chaining. */ public Builder clearDetails() { - + details_ = getDefaultInstance().getDetails(); onChanged(); return this; } /** + * + * *
      * Detailed information of the current Symptom.
      * 
* * string details = 3; + * * @param value The bytes for details to set. * @return This builder for chaining. */ - public Builder setDetailsBytes( - com.google.protobuf.ByteString value) { + public Builder setDetailsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + details_ = value; onChanged(); return this; @@ -1149,18 +1287,20 @@ public Builder setDetailsBytes( private java.lang.Object workerId_ = ""; /** + * + * *
      * A string used to uniquely distinguish a worker within a TPU node.
      * 
* * string worker_id = 4; + * * @return The workerId. */ public java.lang.String getWorkerId() { java.lang.Object ref = workerId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workerId_ = s; return s; @@ -1169,20 +1309,21 @@ public java.lang.String getWorkerId() { } } /** + * + * *
      * A string used to uniquely distinguish a worker within a TPU node.
      * 
* * string worker_id = 4; + * * @return The bytes for workerId. */ - public com.google.protobuf.ByteString - getWorkerIdBytes() { + public com.google.protobuf.ByteString getWorkerIdBytes() { java.lang.Object ref = workerId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workerId_ = b; return b; } else { @@ -1190,61 +1331,68 @@ public java.lang.String getWorkerId() { } } /** + * + * *
      * A string used to uniquely distinguish a worker within a TPU node.
      * 
* * string worker_id = 4; + * * @param value The workerId to set. * @return This builder for chaining. */ - public Builder setWorkerId( - java.lang.String value) { + public Builder setWorkerId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + workerId_ = value; onChanged(); return this; } /** + * + * *
      * A string used to uniquely distinguish a worker within a TPU node.
      * 
* * string worker_id = 4; + * * @return This builder for chaining. */ public Builder clearWorkerId() { - + workerId_ = getDefaultInstance().getWorkerId(); onChanged(); return this; } /** + * + * *
      * A string used to uniquely distinguish a worker within a TPU node.
      * 
* * string worker_id = 4; + * * @param value The bytes for workerId to set. * @return This builder for chaining. */ - public Builder setWorkerIdBytes( - com.google.protobuf.ByteString value) { + public Builder setWorkerIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workerId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1254,12 +1402,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.Symptom) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.Symptom) private static final com.google.cloud.tpu.v2alpha1.Symptom DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.Symptom(); } @@ -1268,27 +1416,27 @@ public static com.google.cloud.tpu.v2alpha1.Symptom getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Symptom parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Symptom parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1303,6 +1451,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.Symptom getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SymptomOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SymptomOrBuilder.java similarity index 71% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SymptomOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SymptomOrBuilder.java index 10c2a01cbd87..8d3ee93ede84 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SymptomOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SymptomOrBuilder.java @@ -1,31 +1,55 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface SymptomOrBuilder extends +public interface SymptomOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.Symptom) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Timestamp when the Symptom is created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Timestamp when the Symptom is created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Timestamp when the Symptom is created.
    * 
@@ -35,61 +59,77 @@ public interface SymptomOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Type of the Symptom.
    * 
* * .google.cloud.tpu.v2alpha1.Symptom.SymptomType symptom_type = 2; + * * @return The enum numeric value on the wire for symptomType. */ int getSymptomTypeValue(); /** + * + * *
    * Type of the Symptom.
    * 
* * .google.cloud.tpu.v2alpha1.Symptom.SymptomType symptom_type = 2; + * * @return The symptomType. */ com.google.cloud.tpu.v2alpha1.Symptom.SymptomType getSymptomType(); /** + * + * *
    * Detailed information of the current Symptom.
    * 
* * string details = 3; + * * @return The details. */ java.lang.String getDetails(); /** + * + * *
    * Detailed information of the current Symptom.
    * 
* * string details = 3; + * * @return The bytes for details. */ - com.google.protobuf.ByteString - getDetailsBytes(); + com.google.protobuf.ByteString getDetailsBytes(); /** + * + * *
    * A string used to uniquely distinguish a worker within a TPU node.
    * 
* * string worker_id = 4; + * * @return The workerId. */ java.lang.String getWorkerId(); /** + * + * *
    * A string used to uniquely distinguish a worker within a TPU node.
    * 
* * string worker_id = 4; + * * @return The bytes for workerId. */ - com.google.protobuf.ByteString - getWorkerIdBytes(); + com.google.protobuf.ByteString getWorkerIdBytes(); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpdateNodeRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpdateNodeRequest.java similarity index 68% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpdateNodeRequest.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpdateNodeRequest.java index dfd9ca6c3620..d00ad88cbfa9 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpdateNodeRequest.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpdateNodeRequest.java @@ -1,62 +1,84 @@ +/* + * 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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; /** + * + * *
  * Request for [UpdateNode][google.cloud.tpu.v2alpha1.Tpu.UpdateNode].
  * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.UpdateNodeRequest} */ -public final class UpdateNodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.UpdateNodeRequest) UpdateNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateNodeRequest.newBuilder() to construct. private UpdateNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateNodeRequest() { - } + + private UpdateNodeRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateNodeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_UpdateNodeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_UpdateNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_UpdateNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_UpdateNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.UpdateNodeRequest.class, com.google.cloud.tpu.v2alpha1.UpdateNodeRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.UpdateNodeRequest.class, + com.google.cloud.tpu.v2alpha1.UpdateNodeRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask of fields from [Node][Tpu.Node] to update.
    * Supported fields: [description, tags, labels, metadata,
    * network_config.enable_external_ips].
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -64,13 +86,17 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask of fields from [Node][Tpu.Node] to update.
    * Supported fields: [description, tags, labels, metadata,
    * network_config.enable_external_ips].
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -78,13 +104,16 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask of fields from [Node][Tpu.Node] to update.
    * Supported fields: [description, tags, labels, metadata,
    * network_config.enable_external_ips].
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -94,11 +123,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int NODE_FIELD_NUMBER = 2; private com.google.cloud.tpu.v2alpha1.Node node_; /** + * + * *
    * Required. The node. Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the node field is set. */ @java.lang.Override @@ -106,11 +139,15 @@ public boolean hasNode() { return node_ != null; } /** + * + * *
    * Required. The node. Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The node. */ @java.lang.Override @@ -118,11 +155,14 @@ public com.google.cloud.tpu.v2alpha1.Node getNode() { return node_ == null ? com.google.cloud.tpu.v2alpha1.Node.getDefaultInstance() : node_; } /** + * + * *
    * Required. The node. Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodeOrBuilder() { @@ -130,6 +170,7 @@ public com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,8 +182,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -159,12 +199,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (node_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getNode()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNode()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,22 +212,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.tpu.v2alpha1.UpdateNodeRequest)) { return super.equals(obj); } - com.google.cloud.tpu.v2alpha1.UpdateNodeRequest other = (com.google.cloud.tpu.v2alpha1.UpdateNodeRequest) obj; + com.google.cloud.tpu.v2alpha1.UpdateNodeRequest other = + (com.google.cloud.tpu.v2alpha1.UpdateNodeRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasNode() != other.hasNode()) return false; if (hasNode()) { - if (!getNode() - .equals(other.getNode())) return false; + if (!getNode().equals(other.getNode())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -215,130 +252,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.tpu.v2alpha1.UpdateNodeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.tpu.v2alpha1.UpdateNodeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.UpdateNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.UpdateNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.UpdateNodeRequest 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.tpu.v2alpha1.UpdateNodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.tpu.v2alpha1.UpdateNodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.UpdateNodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.UpdateNodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.tpu.v2alpha1.UpdateNodeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.tpu.v2alpha1.UpdateNodeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.UpdateNodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.tpu.v2alpha1.UpdateNodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.tpu.v2alpha1.UpdateNodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.UpdateNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for [UpdateNode][google.cloud.tpu.v2alpha1.Tpu.UpdateNode].
    * 
* * Protobuf type {@code google.cloud.tpu.v2alpha1.UpdateNodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.UpdateNodeRequest) com.google.cloud.tpu.v2alpha1.UpdateNodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_UpdateNodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_UpdateNodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_UpdateNodeRequest_fieldAccessorTable + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_UpdateNodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.tpu.v2alpha1.UpdateNodeRequest.class, com.google.cloud.tpu.v2alpha1.UpdateNodeRequest.Builder.class); + com.google.cloud.tpu.v2alpha1.UpdateNodeRequest.class, + com.google.cloud.tpu.v2alpha1.UpdateNodeRequest.Builder.class); } // Construct using com.google.cloud.tpu.v2alpha1.UpdateNodeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -358,9 +401,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.internal_static_google_cloud_tpu_v2alpha1_UpdateNodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_UpdateNodeRequest_descriptor; } @java.lang.Override @@ -379,7 +422,8 @@ public com.google.cloud.tpu.v2alpha1.UpdateNodeRequest build() { @java.lang.Override public com.google.cloud.tpu.v2alpha1.UpdateNodeRequest buildPartial() { - com.google.cloud.tpu.v2alpha1.UpdateNodeRequest result = new com.google.cloud.tpu.v2alpha1.UpdateNodeRequest(this); + com.google.cloud.tpu.v2alpha1.UpdateNodeRequest result = + new com.google.cloud.tpu.v2alpha1.UpdateNodeRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -398,38 +442,39 @@ public com.google.cloud.tpu.v2alpha1.UpdateNodeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor 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.tpu.v2alpha1.UpdateNodeRequest) { - return mergeFrom((com.google.cloud.tpu.v2alpha1.UpdateNodeRequest)other); + return mergeFrom((com.google.cloud.tpu.v2alpha1.UpdateNodeRequest) other); } else { super.mergeFrom(other); return this; @@ -437,7 +482,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.UpdateNodeRequest other) { - if (other == com.google.cloud.tpu.v2alpha1.UpdateNodeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.tpu.v2alpha1.UpdateNodeRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -470,26 +516,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - input.readMessage( - getNodeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getNodeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -502,45 +547,61 @@ public Builder mergeFrom( private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. Mask of fields from [Node][Tpu.Node] to update.
      * Supported fields: [description, tags, labels, metadata,
      * network_config.enable_external_ips].
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Mask of fields from [Node][Tpu.Node] to update.
      * Supported fields: [description, tags, labels, metadata,
      * network_config.enable_external_ips].
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. Mask of fields from [Node][Tpu.Node] to update.
      * Supported fields: [description, tags, labels, metadata,
      * network_config.enable_external_ips].
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -556,16 +617,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields from [Node][Tpu.Node] to update.
      * Supported fields: [description, tags, labels, metadata,
      * network_config.enable_external_ips].
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -576,19 +639,22 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask of fields from [Node][Tpu.Node] to update.
      * Supported fields: [description, tags, labels, metadata,
      * network_config.enable_external_ips].
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -600,13 +666,16 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields from [Node][Tpu.Node] to update.
      * Supported fields: [description, tags, labels, metadata,
      * network_config.enable_external_ips].
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -620,54 +689,67 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask of fields from [Node][Tpu.Node] to update.
      * Supported fields: [description, tags, labels, metadata,
      * network_config.enable_external_ips].
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask of fields from [Node][Tpu.Node] to update.
      * Supported fields: [description, tags, labels, metadata,
      * network_config.enable_external_ips].
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. Mask of fields from [Node][Tpu.Node] to update.
      * Supported fields: [description, tags, labels, metadata,
      * network_config.enable_external_ips].
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -675,24 +757,35 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.tpu.v2alpha1.Node node_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.Node, com.google.cloud.tpu.v2alpha1.Node.Builder, com.google.cloud.tpu.v2alpha1.NodeOrBuilder> nodeBuilder_; + com.google.cloud.tpu.v2alpha1.Node, + com.google.cloud.tpu.v2alpha1.Node.Builder, + com.google.cloud.tpu.v2alpha1.NodeOrBuilder> + nodeBuilder_; /** + * + * *
      * Required. The node. Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the node field is set. */ public boolean hasNode() { return nodeBuilder_ != null || node_ != null; } /** + * + * *
      * Required. The node. Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The node. */ public com.google.cloud.tpu.v2alpha1.Node getNode() { @@ -703,11 +796,14 @@ public com.google.cloud.tpu.v2alpha1.Node getNode() { } } /** + * + * *
      * Required. The node. Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNode(com.google.cloud.tpu.v2alpha1.Node value) { if (nodeBuilder_ == null) { @@ -723,14 +819,16 @@ public Builder setNode(com.google.cloud.tpu.v2alpha1.Node value) { return this; } /** + * + * *
      * Required. The node. Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setNode( - com.google.cloud.tpu.v2alpha1.Node.Builder builderForValue) { + public Builder setNode(com.google.cloud.tpu.v2alpha1.Node.Builder builderForValue) { if (nodeBuilder_ == null) { node_ = builderForValue.build(); onChanged(); @@ -741,17 +839,20 @@ public Builder setNode( return this; } /** + * + * *
      * Required. The node. Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeNode(com.google.cloud.tpu.v2alpha1.Node value) { if (nodeBuilder_ == null) { if (node_ != null) { node_ = - com.google.cloud.tpu.v2alpha1.Node.newBuilder(node_).mergeFrom(value).buildPartial(); + com.google.cloud.tpu.v2alpha1.Node.newBuilder(node_).mergeFrom(value).buildPartial(); } else { node_ = value; } @@ -763,11 +864,14 @@ public Builder mergeNode(com.google.cloud.tpu.v2alpha1.Node value) { return this; } /** + * + * *
      * Required. The node. Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNode() { if (nodeBuilder_ == null) { @@ -781,55 +885,66 @@ public Builder clearNode() { return this; } /** + * + * *
      * Required. The node. Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.tpu.v2alpha1.Node.Builder getNodeBuilder() { - + onChanged(); return getNodeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The node. Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodeOrBuilder() { if (nodeBuilder_ != null) { return nodeBuilder_.getMessageOrBuilder(); } else { - return node_ == null ? - com.google.cloud.tpu.v2alpha1.Node.getDefaultInstance() : node_; + return node_ == null ? com.google.cloud.tpu.v2alpha1.Node.getDefaultInstance() : node_; } } /** + * + * *
      * Required. The node. Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.Node, com.google.cloud.tpu.v2alpha1.Node.Builder, com.google.cloud.tpu.v2alpha1.NodeOrBuilder> + com.google.cloud.tpu.v2alpha1.Node, + com.google.cloud.tpu.v2alpha1.Node.Builder, + com.google.cloud.tpu.v2alpha1.NodeOrBuilder> getNodeFieldBuilder() { if (nodeBuilder_ == null) { - nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tpu.v2alpha1.Node, com.google.cloud.tpu.v2alpha1.Node.Builder, com.google.cloud.tpu.v2alpha1.NodeOrBuilder>( - getNode(), - getParentForChildren(), - isClean()); + nodeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.Node, + com.google.cloud.tpu.v2alpha1.Node.Builder, + com.google.cloud.tpu.v2alpha1.NodeOrBuilder>( + getNode(), getParentForChildren(), isClean()); node_ = null; } return nodeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -839,12 +954,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.UpdateNodeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.UpdateNodeRequest) private static final com.google.cloud.tpu.v2alpha1.UpdateNodeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.UpdateNodeRequest(); } @@ -853,27 +968,27 @@ public static com.google.cloud.tpu.v2alpha1.UpdateNodeRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateNodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateNodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -888,6 +1003,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.tpu.v2alpha1.UpdateNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpdateNodeRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpdateNodeRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpdateNodeRequestOrBuilder.java rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpdateNodeRequestOrBuilder.java index 1e6d4f18b8b4..f60b96550aad 100644 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpdateNodeRequestOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpdateNodeRequestOrBuilder.java @@ -1,69 +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/tpu/v2alpha1/cloud_tpu.proto package com.google.cloud.tpu.v2alpha1; -public interface UpdateNodeRequestOrBuilder extends +public interface UpdateNodeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.UpdateNodeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Mask of fields from [Node][Tpu.Node] to update.
    * Supported fields: [description, tags, labels, metadata,
    * network_config.enable_external_ips].
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask of fields from [Node][Tpu.Node] to update.
    * Supported fields: [description, tags, labels, metadata,
    * network_config.enable_external_ips].
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask of fields from [Node][Tpu.Node] to update.
    * Supported fields: [description, tags, labels, metadata,
    * network_config.enable_external_ips].
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The node. Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the node field is set. */ boolean hasNode(); /** + * + * *
    * Required. The node. Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The node. */ com.google.cloud.tpu.v2alpha1.Node getNode(); /** + * + * *
    * Required. The node. Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.tpu.v2alpha1.Node node = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.tpu.v2alpha1.NodeOrBuilder getNodeOrBuilder(); } diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/proto/google/cloud/tpu/v2alpha1/cloud_tpu.proto b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/proto/google/cloud/tpu/v2alpha1/cloud_tpu.proto similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/proto/google/cloud/tpu/v2alpha1/cloud_tpu.proto rename to java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/proto/google/cloud/tpu/v2alpha1/cloud_tpu.proto diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/stub/tpustubsettings/getnode/SyncGetNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/stub/tpustubsettings/getnode/SyncGetNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/stub/tpustubsettings/getnode/SyncGetNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/stub/tpustubsettings/getnode/SyncGetNode.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/create/SyncCreateSetCredentialsProvider.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/create/SyncCreateSetCredentialsProvider.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/create/SyncCreateSetEndpoint.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/create/SyncCreateSetEndpoint.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/AsyncCreateNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/AsyncCreateNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/AsyncCreateNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/AsyncCreateNode.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/AsyncCreateNodeLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/AsyncCreateNodeLRO.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/AsyncCreateNodeLRO.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/AsyncCreateNodeLRO.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/SyncCreateNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/SyncCreateNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/SyncCreateNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/SyncCreateNode.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/SyncCreateNodeLocationnameNodeString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/SyncCreateNodeLocationnameNodeString.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/SyncCreateNodeLocationnameNodeString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/SyncCreateNodeLocationnameNodeString.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/SyncCreateNodeStringNodeString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/SyncCreateNodeStringNodeString.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/SyncCreateNodeStringNodeString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/createnode/SyncCreateNodeStringNodeString.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/AsyncDeleteNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/AsyncDeleteNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/AsyncDeleteNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/AsyncDeleteNode.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/AsyncDeleteNodeLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/AsyncDeleteNodeLRO.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/AsyncDeleteNodeLRO.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/AsyncDeleteNodeLRO.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/SyncDeleteNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/SyncDeleteNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/SyncDeleteNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/SyncDeleteNode.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/SyncDeleteNodeNodename.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/SyncDeleteNodeNodename.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/SyncDeleteNodeNodename.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/SyncDeleteNodeNodename.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/SyncDeleteNodeString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/SyncDeleteNodeString.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/SyncDeleteNodeString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/deletenode/SyncDeleteNodeString.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getacceleratortype/AsyncGetAcceleratorType.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getacceleratortype/AsyncGetAcceleratorType.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getacceleratortype/AsyncGetAcceleratorType.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getacceleratortype/AsyncGetAcceleratorType.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getacceleratortype/SyncGetAcceleratorType.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getacceleratortype/SyncGetAcceleratorType.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getacceleratortype/SyncGetAcceleratorType.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getacceleratortype/SyncGetAcceleratorType.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getacceleratortype/SyncGetAcceleratorTypeAcceleratortypename.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getacceleratortype/SyncGetAcceleratorTypeAcceleratortypename.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getacceleratortype/SyncGetAcceleratorTypeAcceleratortypename.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getacceleratortype/SyncGetAcceleratorTypeAcceleratortypename.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getacceleratortype/SyncGetAcceleratorTypeString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getacceleratortype/SyncGetAcceleratorTypeString.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getacceleratortype/SyncGetAcceleratorTypeString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getacceleratortype/SyncGetAcceleratorTypeString.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getlocation/AsyncGetLocation.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getlocation/AsyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getlocation/AsyncGetLocation.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getlocation/AsyncGetLocation.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getlocation/SyncGetLocation.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getlocation/SyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getlocation/SyncGetLocation.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getlocation/SyncGetLocation.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getnode/AsyncGetNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getnode/AsyncGetNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getnode/AsyncGetNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getnode/AsyncGetNode.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getnode/SyncGetNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getnode/SyncGetNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getnode/SyncGetNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getnode/SyncGetNode.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getnode/SyncGetNodeNodename.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getnode/SyncGetNodeNodename.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getnode/SyncGetNodeNodename.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getnode/SyncGetNodeNodename.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getnode/SyncGetNodeString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getnode/SyncGetNodeString.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getnode/SyncGetNodeString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/getnode/SyncGetNodeString.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/gettensorflowversion/AsyncGetTensorFlowVersion.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/gettensorflowversion/AsyncGetTensorFlowVersion.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/gettensorflowversion/AsyncGetTensorFlowVersion.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/gettensorflowversion/AsyncGetTensorFlowVersion.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/gettensorflowversion/SyncGetTensorFlowVersion.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/gettensorflowversion/SyncGetTensorFlowVersion.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/gettensorflowversion/SyncGetTensorFlowVersion.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/gettensorflowversion/SyncGetTensorFlowVersion.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/gettensorflowversion/SyncGetTensorFlowVersionString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/gettensorflowversion/SyncGetTensorFlowVersionString.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/gettensorflowversion/SyncGetTensorFlowVersionString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/gettensorflowversion/SyncGetTensorFlowVersionString.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/gettensorflowversion/SyncGetTensorFlowVersionTensorflowversionname.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/gettensorflowversion/SyncGetTensorFlowVersionTensorflowversionname.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/gettensorflowversion/SyncGetTensorFlowVersionTensorflowversionname.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/gettensorflowversion/SyncGetTensorFlowVersionTensorflowversionname.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/AsyncListAcceleratorTypes.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/AsyncListAcceleratorTypes.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/AsyncListAcceleratorTypes.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/AsyncListAcceleratorTypes.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/AsyncListAcceleratorTypesPaged.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/AsyncListAcceleratorTypesPaged.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/AsyncListAcceleratorTypesPaged.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/AsyncListAcceleratorTypesPaged.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/SyncListAcceleratorTypes.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/SyncListAcceleratorTypes.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/SyncListAcceleratorTypes.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/SyncListAcceleratorTypes.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/SyncListAcceleratorTypesAcceleratortypename.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/SyncListAcceleratorTypesAcceleratortypename.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/SyncListAcceleratorTypesAcceleratortypename.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/SyncListAcceleratorTypesAcceleratortypename.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/SyncListAcceleratorTypesString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/SyncListAcceleratorTypesString.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/SyncListAcceleratorTypesString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listacceleratortypes/SyncListAcceleratorTypesString.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listlocations/AsyncListLocations.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listlocations/AsyncListLocations.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listlocations/AsyncListLocations.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listlocations/AsyncListLocations.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listlocations/AsyncListLocationsPaged.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listlocations/AsyncListLocationsPaged.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listlocations/AsyncListLocationsPaged.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listlocations/SyncListLocations.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listlocations/SyncListLocations.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listlocations/SyncListLocations.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listlocations/SyncListLocations.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/AsyncListNodes.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/AsyncListNodes.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/AsyncListNodes.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/AsyncListNodes.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/AsyncListNodesPaged.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/AsyncListNodesPaged.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/AsyncListNodesPaged.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/AsyncListNodesPaged.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/SyncListNodes.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/SyncListNodes.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/SyncListNodes.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/SyncListNodes.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/SyncListNodesLocationname.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/SyncListNodesLocationname.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/SyncListNodesLocationname.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/SyncListNodesLocationname.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/SyncListNodesString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/SyncListNodesString.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/SyncListNodesString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listnodes/SyncListNodesString.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/AsyncListTensorFlowVersions.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/AsyncListTensorFlowVersions.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/AsyncListTensorFlowVersions.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/AsyncListTensorFlowVersions.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/AsyncListTensorFlowVersionsPaged.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/AsyncListTensorFlowVersionsPaged.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/AsyncListTensorFlowVersionsPaged.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/AsyncListTensorFlowVersionsPaged.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/SyncListTensorFlowVersions.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/SyncListTensorFlowVersions.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/SyncListTensorFlowVersions.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/SyncListTensorFlowVersions.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/SyncListTensorFlowVersionsString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/SyncListTensorFlowVersionsString.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/SyncListTensorFlowVersionsString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/SyncListTensorFlowVersionsString.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/SyncListTensorFlowVersionsTensorflowversionname.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/SyncListTensorFlowVersionsTensorflowversionname.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/SyncListTensorFlowVersionsTensorflowversionname.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/listtensorflowversions/SyncListTensorFlowVersionsTensorflowversionname.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/reimagenode/AsyncReimageNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/reimagenode/AsyncReimageNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/reimagenode/AsyncReimageNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/reimagenode/AsyncReimageNode.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/reimagenode/AsyncReimageNodeLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/reimagenode/AsyncReimageNodeLRO.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/reimagenode/AsyncReimageNodeLRO.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/reimagenode/AsyncReimageNodeLRO.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/reimagenode/SyncReimageNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/reimagenode/SyncReimageNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/reimagenode/SyncReimageNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/reimagenode/SyncReimageNode.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/startnode/AsyncStartNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/startnode/AsyncStartNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/startnode/AsyncStartNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/startnode/AsyncStartNode.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/startnode/AsyncStartNodeLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/startnode/AsyncStartNodeLRO.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/startnode/AsyncStartNodeLRO.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/startnode/AsyncStartNodeLRO.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/startnode/SyncStartNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/startnode/SyncStartNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/startnode/SyncStartNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/startnode/SyncStartNode.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/stopnode/AsyncStopNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/stopnode/AsyncStopNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/stopnode/AsyncStopNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/stopnode/AsyncStopNode.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/stopnode/AsyncStopNodeLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/stopnode/AsyncStopNodeLRO.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/stopnode/AsyncStopNodeLRO.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/stopnode/AsyncStopNodeLRO.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/stopnode/SyncStopNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/stopnode/SyncStopNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/stopnode/SyncStopNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpu/stopnode/SyncStopNode.java diff --git a/owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpusettings/getnode/SyncGetNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpusettings/getnode/SyncGetNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v1/samples/snippets/generated/com/google/cloud/tpu/v1/tpusettings/getnode/SyncGetNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v1/tpusettings/getnode/SyncGetNode.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/stub/tpustubsettings/getnode/SyncGetNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/stub/tpustubsettings/getnode/SyncGetNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/stub/tpustubsettings/getnode/SyncGetNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/stub/tpustubsettings/getnode/SyncGetNode.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/create/SyncCreateSetCredentialsProvider.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/create/SyncCreateSetCredentialsProvider.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/create/SyncCreateSetCredentialsProvider1.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/create/SyncCreateSetCredentialsProvider1.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/create/SyncCreateSetEndpoint.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/create/SyncCreateSetEndpoint.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/AsyncCreateNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/AsyncCreateNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/AsyncCreateNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/AsyncCreateNode.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/AsyncCreateNodeLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/AsyncCreateNodeLRO.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/AsyncCreateNodeLRO.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/AsyncCreateNodeLRO.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/SyncCreateNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/SyncCreateNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/SyncCreateNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/SyncCreateNode.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/SyncCreateNodeLocationnameNodeString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/SyncCreateNodeLocationnameNodeString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/SyncCreateNodeLocationnameNodeString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/SyncCreateNodeLocationnameNodeString.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/SyncCreateNodeStringNodeString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/SyncCreateNodeStringNodeString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/SyncCreateNodeStringNodeString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createnode/SyncCreateNodeStringNodeString.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/AsyncDeleteNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/AsyncDeleteNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/AsyncDeleteNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/AsyncDeleteNode.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/AsyncDeleteNodeLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/AsyncDeleteNodeLRO.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/AsyncDeleteNodeLRO.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/AsyncDeleteNodeLRO.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/SyncDeleteNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/SyncDeleteNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/SyncDeleteNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/SyncDeleteNode.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/SyncDeleteNodeNodename.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/SyncDeleteNodeNodename.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/SyncDeleteNodeNodename.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/SyncDeleteNodeNodename.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/SyncDeleteNodeString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/SyncDeleteNodeString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/SyncDeleteNodeString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletenode/SyncDeleteNodeString.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/generateserviceidentity/AsyncGenerateServiceIdentity.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/generateserviceidentity/AsyncGenerateServiceIdentity.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/generateserviceidentity/AsyncGenerateServiceIdentity.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/generateserviceidentity/AsyncGenerateServiceIdentity.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/generateserviceidentity/SyncGenerateServiceIdentity.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/generateserviceidentity/SyncGenerateServiceIdentity.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/generateserviceidentity/SyncGenerateServiceIdentity.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/generateserviceidentity/SyncGenerateServiceIdentity.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getacceleratortype/AsyncGetAcceleratorType.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getacceleratortype/AsyncGetAcceleratorType.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getacceleratortype/AsyncGetAcceleratorType.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getacceleratortype/AsyncGetAcceleratorType.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getacceleratortype/SyncGetAcceleratorType.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getacceleratortype/SyncGetAcceleratorType.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getacceleratortype/SyncGetAcceleratorType.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getacceleratortype/SyncGetAcceleratorType.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getacceleratortype/SyncGetAcceleratorTypeAcceleratortypename.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getacceleratortype/SyncGetAcceleratorTypeAcceleratortypename.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getacceleratortype/SyncGetAcceleratorTypeAcceleratortypename.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getacceleratortype/SyncGetAcceleratorTypeAcceleratortypename.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getacceleratortype/SyncGetAcceleratorTypeString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getacceleratortype/SyncGetAcceleratorTypeString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getacceleratortype/SyncGetAcceleratorTypeString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getacceleratortype/SyncGetAcceleratorTypeString.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getguestattributes/AsyncGetGuestAttributes.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getguestattributes/AsyncGetGuestAttributes.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getguestattributes/AsyncGetGuestAttributes.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getguestattributes/AsyncGetGuestAttributes.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getguestattributes/SyncGetGuestAttributes.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getguestattributes/SyncGetGuestAttributes.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getguestattributes/SyncGetGuestAttributes.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getguestattributes/SyncGetGuestAttributes.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getlocation/AsyncGetLocation.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getlocation/AsyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getlocation/AsyncGetLocation.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getlocation/AsyncGetLocation.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getlocation/SyncGetLocation.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getlocation/SyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getlocation/SyncGetLocation.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getlocation/SyncGetLocation.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getnode/AsyncGetNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getnode/AsyncGetNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getnode/AsyncGetNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getnode/AsyncGetNode.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getnode/SyncGetNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getnode/SyncGetNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getnode/SyncGetNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getnode/SyncGetNode.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getnode/SyncGetNodeNodename.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getnode/SyncGetNodeNodename.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getnode/SyncGetNodeNodename.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getnode/SyncGetNodeNodename.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getnode/SyncGetNodeString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getnode/SyncGetNodeString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getnode/SyncGetNodeString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getnode/SyncGetNodeString.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getruntimeversion/AsyncGetRuntimeVersion.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getruntimeversion/AsyncGetRuntimeVersion.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getruntimeversion/AsyncGetRuntimeVersion.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getruntimeversion/AsyncGetRuntimeVersion.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getruntimeversion/SyncGetRuntimeVersion.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getruntimeversion/SyncGetRuntimeVersion.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getruntimeversion/SyncGetRuntimeVersion.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getruntimeversion/SyncGetRuntimeVersion.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getruntimeversion/SyncGetRuntimeVersionRuntimeversionname.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getruntimeversion/SyncGetRuntimeVersionRuntimeversionname.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getruntimeversion/SyncGetRuntimeVersionRuntimeversionname.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getruntimeversion/SyncGetRuntimeVersionRuntimeversionname.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getruntimeversion/SyncGetRuntimeVersionString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getruntimeversion/SyncGetRuntimeVersionString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getruntimeversion/SyncGetRuntimeVersionString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getruntimeversion/SyncGetRuntimeVersionString.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/AsyncListAcceleratorTypes.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/AsyncListAcceleratorTypes.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/AsyncListAcceleratorTypes.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/AsyncListAcceleratorTypes.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/AsyncListAcceleratorTypesPaged.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/AsyncListAcceleratorTypesPaged.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/AsyncListAcceleratorTypesPaged.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/AsyncListAcceleratorTypesPaged.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/SyncListAcceleratorTypes.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/SyncListAcceleratorTypes.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/SyncListAcceleratorTypes.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/SyncListAcceleratorTypes.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/SyncListAcceleratorTypesLocationname.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/SyncListAcceleratorTypesLocationname.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/SyncListAcceleratorTypesLocationname.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/SyncListAcceleratorTypesLocationname.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/SyncListAcceleratorTypesString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/SyncListAcceleratorTypesString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/SyncListAcceleratorTypesString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listacceleratortypes/SyncListAcceleratorTypesString.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listlocations/AsyncListLocations.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listlocations/AsyncListLocations.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listlocations/AsyncListLocations.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listlocations/AsyncListLocations.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listlocations/AsyncListLocationsPaged.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listlocations/AsyncListLocationsPaged.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listlocations/AsyncListLocationsPaged.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listlocations/SyncListLocations.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listlocations/SyncListLocations.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listlocations/SyncListLocations.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listlocations/SyncListLocations.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/AsyncListNodes.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/AsyncListNodes.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/AsyncListNodes.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/AsyncListNodes.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/AsyncListNodesPaged.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/AsyncListNodesPaged.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/AsyncListNodesPaged.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/AsyncListNodesPaged.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/SyncListNodes.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/SyncListNodes.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/SyncListNodes.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/SyncListNodes.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/SyncListNodesLocationname.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/SyncListNodesLocationname.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/SyncListNodesLocationname.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/SyncListNodesLocationname.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/SyncListNodesString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/SyncListNodesString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/SyncListNodesString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listnodes/SyncListNodesString.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/AsyncListRuntimeVersions.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/AsyncListRuntimeVersions.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/AsyncListRuntimeVersions.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/AsyncListRuntimeVersions.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/AsyncListRuntimeVersionsPaged.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/AsyncListRuntimeVersionsPaged.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/AsyncListRuntimeVersionsPaged.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/AsyncListRuntimeVersionsPaged.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/SyncListRuntimeVersions.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/SyncListRuntimeVersions.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/SyncListRuntimeVersions.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/SyncListRuntimeVersions.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/SyncListRuntimeVersionsLocationname.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/SyncListRuntimeVersionsLocationname.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/SyncListRuntimeVersionsLocationname.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/SyncListRuntimeVersionsLocationname.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/SyncListRuntimeVersionsString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/SyncListRuntimeVersionsString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/SyncListRuntimeVersionsString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listruntimeversions/SyncListRuntimeVersionsString.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/startnode/AsyncStartNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/startnode/AsyncStartNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/startnode/AsyncStartNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/startnode/AsyncStartNode.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/startnode/AsyncStartNodeLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/startnode/AsyncStartNodeLRO.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/startnode/AsyncStartNodeLRO.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/startnode/AsyncStartNodeLRO.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/startnode/SyncStartNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/startnode/SyncStartNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/startnode/SyncStartNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/startnode/SyncStartNode.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/stopnode/AsyncStopNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/stopnode/AsyncStopNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/stopnode/AsyncStopNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/stopnode/AsyncStopNode.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/stopnode/AsyncStopNodeLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/stopnode/AsyncStopNodeLRO.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/stopnode/AsyncStopNodeLRO.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/stopnode/AsyncStopNodeLRO.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/stopnode/SyncStopNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/stopnode/SyncStopNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/stopnode/SyncStopNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/stopnode/SyncStopNode.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/updatenode/AsyncUpdateNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/updatenode/AsyncUpdateNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/updatenode/AsyncUpdateNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/updatenode/AsyncUpdateNode.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/updatenode/AsyncUpdateNodeLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/updatenode/AsyncUpdateNodeLRO.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/updatenode/AsyncUpdateNodeLRO.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/updatenode/AsyncUpdateNodeLRO.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/updatenode/SyncUpdateNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/updatenode/SyncUpdateNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/updatenode/SyncUpdateNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/updatenode/SyncUpdateNode.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/updatenode/SyncUpdateNodeNodeFieldmask.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/updatenode/SyncUpdateNodeNodeFieldmask.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/updatenode/SyncUpdateNodeNodeFieldmask.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/updatenode/SyncUpdateNodeNodeFieldmask.java diff --git a/owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpusettings/getnode/SyncGetNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpusettings/getnode/SyncGetNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2/samples/snippets/generated/com/google/cloud/tpu/v2/tpusettings/getnode/SyncGetNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpusettings/getnode/SyncGetNode.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/stub/tpustubsettings/getnode/SyncGetNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/stub/tpustubsettings/getnode/SyncGetNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/stub/tpustubsettings/getnode/SyncGetNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/stub/tpustubsettings/getnode/SyncGetNode.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/create/SyncCreateSetCredentialsProvider.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/create/SyncCreateSetCredentialsProvider.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/create/SyncCreateSetEndpoint.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/create/SyncCreateSetEndpoint.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/AsyncCreateNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/AsyncCreateNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/AsyncCreateNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/AsyncCreateNode.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/AsyncCreateNodeLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/AsyncCreateNodeLRO.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/AsyncCreateNodeLRO.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/AsyncCreateNodeLRO.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/SyncCreateNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/SyncCreateNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/SyncCreateNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/SyncCreateNode.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/SyncCreateNodeLocationnameNodeString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/SyncCreateNodeLocationnameNodeString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/SyncCreateNodeLocationnameNodeString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/SyncCreateNodeLocationnameNodeString.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/SyncCreateNodeStringNodeString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/SyncCreateNodeStringNodeString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/SyncCreateNodeStringNodeString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createnode/SyncCreateNodeStringNodeString.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/AsyncCreateQueuedResource.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/AsyncCreateQueuedResource.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/AsyncCreateQueuedResource.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/AsyncCreateQueuedResource.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/AsyncCreateQueuedResourceLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/AsyncCreateQueuedResourceLRO.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/AsyncCreateQueuedResourceLRO.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/AsyncCreateQueuedResourceLRO.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/SyncCreateQueuedResource.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/SyncCreateQueuedResource.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/SyncCreateQueuedResource.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/SyncCreateQueuedResource.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/SyncCreateQueuedResourceLocationnameQueuedresourceString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/SyncCreateQueuedResourceLocationnameQueuedresourceString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/SyncCreateQueuedResourceLocationnameQueuedresourceString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/SyncCreateQueuedResourceLocationnameQueuedresourceString.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/SyncCreateQueuedResourceStringQueuedresourceString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/SyncCreateQueuedResourceStringQueuedresourceString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/SyncCreateQueuedResourceStringQueuedresourceString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/createqueuedresource/SyncCreateQueuedResourceStringQueuedresourceString.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/AsyncDeleteNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/AsyncDeleteNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/AsyncDeleteNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/AsyncDeleteNode.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/AsyncDeleteNodeLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/AsyncDeleteNodeLRO.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/AsyncDeleteNodeLRO.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/AsyncDeleteNodeLRO.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/SyncDeleteNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/SyncDeleteNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/SyncDeleteNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/SyncDeleteNode.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/SyncDeleteNodeNodename.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/SyncDeleteNodeNodename.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/SyncDeleteNodeNodename.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/SyncDeleteNodeNodename.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/SyncDeleteNodeString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/SyncDeleteNodeString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/SyncDeleteNodeString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletenode/SyncDeleteNodeString.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/AsyncDeleteQueuedResource.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/AsyncDeleteQueuedResource.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/AsyncDeleteQueuedResource.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/AsyncDeleteQueuedResource.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/AsyncDeleteQueuedResourceLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/AsyncDeleteQueuedResourceLRO.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/AsyncDeleteQueuedResourceLRO.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/AsyncDeleteQueuedResourceLRO.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/SyncDeleteQueuedResource.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/SyncDeleteQueuedResource.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/SyncDeleteQueuedResource.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/SyncDeleteQueuedResource.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/SyncDeleteQueuedResourceQueuedresourcename.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/SyncDeleteQueuedResourceQueuedresourcename.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/SyncDeleteQueuedResourceQueuedresourcename.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/SyncDeleteQueuedResourceQueuedresourcename.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/SyncDeleteQueuedResourceString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/SyncDeleteQueuedResourceString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/SyncDeleteQueuedResourceString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/deletequeuedresource/SyncDeleteQueuedResourceString.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/generateserviceidentity/AsyncGenerateServiceIdentity.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/generateserviceidentity/AsyncGenerateServiceIdentity.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/generateserviceidentity/AsyncGenerateServiceIdentity.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/generateserviceidentity/AsyncGenerateServiceIdentity.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/generateserviceidentity/SyncGenerateServiceIdentity.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/generateserviceidentity/SyncGenerateServiceIdentity.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/generateserviceidentity/SyncGenerateServiceIdentity.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/generateserviceidentity/SyncGenerateServiceIdentity.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getacceleratortype/AsyncGetAcceleratorType.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getacceleratortype/AsyncGetAcceleratorType.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getacceleratortype/AsyncGetAcceleratorType.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getacceleratortype/AsyncGetAcceleratorType.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getacceleratortype/SyncGetAcceleratorType.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getacceleratortype/SyncGetAcceleratorType.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getacceleratortype/SyncGetAcceleratorType.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getacceleratortype/SyncGetAcceleratorType.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getacceleratortype/SyncGetAcceleratorTypeAcceleratortypename.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getacceleratortype/SyncGetAcceleratorTypeAcceleratortypename.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getacceleratortype/SyncGetAcceleratorTypeAcceleratortypename.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getacceleratortype/SyncGetAcceleratorTypeAcceleratortypename.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getacceleratortype/SyncGetAcceleratorTypeString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getacceleratortype/SyncGetAcceleratorTypeString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getacceleratortype/SyncGetAcceleratorTypeString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getacceleratortype/SyncGetAcceleratorTypeString.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getguestattributes/AsyncGetGuestAttributes.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getguestattributes/AsyncGetGuestAttributes.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getguestattributes/AsyncGetGuestAttributes.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getguestattributes/AsyncGetGuestAttributes.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getguestattributes/SyncGetGuestAttributes.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getguestattributes/SyncGetGuestAttributes.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getguestattributes/SyncGetGuestAttributes.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getguestattributes/SyncGetGuestAttributes.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getlocation/AsyncGetLocation.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getlocation/AsyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getlocation/AsyncGetLocation.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getlocation/AsyncGetLocation.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getlocation/SyncGetLocation.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getlocation/SyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getlocation/SyncGetLocation.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getlocation/SyncGetLocation.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getnode/AsyncGetNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getnode/AsyncGetNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getnode/AsyncGetNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getnode/AsyncGetNode.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getnode/SyncGetNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getnode/SyncGetNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getnode/SyncGetNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getnode/SyncGetNode.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getnode/SyncGetNodeNodename.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getnode/SyncGetNodeNodename.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getnode/SyncGetNodeNodename.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getnode/SyncGetNodeNodename.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getnode/SyncGetNodeString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getnode/SyncGetNodeString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getnode/SyncGetNodeString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getnode/SyncGetNodeString.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getqueuedresource/AsyncGetQueuedResource.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getqueuedresource/AsyncGetQueuedResource.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getqueuedresource/AsyncGetQueuedResource.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getqueuedresource/AsyncGetQueuedResource.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getqueuedresource/SyncGetQueuedResource.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getqueuedresource/SyncGetQueuedResource.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getqueuedresource/SyncGetQueuedResource.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getqueuedresource/SyncGetQueuedResource.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getqueuedresource/SyncGetQueuedResourceQueuedresourcename.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getqueuedresource/SyncGetQueuedResourceQueuedresourcename.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getqueuedresource/SyncGetQueuedResourceQueuedresourcename.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getqueuedresource/SyncGetQueuedResourceQueuedresourcename.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getqueuedresource/SyncGetQueuedResourceString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getqueuedresource/SyncGetQueuedResourceString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getqueuedresource/SyncGetQueuedResourceString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getqueuedresource/SyncGetQueuedResourceString.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getruntimeversion/AsyncGetRuntimeVersion.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getruntimeversion/AsyncGetRuntimeVersion.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getruntimeversion/AsyncGetRuntimeVersion.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getruntimeversion/AsyncGetRuntimeVersion.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getruntimeversion/SyncGetRuntimeVersion.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getruntimeversion/SyncGetRuntimeVersion.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getruntimeversion/SyncGetRuntimeVersion.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getruntimeversion/SyncGetRuntimeVersion.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getruntimeversion/SyncGetRuntimeVersionRuntimeversionname.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getruntimeversion/SyncGetRuntimeVersionRuntimeversionname.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getruntimeversion/SyncGetRuntimeVersionRuntimeversionname.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getruntimeversion/SyncGetRuntimeVersionRuntimeversionname.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getruntimeversion/SyncGetRuntimeVersionString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getruntimeversion/SyncGetRuntimeVersionString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getruntimeversion/SyncGetRuntimeVersionString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/getruntimeversion/SyncGetRuntimeVersionString.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/AsyncListAcceleratorTypes.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/AsyncListAcceleratorTypes.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/AsyncListAcceleratorTypes.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/AsyncListAcceleratorTypes.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/AsyncListAcceleratorTypesPaged.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/AsyncListAcceleratorTypesPaged.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/AsyncListAcceleratorTypesPaged.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/AsyncListAcceleratorTypesPaged.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/SyncListAcceleratorTypes.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/SyncListAcceleratorTypes.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/SyncListAcceleratorTypes.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/SyncListAcceleratorTypes.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/SyncListAcceleratorTypesLocationname.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/SyncListAcceleratorTypesLocationname.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/SyncListAcceleratorTypesLocationname.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/SyncListAcceleratorTypesLocationname.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/SyncListAcceleratorTypesString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/SyncListAcceleratorTypesString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/SyncListAcceleratorTypesString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listacceleratortypes/SyncListAcceleratorTypesString.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listlocations/AsyncListLocations.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listlocations/AsyncListLocations.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listlocations/AsyncListLocations.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listlocations/AsyncListLocations.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listlocations/AsyncListLocationsPaged.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listlocations/AsyncListLocationsPaged.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listlocations/AsyncListLocationsPaged.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listlocations/SyncListLocations.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listlocations/SyncListLocations.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listlocations/SyncListLocations.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listlocations/SyncListLocations.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/AsyncListNodes.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/AsyncListNodes.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/AsyncListNodes.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/AsyncListNodes.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/AsyncListNodesPaged.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/AsyncListNodesPaged.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/AsyncListNodesPaged.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/AsyncListNodesPaged.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/SyncListNodes.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/SyncListNodes.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/SyncListNodes.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/SyncListNodes.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/SyncListNodesLocationname.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/SyncListNodesLocationname.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/SyncListNodesLocationname.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/SyncListNodesLocationname.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/SyncListNodesString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/SyncListNodesString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/SyncListNodesString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listnodes/SyncListNodesString.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/AsyncListQueuedResources.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/AsyncListQueuedResources.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/AsyncListQueuedResources.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/AsyncListQueuedResources.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/AsyncListQueuedResourcesPaged.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/AsyncListQueuedResourcesPaged.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/AsyncListQueuedResourcesPaged.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/AsyncListQueuedResourcesPaged.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/SyncListQueuedResources.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/SyncListQueuedResources.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/SyncListQueuedResources.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/SyncListQueuedResources.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/SyncListQueuedResourcesLocationname.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/SyncListQueuedResourcesLocationname.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/SyncListQueuedResourcesLocationname.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/SyncListQueuedResourcesLocationname.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/SyncListQueuedResourcesString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/SyncListQueuedResourcesString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/SyncListQueuedResourcesString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listqueuedresources/SyncListQueuedResourcesString.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/AsyncListRuntimeVersions.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/AsyncListRuntimeVersions.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/AsyncListRuntimeVersions.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/AsyncListRuntimeVersions.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/AsyncListRuntimeVersionsPaged.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/AsyncListRuntimeVersionsPaged.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/AsyncListRuntimeVersionsPaged.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/AsyncListRuntimeVersionsPaged.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/SyncListRuntimeVersions.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/SyncListRuntimeVersions.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/SyncListRuntimeVersions.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/SyncListRuntimeVersions.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/SyncListRuntimeVersionsLocationname.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/SyncListRuntimeVersionsLocationname.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/SyncListRuntimeVersionsLocationname.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/SyncListRuntimeVersionsLocationname.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/SyncListRuntimeVersionsString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/SyncListRuntimeVersionsString.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/SyncListRuntimeVersionsString.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listruntimeversions/SyncListRuntimeVersionsString.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/simulatemaintenanceevent/AsyncSimulateMaintenanceEvent.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/simulatemaintenanceevent/AsyncSimulateMaintenanceEvent.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/simulatemaintenanceevent/AsyncSimulateMaintenanceEvent.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/simulatemaintenanceevent/AsyncSimulateMaintenanceEvent.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/simulatemaintenanceevent/AsyncSimulateMaintenanceEventLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/simulatemaintenanceevent/AsyncSimulateMaintenanceEventLRO.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/simulatemaintenanceevent/AsyncSimulateMaintenanceEventLRO.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/simulatemaintenanceevent/AsyncSimulateMaintenanceEventLRO.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/simulatemaintenanceevent/SyncSimulateMaintenanceEvent.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/simulatemaintenanceevent/SyncSimulateMaintenanceEvent.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/simulatemaintenanceevent/SyncSimulateMaintenanceEvent.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/simulatemaintenanceevent/SyncSimulateMaintenanceEvent.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/startnode/AsyncStartNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/startnode/AsyncStartNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/startnode/AsyncStartNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/startnode/AsyncStartNode.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/startnode/AsyncStartNodeLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/startnode/AsyncStartNodeLRO.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/startnode/AsyncStartNodeLRO.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/startnode/AsyncStartNodeLRO.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/startnode/SyncStartNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/startnode/SyncStartNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/startnode/SyncStartNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/startnode/SyncStartNode.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/stopnode/AsyncStopNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/stopnode/AsyncStopNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/stopnode/AsyncStopNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/stopnode/AsyncStopNode.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/stopnode/AsyncStopNodeLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/stopnode/AsyncStopNodeLRO.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/stopnode/AsyncStopNodeLRO.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/stopnode/AsyncStopNodeLRO.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/stopnode/SyncStopNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/stopnode/SyncStopNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/stopnode/SyncStopNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/stopnode/SyncStopNode.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/updatenode/AsyncUpdateNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/updatenode/AsyncUpdateNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/updatenode/AsyncUpdateNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/updatenode/AsyncUpdateNode.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/updatenode/AsyncUpdateNodeLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/updatenode/AsyncUpdateNodeLRO.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/updatenode/AsyncUpdateNodeLRO.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/updatenode/AsyncUpdateNodeLRO.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/updatenode/SyncUpdateNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/updatenode/SyncUpdateNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/updatenode/SyncUpdateNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/updatenode/SyncUpdateNode.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/updatenode/SyncUpdateNodeNodeFieldmask.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/updatenode/SyncUpdateNodeNodeFieldmask.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/updatenode/SyncUpdateNodeNodeFieldmask.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/updatenode/SyncUpdateNodeNodeFieldmask.java diff --git a/owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpusettings/getnode/SyncGetNode.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpusettings/getnode/SyncGetNode.java similarity index 100% rename from owl-bot-staging/java-tpu/v2alpha1/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpusettings/getnode/SyncGetNode.java rename to java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpusettings/getnode/SyncGetNode.java diff --git a/owl-bot-staging/java-tpu/v1/grpc-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TpuGrpc.java b/owl-bot-staging/java-tpu/v1/grpc-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TpuGrpc.java deleted file mode 100644 index f238d10a4880..000000000000 --- a/owl-bot-staging/java-tpu/v1/grpc-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TpuGrpc.java +++ /dev/null @@ -1,1168 +0,0 @@ -package com.google.cloud.tpu.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Manages TPU nodes and other resources
- * TPU API v1
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/tpu/v1/cloud_tpu.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TpuGrpc { - - private TpuGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.tpu.v1.Tpu"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListNodesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNodes", - requestType = com.google.cloud.tpu.v1.ListNodesRequest.class, - responseType = com.google.cloud.tpu.v1.ListNodesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNodesMethod() { - io.grpc.MethodDescriptor getListNodesMethod; - if ((getListNodesMethod = TpuGrpc.getListNodesMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getListNodesMethod = TpuGrpc.getListNodesMethod) == null) { - TpuGrpc.getListNodesMethod = getListNodesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v1.ListNodesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v1.ListNodesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListNodes")) - .build(); - } - } - } - return getListNodesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNode", - requestType = com.google.cloud.tpu.v1.GetNodeRequest.class, - responseType = com.google.cloud.tpu.v1.Node.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNodeMethod() { - io.grpc.MethodDescriptor getGetNodeMethod; - if ((getGetNodeMethod = TpuGrpc.getGetNodeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getGetNodeMethod = TpuGrpc.getGetNodeMethod) == null) { - TpuGrpc.getGetNodeMethod = getGetNodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v1.GetNodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v1.Node.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetNode")) - .build(); - } - } - } - return getGetNodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateNodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateNode", - requestType = com.google.cloud.tpu.v1.CreateNodeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateNodeMethod() { - io.grpc.MethodDescriptor getCreateNodeMethod; - if ((getCreateNodeMethod = TpuGrpc.getCreateNodeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getCreateNodeMethod = TpuGrpc.getCreateNodeMethod) == null) { - TpuGrpc.getCreateNodeMethod = getCreateNodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v1.CreateNodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("CreateNode")) - .build(); - } - } - } - return getCreateNodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteNodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteNode", - requestType = com.google.cloud.tpu.v1.DeleteNodeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteNodeMethod() { - io.grpc.MethodDescriptor getDeleteNodeMethod; - if ((getDeleteNodeMethod = TpuGrpc.getDeleteNodeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getDeleteNodeMethod = TpuGrpc.getDeleteNodeMethod) == null) { - TpuGrpc.getDeleteNodeMethod = getDeleteNodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v1.DeleteNodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("DeleteNode")) - .build(); - } - } - } - return getDeleteNodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getReimageNodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ReimageNode", - requestType = com.google.cloud.tpu.v1.ReimageNodeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getReimageNodeMethod() { - io.grpc.MethodDescriptor getReimageNodeMethod; - if ((getReimageNodeMethod = TpuGrpc.getReimageNodeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getReimageNodeMethod = TpuGrpc.getReimageNodeMethod) == null) { - TpuGrpc.getReimageNodeMethod = getReimageNodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReimageNode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v1.ReimageNodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ReimageNode")) - .build(); - } - } - } - return getReimageNodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getStopNodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopNode", - requestType = com.google.cloud.tpu.v1.StopNodeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStopNodeMethod() { - io.grpc.MethodDescriptor getStopNodeMethod; - if ((getStopNodeMethod = TpuGrpc.getStopNodeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getStopNodeMethod = TpuGrpc.getStopNodeMethod) == null) { - TpuGrpc.getStopNodeMethod = getStopNodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopNode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v1.StopNodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("StopNode")) - .build(); - } - } - } - return getStopNodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartNodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartNode", - requestType = com.google.cloud.tpu.v1.StartNodeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartNodeMethod() { - io.grpc.MethodDescriptor getStartNodeMethod; - if ((getStartNodeMethod = TpuGrpc.getStartNodeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getStartNodeMethod = TpuGrpc.getStartNodeMethod) == null) { - TpuGrpc.getStartNodeMethod = getStartNodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartNode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v1.StartNodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("StartNode")) - .build(); - } - } - } - return getStartNodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getListTensorFlowVersionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTensorFlowVersions", - requestType = com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest.class, - responseType = com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListTensorFlowVersionsMethod() { - io.grpc.MethodDescriptor getListTensorFlowVersionsMethod; - if ((getListTensorFlowVersionsMethod = TpuGrpc.getListTensorFlowVersionsMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getListTensorFlowVersionsMethod = TpuGrpc.getListTensorFlowVersionsMethod) == null) { - TpuGrpc.getListTensorFlowVersionsMethod = getListTensorFlowVersionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTensorFlowVersions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListTensorFlowVersions")) - .build(); - } - } - } - return getListTensorFlowVersionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetTensorFlowVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTensorFlowVersion", - requestType = com.google.cloud.tpu.v1.GetTensorFlowVersionRequest.class, - responseType = com.google.cloud.tpu.v1.TensorFlowVersion.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTensorFlowVersionMethod() { - io.grpc.MethodDescriptor getGetTensorFlowVersionMethod; - if ((getGetTensorFlowVersionMethod = TpuGrpc.getGetTensorFlowVersionMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getGetTensorFlowVersionMethod = TpuGrpc.getGetTensorFlowVersionMethod) == null) { - TpuGrpc.getGetTensorFlowVersionMethod = getGetTensorFlowVersionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTensorFlowVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v1.GetTensorFlowVersionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v1.TensorFlowVersion.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetTensorFlowVersion")) - .build(); - } - } - } - return getGetTensorFlowVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor getListAcceleratorTypesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAcceleratorTypes", - requestType = com.google.cloud.tpu.v1.ListAcceleratorTypesRequest.class, - responseType = com.google.cloud.tpu.v1.ListAcceleratorTypesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAcceleratorTypesMethod() { - io.grpc.MethodDescriptor getListAcceleratorTypesMethod; - if ((getListAcceleratorTypesMethod = TpuGrpc.getListAcceleratorTypesMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getListAcceleratorTypesMethod = TpuGrpc.getListAcceleratorTypesMethod) == null) { - TpuGrpc.getListAcceleratorTypesMethod = getListAcceleratorTypesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAcceleratorTypes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v1.ListAcceleratorTypesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v1.ListAcceleratorTypesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListAcceleratorTypes")) - .build(); - } - } - } - return getListAcceleratorTypesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAcceleratorTypeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAcceleratorType", - requestType = com.google.cloud.tpu.v1.GetAcceleratorTypeRequest.class, - responseType = com.google.cloud.tpu.v1.AcceleratorType.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAcceleratorTypeMethod() { - io.grpc.MethodDescriptor getGetAcceleratorTypeMethod; - if ((getGetAcceleratorTypeMethod = TpuGrpc.getGetAcceleratorTypeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getGetAcceleratorTypeMethod = TpuGrpc.getGetAcceleratorTypeMethod) == null) { - TpuGrpc.getGetAcceleratorTypeMethod = getGetAcceleratorTypeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAcceleratorType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v1.GetAcceleratorTypeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v1.AcceleratorType.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetAcceleratorType")) - .build(); - } - } - } - return getGetAcceleratorTypeMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static TpuStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TpuStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TpuStub(channel, callOptions); - } - }; - return TpuStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TpuBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TpuBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TpuBlockingStub(channel, callOptions); - } - }; - return TpuBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static TpuFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TpuFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TpuFutureStub(channel, callOptions); - } - }; - return TpuFutureStub.newStub(factory, channel); - } - - /** - *
-   * Manages TPU nodes and other resources
-   * TPU API v1
-   * 
- */ - public static abstract class TpuImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists nodes.
-     * 
- */ - public void listNodes(com.google.cloud.tpu.v1.ListNodesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodesMethod(), responseObserver); - } - - /** - *
-     * Gets the details of a node.
-     * 
- */ - public void getNode(com.google.cloud.tpu.v1.GetNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodeMethod(), responseObserver); - } - - /** - *
-     * Creates a node.
-     * 
- */ - public void createNode(com.google.cloud.tpu.v1.CreateNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNodeMethod(), responseObserver); - } - - /** - *
-     * Deletes a node.
-     * 
- */ - public void deleteNode(com.google.cloud.tpu.v1.DeleteNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNodeMethod(), responseObserver); - } - - /** - *
-     * Reimages a node's OS.
-     * 
- */ - public void reimageNode(com.google.cloud.tpu.v1.ReimageNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReimageNodeMethod(), responseObserver); - } - - /** - *
-     * Stops a node, this operation is only available with single TPU nodes.
-     * 
- */ - public void stopNode(com.google.cloud.tpu.v1.StopNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopNodeMethod(), responseObserver); - } - - /** - *
-     * Starts a node.
-     * 
- */ - public void startNode(com.google.cloud.tpu.v1.StartNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartNodeMethod(), responseObserver); - } - - /** - *
-     * List TensorFlow versions supported by this API.
-     * 
- */ - public void listTensorFlowVersions(com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTensorFlowVersionsMethod(), responseObserver); - } - - /** - *
-     * Gets TensorFlow Version.
-     * 
- */ - public void getTensorFlowVersion(com.google.cloud.tpu.v1.GetTensorFlowVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTensorFlowVersionMethod(), responseObserver); - } - - /** - *
-     * Lists accelerator types supported by this API.
-     * 
- */ - public void listAcceleratorTypes(com.google.cloud.tpu.v1.ListAcceleratorTypesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAcceleratorTypesMethod(), responseObserver); - } - - /** - *
-     * Gets AcceleratorType.
-     * 
- */ - public void getAcceleratorType(com.google.cloud.tpu.v1.GetAcceleratorTypeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAcceleratorTypeMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListNodesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v1.ListNodesRequest, - com.google.cloud.tpu.v1.ListNodesResponse>( - this, METHODID_LIST_NODES))) - .addMethod( - getGetNodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v1.GetNodeRequest, - com.google.cloud.tpu.v1.Node>( - this, METHODID_GET_NODE))) - .addMethod( - getCreateNodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v1.CreateNodeRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_NODE))) - .addMethod( - getDeleteNodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v1.DeleteNodeRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_NODE))) - .addMethod( - getReimageNodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v1.ReimageNodeRequest, - com.google.longrunning.Operation>( - this, METHODID_REIMAGE_NODE))) - .addMethod( - getStopNodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v1.StopNodeRequest, - com.google.longrunning.Operation>( - this, METHODID_STOP_NODE))) - .addMethod( - getStartNodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v1.StartNodeRequest, - com.google.longrunning.Operation>( - this, METHODID_START_NODE))) - .addMethod( - getListTensorFlowVersionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest, - com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse>( - this, METHODID_LIST_TENSOR_FLOW_VERSIONS))) - .addMethod( - getGetTensorFlowVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v1.GetTensorFlowVersionRequest, - com.google.cloud.tpu.v1.TensorFlowVersion>( - this, METHODID_GET_TENSOR_FLOW_VERSION))) - .addMethod( - getListAcceleratorTypesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v1.ListAcceleratorTypesRequest, - com.google.cloud.tpu.v1.ListAcceleratorTypesResponse>( - this, METHODID_LIST_ACCELERATOR_TYPES))) - .addMethod( - getGetAcceleratorTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v1.GetAcceleratorTypeRequest, - com.google.cloud.tpu.v1.AcceleratorType>( - this, METHODID_GET_ACCELERATOR_TYPE))) - .build(); - } - } - - /** - *
-   * Manages TPU nodes and other resources
-   * TPU API v1
-   * 
- */ - public static final class TpuStub extends io.grpc.stub.AbstractAsyncStub { - private TpuStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TpuStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TpuStub(channel, callOptions); - } - - /** - *
-     * Lists nodes.
-     * 
- */ - public void listNodes(com.google.cloud.tpu.v1.ListNodesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNodesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the details of a node.
-     * 
- */ - public void getNode(com.google.cloud.tpu.v1.GetNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a node.
-     * 
- */ - public void createNode(com.google.cloud.tpu.v1.CreateNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateNodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a node.
-     * 
- */ - public void deleteNode(com.google.cloud.tpu.v1.DeleteNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteNodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Reimages a node's OS.
-     * 
- */ - public void reimageNode(com.google.cloud.tpu.v1.ReimageNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getReimageNodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stops a node, this operation is only available with single TPU nodes.
-     * 
- */ - public void stopNode(com.google.cloud.tpu.v1.StopNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopNodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts a node.
-     * 
- */ - public void startNode(com.google.cloud.tpu.v1.StartNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartNodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List TensorFlow versions supported by this API.
-     * 
- */ - public void listTensorFlowVersions(com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTensorFlowVersionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets TensorFlow Version.
-     * 
- */ - public void getTensorFlowVersion(com.google.cloud.tpu.v1.GetTensorFlowVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTensorFlowVersionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists accelerator types supported by this API.
-     * 
- */ - public void listAcceleratorTypes(com.google.cloud.tpu.v1.ListAcceleratorTypesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAcceleratorTypesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets AcceleratorType.
-     * 
- */ - public void getAcceleratorType(com.google.cloud.tpu.v1.GetAcceleratorTypeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAcceleratorTypeMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Manages TPU nodes and other resources
-   * TPU API v1
-   * 
- */ - public static final class TpuBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private TpuBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TpuBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TpuBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists nodes.
-     * 
- */ - public com.google.cloud.tpu.v1.ListNodesResponse listNodes(com.google.cloud.tpu.v1.ListNodesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNodesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the details of a node.
-     * 
- */ - public com.google.cloud.tpu.v1.Node getNode(com.google.cloud.tpu.v1.GetNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a node.
-     * 
- */ - public com.google.longrunning.Operation createNode(com.google.cloud.tpu.v1.CreateNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateNodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a node.
-     * 
- */ - public com.google.longrunning.Operation deleteNode(com.google.cloud.tpu.v1.DeleteNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteNodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Reimages a node's OS.
-     * 
- */ - public com.google.longrunning.Operation reimageNode(com.google.cloud.tpu.v1.ReimageNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getReimageNodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Stops a node, this operation is only available with single TPU nodes.
-     * 
- */ - public com.google.longrunning.Operation stopNode(com.google.cloud.tpu.v1.StopNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopNodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts a node.
-     * 
- */ - public com.google.longrunning.Operation startNode(com.google.cloud.tpu.v1.StartNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartNodeMethod(), getCallOptions(), request); - } - - /** - *
-     * List TensorFlow versions supported by this API.
-     * 
- */ - public com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse listTensorFlowVersions(com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTensorFlowVersionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets TensorFlow Version.
-     * 
- */ - public com.google.cloud.tpu.v1.TensorFlowVersion getTensorFlowVersion(com.google.cloud.tpu.v1.GetTensorFlowVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTensorFlowVersionMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists accelerator types supported by this API.
-     * 
- */ - public com.google.cloud.tpu.v1.ListAcceleratorTypesResponse listAcceleratorTypes(com.google.cloud.tpu.v1.ListAcceleratorTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAcceleratorTypesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets AcceleratorType.
-     * 
- */ - public com.google.cloud.tpu.v1.AcceleratorType getAcceleratorType(com.google.cloud.tpu.v1.GetAcceleratorTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAcceleratorTypeMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Manages TPU nodes and other resources
-   * TPU API v1
-   * 
- */ - public static final class TpuFutureStub extends io.grpc.stub.AbstractFutureStub { - private TpuFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TpuFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TpuFutureStub(channel, callOptions); - } - - /** - *
-     * Lists nodes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listNodes( - com.google.cloud.tpu.v1.ListNodesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNodesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the details of a node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNode( - com.google.cloud.tpu.v1.GetNodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createNode( - com.google.cloud.tpu.v1.CreateNodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateNodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteNode( - com.google.cloud.tpu.v1.DeleteNodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteNodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Reimages a node's OS.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture reimageNode( - com.google.cloud.tpu.v1.ReimageNodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getReimageNodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Stops a node, this operation is only available with single TPU nodes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture stopNode( - com.google.cloud.tpu.v1.StopNodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopNodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts a node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startNode( - com.google.cloud.tpu.v1.StartNodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartNodeMethod(), getCallOptions()), request); - } - - /** - *
-     * List TensorFlow versions supported by this API.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listTensorFlowVersions( - com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTensorFlowVersionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets TensorFlow Version.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getTensorFlowVersion( - com.google.cloud.tpu.v1.GetTensorFlowVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTensorFlowVersionMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists accelerator types supported by this API.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listAcceleratorTypes( - com.google.cloud.tpu.v1.ListAcceleratorTypesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAcceleratorTypesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets AcceleratorType.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAcceleratorType( - com.google.cloud.tpu.v1.GetAcceleratorTypeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAcceleratorTypeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_NODES = 0; - private static final int METHODID_GET_NODE = 1; - private static final int METHODID_CREATE_NODE = 2; - private static final int METHODID_DELETE_NODE = 3; - private static final int METHODID_REIMAGE_NODE = 4; - private static final int METHODID_STOP_NODE = 5; - private static final int METHODID_START_NODE = 6; - private static final int METHODID_LIST_TENSOR_FLOW_VERSIONS = 7; - private static final int METHODID_GET_TENSOR_FLOW_VERSION = 8; - private static final int METHODID_LIST_ACCELERATOR_TYPES = 9; - private static final int METHODID_GET_ACCELERATOR_TYPE = 10; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final TpuImplBase serviceImpl; - private final int methodId; - - MethodHandlers(TpuImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_NODES: - serviceImpl.listNodes((com.google.cloud.tpu.v1.ListNodesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NODE: - serviceImpl.getNode((com.google.cloud.tpu.v1.GetNodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_NODE: - serviceImpl.createNode((com.google.cloud.tpu.v1.CreateNodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_NODE: - serviceImpl.deleteNode((com.google.cloud.tpu.v1.DeleteNodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_REIMAGE_NODE: - serviceImpl.reimageNode((com.google.cloud.tpu.v1.ReimageNodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_NODE: - serviceImpl.stopNode((com.google.cloud.tpu.v1.StopNodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_NODE: - serviceImpl.startNode((com.google.cloud.tpu.v1.StartNodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_TENSOR_FLOW_VERSIONS: - serviceImpl.listTensorFlowVersions((com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_TENSOR_FLOW_VERSION: - serviceImpl.getTensorFlowVersion((com.google.cloud.tpu.v1.GetTensorFlowVersionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ACCELERATOR_TYPES: - serviceImpl.listAcceleratorTypes((com.google.cloud.tpu.v1.ListAcceleratorTypesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ACCELERATOR_TYPE: - serviceImpl.getAcceleratorType((com.google.cloud.tpu.v1.GetAcceleratorTypeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class TpuBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TpuBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.tpu.v1.CloudTpuProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Tpu"); - } - } - - private static final class TpuFileDescriptorSupplier - extends TpuBaseDescriptorSupplier { - TpuFileDescriptorSupplier() {} - } - - private static final class TpuMethodDescriptorSupplier - extends TpuBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TpuMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (TpuGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TpuFileDescriptorSupplier()) - .addMethod(getListNodesMethod()) - .addMethod(getGetNodeMethod()) - .addMethod(getCreateNodeMethod()) - .addMethod(getDeleteNodeMethod()) - .addMethod(getReimageNodeMethod()) - .addMethod(getStopNodeMethod()) - .addMethod(getStartNodeMethod()) - .addMethod(getListTensorFlowVersionsMethod()) - .addMethod(getGetTensorFlowVersionMethod()) - .addMethod(getListAcceleratorTypesMethod()) - .addMethod(getGetAcceleratorTypeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CloudTpuProto.java b/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CloudTpuProto.java deleted file mode 100644 index 19b329211135..000000000000 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CloudTpuProto.java +++ /dev/null @@ -1,454 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v1/cloud_tpu.proto - -package com.google.cloud.tpu.v1; - -public final class CloudTpuProto { - private CloudTpuProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_SchedulingConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_SchedulingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_NetworkEndpoint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_NetworkEndpoint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_Node_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_Node_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_Node_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_Node_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_ListNodesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_ListNodesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_ListNodesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_ListNodesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_GetNodeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_GetNodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_CreateNodeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_CreateNodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_DeleteNodeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_DeleteNodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_ReimageNodeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_ReimageNodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_StopNodeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_StopNodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_StartNodeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_StartNodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_TensorFlowVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_TensorFlowVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_AcceleratorType_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_AcceleratorType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v1_Symptom_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v1_Symptom_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n#google/cloud/tpu/v1/cloud_tpu.proto\022\023g" + - "oogle.cloud.tpu.v1\032\034google/api/annotatio" + - "ns.proto\032\027google/api/client.proto\032\037googl" + - "e/api/field_behavior.proto\032\031google/api/r" + - "esource.proto\032#google/longrunning/operat" + - "ions.proto\032\037google/protobuf/timestamp.pr" + - "oto\"9\n\020SchedulingConfig\022\023\n\013preemptible\030\001" + - " \001(\010\022\020\n\010reserved\030\002 \001(\010\"3\n\017NetworkEndpoin" + - "t\022\022\n\nip_address\030\001 \001(\t\022\014\n\004port\030\002 \001(\005\"\264\n\n\004" + - "Node\022\024\n\004name\030\001 \001(\tB\006\340A\005\340A\003\022\023\n\013descriptio" + - "n\030\003 \001(\t\022\035\n\020accelerator_type\030\005 \001(\tB\003\340A\002\022\026" + - "\n\nip_address\030\010 \001(\tB\002\030\001\022\020\n\004port\030\016 \001(\tB\002\030\001" + - "\0223\n\005state\030\t \001(\0162\037.google.cloud.tpu.v1.No" + - "de.StateB\003\340A\003\022\037\n\022health_description\030\n \001(" + - "\tB\003\340A\003\022\037\n\022tensorflow_version\030\013 \001(\tB\003\340A\002\022" + - "\017\n\007network\030\014 \001(\t\022\022\n\ncidr_block\030\r \001(\t\022\034\n\017" + - "service_account\030\017 \001(\tB\003\340A\003\0224\n\013create_tim" + - "e\030\020 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + - "\022@\n\021scheduling_config\030\021 \001(\0132%.google.clo" + - "ud.tpu.v1.SchedulingConfig\022D\n\021network_en" + - "dpoints\030\025 \003(\0132$.google.cloud.tpu.v1.Netw" + - "orkEndpointB\003\340A\003\0220\n\006health\030\026 \001(\0162 .googl" + - "e.cloud.tpu.v1.Node.Health\0225\n\006labels\030\030 \003" + - "(\0132%.google.cloud.tpu.v1.Node.LabelsEntr" + - "y\022\036\n\026use_service_networking\030\033 \001(\010\022>\n\013api" + - "_version\030& \001(\0162$.google.cloud.tpu.v1.Nod" + - "e.ApiVersionB\003\340A\003\0223\n\010symptoms\030\' \003(\0132\034.go" + - "ogle.cloud.tpu.v1.SymptomB\003\340A\003\032-\n\013Labels" + - "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\341\001" + - "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATI" + - "NG\020\001\022\t\n\005READY\020\002\022\016\n\nRESTARTING\020\003\022\r\n\tREIMA" + - "GING\020\004\022\014\n\010DELETING\020\005\022\r\n\tREPAIRING\020\006\022\013\n\007S" + - "TOPPED\020\010\022\014\n\010STOPPING\020\t\022\014\n\010STARTING\020\n\022\r\n\t" + - "PREEMPTED\020\013\022\016\n\nTERMINATED\020\014\022\n\n\006HIDING\020\r\022" + - "\n\n\006HIDDEN\020\016\022\014\n\010UNHIDING\020\017\"\211\001\n\006Health\022\026\n\022" + - "HEALTH_UNSPECIFIED\020\000\022\013\n\007HEALTHY\020\001\022\030\n\024DEP" + - "RECATED_UNHEALTHY\020\002\022\013\n\007TIMEOUT\020\003\022\030\n\024UNHE" + - "ALTHY_TENSORFLOW\020\004\022\031\n\025UNHEALTHY_MAINTENA" + - "NCE\020\005\"O\n\nApiVersion\022\033\n\027API_VERSION_UNSPE" + - "CIFIED\020\000\022\r\n\tV1_ALPHA1\020\001\022\006\n\002V1\020\002\022\r\n\tV2_AL" + - "PHA1\020\003:R\352AO\n\027tpu.googleapis.com/Node\0224pr" + - "ojects/{project}/locations/{location}/no" + - "des/{node}\"j\n\020ListNodesRequest\022/\n\006parent" + - "\030\001 \001(\tB\037\340A\002\372A\031\022\027tpu.googleapis.com/Node\022" + - "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k" + - "\n\021ListNodesResponse\022(\n\005nodes\030\001 \003(\0132\031.goo" + - "gle.cloud.tpu.v1.Node\022\027\n\017next_page_token" + - "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"?\n\016GetNodeRe" + - "quest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googlea" + - "pis.com/Node\"\203\001\n\021CreateNodeRequest\022/\n\006pa" + - "rent\030\001 \001(\tB\037\340A\002\372A\031\022\027tpu.googleapis.com/N" + - "ode\022\017\n\007node_id\030\002 \001(\t\022,\n\004node\030\003 \001(\0132\031.goo" + - "gle.cloud.tpu.v1.NodeB\003\340A\002\"B\n\021DeleteNode" + - "Request\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googl" + - "eapis.com/Node\">\n\022ReimageNodeRequest\022\014\n\004" + - "name\030\001 \001(\t\022\032\n\022tensorflow_version\030\002 \001(\t\"\037" + - "\n\017StopNodeRequest\022\014\n\004name\030\001 \001(\t\" \n\020Start" + - "NodeRequest\022\014\n\004name\030\001 \001(\t\"\257\001\n\021TensorFlow" + - "Version\022\014\n\004name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t:{" + - "\352Ax\n$tpu.googleapis.com/TensorFlowVersio" + - "n\022Pprojects/{project}/locations/{locatio" + - "n}/tensorFlowVersions/{tensor_flow_versi" + - "on}\"Y\n\033GetTensorFlowVersionRequest\022:\n\004na" + - "me\030\001 \001(\tB,\340A\002\372A&\n$tpu.googleapis.com/Ten" + - "sorFlowVersion\"\246\001\n\035ListTensorFlowVersion" + - "sRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$tpu.go" + - "ogleapis.com/TensorFlowVersion\022\021\n\tpage_s" + - "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030" + - "\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\223\001\n\036ListTensorFl" + - "owVersionsResponse\022C\n\023tensorflow_version" + - "s\030\001 \003(\0132&.google.cloud.tpu.v1.TensorFlow" + - "Version\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" + - "achable\030\003 \003(\t\"\243\001\n\017AcceleratorType\022\014\n\004nam" + - "e\030\001 \001(\t\022\014\n\004type\030\002 \001(\t:t\352Aq\n\"tpu.googleap" + - "is.com/AcceleratorType\022Kprojects/{projec" + - "t}/locations/{location}/acceleratorTypes" + - "/{accelerator_type}\"U\n\031GetAcceleratorTyp" + - "eRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"tpu.goog" + - "leapis.com/AcceleratorType\"\242\001\n\033ListAccel" + - "eratorTypesRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372" + - "A$\n\"tpu.googleapis.com/AcceleratorType\022\021" + - "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n" + - "\006filter\030\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\215\001\n\034List" + - "AcceleratorTypesResponse\022?\n\021accelerator_" + - "types\030\001 \003(\0132$.google.cloud.tpu.v1.Accele" + - "ratorType\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" + - "reachable\030\003 \003(\t\"\326\001\n\021OperationMetadata\022/\n" + - "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" + - "estamp\022,\n\010end_time\030\002 \001(\0132\032.google.protob" + - "uf.Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001" + - "(\t\022\025\n\rstatus_detail\030\005 \001(\t\022\030\n\020cancel_requ" + - "ested\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t\"\305\002\n\007Sym" + - "ptom\022/\n\013create_time\030\001 \001(\0132\032.google.proto" + - "buf.Timestamp\022>\n\014symptom_type\030\002 \001(\0162(.go" + - "ogle.cloud.tpu.v1.Symptom.SymptomType\022\017\n" + - "\007details\030\003 \001(\t\022\021\n\tworker_id\030\004 \001(\t\"\244\001\n\013Sy" + - "mptomType\022\034\n\030SYMPTOM_TYPE_UNSPECIFIED\020\000\022" + - "\016\n\nLOW_MEMORY\020\001\022\021\n\rOUT_OF_MEMORY\020\002\022\025\n\021EX" + - "ECUTE_TIMED_OUT\020\003\022\023\n\017MESH_BUILD_FAIL\020\004\022\025" + - "\n\021HBM_OUT_OF_MEMORY\020\005\022\021\n\rPROJECT_ABUSE\020\006" + - "2\336\017\n\003Tpu\022\226\001\n\tListNodes\022%.google.cloud.tp" + - "u.v1.ListNodesRequest\032&.google.cloud.tpu" + - ".v1.ListNodesResponse\":\202\323\344\223\002+\022)/v1/{pare" + - "nt=projects/*/locations/*}/nodes\332A\006paren" + - "t\022\203\001\n\007GetNode\022#.google.cloud.tpu.v1.GetN" + - "odeRequest\032\031.google.cloud.tpu.v1.Node\"8\202" + - "\323\344\223\002+\022)/v1/{name=projects/*/locations/*/" + - "nodes/*}\332A\004name\022\276\001\n\nCreateNode\022&.google." + - "cloud.tpu.v1.CreateNodeRequest\032\035.google." + - "longrunning.Operation\"i\202\323\344\223\0021\")/v1/{pare" + - "nt=projects/*/locations/*}/nodes:\004node\332A" + - "\023parent,node,node_id\312A\031\n\004Node\022\021Operation" + - "Metadata\022\251\001\n\nDeleteNode\022&.google.cloud.t" + - "pu.v1.DeleteNodeRequest\032\035.google.longrun" + - "ning.Operation\"T\202\323\344\223\002+*)/v1/{name=projec" + - "ts/*/locations/*/nodes/*}\332A\004name\312A\031\n\004Nod" + - "e\022\021OperationMetadata\022\257\001\n\013ReimageNode\022\'.g" + - "oogle.cloud.tpu.v1.ReimageNodeRequest\032\035." + - "google.longrunning.Operation\"X\202\323\344\223\0026\"1/v" + - "1/{name=projects/*/locations/*/nodes/*}:" + - "reimage:\001*\312A\031\n\004Node\022\021OperationMetadata\022\246" + - "\001\n\010StopNode\022$.google.cloud.tpu.v1.StopNo" + - "deRequest\032\035.google.longrunning.Operation" + - "\"U\202\323\344\223\0023\"./v1/{name=projects/*/locations" + - "/*/nodes/*}:stop:\001*\312A\031\n\004Node\022\021OperationM" + - "etadata\022\251\001\n\tStartNode\022%.google.cloud.tpu" + - ".v1.StartNodeRequest\032\035.google.longrunnin" + - "g.Operation\"V\202\323\344\223\0024\"//v1/{name=projects/" + - "*/locations/*/nodes/*}:start:\001*\312A\031\n\004Node" + - "\022\021OperationMetadata\022\312\001\n\026ListTensorFlowVe" + - "rsions\0222.google.cloud.tpu.v1.ListTensorF" + - "lowVersionsRequest\0323.google.cloud.tpu.v1" + - ".ListTensorFlowVersionsResponse\"G\202\323\344\223\0028\022" + - "6/v1/{parent=projects/*/locations/*}/ten" + - "sorflowVersions\332A\006parent\022\267\001\n\024GetTensorFl" + - "owVersion\0220.google.cloud.tpu.v1.GetTenso" + - "rFlowVersionRequest\032&.google.cloud.tpu.v" + - "1.TensorFlowVersion\"E\202\323\344\223\0028\0226/v1/{name=p" + - "rojects/*/locations/*/tensorflowVersions" + - "/*}\332A\004name\022\302\001\n\024ListAcceleratorTypes\0220.go" + - "ogle.cloud.tpu.v1.ListAcceleratorTypesRe" + - "quest\0321.google.cloud.tpu.v1.ListAccelera" + - "torTypesResponse\"E\202\323\344\223\0026\0224/v1/{parent=pr" + - "ojects/*/locations/*}/acceleratorTypes\332A" + - "\006parent\022\257\001\n\022GetAcceleratorType\022..google." + - "cloud.tpu.v1.GetAcceleratorTypeRequest\032$" + - ".google.cloud.tpu.v1.AcceleratorType\"C\202\323" + - "\344\223\0026\0224/v1/{name=projects/*/locations/*/a" + - "cceleratorTypes/*}\332A\004name\032F\312A\022tpu.google" + - "apis.com\322A.https://www.googleapis.com/au" + - "th/cloud-platformBb\n\027com.google.cloud.tp" + - "u.v1B\rCloudTpuProtoP\001Z6google.golang.org" + - "/genproto/googleapis/cloud/tpu/v1;tpub\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_tpu_v1_SchedulingConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_tpu_v1_SchedulingConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_SchedulingConfig_descriptor, - new java.lang.String[] { "Preemptible", "Reserved", }); - internal_static_google_cloud_tpu_v1_NetworkEndpoint_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_tpu_v1_NetworkEndpoint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_NetworkEndpoint_descriptor, - new java.lang.String[] { "IpAddress", "Port", }); - internal_static_google_cloud_tpu_v1_Node_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_tpu_v1_Node_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_Node_descriptor, - new java.lang.String[] { "Name", "Description", "AcceleratorType", "IpAddress", "Port", "State", "HealthDescription", "TensorflowVersion", "Network", "CidrBlock", "ServiceAccount", "CreateTime", "SchedulingConfig", "NetworkEndpoints", "Health", "Labels", "UseServiceNetworking", "ApiVersion", "Symptoms", }); - internal_static_google_cloud_tpu_v1_Node_LabelsEntry_descriptor = - internal_static_google_cloud_tpu_v1_Node_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_tpu_v1_Node_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_Node_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_tpu_v1_ListNodesRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_tpu_v1_ListNodesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_ListNodesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_tpu_v1_ListNodesResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_tpu_v1_ListNodesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_ListNodesResponse_descriptor, - new java.lang.String[] { "Nodes", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_tpu_v1_GetNodeRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_tpu_v1_GetNodeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_GetNodeRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_tpu_v1_CreateNodeRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_tpu_v1_CreateNodeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_CreateNodeRequest_descriptor, - new java.lang.String[] { "Parent", "NodeId", "Node", }); - internal_static_google_cloud_tpu_v1_DeleteNodeRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_tpu_v1_DeleteNodeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_DeleteNodeRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_tpu_v1_ReimageNodeRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_tpu_v1_ReimageNodeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_ReimageNodeRequest_descriptor, - new java.lang.String[] { "Name", "TensorflowVersion", }); - internal_static_google_cloud_tpu_v1_StopNodeRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_tpu_v1_StopNodeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_StopNodeRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_tpu_v1_StartNodeRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_tpu_v1_StartNodeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_StartNodeRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_tpu_v1_TensorFlowVersion_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_tpu_v1_TensorFlowVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_TensorFlowVersion_descriptor, - new java.lang.String[] { "Name", "Version", }); - internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_GetTensorFlowVersionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_ListTensorFlowVersionsResponse_descriptor, - new java.lang.String[] { "TensorflowVersions", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_tpu_v1_AcceleratorType_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_tpu_v1_AcceleratorType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_AcceleratorType_descriptor, - new java.lang.String[] { "Name", "Type", }); - internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_GetAcceleratorTypeRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_ListAcceleratorTypesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_ListAcceleratorTypesResponse_descriptor, - new java.lang.String[] { "AcceleratorTypes", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_tpu_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_tpu_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); - internal_static_google_cloud_tpu_v1_Symptom_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_tpu_v1_Symptom_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tpu_v1_Symptom_descriptor, - new java.lang.String[] { "CreateTime", "SymptomType", "Details", "WorkerId", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/DeleteNodeRequestOrBuilder.java b/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/DeleteNodeRequestOrBuilder.java deleted file mode 100644 index 4d7d791c980d..000000000000 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/DeleteNodeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v1/cloud_tpu.proto - -package com.google.cloud.tpu.v1; - -public interface DeleteNodeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.DeleteNodeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetAcceleratorTypeRequestOrBuilder.java b/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetAcceleratorTypeRequestOrBuilder.java deleted file mode 100644 index 38110e7d35ab..000000000000 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetAcceleratorTypeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v1/cloud_tpu.proto - -package com.google.cloud.tpu.v1; - -public interface GetAcceleratorTypeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.GetAcceleratorTypeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetNodeRequestOrBuilder.java b/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetNodeRequestOrBuilder.java deleted file mode 100644 index 1e1c45faf8c2..000000000000 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetNodeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v1/cloud_tpu.proto - -package com.google.cloud.tpu.v1; - -public interface GetNodeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.GetNodeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetTensorFlowVersionRequestOrBuilder.java b/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetTensorFlowVersionRequestOrBuilder.java deleted file mode 100644 index 8be72b5bb0a8..000000000000 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/GetTensorFlowVersionRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v1/cloud_tpu.proto - -package com.google.cloud.tpu.v1; - -public interface GetTensorFlowVersionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.GetTensorFlowVersionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/SchedulingConfigOrBuilder.java b/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/SchedulingConfigOrBuilder.java deleted file mode 100644 index ee190f21b550..000000000000 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/SchedulingConfigOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v1/cloud_tpu.proto - -package com.google.cloud.tpu.v1; - -public interface SchedulingConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.SchedulingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Defines whether the node is preemptible.
-   * 
- * - * bool preemptible = 1; - * @return The preemptible. - */ - boolean getPreemptible(); - - /** - *
-   * Whether the node is created under a reservation.
-   * 
- * - * bool reserved = 2; - * @return The reserved. - */ - boolean getReserved(); -} diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StartNodeRequestOrBuilder.java b/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StartNodeRequestOrBuilder.java deleted file mode 100644 index c7b3e0e1275d..000000000000 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StartNodeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v1/cloud_tpu.proto - -package com.google.cloud.tpu.v1; - -public interface StartNodeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.StartNodeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The resource name.
-   * 
- * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The resource name.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StopNodeRequestOrBuilder.java b/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StopNodeRequestOrBuilder.java deleted file mode 100644 index 6b652fd17f76..000000000000 --- a/owl-bot-staging/java-tpu/v1/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/StopNodeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v1/cloud_tpu.proto - -package com.google.cloud.tpu.v1; - -public interface StopNodeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v1.StopNodeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The resource name.
-   * 
- * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The resource name.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-tpu/v2/grpc-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/TpuGrpc.java b/owl-bot-staging/java-tpu/v2/grpc-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/TpuGrpc.java deleted file mode 100644 index 2aa134ae6486..000000000000 --- a/owl-bot-staging/java-tpu/v2/grpc-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/TpuGrpc.java +++ /dev/null @@ -1,1340 +0,0 @@ -package com.google.cloud.tpu.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Manages TPU nodes and other resources
- * TPU API v2
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/tpu/v2/cloud_tpu.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TpuGrpc { - - private TpuGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.tpu.v2.Tpu"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListNodesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNodes", - requestType = com.google.cloud.tpu.v2.ListNodesRequest.class, - responseType = com.google.cloud.tpu.v2.ListNodesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNodesMethod() { - io.grpc.MethodDescriptor getListNodesMethod; - if ((getListNodesMethod = TpuGrpc.getListNodesMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getListNodesMethod = TpuGrpc.getListNodesMethod) == null) { - TpuGrpc.getListNodesMethod = getListNodesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.ListNodesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.ListNodesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListNodes")) - .build(); - } - } - } - return getListNodesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNode", - requestType = com.google.cloud.tpu.v2.GetNodeRequest.class, - responseType = com.google.cloud.tpu.v2.Node.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNodeMethod() { - io.grpc.MethodDescriptor getGetNodeMethod; - if ((getGetNodeMethod = TpuGrpc.getGetNodeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getGetNodeMethod = TpuGrpc.getGetNodeMethod) == null) { - TpuGrpc.getGetNodeMethod = getGetNodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.GetNodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.Node.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetNode")) - .build(); - } - } - } - return getGetNodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateNodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateNode", - requestType = com.google.cloud.tpu.v2.CreateNodeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateNodeMethod() { - io.grpc.MethodDescriptor getCreateNodeMethod; - if ((getCreateNodeMethod = TpuGrpc.getCreateNodeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getCreateNodeMethod = TpuGrpc.getCreateNodeMethod) == null) { - TpuGrpc.getCreateNodeMethod = getCreateNodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.CreateNodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("CreateNode")) - .build(); - } - } - } - return getCreateNodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteNodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteNode", - requestType = com.google.cloud.tpu.v2.DeleteNodeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteNodeMethod() { - io.grpc.MethodDescriptor getDeleteNodeMethod; - if ((getDeleteNodeMethod = TpuGrpc.getDeleteNodeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getDeleteNodeMethod = TpuGrpc.getDeleteNodeMethod) == null) { - TpuGrpc.getDeleteNodeMethod = getDeleteNodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.DeleteNodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("DeleteNode")) - .build(); - } - } - } - return getDeleteNodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getStopNodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopNode", - requestType = com.google.cloud.tpu.v2.StopNodeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStopNodeMethod() { - io.grpc.MethodDescriptor getStopNodeMethod; - if ((getStopNodeMethod = TpuGrpc.getStopNodeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getStopNodeMethod = TpuGrpc.getStopNodeMethod) == null) { - TpuGrpc.getStopNodeMethod = getStopNodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopNode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.StopNodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("StopNode")) - .build(); - } - } - } - return getStopNodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartNodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartNode", - requestType = com.google.cloud.tpu.v2.StartNodeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartNodeMethod() { - io.grpc.MethodDescriptor getStartNodeMethod; - if ((getStartNodeMethod = TpuGrpc.getStartNodeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getStartNodeMethod = TpuGrpc.getStartNodeMethod) == null) { - TpuGrpc.getStartNodeMethod = getStartNodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartNode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.StartNodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("StartNode")) - .build(); - } - } - } - return getStartNodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateNodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNode", - requestType = com.google.cloud.tpu.v2.UpdateNodeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateNodeMethod() { - io.grpc.MethodDescriptor getUpdateNodeMethod; - if ((getUpdateNodeMethod = TpuGrpc.getUpdateNodeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getUpdateNodeMethod = TpuGrpc.getUpdateNodeMethod) == null) { - TpuGrpc.getUpdateNodeMethod = getUpdateNodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.UpdateNodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("UpdateNode")) - .build(); - } - } - } - return getUpdateNodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getGenerateServiceIdentityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateServiceIdentity", - requestType = com.google.cloud.tpu.v2.GenerateServiceIdentityRequest.class, - responseType = com.google.cloud.tpu.v2.GenerateServiceIdentityResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateServiceIdentityMethod() { - io.grpc.MethodDescriptor getGenerateServiceIdentityMethod; - if ((getGenerateServiceIdentityMethod = TpuGrpc.getGenerateServiceIdentityMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getGenerateServiceIdentityMethod = TpuGrpc.getGenerateServiceIdentityMethod) == null) { - TpuGrpc.getGenerateServiceIdentityMethod = getGenerateServiceIdentityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateServiceIdentity")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.GenerateServiceIdentityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.GenerateServiceIdentityResponse.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GenerateServiceIdentity")) - .build(); - } - } - } - return getGenerateServiceIdentityMethod; - } - - private static volatile io.grpc.MethodDescriptor getListAcceleratorTypesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAcceleratorTypes", - requestType = com.google.cloud.tpu.v2.ListAcceleratorTypesRequest.class, - responseType = com.google.cloud.tpu.v2.ListAcceleratorTypesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAcceleratorTypesMethod() { - io.grpc.MethodDescriptor getListAcceleratorTypesMethod; - if ((getListAcceleratorTypesMethod = TpuGrpc.getListAcceleratorTypesMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getListAcceleratorTypesMethod = TpuGrpc.getListAcceleratorTypesMethod) == null) { - TpuGrpc.getListAcceleratorTypesMethod = getListAcceleratorTypesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAcceleratorTypes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.ListAcceleratorTypesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.ListAcceleratorTypesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListAcceleratorTypes")) - .build(); - } - } - } - return getListAcceleratorTypesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAcceleratorTypeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAcceleratorType", - requestType = com.google.cloud.tpu.v2.GetAcceleratorTypeRequest.class, - responseType = com.google.cloud.tpu.v2.AcceleratorType.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAcceleratorTypeMethod() { - io.grpc.MethodDescriptor getGetAcceleratorTypeMethod; - if ((getGetAcceleratorTypeMethod = TpuGrpc.getGetAcceleratorTypeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getGetAcceleratorTypeMethod = TpuGrpc.getGetAcceleratorTypeMethod) == null) { - TpuGrpc.getGetAcceleratorTypeMethod = getGetAcceleratorTypeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAcceleratorType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.GetAcceleratorTypeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.AcceleratorType.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetAcceleratorType")) - .build(); - } - } - } - return getGetAcceleratorTypeMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRuntimeVersionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRuntimeVersions", - requestType = com.google.cloud.tpu.v2.ListRuntimeVersionsRequest.class, - responseType = com.google.cloud.tpu.v2.ListRuntimeVersionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRuntimeVersionsMethod() { - io.grpc.MethodDescriptor getListRuntimeVersionsMethod; - if ((getListRuntimeVersionsMethod = TpuGrpc.getListRuntimeVersionsMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getListRuntimeVersionsMethod = TpuGrpc.getListRuntimeVersionsMethod) == null) { - TpuGrpc.getListRuntimeVersionsMethod = getListRuntimeVersionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuntimeVersions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.ListRuntimeVersionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.ListRuntimeVersionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListRuntimeVersions")) - .build(); - } - } - } - return getListRuntimeVersionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetRuntimeVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRuntimeVersion", - requestType = com.google.cloud.tpu.v2.GetRuntimeVersionRequest.class, - responseType = com.google.cloud.tpu.v2.RuntimeVersion.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRuntimeVersionMethod() { - io.grpc.MethodDescriptor getGetRuntimeVersionMethod; - if ((getGetRuntimeVersionMethod = TpuGrpc.getGetRuntimeVersionMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getGetRuntimeVersionMethod = TpuGrpc.getGetRuntimeVersionMethod) == null) { - TpuGrpc.getGetRuntimeVersionMethod = getGetRuntimeVersionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRuntimeVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.GetRuntimeVersionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.RuntimeVersion.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetRuntimeVersion")) - .build(); - } - } - } - return getGetRuntimeVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetGuestAttributesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGuestAttributes", - requestType = com.google.cloud.tpu.v2.GetGuestAttributesRequest.class, - responseType = com.google.cloud.tpu.v2.GetGuestAttributesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetGuestAttributesMethod() { - io.grpc.MethodDescriptor getGetGuestAttributesMethod; - if ((getGetGuestAttributesMethod = TpuGrpc.getGetGuestAttributesMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getGetGuestAttributesMethod = TpuGrpc.getGetGuestAttributesMethod) == null) { - TpuGrpc.getGetGuestAttributesMethod = getGetGuestAttributesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGuestAttributes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.GetGuestAttributesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2.GetGuestAttributesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetGuestAttributes")) - .build(); - } - } - } - return getGetGuestAttributesMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static TpuStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TpuStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TpuStub(channel, callOptions); - } - }; - return TpuStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TpuBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TpuBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TpuBlockingStub(channel, callOptions); - } - }; - return TpuBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static TpuFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TpuFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TpuFutureStub(channel, callOptions); - } - }; - return TpuFutureStub.newStub(factory, channel); - } - - /** - *
-   * Manages TPU nodes and other resources
-   * TPU API v2
-   * 
- */ - public static abstract class TpuImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists nodes.
-     * 
- */ - public void listNodes(com.google.cloud.tpu.v2.ListNodesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodesMethod(), responseObserver); - } - - /** - *
-     * Gets the details of a node.
-     * 
- */ - public void getNode(com.google.cloud.tpu.v2.GetNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodeMethod(), responseObserver); - } - - /** - *
-     * Creates a node.
-     * 
- */ - public void createNode(com.google.cloud.tpu.v2.CreateNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNodeMethod(), responseObserver); - } - - /** - *
-     * Deletes a node.
-     * 
- */ - public void deleteNode(com.google.cloud.tpu.v2.DeleteNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNodeMethod(), responseObserver); - } - - /** - *
-     * Stops a node. This operation is only available with single TPU nodes.
-     * 
- */ - public void stopNode(com.google.cloud.tpu.v2.StopNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopNodeMethod(), responseObserver); - } - - /** - *
-     * Starts a node.
-     * 
- */ - public void startNode(com.google.cloud.tpu.v2.StartNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartNodeMethod(), responseObserver); - } - - /** - *
-     * Updates the configurations of a node.
-     * 
- */ - public void updateNode(com.google.cloud.tpu.v2.UpdateNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNodeMethod(), responseObserver); - } - - /** - *
-     * Generates the Cloud TPU service identity for the project.
-     * 
- */ - public void generateServiceIdentity(com.google.cloud.tpu.v2.GenerateServiceIdentityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateServiceIdentityMethod(), responseObserver); - } - - /** - *
-     * Lists accelerator types supported by this API.
-     * 
- */ - public void listAcceleratorTypes(com.google.cloud.tpu.v2.ListAcceleratorTypesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAcceleratorTypesMethod(), responseObserver); - } - - /** - *
-     * Gets AcceleratorType.
-     * 
- */ - public void getAcceleratorType(com.google.cloud.tpu.v2.GetAcceleratorTypeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAcceleratorTypeMethod(), responseObserver); - } - - /** - *
-     * Lists runtime versions supported by this API.
-     * 
- */ - public void listRuntimeVersions(com.google.cloud.tpu.v2.ListRuntimeVersionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRuntimeVersionsMethod(), responseObserver); - } - - /** - *
-     * Gets a runtime version.
-     * 
- */ - public void getRuntimeVersion(com.google.cloud.tpu.v2.GetRuntimeVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRuntimeVersionMethod(), responseObserver); - } - - /** - *
-     * Retrieves the guest attributes for the node.
-     * 
- */ - public void getGuestAttributes(com.google.cloud.tpu.v2.GetGuestAttributesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGuestAttributesMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListNodesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2.ListNodesRequest, - com.google.cloud.tpu.v2.ListNodesResponse>( - this, METHODID_LIST_NODES))) - .addMethod( - getGetNodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2.GetNodeRequest, - com.google.cloud.tpu.v2.Node>( - this, METHODID_GET_NODE))) - .addMethod( - getCreateNodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2.CreateNodeRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_NODE))) - .addMethod( - getDeleteNodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2.DeleteNodeRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_NODE))) - .addMethod( - getStopNodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2.StopNodeRequest, - com.google.longrunning.Operation>( - this, METHODID_STOP_NODE))) - .addMethod( - getStartNodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2.StartNodeRequest, - com.google.longrunning.Operation>( - this, METHODID_START_NODE))) - .addMethod( - getUpdateNodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2.UpdateNodeRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_NODE))) - .addMethod( - getGenerateServiceIdentityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2.GenerateServiceIdentityRequest, - com.google.cloud.tpu.v2.GenerateServiceIdentityResponse>( - this, METHODID_GENERATE_SERVICE_IDENTITY))) - .addMethod( - getListAcceleratorTypesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2.ListAcceleratorTypesRequest, - com.google.cloud.tpu.v2.ListAcceleratorTypesResponse>( - this, METHODID_LIST_ACCELERATOR_TYPES))) - .addMethod( - getGetAcceleratorTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2.GetAcceleratorTypeRequest, - com.google.cloud.tpu.v2.AcceleratorType>( - this, METHODID_GET_ACCELERATOR_TYPE))) - .addMethod( - getListRuntimeVersionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2.ListRuntimeVersionsRequest, - com.google.cloud.tpu.v2.ListRuntimeVersionsResponse>( - this, METHODID_LIST_RUNTIME_VERSIONS))) - .addMethod( - getGetRuntimeVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2.GetRuntimeVersionRequest, - com.google.cloud.tpu.v2.RuntimeVersion>( - this, METHODID_GET_RUNTIME_VERSION))) - .addMethod( - getGetGuestAttributesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2.GetGuestAttributesRequest, - com.google.cloud.tpu.v2.GetGuestAttributesResponse>( - this, METHODID_GET_GUEST_ATTRIBUTES))) - .build(); - } - } - - /** - *
-   * Manages TPU nodes and other resources
-   * TPU API v2
-   * 
- */ - public static final class TpuStub extends io.grpc.stub.AbstractAsyncStub { - private TpuStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TpuStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TpuStub(channel, callOptions); - } - - /** - *
-     * Lists nodes.
-     * 
- */ - public void listNodes(com.google.cloud.tpu.v2.ListNodesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNodesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the details of a node.
-     * 
- */ - public void getNode(com.google.cloud.tpu.v2.GetNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a node.
-     * 
- */ - public void createNode(com.google.cloud.tpu.v2.CreateNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateNodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a node.
-     * 
- */ - public void deleteNode(com.google.cloud.tpu.v2.DeleteNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteNodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stops a node. This operation is only available with single TPU nodes.
-     * 
- */ - public void stopNode(com.google.cloud.tpu.v2.StopNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopNodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts a node.
-     * 
- */ - public void startNode(com.google.cloud.tpu.v2.StartNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartNodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the configurations of a node.
-     * 
- */ - public void updateNode(com.google.cloud.tpu.v2.UpdateNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Generates the Cloud TPU service identity for the project.
-     * 
- */ - public void generateServiceIdentity(com.google.cloud.tpu.v2.GenerateServiceIdentityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateServiceIdentityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists accelerator types supported by this API.
-     * 
- */ - public void listAcceleratorTypes(com.google.cloud.tpu.v2.ListAcceleratorTypesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAcceleratorTypesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets AcceleratorType.
-     * 
- */ - public void getAcceleratorType(com.google.cloud.tpu.v2.GetAcceleratorTypeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAcceleratorTypeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists runtime versions supported by this API.
-     * 
- */ - public void listRuntimeVersions(com.google.cloud.tpu.v2.ListRuntimeVersionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRuntimeVersionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a runtime version.
-     * 
- */ - public void getRuntimeVersion(com.google.cloud.tpu.v2.GetRuntimeVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRuntimeVersionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieves the guest attributes for the node.
-     * 
- */ - public void getGuestAttributes(com.google.cloud.tpu.v2.GetGuestAttributesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGuestAttributesMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Manages TPU nodes and other resources
-   * TPU API v2
-   * 
- */ - public static final class TpuBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private TpuBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TpuBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TpuBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists nodes.
-     * 
- */ - public com.google.cloud.tpu.v2.ListNodesResponse listNodes(com.google.cloud.tpu.v2.ListNodesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNodesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the details of a node.
-     * 
- */ - public com.google.cloud.tpu.v2.Node getNode(com.google.cloud.tpu.v2.GetNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a node.
-     * 
- */ - public com.google.longrunning.Operation createNode(com.google.cloud.tpu.v2.CreateNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateNodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a node.
-     * 
- */ - public com.google.longrunning.Operation deleteNode(com.google.cloud.tpu.v2.DeleteNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteNodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Stops a node. This operation is only available with single TPU nodes.
-     * 
- */ - public com.google.longrunning.Operation stopNode(com.google.cloud.tpu.v2.StopNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopNodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts a node.
-     * 
- */ - public com.google.longrunning.Operation startNode(com.google.cloud.tpu.v2.StartNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartNodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the configurations of a node.
-     * 
- */ - public com.google.longrunning.Operation updateNode(com.google.cloud.tpu.v2.UpdateNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Generates the Cloud TPU service identity for the project.
-     * 
- */ - public com.google.cloud.tpu.v2.GenerateServiceIdentityResponse generateServiceIdentity(com.google.cloud.tpu.v2.GenerateServiceIdentityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateServiceIdentityMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists accelerator types supported by this API.
-     * 
- */ - public com.google.cloud.tpu.v2.ListAcceleratorTypesResponse listAcceleratorTypes(com.google.cloud.tpu.v2.ListAcceleratorTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAcceleratorTypesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets AcceleratorType.
-     * 
- */ - public com.google.cloud.tpu.v2.AcceleratorType getAcceleratorType(com.google.cloud.tpu.v2.GetAcceleratorTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAcceleratorTypeMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists runtime versions supported by this API.
-     * 
- */ - public com.google.cloud.tpu.v2.ListRuntimeVersionsResponse listRuntimeVersions(com.google.cloud.tpu.v2.ListRuntimeVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRuntimeVersionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a runtime version.
-     * 
- */ - public com.google.cloud.tpu.v2.RuntimeVersion getRuntimeVersion(com.google.cloud.tpu.v2.GetRuntimeVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRuntimeVersionMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieves the guest attributes for the node.
-     * 
- */ - public com.google.cloud.tpu.v2.GetGuestAttributesResponse getGuestAttributes(com.google.cloud.tpu.v2.GetGuestAttributesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGuestAttributesMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Manages TPU nodes and other resources
-   * TPU API v2
-   * 
- */ - public static final class TpuFutureStub extends io.grpc.stub.AbstractFutureStub { - private TpuFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TpuFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TpuFutureStub(channel, callOptions); - } - - /** - *
-     * Lists nodes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listNodes( - com.google.cloud.tpu.v2.ListNodesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNodesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the details of a node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNode( - com.google.cloud.tpu.v2.GetNodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createNode( - com.google.cloud.tpu.v2.CreateNodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateNodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteNode( - com.google.cloud.tpu.v2.DeleteNodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteNodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Stops a node. This operation is only available with single TPU nodes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture stopNode( - com.google.cloud.tpu.v2.StopNodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopNodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts a node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startNode( - com.google.cloud.tpu.v2.StartNodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartNodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the configurations of a node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateNode( - com.google.cloud.tpu.v2.UpdateNodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Generates the Cloud TPU service identity for the project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture generateServiceIdentity( - com.google.cloud.tpu.v2.GenerateServiceIdentityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateServiceIdentityMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists accelerator types supported by this API.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listAcceleratorTypes( - com.google.cloud.tpu.v2.ListAcceleratorTypesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAcceleratorTypesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets AcceleratorType.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAcceleratorType( - com.google.cloud.tpu.v2.GetAcceleratorTypeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAcceleratorTypeMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists runtime versions supported by this API.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listRuntimeVersions( - com.google.cloud.tpu.v2.ListRuntimeVersionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRuntimeVersionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a runtime version.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getRuntimeVersion( - com.google.cloud.tpu.v2.GetRuntimeVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRuntimeVersionMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieves the guest attributes for the node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getGuestAttributes( - com.google.cloud.tpu.v2.GetGuestAttributesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGuestAttributesMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_NODES = 0; - private static final int METHODID_GET_NODE = 1; - private static final int METHODID_CREATE_NODE = 2; - private static final int METHODID_DELETE_NODE = 3; - private static final int METHODID_STOP_NODE = 4; - private static final int METHODID_START_NODE = 5; - private static final int METHODID_UPDATE_NODE = 6; - private static final int METHODID_GENERATE_SERVICE_IDENTITY = 7; - private static final int METHODID_LIST_ACCELERATOR_TYPES = 8; - private static final int METHODID_GET_ACCELERATOR_TYPE = 9; - private static final int METHODID_LIST_RUNTIME_VERSIONS = 10; - private static final int METHODID_GET_RUNTIME_VERSION = 11; - private static final int METHODID_GET_GUEST_ATTRIBUTES = 12; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final TpuImplBase serviceImpl; - private final int methodId; - - MethodHandlers(TpuImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_NODES: - serviceImpl.listNodes((com.google.cloud.tpu.v2.ListNodesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NODE: - serviceImpl.getNode((com.google.cloud.tpu.v2.GetNodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_NODE: - serviceImpl.createNode((com.google.cloud.tpu.v2.CreateNodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_NODE: - serviceImpl.deleteNode((com.google.cloud.tpu.v2.DeleteNodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_NODE: - serviceImpl.stopNode((com.google.cloud.tpu.v2.StopNodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_NODE: - serviceImpl.startNode((com.google.cloud.tpu.v2.StartNodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_NODE: - serviceImpl.updateNode((com.google.cloud.tpu.v2.UpdateNodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_SERVICE_IDENTITY: - serviceImpl.generateServiceIdentity((com.google.cloud.tpu.v2.GenerateServiceIdentityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ACCELERATOR_TYPES: - serviceImpl.listAcceleratorTypes((com.google.cloud.tpu.v2.ListAcceleratorTypesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ACCELERATOR_TYPE: - serviceImpl.getAcceleratorType((com.google.cloud.tpu.v2.GetAcceleratorTypeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RUNTIME_VERSIONS: - serviceImpl.listRuntimeVersions((com.google.cloud.tpu.v2.ListRuntimeVersionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_RUNTIME_VERSION: - serviceImpl.getRuntimeVersion((com.google.cloud.tpu.v2.GetRuntimeVersionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_GUEST_ATTRIBUTES: - serviceImpl.getGuestAttributes((com.google.cloud.tpu.v2.GetGuestAttributesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class TpuBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TpuBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.tpu.v2.CloudTpuProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Tpu"); - } - } - - private static final class TpuFileDescriptorSupplier - extends TpuBaseDescriptorSupplier { - TpuFileDescriptorSupplier() {} - } - - private static final class TpuMethodDescriptorSupplier - extends TpuBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TpuMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (TpuGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TpuFileDescriptorSupplier()) - .addMethod(getListNodesMethod()) - .addMethod(getGetNodeMethod()) - .addMethod(getCreateNodeMethod()) - .addMethod(getDeleteNodeMethod()) - .addMethod(getStopNodeMethod()) - .addMethod(getStartNodeMethod()) - .addMethod(getUpdateNodeMethod()) - .addMethod(getGenerateServiceIdentityMethod()) - .addMethod(getListAcceleratorTypesMethod()) - .addMethod(getGetAcceleratorTypeMethod()) - .addMethod(getListRuntimeVersionsMethod()) - .addMethod(getGetRuntimeVersionMethod()) - .addMethod(getGetGuestAttributesMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CloudTpuProto.java b/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CloudTpuProto.java deleted file mode 100644 index a29b7fca3d32..000000000000 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CloudTpuProto.java +++ /dev/null @@ -1,658 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2/cloud_tpu.proto - -package com.google.cloud.tpu.v2; - -public final class CloudTpuProto { - private CloudTpuProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_GuestAttributes_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_GuestAttributes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_GuestAttributesValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_GuestAttributesValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_GuestAttributesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_GuestAttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_AttachedDisk_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_AttachedDisk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_SchedulingConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_SchedulingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_NetworkEndpoint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_NetworkEndpoint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_AccessConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_AccessConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_NetworkConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_NetworkConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_ServiceAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_ServiceAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_Node_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_Node_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_Node_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_Node_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_Node_MetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_Node_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_ListNodesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_ListNodesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_ListNodesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_ListNodesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_GetNodeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_GetNodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_CreateNodeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_CreateNodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_DeleteNodeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_DeleteNodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_StopNodeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_StopNodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_StartNodeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_StartNodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_UpdateNodeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_UpdateNodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_ServiceIdentity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_ServiceIdentity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_GenerateServiceIdentityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_GenerateServiceIdentityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_GenerateServiceIdentityResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_GenerateServiceIdentityResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_AcceleratorType_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_AcceleratorType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_GetAcceleratorTypeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_GetAcceleratorTypeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_ListAcceleratorTypesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_ListAcceleratorTypesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_ListAcceleratorTypesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_ListAcceleratorTypesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_RuntimeVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_RuntimeVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_GetRuntimeVersionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_GetRuntimeVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_ListRuntimeVersionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_ListRuntimeVersionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_ListRuntimeVersionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_ListRuntimeVersionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_Symptom_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_Symptom_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_GetGuestAttributesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_GetGuestAttributesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_GetGuestAttributesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_GetGuestAttributesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2_ShieldedInstanceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2_ShieldedInstanceConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n#google/cloud/tpu/v2/cloud_tpu.proto\022\023g" + - "oogle.cloud.tpu.v2\032\034google/api/annotatio" + - "ns.proto\032\027google/api/client.proto\032\037googl" + - "e/api/field_behavior.proto\032\031google/api/r" + - "esource.proto\032#google/longrunning/operat" + - "ions.proto\032 google/protobuf/field_mask.p" + - "roto\032\037google/protobuf/timestamp.proto\"e\n" + - "\017GuestAttributes\022\022\n\nquery_path\030\001 \001(\t\022>\n\013" + - "query_value\030\002 \001(\0132).google.cloud.tpu.v2." + - "GuestAttributesValue\"P\n\024GuestAttributesV" + - "alue\0228\n\005items\030\001 \003(\0132).google.cloud.tpu.v" + - "2.GuestAttributesEntry\"E\n\024GuestAttribute" + - "sEntry\022\021\n\tnamespace\030\001 \001(\t\022\013\n\003key\030\002 \001(\t\022\r" + - "\n\005value\030\003 \001(\t\"\243\001\n\014AttachedDisk\022\023\n\013source" + - "_disk\030\003 \001(\t\0228\n\004mode\030\004 \001(\0162*.google.cloud" + - ".tpu.v2.AttachedDisk.DiskMode\"D\n\010DiskMod" + - "e\022\031\n\025DISK_MODE_UNSPECIFIED\020\000\022\016\n\nREAD_WRI" + - "TE\020\001\022\r\n\tREAD_ONLY\020\002\"9\n\020SchedulingConfig\022" + - "\023\n\013preemptible\030\001 \001(\010\022\020\n\010reserved\030\002 \001(\010\"m" + - "\n\017NetworkEndpoint\022\022\n\nip_address\030\001 \001(\t\022\014\n" + - "\004port\030\002 \001(\005\0228\n\raccess_config\030\005 \001(\0132!.goo" + - "gle.cloud.tpu.v2.AccessConfig\"(\n\014AccessC" + - "onfig\022\030\n\013external_ip\030\001 \001(\tB\003\340A\003\"i\n\rNetwo" + - "rkConfig\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030" + - "\002 \001(\t\022\033\n\023enable_external_ips\030\003 \001(\010\022\026\n\016ca" + - "n_ip_forward\030\004 \001(\010\".\n\016ServiceAccount\022\r\n\005" + - "email\030\001 \001(\t\022\r\n\005scope\030\002 \003(\t\"\260\014\n\004Node\022\024\n\004n" + - "ame\030\001 \001(\tB\006\340A\003\340A\005\022\023\n\013description\030\003 \001(\t\022\035" + - "\n\020accelerator_type\030\005 \001(\tB\003\340A\002\0223\n\005state\030\t" + - " \001(\0162\037.google.cloud.tpu.v2.Node.StateB\003\340" + - "A\003\022\037\n\022health_description\030\n \001(\tB\003\340A\003\022\034\n\017r" + - "untime_version\030\013 \001(\tB\003\340A\002\022:\n\016network_con" + - "fig\030$ \001(\0132\".google.cloud.tpu.v2.NetworkC" + - "onfig\022\022\n\ncidr_block\030\r \001(\t\022<\n\017service_acc" + - "ount\030% \001(\0132#.google.cloud.tpu.v2.Service" + - "Account\0224\n\013create_time\030\020 \001(\0132\032.google.pr" + - "otobuf.TimestampB\003\340A\003\022@\n\021scheduling_conf" + - "ig\030\021 \001(\0132%.google.cloud.tpu.v2.Schedulin" + - "gConfig\022D\n\021network_endpoints\030\025 \003(\0132$.goo" + - "gle.cloud.tpu.v2.NetworkEndpointB\003\340A\003\0220\n" + - "\006health\030\026 \001(\0162 .google.cloud.tpu.v2.Node" + - ".Health\0225\n\006labels\030\030 \003(\0132%.google.cloud.t" + - "pu.v2.Node.LabelsEntry\0229\n\010metadata\030\" \003(\013" + - "2\'.google.cloud.tpu.v2.Node.MetadataEntr" + - "y\022\014\n\004tags\030( \003(\t\022\017\n\002id\030! \001(\003B\003\340A\003\0225\n\ndata" + - "_disks\030) \003(\0132!.google.cloud.tpu.v2.Attac" + - "hedDisk\022>\n\013api_version\030& \001(\0162$.google.cl" + - "oud.tpu.v2.Node.ApiVersionB\003\340A\003\0223\n\010sympt" + - "oms\030\' \003(\0132\034.google.cloud.tpu.v2.SymptomB" + - "\003\340A\003\022M\n\030shielded_instance_config\030- \001(\0132+" + - ".google.cloud.tpu.v2.ShieldedInstanceCon" + - "fig\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\"\341\001\n\005State\022\025\n\021STATE_U" + - "NSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\016\n" + - "\nRESTARTING\020\003\022\r\n\tREIMAGING\020\004\022\014\n\010DELETING" + - "\020\005\022\r\n\tREPAIRING\020\006\022\013\n\007STOPPED\020\010\022\014\n\010STOPPI" + - "NG\020\t\022\014\n\010STARTING\020\n\022\r\n\tPREEMPTED\020\013\022\016\n\nTER" + - "MINATED\020\014\022\n\n\006HIDING\020\r\022\n\n\006HIDDEN\020\016\022\014\n\010UNH" + - "IDING\020\017\"o\n\006Health\022\026\n\022HEALTH_UNSPECIFIED\020" + - "\000\022\013\n\007HEALTHY\020\001\022\013\n\007TIMEOUT\020\003\022\030\n\024UNHEALTHY" + - "_TENSORFLOW\020\004\022\031\n\025UNHEALTHY_MAINTENANCE\020\005" + - "\"W\n\nApiVersion\022\033\n\027API_VERSION_UNSPECIFIE" + - "D\020\000\022\r\n\tV1_ALPHA1\020\001\022\006\n\002V1\020\002\022\r\n\tV2_ALPHA1\020" + - "\003\022\006\n\002V2\020\004:R\352AO\n\027tpu.googleapis.com/Node\022" + - "4projects/{project}/locations/{location}" + - "/nodes/{node}\"j\n\020ListNodesRequest\022/\n\006par" + - "ent\030\001 \001(\tB\037\340A\002\372A\031\022\027tpu.googleapis.com/No" + - "de\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + - "\t\"k\n\021ListNodesResponse\022(\n\005nodes\030\001 \003(\0132\031." + - "google.cloud.tpu.v2.Node\022\027\n\017next_page_to" + - "ken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"?\n\016GetNod" + - "eRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.goog" + - "leapis.com/Node\"\215\001\n\021CreateNodeRequest\0229\n" + - "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea" + - "pis.com/Location\022\017\n\007node_id\030\002 \001(\t\022,\n\004nod" + - "e\030\003 \001(\0132\031.google.cloud.tpu.v2.NodeB\003\340A\002\"" + - "B\n\021DeleteNodeRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372" + - "A\031\n\027tpu.googleapis.com/Node\"@\n\017StopNodeR" + - "equest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.google" + - "apis.com/Node\"A\n\020StartNodeRequest\022-\n\004nam" + - "e\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googleapis.com/Node" + - "\"w\n\021UpdateNodeRequest\0224\n\013update_mask\030\001 \001" + - "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022,\n\004n" + - "ode\030\002 \001(\0132\031.google.cloud.tpu.v2.NodeB\003\340A" + - "\002\" \n\017ServiceIdentity\022\r\n\005email\030\001 \001(\t\"[\n\036G" + - "enerateServiceIdentityRequest\0229\n\006parent\030" + - "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + - "Location\"Y\n\037GenerateServiceIdentityRespo" + - "nse\0226\n\010identity\030\001 \001(\0132$.google.cloud.tpu" + - ".v2.ServiceIdentity\"\243\001\n\017AcceleratorType\022" + - "\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 \001(\t:t\352Aq\n\"tpu.go" + - "ogleapis.com/AcceleratorType\022Kprojects/{" + - "project}/locations/{location}/accelerato" + - "rTypes/{accelerator_type}\"U\n\031GetAccelera" + - "torTypeRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"tp" + - "u.googleapis.com/AcceleratorType\"\242\001\n\033Lis" + - "tAcceleratorTypesRequest\022:\n\006parent\030\001 \001(\t" + - "B*\340A\002\372A$\022\"tpu.googleapis.com/Accelerator" + - "Type\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + - "\001(\t\022\016\n\006filter\030\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\215\001" + - "\n\034ListAcceleratorTypesResponse\022?\n\021accele" + - "rator_types\030\001 \003(\0132$.google.cloud.tpu.v2." + - "AcceleratorType\022\027\n\017next_page_token\030\002 \001(\t" + - "\022\023\n\013unreachable\030\003 \003(\t\"\242\001\n\016RuntimeVersion" + - "\022\014\n\004name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t:q\352An\n!tp" + - "u.googleapis.com/RuntimeVersion\022Iproject" + - "s/{project}/locations/{location}/runtime" + - "Versions/{runtime_version}\"S\n\030GetRuntime" + - "VersionRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!tp" + - "u.googleapis.com/RuntimeVersion\"\240\001\n\032List" + - "RuntimeVersionsRequest\0229\n\006parent\030\001 \001(\tB)" + - "\340A\002\372A#\022!tpu.googleapis.com/RuntimeVersio" + - "n\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + - "\022\016\n\006filter\030\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\212\001\n\033L" + - "istRuntimeVersionsResponse\022=\n\020runtime_ve" + - "rsions\030\001 \003(\0132#.google.cloud.tpu.v2.Runti" + - "meVersion\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" + - "reachable\030\003 \003(\t\"\326\001\n\021OperationMetadata\022/\n" + - "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" + - "estamp\022,\n\010end_time\030\002 \001(\0132\032.google.protob" + - "uf.Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001" + - "(\t\022\025\n\rstatus_detail\030\005 \001(\t\022\030\n\020cancel_requ" + - "ested\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t\"\305\002\n\007Sym" + - "ptom\022/\n\013create_time\030\001 \001(\0132\032.google.proto" + - "buf.Timestamp\022>\n\014symptom_type\030\002 \001(\0162(.go" + - "ogle.cloud.tpu.v2.Symptom.SymptomType\022\017\n" + - "\007details\030\003 \001(\t\022\021\n\tworker_id\030\004 \001(\t\"\244\001\n\013Sy" + - "mptomType\022\034\n\030SYMPTOM_TYPE_UNSPECIFIED\020\000\022" + - "\016\n\nLOW_MEMORY\020\001\022\021\n\rOUT_OF_MEMORY\020\002\022\025\n\021EX" + - "ECUTE_TIMED_OUT\020\003\022\023\n\017MESH_BUILD_FAIL\020\004\022\025" + - "\n\021HBM_OUT_OF_MEMORY\020\005\022\021\n\rPROJECT_ABUSE\020\006" + - "\"r\n\031GetGuestAttributesRequest\022-\n\004name\030\001 " + - "\001(\tB\037\340A\002\372A\031\n\027tpu.googleapis.com/Node\022\022\n\n" + - "query_path\030\002 \001(\t\022\022\n\nworker_ids\030\003 \003(\t\"\\\n\032" + - "GetGuestAttributesResponse\022>\n\020guest_attr" + - "ibutes\030\001 \003(\0132$.google.cloud.tpu.v2.Guest" + - "Attributes\"4\n\026ShieldedInstanceConfig\022\032\n\022" + - "enable_secure_boot\030\001 \001(\0102\370\022\n\003Tpu\022\226\001\n\tLis" + - "tNodes\022%.google.cloud.tpu.v2.ListNodesRe" + - "quest\032&.google.cloud.tpu.v2.ListNodesRes" + - "ponse\":\202\323\344\223\002+\022)/v2/{parent=projects/*/lo" + - "cations/*}/nodes\332A\006parent\022\203\001\n\007GetNode\022#." + - "google.cloud.tpu.v2.GetNodeRequest\032\031.goo" + - "gle.cloud.tpu.v2.Node\"8\202\323\344\223\002+\022)/v2/{name" + - "=projects/*/locations/*/nodes/*}\332A\004name\022" + - "\276\001\n\nCreateNode\022&.google.cloud.tpu.v2.Cre" + - "ateNodeRequest\032\035.google.longrunning.Oper" + - "ation\"i\202\323\344\223\0021\")/v2/{parent=projects/*/lo" + - "cations/*}/nodes:\004node\332A\023parent,node,nod" + - "e_id\312A\031\n\004Node\022\021OperationMetadata\022\272\001\n\nDel" + - "eteNode\022&.google.cloud.tpu.v2.DeleteNode" + - "Request\032\035.google.longrunning.Operation\"e" + - "\202\323\344\223\002+*)/v2/{name=projects/*/locations/*" + - "/nodes/*}\332A\004name\312A*\n\025google.protobuf.Emp" + - "ty\022\021OperationMetadata\022\246\001\n\010StopNode\022$.goo" + - "gle.cloud.tpu.v2.StopNodeRequest\032\035.googl" + - "e.longrunning.Operation\"U\202\323\344\223\0023\"./v2/{na" + - "me=projects/*/locations/*/nodes/*}:stop:" + - "\001*\312A\031\n\004Node\022\021OperationMetadata\022\251\001\n\tStart" + - "Node\022%.google.cloud.tpu.v2.StartNodeRequ" + - "est\032\035.google.longrunning.Operation\"V\202\323\344\223" + - "\0024\"//v2/{name=projects/*/locations/*/nod" + - "es/*}:start:\001*\312A\031\n\004Node\022\021OperationMetada" + - "ta\022\300\001\n\nUpdateNode\022&.google.cloud.tpu.v2." + - "UpdateNodeRequest\032\035.google.longrunning.O" + - "peration\"k\202\323\344\223\00262./v2/{node.name=project" + - "s/*/locations/*/nodes/*}:\004node\332A\020node,up" + - "date_mask\312A\031\n\004Node\022\021OperationMetadata\022\314\001" + - "\n\027GenerateServiceIdentity\0223.google.cloud" + - ".tpu.v2.GenerateServiceIdentityRequest\0324" + - ".google.cloud.tpu.v2.GenerateServiceIden" + - "tityResponse\"F\202\323\344\223\002@\";/v2/{parent=projec" + - "ts/*/locations/*}:generateServiceIdentit" + - "y:\001*\022\302\001\n\024ListAcceleratorTypes\0220.google.c" + - "loud.tpu.v2.ListAcceleratorTypesRequest\032" + - "1.google.cloud.tpu.v2.ListAcceleratorTyp" + - "esResponse\"E\202\323\344\223\0026\0224/v2/{parent=projects" + - "/*/locations/*}/acceleratorTypes\332A\006paren" + - "t\022\257\001\n\022GetAcceleratorType\022..google.cloud." + - "tpu.v2.GetAcceleratorTypeRequest\032$.googl" + - "e.cloud.tpu.v2.AcceleratorType\"C\202\323\344\223\0026\0224" + - "/v2/{name=projects/*/locations/*/acceler" + - "atorTypes/*}\332A\004name\022\276\001\n\023ListRuntimeVersi" + - "ons\022/.google.cloud.tpu.v2.ListRuntimeVer" + - "sionsRequest\0320.google.cloud.tpu.v2.ListR" + - "untimeVersionsResponse\"D\202\323\344\223\0025\0223/v2/{par" + - "ent=projects/*/locations/*}/runtimeVersi" + - "ons\332A\006parent\022\253\001\n\021GetRuntimeVersion\022-.goo" + - "gle.cloud.tpu.v2.GetRuntimeVersionReques" + - "t\032#.google.cloud.tpu.v2.RuntimeVersion\"B" + - "\202\323\344\223\0025\0223/v2/{name=projects/*/locations/*" + - "/runtimeVersions/*}\332A\004name\022\276\001\n\022GetGuestA" + - "ttributes\022..google.cloud.tpu.v2.GetGuest" + - "AttributesRequest\032/.google.cloud.tpu.v2." + - "GetGuestAttributesResponse\"G\202\323\344\223\002A\" - * Required. The resource name. - *
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityRequestOrBuilder.java b/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityRequestOrBuilder.java deleted file mode 100644 index 08b2f2df4dab..000000000000 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GenerateServiceIdentityRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2/cloud_tpu.proto - -package com.google.cloud.tpu.v2; - -public interface GenerateServiceIdentityRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.GenerateServiceIdentityRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent resource name.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent resource name.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); -} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetAcceleratorTypeRequestOrBuilder.java b/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetAcceleratorTypeRequestOrBuilder.java deleted file mode 100644 index 0f8fc9127044..000000000000 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetAcceleratorTypeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2/cloud_tpu.proto - -package com.google.cloud.tpu.v2; - -public interface GetAcceleratorTypeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.GetAcceleratorTypeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetNodeRequestOrBuilder.java b/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetNodeRequestOrBuilder.java deleted file mode 100644 index 6bae23e0b880..000000000000 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetNodeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2/cloud_tpu.proto - -package com.google.cloud.tpu.v2; - -public interface GetNodeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.GetNodeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetRuntimeVersionRequestOrBuilder.java b/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetRuntimeVersionRequestOrBuilder.java deleted file mode 100644 index 820c8b99c5cc..000000000000 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetRuntimeVersionRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2/cloud_tpu.proto - -package com.google.cloud.tpu.v2; - -public interface GetRuntimeVersionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.GetRuntimeVersionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfigOrBuilder.java b/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfigOrBuilder.java deleted file mode 100644 index fb75cba49292..000000000000 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfigOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2/cloud_tpu.proto - -package com.google.cloud.tpu.v2; - -public interface SchedulingConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.SchedulingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Defines whether the node is preemptible.
-   * 
- * - * bool preemptible = 1; - * @return The preemptible. - */ - boolean getPreemptible(); - - /** - *
-   * Whether the node is created under a reservation.
-   * 
- * - * bool reserved = 2; - * @return The reserved. - */ - boolean getReserved(); -} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceIdentityOrBuilder.java b/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceIdentityOrBuilder.java deleted file mode 100644 index 191bde8b3198..000000000000 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ServiceIdentityOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2/cloud_tpu.proto - -package com.google.cloud.tpu.v2; - -public interface ServiceIdentityOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.ServiceIdentity) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The email address of the service identity.
-   * 
- * - * string email = 1; - * @return The email. - */ - java.lang.String getEmail(); - /** - *
-   * The email address of the service identity.
-   * 
- * - * string email = 1; - * @return The bytes for email. - */ - com.google.protobuf.ByteString - getEmailBytes(); -} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ShieldedInstanceConfigOrBuilder.java b/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ShieldedInstanceConfigOrBuilder.java deleted file mode 100644 index 94d3889ebf73..000000000000 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ShieldedInstanceConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2/cloud_tpu.proto - -package com.google.cloud.tpu.v2; - -public interface ShieldedInstanceConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.ShieldedInstanceConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Defines whether the instance has Secure Boot enabled.
-   * 
- * - * bool enable_secure_boot = 1; - * @return The enableSecureBoot. - */ - boolean getEnableSecureBoot(); -} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StartNodeRequestOrBuilder.java b/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StartNodeRequestOrBuilder.java deleted file mode 100644 index 960f59a1cf5a..000000000000 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StartNodeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2/cloud_tpu.proto - -package com.google.cloud.tpu.v2; - -public interface StartNodeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.StartNodeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StopNodeRequestOrBuilder.java b/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StopNodeRequestOrBuilder.java deleted file mode 100644 index 841889e788ac..000000000000 --- a/owl-bot-staging/java-tpu/v2/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/StopNodeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2/cloud_tpu.proto - -package com.google.cloud.tpu.v2; - -public interface StopNodeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.StopNodeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-tpu/v2alpha1/grpc-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/TpuGrpc.java b/owl-bot-staging/java-tpu/v2alpha1/grpc-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/TpuGrpc.java deleted file mode 100644 index c81fdb7524bd..000000000000 --- a/owl-bot-staging/java-tpu/v2alpha1/grpc-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/TpuGrpc.java +++ /dev/null @@ -1,1770 +0,0 @@ -package com.google.cloud.tpu.v2alpha1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Manages TPU nodes and other resources
- * TPU API v2alpha1
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/tpu/v2alpha1/cloud_tpu.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TpuGrpc { - - private TpuGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.tpu.v2alpha1.Tpu"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListNodesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNodes", - requestType = com.google.cloud.tpu.v2alpha1.ListNodesRequest.class, - responseType = com.google.cloud.tpu.v2alpha1.ListNodesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNodesMethod() { - io.grpc.MethodDescriptor getListNodesMethod; - if ((getListNodesMethod = TpuGrpc.getListNodesMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getListNodesMethod = TpuGrpc.getListNodesMethod) == null) { - TpuGrpc.getListNodesMethod = getListNodesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.ListNodesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.ListNodesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListNodes")) - .build(); - } - } - } - return getListNodesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNode", - requestType = com.google.cloud.tpu.v2alpha1.GetNodeRequest.class, - responseType = com.google.cloud.tpu.v2alpha1.Node.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNodeMethod() { - io.grpc.MethodDescriptor getGetNodeMethod; - if ((getGetNodeMethod = TpuGrpc.getGetNodeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getGetNodeMethod = TpuGrpc.getGetNodeMethod) == null) { - TpuGrpc.getGetNodeMethod = getGetNodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.GetNodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.Node.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetNode")) - .build(); - } - } - } - return getGetNodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateNodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateNode", - requestType = com.google.cloud.tpu.v2alpha1.CreateNodeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateNodeMethod() { - io.grpc.MethodDescriptor getCreateNodeMethod; - if ((getCreateNodeMethod = TpuGrpc.getCreateNodeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getCreateNodeMethod = TpuGrpc.getCreateNodeMethod) == null) { - TpuGrpc.getCreateNodeMethod = getCreateNodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.CreateNodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("CreateNode")) - .build(); - } - } - } - return getCreateNodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteNodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteNode", - requestType = com.google.cloud.tpu.v2alpha1.DeleteNodeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteNodeMethod() { - io.grpc.MethodDescriptor getDeleteNodeMethod; - if ((getDeleteNodeMethod = TpuGrpc.getDeleteNodeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getDeleteNodeMethod = TpuGrpc.getDeleteNodeMethod) == null) { - TpuGrpc.getDeleteNodeMethod = getDeleteNodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.DeleteNodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("DeleteNode")) - .build(); - } - } - } - return getDeleteNodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getStopNodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopNode", - requestType = com.google.cloud.tpu.v2alpha1.StopNodeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStopNodeMethod() { - io.grpc.MethodDescriptor getStopNodeMethod; - if ((getStopNodeMethod = TpuGrpc.getStopNodeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getStopNodeMethod = TpuGrpc.getStopNodeMethod) == null) { - TpuGrpc.getStopNodeMethod = getStopNodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopNode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.StopNodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("StopNode")) - .build(); - } - } - } - return getStopNodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartNodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartNode", - requestType = com.google.cloud.tpu.v2alpha1.StartNodeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartNodeMethod() { - io.grpc.MethodDescriptor getStartNodeMethod; - if ((getStartNodeMethod = TpuGrpc.getStartNodeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getStartNodeMethod = TpuGrpc.getStartNodeMethod) == null) { - TpuGrpc.getStartNodeMethod = getStartNodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartNode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.StartNodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("StartNode")) - .build(); - } - } - } - return getStartNodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateNodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNode", - requestType = com.google.cloud.tpu.v2alpha1.UpdateNodeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateNodeMethod() { - io.grpc.MethodDescriptor getUpdateNodeMethod; - if ((getUpdateNodeMethod = TpuGrpc.getUpdateNodeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getUpdateNodeMethod = TpuGrpc.getUpdateNodeMethod) == null) { - TpuGrpc.getUpdateNodeMethod = getUpdateNodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.UpdateNodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("UpdateNode")) - .build(); - } - } - } - return getUpdateNodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getListQueuedResourcesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListQueuedResources", - requestType = com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest.class, - responseType = com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListQueuedResourcesMethod() { - io.grpc.MethodDescriptor getListQueuedResourcesMethod; - if ((getListQueuedResourcesMethod = TpuGrpc.getListQueuedResourcesMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getListQueuedResourcesMethod = TpuGrpc.getListQueuedResourcesMethod) == null) { - TpuGrpc.getListQueuedResourcesMethod = getListQueuedResourcesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListQueuedResources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListQueuedResources")) - .build(); - } - } - } - return getListQueuedResourcesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetQueuedResourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetQueuedResource", - requestType = com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest.class, - responseType = com.google.cloud.tpu.v2alpha1.QueuedResource.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetQueuedResourceMethod() { - io.grpc.MethodDescriptor getGetQueuedResourceMethod; - if ((getGetQueuedResourceMethod = TpuGrpc.getGetQueuedResourceMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getGetQueuedResourceMethod = TpuGrpc.getGetQueuedResourceMethod) == null) { - TpuGrpc.getGetQueuedResourceMethod = getGetQueuedResourceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetQueuedResource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.QueuedResource.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetQueuedResource")) - .build(); - } - } - } - return getGetQueuedResourceMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateQueuedResourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateQueuedResource", - requestType = com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateQueuedResourceMethod() { - io.grpc.MethodDescriptor getCreateQueuedResourceMethod; - if ((getCreateQueuedResourceMethod = TpuGrpc.getCreateQueuedResourceMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getCreateQueuedResourceMethod = TpuGrpc.getCreateQueuedResourceMethod) == null) { - TpuGrpc.getCreateQueuedResourceMethod = getCreateQueuedResourceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateQueuedResource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("CreateQueuedResource")) - .build(); - } - } - } - return getCreateQueuedResourceMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteQueuedResourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteQueuedResource", - requestType = com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteQueuedResourceMethod() { - io.grpc.MethodDescriptor getDeleteQueuedResourceMethod; - if ((getDeleteQueuedResourceMethod = TpuGrpc.getDeleteQueuedResourceMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getDeleteQueuedResourceMethod = TpuGrpc.getDeleteQueuedResourceMethod) == null) { - TpuGrpc.getDeleteQueuedResourceMethod = getDeleteQueuedResourceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteQueuedResource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("DeleteQueuedResource")) - .build(); - } - } - } - return getDeleteQueuedResourceMethod; - } - - private static volatile io.grpc.MethodDescriptor getGenerateServiceIdentityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateServiceIdentity", - requestType = com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest.class, - responseType = com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateServiceIdentityMethod() { - io.grpc.MethodDescriptor getGenerateServiceIdentityMethod; - if ((getGenerateServiceIdentityMethod = TpuGrpc.getGenerateServiceIdentityMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getGenerateServiceIdentityMethod = TpuGrpc.getGenerateServiceIdentityMethod) == null) { - TpuGrpc.getGenerateServiceIdentityMethod = getGenerateServiceIdentityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateServiceIdentity")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GenerateServiceIdentity")) - .build(); - } - } - } - return getGenerateServiceIdentityMethod; - } - - private static volatile io.grpc.MethodDescriptor getListAcceleratorTypesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAcceleratorTypes", - requestType = com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest.class, - responseType = com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAcceleratorTypesMethod() { - io.grpc.MethodDescriptor getListAcceleratorTypesMethod; - if ((getListAcceleratorTypesMethod = TpuGrpc.getListAcceleratorTypesMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getListAcceleratorTypesMethod = TpuGrpc.getListAcceleratorTypesMethod) == null) { - TpuGrpc.getListAcceleratorTypesMethod = getListAcceleratorTypesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAcceleratorTypes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListAcceleratorTypes")) - .build(); - } - } - } - return getListAcceleratorTypesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAcceleratorTypeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAcceleratorType", - requestType = com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest.class, - responseType = com.google.cloud.tpu.v2alpha1.AcceleratorType.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAcceleratorTypeMethod() { - io.grpc.MethodDescriptor getGetAcceleratorTypeMethod; - if ((getGetAcceleratorTypeMethod = TpuGrpc.getGetAcceleratorTypeMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getGetAcceleratorTypeMethod = TpuGrpc.getGetAcceleratorTypeMethod) == null) { - TpuGrpc.getGetAcceleratorTypeMethod = getGetAcceleratorTypeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAcceleratorType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.AcceleratorType.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetAcceleratorType")) - .build(); - } - } - } - return getGetAcceleratorTypeMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRuntimeVersionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRuntimeVersions", - requestType = com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest.class, - responseType = com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRuntimeVersionsMethod() { - io.grpc.MethodDescriptor getListRuntimeVersionsMethod; - if ((getListRuntimeVersionsMethod = TpuGrpc.getListRuntimeVersionsMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getListRuntimeVersionsMethod = TpuGrpc.getListRuntimeVersionsMethod) == null) { - TpuGrpc.getListRuntimeVersionsMethod = getListRuntimeVersionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuntimeVersions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListRuntimeVersions")) - .build(); - } - } - } - return getListRuntimeVersionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetRuntimeVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRuntimeVersion", - requestType = com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest.class, - responseType = com.google.cloud.tpu.v2alpha1.RuntimeVersion.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRuntimeVersionMethod() { - io.grpc.MethodDescriptor getGetRuntimeVersionMethod; - if ((getGetRuntimeVersionMethod = TpuGrpc.getGetRuntimeVersionMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getGetRuntimeVersionMethod = TpuGrpc.getGetRuntimeVersionMethod) == null) { - TpuGrpc.getGetRuntimeVersionMethod = getGetRuntimeVersionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRuntimeVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.RuntimeVersion.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetRuntimeVersion")) - .build(); - } - } - } - return getGetRuntimeVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetGuestAttributesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGuestAttributes", - requestType = com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest.class, - responseType = com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetGuestAttributesMethod() { - io.grpc.MethodDescriptor getGetGuestAttributesMethod; - if ((getGetGuestAttributesMethod = TpuGrpc.getGetGuestAttributesMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getGetGuestAttributesMethod = TpuGrpc.getGetGuestAttributesMethod) == null) { - TpuGrpc.getGetGuestAttributesMethod = getGetGuestAttributesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGuestAttributes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetGuestAttributes")) - .build(); - } - } - } - return getGetGuestAttributesMethod; - } - - private static volatile io.grpc.MethodDescriptor getSimulateMaintenanceEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SimulateMaintenanceEvent", - requestType = com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSimulateMaintenanceEventMethod() { - io.grpc.MethodDescriptor getSimulateMaintenanceEventMethod; - if ((getSimulateMaintenanceEventMethod = TpuGrpc.getSimulateMaintenanceEventMethod) == null) { - synchronized (TpuGrpc.class) { - if ((getSimulateMaintenanceEventMethod = TpuGrpc.getSimulateMaintenanceEventMethod) == null) { - TpuGrpc.getSimulateMaintenanceEventMethod = getSimulateMaintenanceEventMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SimulateMaintenanceEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TpuMethodDescriptorSupplier("SimulateMaintenanceEvent")) - .build(); - } - } - } - return getSimulateMaintenanceEventMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static TpuStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TpuStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TpuStub(channel, callOptions); - } - }; - return TpuStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TpuBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TpuBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TpuBlockingStub(channel, callOptions); - } - }; - return TpuBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static TpuFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TpuFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TpuFutureStub(channel, callOptions); - } - }; - return TpuFutureStub.newStub(factory, channel); - } - - /** - *
-   * Manages TPU nodes and other resources
-   * TPU API v2alpha1
-   * 
- */ - public static abstract class TpuImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists nodes.
-     * 
- */ - public void listNodes(com.google.cloud.tpu.v2alpha1.ListNodesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodesMethod(), responseObserver); - } - - /** - *
-     * Gets the details of a node.
-     * 
- */ - public void getNode(com.google.cloud.tpu.v2alpha1.GetNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodeMethod(), responseObserver); - } - - /** - *
-     * Creates a node.
-     * 
- */ - public void createNode(com.google.cloud.tpu.v2alpha1.CreateNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNodeMethod(), responseObserver); - } - - /** - *
-     * Deletes a node.
-     * 
- */ - public void deleteNode(com.google.cloud.tpu.v2alpha1.DeleteNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNodeMethod(), responseObserver); - } - - /** - *
-     * Stops a node. This operation is only available with single TPU nodes.
-     * 
- */ - public void stopNode(com.google.cloud.tpu.v2alpha1.StopNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopNodeMethod(), responseObserver); - } - - /** - *
-     * Starts a node.
-     * 
- */ - public void startNode(com.google.cloud.tpu.v2alpha1.StartNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartNodeMethod(), responseObserver); - } - - /** - *
-     * Updates the configurations of a node.
-     * 
- */ - public void updateNode(com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNodeMethod(), responseObserver); - } - - /** - *
-     * Lists queued resources.
-     * 
- */ - public void listQueuedResources(com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListQueuedResourcesMethod(), responseObserver); - } - - /** - *
-     * Gets details of a queued resource.
-     * 
- */ - public void getQueuedResource(com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetQueuedResourceMethod(), responseObserver); - } - - /** - *
-     * Creates a QueuedResource TPU instance.
-     * 
- */ - public void createQueuedResource(com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateQueuedResourceMethod(), responseObserver); - } - - /** - *
-     * Deletes a QueuedResource TPU instance.
-     * 
- */ - public void deleteQueuedResource(com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteQueuedResourceMethod(), responseObserver); - } - - /** - *
-     * Generates the Cloud TPU service identity for the project.
-     * 
- */ - public void generateServiceIdentity(com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateServiceIdentityMethod(), responseObserver); - } - - /** - *
-     * Lists accelerator types supported by this API.
-     * 
- */ - public void listAcceleratorTypes(com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAcceleratorTypesMethod(), responseObserver); - } - - /** - *
-     * Gets AcceleratorType.
-     * 
- */ - public void getAcceleratorType(com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAcceleratorTypeMethod(), responseObserver); - } - - /** - *
-     * Lists runtime versions supported by this API.
-     * 
- */ - public void listRuntimeVersions(com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRuntimeVersionsMethod(), responseObserver); - } - - /** - *
-     * Gets a runtime version.
-     * 
- */ - public void getRuntimeVersion(com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRuntimeVersionMethod(), responseObserver); - } - - /** - *
-     * Retrieves the guest attributes for the node.
-     * 
- */ - public void getGuestAttributes(com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGuestAttributesMethod(), responseObserver); - } - - /** - *
-     * Simulates a maintenance event.
-     * 
- */ - public void simulateMaintenanceEvent(com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSimulateMaintenanceEventMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListNodesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2alpha1.ListNodesRequest, - com.google.cloud.tpu.v2alpha1.ListNodesResponse>( - this, METHODID_LIST_NODES))) - .addMethod( - getGetNodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2alpha1.GetNodeRequest, - com.google.cloud.tpu.v2alpha1.Node>( - this, METHODID_GET_NODE))) - .addMethod( - getCreateNodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2alpha1.CreateNodeRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_NODE))) - .addMethod( - getDeleteNodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2alpha1.DeleteNodeRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_NODE))) - .addMethod( - getStopNodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2alpha1.StopNodeRequest, - com.google.longrunning.Operation>( - this, METHODID_STOP_NODE))) - .addMethod( - getStartNodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2alpha1.StartNodeRequest, - com.google.longrunning.Operation>( - this, METHODID_START_NODE))) - .addMethod( - getUpdateNodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2alpha1.UpdateNodeRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_NODE))) - .addMethod( - getListQueuedResourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest, - com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse>( - this, METHODID_LIST_QUEUED_RESOURCES))) - .addMethod( - getGetQueuedResourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest, - com.google.cloud.tpu.v2alpha1.QueuedResource>( - this, METHODID_GET_QUEUED_RESOURCE))) - .addMethod( - getCreateQueuedResourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_QUEUED_RESOURCE))) - .addMethod( - getDeleteQueuedResourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_QUEUED_RESOURCE))) - .addMethod( - getGenerateServiceIdentityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest, - com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse>( - this, METHODID_GENERATE_SERVICE_IDENTITY))) - .addMethod( - getListAcceleratorTypesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest, - com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse>( - this, METHODID_LIST_ACCELERATOR_TYPES))) - .addMethod( - getGetAcceleratorTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest, - com.google.cloud.tpu.v2alpha1.AcceleratorType>( - this, METHODID_GET_ACCELERATOR_TYPE))) - .addMethod( - getListRuntimeVersionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest, - com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse>( - this, METHODID_LIST_RUNTIME_VERSIONS))) - .addMethod( - getGetRuntimeVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest, - com.google.cloud.tpu.v2alpha1.RuntimeVersion>( - this, METHODID_GET_RUNTIME_VERSION))) - .addMethod( - getGetGuestAttributesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest, - com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>( - this, METHODID_GET_GUEST_ATTRIBUTES))) - .addMethod( - getSimulateMaintenanceEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest, - com.google.longrunning.Operation>( - this, METHODID_SIMULATE_MAINTENANCE_EVENT))) - .build(); - } - } - - /** - *
-   * Manages TPU nodes and other resources
-   * TPU API v2alpha1
-   * 
- */ - public static final class TpuStub extends io.grpc.stub.AbstractAsyncStub { - private TpuStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TpuStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TpuStub(channel, callOptions); - } - - /** - *
-     * Lists nodes.
-     * 
- */ - public void listNodes(com.google.cloud.tpu.v2alpha1.ListNodesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNodesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the details of a node.
-     * 
- */ - public void getNode(com.google.cloud.tpu.v2alpha1.GetNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a node.
-     * 
- */ - public void createNode(com.google.cloud.tpu.v2alpha1.CreateNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateNodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a node.
-     * 
- */ - public void deleteNode(com.google.cloud.tpu.v2alpha1.DeleteNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteNodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stops a node. This operation is only available with single TPU nodes.
-     * 
- */ - public void stopNode(com.google.cloud.tpu.v2alpha1.StopNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopNodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts a node.
-     * 
- */ - public void startNode(com.google.cloud.tpu.v2alpha1.StartNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartNodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the configurations of a node.
-     * 
- */ - public void updateNode(com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists queued resources.
-     * 
- */ - public void listQueuedResources(com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListQueuedResourcesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a queued resource.
-     * 
- */ - public void getQueuedResource(com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetQueuedResourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a QueuedResource TPU instance.
-     * 
- */ - public void createQueuedResource(com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateQueuedResourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a QueuedResource TPU instance.
-     * 
- */ - public void deleteQueuedResource(com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteQueuedResourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Generates the Cloud TPU service identity for the project.
-     * 
- */ - public void generateServiceIdentity(com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateServiceIdentityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists accelerator types supported by this API.
-     * 
- */ - public void listAcceleratorTypes(com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAcceleratorTypesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets AcceleratorType.
-     * 
- */ - public void getAcceleratorType(com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAcceleratorTypeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists runtime versions supported by this API.
-     * 
- */ - public void listRuntimeVersions(com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRuntimeVersionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a runtime version.
-     * 
- */ - public void getRuntimeVersion(com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRuntimeVersionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieves the guest attributes for the node.
-     * 
- */ - public void getGuestAttributes(com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGuestAttributesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Simulates a maintenance event.
-     * 
- */ - public void simulateMaintenanceEvent(com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSimulateMaintenanceEventMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Manages TPU nodes and other resources
-   * TPU API v2alpha1
-   * 
- */ - public static final class TpuBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private TpuBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TpuBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TpuBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists nodes.
-     * 
- */ - public com.google.cloud.tpu.v2alpha1.ListNodesResponse listNodes(com.google.cloud.tpu.v2alpha1.ListNodesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNodesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the details of a node.
-     * 
- */ - public com.google.cloud.tpu.v2alpha1.Node getNode(com.google.cloud.tpu.v2alpha1.GetNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a node.
-     * 
- */ - public com.google.longrunning.Operation createNode(com.google.cloud.tpu.v2alpha1.CreateNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateNodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a node.
-     * 
- */ - public com.google.longrunning.Operation deleteNode(com.google.cloud.tpu.v2alpha1.DeleteNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteNodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Stops a node. This operation is only available with single TPU nodes.
-     * 
- */ - public com.google.longrunning.Operation stopNode(com.google.cloud.tpu.v2alpha1.StopNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopNodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts a node.
-     * 
- */ - public com.google.longrunning.Operation startNode(com.google.cloud.tpu.v2alpha1.StartNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartNodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the configurations of a node.
-     * 
- */ - public com.google.longrunning.Operation updateNode(com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists queued resources.
-     * 
- */ - public com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse listQueuedResources(com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListQueuedResourcesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a queued resource.
-     * 
- */ - public com.google.cloud.tpu.v2alpha1.QueuedResource getQueuedResource(com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetQueuedResourceMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a QueuedResource TPU instance.
-     * 
- */ - public com.google.longrunning.Operation createQueuedResource(com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateQueuedResourceMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a QueuedResource TPU instance.
-     * 
- */ - public com.google.longrunning.Operation deleteQueuedResource(com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteQueuedResourceMethod(), getCallOptions(), request); - } - - /** - *
-     * Generates the Cloud TPU service identity for the project.
-     * 
- */ - public com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse generateServiceIdentity(com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateServiceIdentityMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists accelerator types supported by this API.
-     * 
- */ - public com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse listAcceleratorTypes(com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAcceleratorTypesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets AcceleratorType.
-     * 
- */ - public com.google.cloud.tpu.v2alpha1.AcceleratorType getAcceleratorType(com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAcceleratorTypeMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists runtime versions supported by this API.
-     * 
- */ - public com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse listRuntimeVersions(com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRuntimeVersionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a runtime version.
-     * 
- */ - public com.google.cloud.tpu.v2alpha1.RuntimeVersion getRuntimeVersion(com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRuntimeVersionMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieves the guest attributes for the node.
-     * 
- */ - public com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse getGuestAttributes(com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGuestAttributesMethod(), getCallOptions(), request); - } - - /** - *
-     * Simulates a maintenance event.
-     * 
- */ - public com.google.longrunning.Operation simulateMaintenanceEvent(com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSimulateMaintenanceEventMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Manages TPU nodes and other resources
-   * TPU API v2alpha1
-   * 
- */ - public static final class TpuFutureStub extends io.grpc.stub.AbstractFutureStub { - private TpuFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TpuFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TpuFutureStub(channel, callOptions); - } - - /** - *
-     * Lists nodes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listNodes( - com.google.cloud.tpu.v2alpha1.ListNodesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNodesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the details of a node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNode( - com.google.cloud.tpu.v2alpha1.GetNodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createNode( - com.google.cloud.tpu.v2alpha1.CreateNodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateNodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteNode( - com.google.cloud.tpu.v2alpha1.DeleteNodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteNodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Stops a node. This operation is only available with single TPU nodes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture stopNode( - com.google.cloud.tpu.v2alpha1.StopNodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopNodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts a node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startNode( - com.google.cloud.tpu.v2alpha1.StartNodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartNodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the configurations of a node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateNode( - com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists queued resources.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listQueuedResources( - com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListQueuedResourcesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a queued resource.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getQueuedResource( - com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetQueuedResourceMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a QueuedResource TPU instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createQueuedResource( - com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateQueuedResourceMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a QueuedResource TPU instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteQueuedResource( - com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteQueuedResourceMethod(), getCallOptions()), request); - } - - /** - *
-     * Generates the Cloud TPU service identity for the project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture generateServiceIdentity( - com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateServiceIdentityMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists accelerator types supported by this API.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listAcceleratorTypes( - com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAcceleratorTypesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets AcceleratorType.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAcceleratorType( - com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAcceleratorTypeMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists runtime versions supported by this API.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listRuntimeVersions( - com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRuntimeVersionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a runtime version.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getRuntimeVersion( - com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRuntimeVersionMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieves the guest attributes for the node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getGuestAttributes( - com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGuestAttributesMethod(), getCallOptions()), request); - } - - /** - *
-     * Simulates a maintenance event.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture simulateMaintenanceEvent( - com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSimulateMaintenanceEventMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_NODES = 0; - private static final int METHODID_GET_NODE = 1; - private static final int METHODID_CREATE_NODE = 2; - private static final int METHODID_DELETE_NODE = 3; - private static final int METHODID_STOP_NODE = 4; - private static final int METHODID_START_NODE = 5; - private static final int METHODID_UPDATE_NODE = 6; - private static final int METHODID_LIST_QUEUED_RESOURCES = 7; - private static final int METHODID_GET_QUEUED_RESOURCE = 8; - private static final int METHODID_CREATE_QUEUED_RESOURCE = 9; - private static final int METHODID_DELETE_QUEUED_RESOURCE = 10; - private static final int METHODID_GENERATE_SERVICE_IDENTITY = 11; - private static final int METHODID_LIST_ACCELERATOR_TYPES = 12; - private static final int METHODID_GET_ACCELERATOR_TYPE = 13; - private static final int METHODID_LIST_RUNTIME_VERSIONS = 14; - private static final int METHODID_GET_RUNTIME_VERSION = 15; - private static final int METHODID_GET_GUEST_ATTRIBUTES = 16; - private static final int METHODID_SIMULATE_MAINTENANCE_EVENT = 17; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final TpuImplBase serviceImpl; - private final int methodId; - - MethodHandlers(TpuImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_NODES: - serviceImpl.listNodes((com.google.cloud.tpu.v2alpha1.ListNodesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NODE: - serviceImpl.getNode((com.google.cloud.tpu.v2alpha1.GetNodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_NODE: - serviceImpl.createNode((com.google.cloud.tpu.v2alpha1.CreateNodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_NODE: - serviceImpl.deleteNode((com.google.cloud.tpu.v2alpha1.DeleteNodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_NODE: - serviceImpl.stopNode((com.google.cloud.tpu.v2alpha1.StopNodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_NODE: - serviceImpl.startNode((com.google.cloud.tpu.v2alpha1.StartNodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_NODE: - serviceImpl.updateNode((com.google.cloud.tpu.v2alpha1.UpdateNodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_QUEUED_RESOURCES: - serviceImpl.listQueuedResources((com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_QUEUED_RESOURCE: - serviceImpl.getQueuedResource((com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_QUEUED_RESOURCE: - serviceImpl.createQueuedResource((com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_QUEUED_RESOURCE: - serviceImpl.deleteQueuedResource((com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_SERVICE_IDENTITY: - serviceImpl.generateServiceIdentity((com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ACCELERATOR_TYPES: - serviceImpl.listAcceleratorTypes((com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ACCELERATOR_TYPE: - serviceImpl.getAcceleratorType((com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RUNTIME_VERSIONS: - serviceImpl.listRuntimeVersions((com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_RUNTIME_VERSION: - serviceImpl.getRuntimeVersion((com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_GUEST_ATTRIBUTES: - serviceImpl.getGuestAttributes((com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SIMULATE_MAINTENANCE_EVENT: - serviceImpl.simulateMaintenanceEvent((com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class TpuBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TpuBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.tpu.v2alpha1.CloudTpuProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Tpu"); - } - } - - private static final class TpuFileDescriptorSupplier - extends TpuBaseDescriptorSupplier { - TpuFileDescriptorSupplier() {} - } - - private static final class TpuMethodDescriptorSupplier - extends TpuBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TpuMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (TpuGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TpuFileDescriptorSupplier()) - .addMethod(getListNodesMethod()) - .addMethod(getGetNodeMethod()) - .addMethod(getCreateNodeMethod()) - .addMethod(getDeleteNodeMethod()) - .addMethod(getStopNodeMethod()) - .addMethod(getStartNodeMethod()) - .addMethod(getUpdateNodeMethod()) - .addMethod(getListQueuedResourcesMethod()) - .addMethod(getGetQueuedResourceMethod()) - .addMethod(getCreateQueuedResourceMethod()) - .addMethod(getDeleteQueuedResourceMethod()) - .addMethod(getGenerateServiceIdentityMethod()) - .addMethod(getListAcceleratorTypesMethod()) - .addMethod(getGetAcceleratorTypeMethod()) - .addMethod(getListRuntimeVersionsMethod()) - .addMethod(getGetRuntimeVersionMethod()) - .addMethod(getGetGuestAttributesMethod()) - .addMethod(getSimulateMaintenanceEventMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CloudTpuProto.java b/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CloudTpuProto.java deleted file mode 100644 index e780a71442e1..000000000000 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CloudTpuProto.java +++ /dev/null @@ -1,1014 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto - -package com.google.cloud.tpu.v2alpha1; - -public final class CloudTpuProto { - private CloudTpuProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_GuestAttributes_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_GuestAttributes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_GuestAttributesValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_GuestAttributesValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_GuestAttributesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_GuestAttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_AttachedDisk_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_AttachedDisk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_SchedulingConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_SchedulingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_NetworkEndpoint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_NetworkEndpoint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_AccessConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_AccessConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_NetworkConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_NetworkConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_ServiceAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_ServiceAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_Node_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_Node_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_Node_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_Node_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_Node_MetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_Node_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_QueuedResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_QueuedResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_NodeSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_NodeSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_QueuedResource_BestEffort_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_QueuedResource_BestEffort_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Guaranteed_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Guaranteed_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_QueuedResource_QueueingPolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_QueuedResource_QueueingPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_CreatingData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_CreatingData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_AcceptedData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_AcceptedData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ProvisioningData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ProvisioningData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_FailedData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_FailedData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_DeletingData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_DeletingData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ActiveData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_ActiveData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendingData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendingData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendedData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_QueuedResourceState_SuspendedData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_ListNodesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_ListNodesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_ListNodesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_ListNodesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_GetNodeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_GetNodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_CreateNodeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_CreateNodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_DeleteNodeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_DeleteNodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_StopNodeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_StopNodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_StartNodeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_StartNodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_UpdateNodeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_UpdateNodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_ListQueuedResourcesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_GetQueuedResourceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_GetQueuedResourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_CreateQueuedResourceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_CreateQueuedResourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_DeleteQueuedResourceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_DeleteQueuedResourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_ServiceIdentity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_ServiceIdentity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_GenerateServiceIdentityResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_AcceleratorType_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_AcceleratorType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_GetAcceleratorTypeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_GetAcceleratorTypeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_ListAcceleratorTypesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_RuntimeVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_RuntimeVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_GetRuntimeVersionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_GetRuntimeVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_ListRuntimeVersionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_Symptom_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_Symptom_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_GetGuestAttributesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_SimulateMaintenanceEventRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_SimulateMaintenanceEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/tpu/v2alpha1/cloud_tpu.pr" + - "oto\022\031google.cloud.tpu.v2alpha1\032\034google/a" + - "pi/annotations.proto\032\027google/api/client." + - "proto\032\037google/api/field_behavior.proto\032\031" + - "google/api/resource.proto\032#google/longru" + - "nning/operations.proto\032\036google/protobuf/" + - "duration.proto\032 google/protobuf/field_ma" + - "sk.proto\032\037google/protobuf/timestamp.prot" + - "o\032\027google/rpc/status.proto\032\032google/type/" + - "interval.proto\"k\n\017GuestAttributes\022\022\n\nque" + - "ry_path\030\001 \001(\t\022D\n\013query_value\030\002 \001(\0132/.goo" + - "gle.cloud.tpu.v2alpha1.GuestAttributesVa" + - "lue\"V\n\024GuestAttributesValue\022>\n\005items\030\001 \003" + - "(\0132/.google.cloud.tpu.v2alpha1.GuestAttr" + - "ibutesEntry\"E\n\024GuestAttributesEntry\022\021\n\tn" + - "amespace\030\001 \001(\t\022\013\n\003key\030\002 \001(\t\022\r\n\005value\030\003 \001" + - "(\t\"\251\001\n\014AttachedDisk\022\023\n\013source_disk\030\003 \001(\t" + - "\022>\n\004mode\030\004 \001(\01620.google.cloud.tpu.v2alph" + - "a1.AttachedDisk.DiskMode\"D\n\010DiskMode\022\031\n\025" + - "DISK_MODE_UNSPECIFIED\020\000\022\016\n\nREAD_WRITE\020\001\022" + - "\r\n\tREAD_ONLY\020\002\"9\n\020SchedulingConfig\022\023\n\013pr" + - "eemptible\030\001 \001(\010\022\020\n\010reserved\030\002 \001(\010\"s\n\017Net" + - "workEndpoint\022\022\n\nip_address\030\001 \001(\t\022\014\n\004port" + - "\030\002 \001(\005\022>\n\raccess_config\030\005 \001(\0132\'.google.c" + - "loud.tpu.v2alpha1.AccessConfig\"(\n\014Access" + - "Config\022\030\n\013external_ip\030\001 \001(\tB\003\340A\003\"i\n\rNetw" + - "orkConfig\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork" + - "\030\002 \001(\t\022\033\n\023enable_external_ips\030\003 \001(\010\022\026\n\016c" + - "an_ip_forward\030\004 \001(\010\".\n\016ServiceAccount\022\r\n" + - "\005email\030\001 \001(\t\022\r\n\005scope\030\002 \003(\t\"\211\r\n\004Node\022\024\n\004" + - "name\030\001 \001(\tB\006\340A\003\340A\005\022\023\n\013description\030\003 \001(\t\022" + - "\030\n\020accelerator_type\030\005 \001(\t\0229\n\005state\030\t \001(\016" + - "2%.google.cloud.tpu.v2alpha1.Node.StateB" + - "\003\340A\003\022\037\n\022health_description\030\n \001(\tB\003\340A\003\022\034\n" + - "\017runtime_version\030\013 \001(\tB\003\340A\002\022@\n\016network_c" + - "onfig\030$ \001(\0132(.google.cloud.tpu.v2alpha1." + - "NetworkConfig\022\022\n\ncidr_block\030\r \001(\t\022B\n\017ser" + - "vice_account\030% \001(\0132).google.cloud.tpu.v2" + - "alpha1.ServiceAccount\0224\n\013create_time\030\020 \001" + - "(\0132\032.google.protobuf.TimestampB\003\340A\003\022F\n\021s" + - "cheduling_config\030\021 \001(\0132+.google.cloud.tp" + - "u.v2alpha1.SchedulingConfig\022J\n\021network_e" + - "ndpoints\030\025 \003(\0132*.google.cloud.tpu.v2alph" + - "a1.NetworkEndpointB\003\340A\003\0226\n\006health\030\026 \001(\0162" + - "&.google.cloud.tpu.v2alpha1.Node.Health\022" + - ";\n\006labels\030\030 \003(\0132+.google.cloud.tpu.v2alp" + - "ha1.Node.LabelsEntry\022?\n\010metadata\030\" \003(\0132-" + - ".google.cloud.tpu.v2alpha1.Node.Metadata" + - "Entry\022\014\n\004tags\030( \003(\t\022\017\n\002id\030! \001(\003B\003\340A\003\022;\n\n" + - "data_disks\030) \003(\0132\'.google.cloud.tpu.v2al" + - "pha1.AttachedDisk\022D\n\013api_version\030& \001(\0162*" + - ".google.cloud.tpu.v2alpha1.Node.ApiVersi" + - "onB\003\340A\003\0229\n\010symptoms\030\' \003(\0132\".google.cloud" + - ".tpu.v2alpha1.SymptomB\003\340A\003\022\034\n\017queued_res" + - "ource\030+ \001(\tB\003\340A\003\022S\n\030shielded_instance_co" + - "nfig\030- \001(\01321.google.cloud.tpu.v2alpha1.S" + - "hieldedInstanceConfig\032-\n\013LabelsEntry\022\013\n\003" + - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032/\n\rMetadata" + - "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\341\001" + - "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATI" + - "NG\020\001\022\t\n\005READY\020\002\022\016\n\nRESTARTING\020\003\022\r\n\tREIMA" + - "GING\020\004\022\014\n\010DELETING\020\005\022\r\n\tREPAIRING\020\006\022\013\n\007S" + - "TOPPED\020\010\022\014\n\010STOPPING\020\t\022\014\n\010STARTING\020\n\022\r\n\t" + - "PREEMPTED\020\013\022\016\n\nTERMINATED\020\014\022\n\n\006HIDING\020\r\022" + - "\n\n\006HIDDEN\020\016\022\014\n\010UNHIDING\020\017\"o\n\006Health\022\026\n\022H" + - "EALTH_UNSPECIFIED\020\000\022\013\n\007HEALTHY\020\001\022\013\n\007TIME" + - "OUT\020\003\022\030\n\024UNHEALTHY_TENSORFLOW\020\004\022\031\n\025UNHEA" + - "LTHY_MAINTENANCE\020\005\"O\n\nApiVersion\022\033\n\027API_" + - "VERSION_UNSPECIFIED\020\000\022\r\n\tV1_ALPHA1\020\001\022\006\n\002" + - "V1\020\002\022\r\n\tV2_ALPHA1\020\003:R\352AO\n\027tpu.googleapis" + - ".com/Node\0224projects/{project}/locations/" + - "{location}/nodes/{node}\"\252\t\n\016QueuedResour" + - "ce\022\024\n\004name\030\001 \001(\tB\006\340A\003\340A\005\022<\n\003tpu\030\002 \001(\0132-." + - "google.cloud.tpu.v2alpha1.QueuedResource" + - ".TpuH\000\022K\n\013best_effort\030\003 \001(\01324.google.clo" + - "ud.tpu.v2alpha1.QueuedResource.BestEffor" + - "tH\001\022J\n\nguaranteed\030\004 \001(\01324.google.cloud.t" + - "pu.v2alpha1.QueuedResource.GuaranteedH\001\022" + - "Q\n\017queueing_policy\030\005 \001(\01328.google.cloud." + - "tpu.v2alpha1.QueuedResource.QueueingPoli" + - "cy\022B\n\005state\030\006 \001(\0132..google.cloud.tpu.v2a" + - "lpha1.QueuedResourceStateB\003\340A\003\032\335\001\n\003Tpu\022I" + - "\n\tnode_spec\030\001 \003(\01326.google.cloud.tpu.v2a" + - "lpha1.QueuedResource.Tpu.NodeSpec\032\212\001\n\010No" + - "deSpec\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + - "s.googleapis.com/Location\022\017\n\007node_id\030\002 \001" + - "(\t\0222\n\004node\030\003 \001(\0132\037.google.cloud.tpu.v2al" + - "pha1.NodeB\003\340A\002\032\014\n\nBestEffort\032Y\n\nGuarante" + - "ed\0224\n\014min_duration\030\001 \001(\0132\031.google.protob" + - "uf.DurationB\003\340A\001\022\025\n\010reserved\030\002 \001(\010B\003\340A\001\032" + - "\303\002\n\016QueueingPolicy\0229\n\024valid_until_durati" + - "on\030\001 \001(\0132\031.google.protobuf.DurationH\000\0226\n" + - "\020valid_until_time\030\002 \001(\0132\032.google.protobu" + - "f.TimestampH\000\0229\n\024valid_after_duration\030\003 " + - "\001(\0132\031.google.protobuf.DurationH\000\0226\n\020vali" + - "d_after_time\030\004 \001(\0132\032.google.protobuf.Tim" + - "estampH\000\022/\n\016valid_interval\030\005 \001(\0132\025.googl" + - "e.type.IntervalH\000B\032\n\030start_timing_constr" + - "aints:q\352An\n!tpu.googleapis.com/QueuedRes" + - "ource\022Iprojects/{project}/locations/{loc" + - "ation}/queuedResources/{queued_resource}" + - "B\n\n\010resourceB\006\n\004tier\"\330\010\n\023QueuedResourceS" + - "tate\022C\n\005state\030\001 \001(\01624.google.cloud.tpu.v" + - "2alpha1.QueuedResourceState.State\022T\n\rcre" + - "ating_data\030\002 \001(\0132;.google.cloud.tpu.v2al" + - "pha1.QueuedResourceState.CreatingDataH\000\022" + - "T\n\raccepted_data\030\003 \001(\0132;.google.cloud.tp" + - "u.v2alpha1.QueuedResourceState.AcceptedD" + - "ataH\000\022\\\n\021provisioning_data\030\004 \001(\0132?.googl" + - "e.cloud.tpu.v2alpha1.QueuedResourceState" + - ".ProvisioningDataH\000\022P\n\013failed_data\030\005 \001(\013" + - "29.google.cloud.tpu.v2alpha1.QueuedResou" + - "rceState.FailedDataH\000\022T\n\rdeleting_data\030\006" + - " \001(\0132;.google.cloud.tpu.v2alpha1.QueuedR" + - "esourceState.DeletingDataH\000\022P\n\013active_da" + - "ta\030\007 \001(\01329.google.cloud.tpu.v2alpha1.Que" + - "uedResourceState.ActiveDataH\000\022X\n\017suspend" + - "ing_data\030\010 \001(\0132=.google.cloud.tpu.v2alph" + - "a1.QueuedResourceState.SuspendingDataH\000\022" + - "V\n\016suspended_data\030\t \001(\0132<.google.cloud.t" + - "pu.v2alpha1.QueuedResourceState.Suspende" + - "dDataH\000\032\016\n\014CreatingData\032\016\n\014AcceptedData\032" + - "\022\n\020ProvisioningData\032/\n\nFailedData\022!\n\005err" + - "or\030\001 \001(\0132\022.google.rpc.Status\032\016\n\014Deleting" + - "Data\032\014\n\nActiveData\032\020\n\016SuspendingData\032\017\n\r" + - "SuspendedData\"\221\001\n\005State\022\025\n\021STATE_UNSPECI" + - "FIED\020\000\022\014\n\010CREATING\020\001\022\014\n\010ACCEPTED\020\002\022\020\n\014PR" + - "OVISIONING\020\003\022\n\n\006FAILED\020\004\022\014\n\010DELETING\020\005\022\n" + - "\n\006ACTIVE\020\006\022\016\n\nSUSPENDING\020\007\022\r\n\tSUSPENDED\020" + - "\010B\014\n\nstate_data\"j\n\020ListNodesRequest\022/\n\006p" + - "arent\030\001 \001(\tB\037\340A\002\372A\031\022\027tpu.googleapis.com/" + - "Node\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + - "\001(\t\"q\n\021ListNodesResponse\022.\n\005nodes\030\001 \003(\0132" + - "\037.google.cloud.tpu.v2alpha1.Node\022\027\n\017next" + - "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"?" + - "\n\016GetNodeRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027" + - "tpu.googleapis.com/Node\"\247\001\n\021CreateNodeRe" + - "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + - ".googleapis.com/Location\022\017\n\007node_id\030\002 \001(" + - "\t\0222\n\004node\030\003 \001(\0132\037.google.cloud.tpu.v2alp" + - "ha1.NodeB\003\340A\002\022\022\n\nrequest_id\030\006 \001(\t\"V\n\021Del" + - "eteNodeRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tp" + - "u.googleapis.com/Node\022\022\n\nrequest_id\030\003 \001(" + - "\t\"@\n\017StopNodeRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372" + - "A\031\n\027tpu.googleapis.com/Node\"A\n\020StartNode" + - "Request\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googl" + - "eapis.com/Node\"}\n\021UpdateNodeRequest\0224\n\013u" + - "pdate_mask\030\001 \001(\0132\032.google.protobuf.Field" + - "MaskB\003\340A\002\0222\n\004node\030\002 \001(\0132\037.google.cloud.t" + - "pu.v2alpha1.NodeB\003\340A\002\"~\n\032ListQueuedResou" + - "rcesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!tpu" + - ".googleapis.com/QueuedResource\022\021\n\tpage_s" + - "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\220\001\n\033ListQu" + - "euedResourcesResponse\022C\n\020queued_resource" + - "s\030\001 \003(\0132).google.cloud.tpu.v2alpha1.Queu" + - "edResource\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" + - "nreachable\030\003 \003(\t\"S\n\030GetQueuedResourceReq" + - "uest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!tpu.googleap" + - "is.com/QueuedResource\"\321\001\n\033CreateQueuedRe" + - "sourceRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!l" + - "ocations.googleapis.com/Location\022\032\n\022queu" + - "ed_resource_id\030\002 \001(\t\022G\n\017queued_resource\030" + - "\003 \001(\0132).google.cloud.tpu.v2alpha1.Queued" + - "ResourceB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"j\n\033Del" + - "eteQueuedResourceRequest\0227\n\004name\030\001 \001(\tB)" + - "\340A\002\372A#\n!tpu.googleapis.com/QueuedResourc" + - "e\022\022\n\nrequest_id\030\002 \001(\t\" \n\017ServiceIdentity" + - "\022\r\n\005email\030\001 \001(\t\"[\n\036GenerateServiceIdenti" + - "tyRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locat" + - "ions.googleapis.com/Location\"_\n\037Generate" + - "ServiceIdentityResponse\022<\n\010identity\030\001 \001(" + - "\0132*.google.cloud.tpu.v2alpha1.ServiceIde" + - "ntity\"\243\001\n\017AcceleratorType\022\014\n\004name\030\001 \001(\t\022" + - "\014\n\004type\030\002 \001(\t:t\352Aq\n\"tpu.googleapis.com/A" + - "cceleratorType\022Kprojects/{project}/locat" + - "ions/{location}/acceleratorTypes/{accele" + - "rator_type}\"U\n\031GetAcceleratorTypeRequest" + - "\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"tpu.googleapis.c" + - "om/AcceleratorType\"\242\001\n\033ListAcceleratorTy" + - "pesRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"tpu." + - "googleapis.com/AcceleratorType\022\021\n\tpage_s" + - "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030" + - "\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\223\001\n\034ListAccelera" + - "torTypesResponse\022E\n\021accelerator_types\030\001 " + - "\003(\0132*.google.cloud.tpu.v2alpha1.Accelera" + - "torType\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" + - "achable\030\003 \003(\t\"\242\001\n\016RuntimeVersion\022\014\n\004name" + - "\030\001 \001(\t\022\017\n\007version\030\002 \001(\t:q\352An\n!tpu.google" + - "apis.com/RuntimeVersion\022Iprojects/{proje" + - "ct}/locations/{location}/runtimeVersions" + - "/{runtime_version}\"S\n\030GetRuntimeVersionR" + - "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!tpu.google" + - "apis.com/RuntimeVersion\"\240\001\n\032ListRuntimeV" + - "ersionsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!" + - "tpu.googleapis.com/RuntimeVersion\022\021\n\tpag" + - "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filt" + - "er\030\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\220\001\n\033ListRunti" + - "meVersionsResponse\022C\n\020runtime_versions\030\001" + - " \003(\0132).google.cloud.tpu.v2alpha1.Runtime" + - "Version\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" + - "achable\030\003 \003(\t\"\326\001\n\021OperationMetadata\022/\n\013c" + - "reate_time\030\001 \001(\0132\032.google.protobuf.Times" + - "tamp\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf" + - ".Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t" + - "\022\025\n\rstatus_detail\030\005 \001(\t\022\030\n\020cancel_reques" + - "ted\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t\"\313\002\n\007Sympt" + - "om\022/\n\013create_time\030\001 \001(\0132\032.google.protobu" + - "f.Timestamp\022D\n\014symptom_type\030\002 \001(\0162..goog" + - "le.cloud.tpu.v2alpha1.Symptom.SymptomTyp" + - "e\022\017\n\007details\030\003 \001(\t\022\021\n\tworker_id\030\004 \001(\t\"\244\001" + - "\n\013SymptomType\022\034\n\030SYMPTOM_TYPE_UNSPECIFIE" + - "D\020\000\022\016\n\nLOW_MEMORY\020\001\022\021\n\rOUT_OF_MEMORY\020\002\022\025" + - "\n\021EXECUTE_TIMED_OUT\020\003\022\023\n\017MESH_BUILD_FAIL" + - "\020\004\022\025\n\021HBM_OUT_OF_MEMORY\020\005\022\021\n\rPROJECT_ABU" + - "SE\020\006\"r\n\031GetGuestAttributesRequest\022-\n\004nam" + - "e\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googleapis.com/Node" + - "\022\022\n\nquery_path\030\002 \001(\t\022\022\n\nworker_ids\030\003 \003(\t" + - "\"b\n\032GetGuestAttributesResponse\022D\n\020guest_" + - "attributes\030\001 \003(\0132*.google.cloud.tpu.v2al" + - "pha1.GuestAttributes\"d\n\037SimulateMaintena" + - "nceEventRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027t" + - "pu.googleapis.com/Node\022\022\n\nworker_ids\030\002 \003" + - "(\t\"4\n\026ShieldedInstanceConfig\022\032\n\022enable_s" + - "ecure_boot\030\001 \001(\0102\267\035\n\003Tpu\022\250\001\n\tListNodes\022+" + - ".google.cloud.tpu.v2alpha1.ListNodesRequ" + - "est\032,.google.cloud.tpu.v2alpha1.ListNode" + - "sResponse\"@\202\323\344\223\0021\022//v2alpha1/{parent=pro" + - "jects/*/locations/*}/nodes\332A\006parent\022\225\001\n\007" + - "GetNode\022).google.cloud.tpu.v2alpha1.GetN" + - "odeRequest\032\037.google.cloud.tpu.v2alpha1.N" + - "ode\">\202\323\344\223\0021\022//v2alpha1/{name=projects/*/" + - "locations/*/nodes/*}\332A\004name\022\312\001\n\nCreateNo" + - "de\022,.google.cloud.tpu.v2alpha1.CreateNod" + - "eRequest\032\035.google.longrunning.Operation\"" + - "o\202\323\344\223\0027\"//v2alpha1/{parent=projects/*/lo" + - "cations/*}/nodes:\004node\332A\023parent,node,nod" + - "e_id\312A\031\n\004Node\022\021OperationMetadata\022\306\001\n\nDel" + - "eteNode\022,.google.cloud.tpu.v2alpha1.Dele" + - "teNodeRequest\032\035.google.longrunning.Opera" + - "tion\"k\202\323\344\223\0021*//v2alpha1/{name=projects/*" + - "/locations/*/nodes/*}\332A\004name\312A*\n\025google." + - "protobuf.Empty\022\021OperationMetadata\022\262\001\n\010St" + - "opNode\022*.google.cloud.tpu.v2alpha1.StopN" + - "odeRequest\032\035.google.longrunning.Operatio" + - "n\"[\202\323\344\223\0029\"4/v2alpha1/{name=projects/*/lo" + - "cations/*/nodes/*}:stop:\001*\312A\031\n\004Node\022\021Ope" + - "rationMetadata\022\265\001\n\tStartNode\022+.google.cl" + - "oud.tpu.v2alpha1.StartNodeRequest\032\035.goog" + - "le.longrunning.Operation\"\\\202\323\344\223\002:\"5/v2alp" + - "ha1/{name=projects/*/locations/*/nodes/*" + - "}:start:\001*\312A\031\n\004Node\022\021OperationMetadata\022\314" + - "\001\n\nUpdateNode\022,.google.cloud.tpu.v2alpha" + - "1.UpdateNodeRequest\032\035.google.longrunning" + - ".Operation\"q\202\323\344\223\002<24/v2alpha1/{node.name" + - "=projects/*/locations/*/nodes/*}:\004node\332A" + - "\020node,update_mask\312A\031\n\004Node\022\021OperationMet" + - "adata\022\320\001\n\023ListQueuedResources\0225.google.c" + - "loud.tpu.v2alpha1.ListQueuedResourcesReq" + - "uest\0326.google.cloud.tpu.v2alpha1.ListQue" + - "uedResourcesResponse\"J\202\323\344\223\002;\0229/v2alpha1/" + - "{parent=projects/*/locations/*}/queuedRe" + - "sources\332A\006parent\022\275\001\n\021GetQueuedResource\0223" + - ".google.cloud.tpu.v2alpha1.GetQueuedReso" + - "urceRequest\032).google.cloud.tpu.v2alpha1." + - "QueuedResource\"H\202\323\344\223\002;\0229/v2alpha1/{name=" + - "projects/*/locations/*/queuedResources/*" + - "}\332A\004name\022\224\002\n\024CreateQueuedResource\0226.goog" + - "le.cloud.tpu.v2alpha1.CreateQueuedResour" + - "ceRequest\032\035.google.longrunning.Operation" + - "\"\244\001\202\323\344\223\002L\"9/v2alpha1/{parent=projects/*/" + - "locations/*}/queuedResources:\017queued_res" + - "ource\332A)parent,queued_resource,queued_re" + - "source_id\312A#\n\016QueuedResource\022\021OperationM" + - "etadata\022\335\001\n\024DeleteQueuedResource\0226.googl" + - "e.cloud.tpu.v2alpha1.DeleteQueuedResourc" + - "eRequest\032\035.google.longrunning.Operation\"" + - "n\202\323\344\223\002;*9/v2alpha1/{name=projects/*/loca" + - "tions/*/queuedResources/*}\332A\004name\312A#\n\016Qu" + - "euedResource\022\021OperationMetadata\022\336\001\n\027Gene" + - "rateServiceIdentity\0229.google.cloud.tpu.v" + - "2alpha1.GenerateServiceIdentityRequest\032:" + - ".google.cloud.tpu.v2alpha1.GenerateServi" + - "ceIdentityResponse\"L\202\323\344\223\002F\"A/v2alpha1/{p" + - "arent=projects/*/locations/*}:generateSe" + - "rviceIdentity:\001*\022\324\001\n\024ListAcceleratorType" + - "s\0226.google.cloud.tpu.v2alpha1.ListAccele" + - "ratorTypesRequest\0327.google.cloud.tpu.v2a" + - "lpha1.ListAcceleratorTypesResponse\"K\202\323\344\223" + - "\002<\022:/v2alpha1/{parent=projects/*/locatio" + - "ns/*}/acceleratorTypes\332A\006parent\022\301\001\n\022GetA" + - "cceleratorType\0224.google.cloud.tpu.v2alph" + - "a1.GetAcceleratorTypeRequest\032*.google.cl" + - "oud.tpu.v2alpha1.AcceleratorType\"I\202\323\344\223\002<" + - "\022:/v2alpha1/{name=projects/*/locations/*" + - "/acceleratorTypes/*}\332A\004name\022\320\001\n\023ListRunt" + - "imeVersions\0225.google.cloud.tpu.v2alpha1." + - "ListRuntimeVersionsRequest\0326.google.clou" + - "d.tpu.v2alpha1.ListRuntimeVersionsRespon" + - "se\"J\202\323\344\223\002;\0229/v2alpha1/{parent=projects/*" + - "/locations/*}/runtimeVersions\332A\006parent\022\275" + - "\001\n\021GetRuntimeVersion\0223.google.cloud.tpu." + - "v2alpha1.GetRuntimeVersionRequest\032).goog" + - "le.cloud.tpu.v2alpha1.RuntimeVersion\"H\202\323" + - "\344\223\002;\0229/v2alpha1/{name=projects/*/locatio" + - "ns/*/runtimeVersions/*}\332A\004name\022\320\001\n\022GetGu" + - "estAttributes\0224.google.cloud.tpu.v2alpha" + - "1.GetGuestAttributesRequest\0325.google.clo" + - "ud.tpu.v2alpha1.GetGuestAttributesRespon" + - "se\"M\202\323\344\223\002G\"B/v2alpha1/{name=projects/*/l" + - "ocations/*/nodes/*}:getGuestAttributes:\001" + - "*\022\346\001\n\030SimulateMaintenanceEvent\022:.google." + - "cloud.tpu.v2alpha1.SimulateMaintenanceEv" + - "entRequest\032\035.google.longrunning.Operatio" + - "n\"o\202\323\344\223\002M\"H/v2alpha1/{name=projects/*/lo" + - "cations/*/nodes/*}:simulateMaintenanceEv" + - "ent:\001*\312A\031\n\004Node\022\021OperationMetadata\032F\312A\022t" + - "pu.googleapis.com\322A.https://www.googleap" + - "is.com/auth/cloud-platformBn\n\035com.google" + - ".cloud.tpu.v2alpha1B\rCloudTpuProtoP\001Z - * Required. The resource name. - *
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Idempotent request UUID.
-   * 
- * - * string request_id = 3; - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - *
-   * Idempotent request UUID.
-   * 
- * - * string request_id = 3; - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString - getRequestIdBytes(); -} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteQueuedResourceRequestOrBuilder.java b/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteQueuedResourceRequestOrBuilder.java deleted file mode 100644 index 3e6be93c1cc1..000000000000 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/DeleteQueuedResourceRequestOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto - -package com.google.cloud.tpu.v2alpha1; - -public interface DeleteQueuedResourceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Idempotent request UUID.
-   * 
- * - * string request_id = 2; - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - *
-   * Idempotent request UUID.
-   * 
- * - * string request_id = 2; - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString - getRequestIdBytes(); -} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityRequestOrBuilder.java b/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityRequestOrBuilder.java deleted file mode 100644 index d8435479991d..000000000000 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GenerateServiceIdentityRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto - -package com.google.cloud.tpu.v2alpha1; - -public interface GenerateServiceIdentityRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent resource name.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent resource name.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); -} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetAcceleratorTypeRequestOrBuilder.java b/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetAcceleratorTypeRequestOrBuilder.java deleted file mode 100644 index a52d77c225d3..000000000000 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetAcceleratorTypeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto - -package com.google.cloud.tpu.v2alpha1; - -public interface GetAcceleratorTypeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetNodeRequestOrBuilder.java b/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetNodeRequestOrBuilder.java deleted file mode 100644 index 4374797464d5..000000000000 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetNodeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto - -package com.google.cloud.tpu.v2alpha1; - -public interface GetNodeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.GetNodeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetQueuedResourceRequestOrBuilder.java b/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetQueuedResourceRequestOrBuilder.java deleted file mode 100644 index d0dbed79514d..000000000000 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetQueuedResourceRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto - -package com.google.cloud.tpu.v2alpha1; - -public interface GetQueuedResourceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.GetQueuedResourceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetRuntimeVersionRequestOrBuilder.java b/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetRuntimeVersionRequestOrBuilder.java deleted file mode 100644 index e5e3a11c3528..000000000000 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/GetRuntimeVersionRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto - -package com.google.cloud.tpu.v2alpha1; - -public interface GetRuntimeVersionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfigOrBuilder.java b/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfigOrBuilder.java deleted file mode 100644 index 5e8a02cbe3b3..000000000000 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfigOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto - -package com.google.cloud.tpu.v2alpha1; - -public interface SchedulingConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.SchedulingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Defines whether the node is preemptible.
-   * 
- * - * bool preemptible = 1; - * @return The preemptible. - */ - boolean getPreemptible(); - - /** - *
-   * Whether the node is created under a reservation.
-   * 
- * - * bool reserved = 2; - * @return The reserved. - */ - boolean getReserved(); -} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceIdentityOrBuilder.java b/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceIdentityOrBuilder.java deleted file mode 100644 index 12b3c9f7dcd5..000000000000 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ServiceIdentityOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto - -package com.google.cloud.tpu.v2alpha1; - -public interface ServiceIdentityOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.ServiceIdentity) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The email address of the service identity.
-   * 
- * - * string email = 1; - * @return The email. - */ - java.lang.String getEmail(); - /** - *
-   * The email address of the service identity.
-   * 
- * - * string email = 1; - * @return The bytes for email. - */ - com.google.protobuf.ByteString - getEmailBytes(); -} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ShieldedInstanceConfigOrBuilder.java b/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ShieldedInstanceConfigOrBuilder.java deleted file mode 100644 index a720bd197b91..000000000000 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ShieldedInstanceConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto - -package com.google.cloud.tpu.v2alpha1; - -public interface ShieldedInstanceConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.ShieldedInstanceConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Defines whether the instance has Secure Boot enabled.
-   * 
- * - * bool enable_secure_boot = 1; - * @return The enableSecureBoot. - */ - boolean getEnableSecureBoot(); -} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StartNodeRequestOrBuilder.java b/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StartNodeRequestOrBuilder.java deleted file mode 100644 index 0a4c2e5cf7ea..000000000000 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StartNodeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto - -package com.google.cloud.tpu.v2alpha1; - -public interface StartNodeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.StartNodeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StopNodeRequestOrBuilder.java b/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StopNodeRequestOrBuilder.java deleted file mode 100644 index 1462c20dab3c..000000000000 --- a/owl-bot-staging/java-tpu/v2alpha1/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/StopNodeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto - -package com.google.cloud.tpu.v2alpha1; - -public interface StopNodeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.StopNodeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/versions.txt b/versions.txt index c4fcabcd9fd7..86f90776bfde 100644 --- a/versions.txt +++ b/versions.txt @@ -590,3 +590,5 @@ grpc-google-maps-routing-v2:0.0.0:0.0.1-SNAPSHOT google-cloud-vmwareengine:0.0.0:0.0.1-SNAPSHOT proto-google-cloud-vmwareengine-v1:0.0.0:0.0.1-SNAPSHOT grpc-google-cloud-vmwareengine-v1:0.0.0:0.0.1-SNAPSHOT +proto-google-cloud-tpu-v2:2.7.0:2.8.0-SNAPSHOT +grpc-google-cloud-tpu-v2:2.7.0:2.8.0-SNAPSHOT