+ * 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 + .
+ * 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
+ * Gets the details of a node. + *+ */ + public void getNode( + com.google.cloud.tpu.v1.GetNodeRequest request, + io.grpc.stub.StreamObserver
+ * Creates a node. + *+ */ + public void createNode( + com.google.cloud.tpu.v1.CreateNodeRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a node. + *+ */ + public void deleteNode( + com.google.cloud.tpu.v1.DeleteNodeRequest request, + io.grpc.stub.StreamObserver
+ * Reimages a node's OS. + *+ */ + public void reimageNode( + com.google.cloud.tpu.v1.ReimageNodeRequest request, + io.grpc.stub.StreamObserver
+ * 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
+ * Starts a node. + *+ */ + public void startNode( + com.google.cloud.tpu.v1.StartNodeRequest request, + io.grpc.stub.StreamObserver
+ * List TensorFlow versions supported by this API. + *+ */ + public void listTensorFlowVersions( + com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest request, + io.grpc.stub.StreamObserver
+ * Gets TensorFlow Version. + *+ */ + public void getTensorFlowVersion( + com.google.cloud.tpu.v1.GetTensorFlowVersionRequest request, + io.grpc.stub.StreamObserver
+ * Lists accelerator types supported by this API. + *+ */ + public void listAcceleratorTypes( + com.google.cloud.tpu.v1.ListAcceleratorTypesRequest request, + io.grpc.stub.StreamObserver
+ * Gets AcceleratorType. + *+ */ + public void getAcceleratorType( + com.google.cloud.tpu.v1.GetAcceleratorTypeRequest request, + io.grpc.stub.StreamObserver
+ * Manages TPU nodes and other resources + * TPU API v1 + *+ */ + public static final class TpuStub extends io.grpc.stub.AbstractAsyncStub
+ * Lists nodes. + *+ */ + public void listNodes( + com.google.cloud.tpu.v1.ListNodesRequest request, + io.grpc.stub.StreamObserver
+ * Gets the details of a node. + *+ */ + public void getNode( + com.google.cloud.tpu.v1.GetNodeRequest request, + io.grpc.stub.StreamObserver
+ * Creates a node. + *+ */ + public void createNode( + com.google.cloud.tpu.v1.CreateNodeRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a node. + *+ */ + public void deleteNode( + com.google.cloud.tpu.v1.DeleteNodeRequest request, + io.grpc.stub.StreamObserver
+ * Reimages a node's OS. + *+ */ + public void reimageNode( + com.google.cloud.tpu.v1.ReimageNodeRequest request, + io.grpc.stub.StreamObserver
+ * 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
+ * Starts a node. + *+ */ + public void startNode( + com.google.cloud.tpu.v1.StartNodeRequest request, + io.grpc.stub.StreamObserver
+ * List TensorFlow versions supported by this API. + *+ */ + public void listTensorFlowVersions( + com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest request, + io.grpc.stub.StreamObserver
+ * Gets TensorFlow Version. + *+ */ + public void getTensorFlowVersion( + com.google.cloud.tpu.v1.GetTensorFlowVersionRequest request, + io.grpc.stub.StreamObserver
+ * Lists accelerator types supported by this API. + *+ */ + public void listAcceleratorTypes( + com.google.cloud.tpu.v1.ListAcceleratorTypesRequest request, + io.grpc.stub.StreamObserver
+ * Gets AcceleratorType. + *+ */ + public void getAcceleratorType( + com.google.cloud.tpu.v1.GetAcceleratorTypeRequest request, + io.grpc.stub.StreamObserver
+ * Manages TPU nodes and other resources + * TPU API v1 + *+ */ + public static final class TpuBlockingStub + extends io.grpc.stub.AbstractBlockingStub
+ * 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
+ * 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
+ * Creates a node. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a node. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Reimages a node's OS. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Stops a node, this operation is only available with single TPU nodes. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Starts a node. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * 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
+ * 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 + .
+ * 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
+ * Gets the details of a node. + *+ */ + public void getNode( + com.google.cloud.tpu.v2.GetNodeRequest request, + io.grpc.stub.StreamObserver
+ * Creates a node. + *+ */ + public void createNode( + com.google.cloud.tpu.v2.CreateNodeRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a node. + *+ */ + public void deleteNode( + com.google.cloud.tpu.v2.DeleteNodeRequest request, + io.grpc.stub.StreamObserver
+ * 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
+ * Starts a node. + *+ */ + public void startNode( + com.google.cloud.tpu.v2.StartNodeRequest request, + io.grpc.stub.StreamObserver
+ * Updates the configurations of a node. + *+ */ + public void updateNode( + com.google.cloud.tpu.v2.UpdateNodeRequest request, + io.grpc.stub.StreamObserver
+ * Generates the Cloud TPU service identity for the project. + *+ */ + public void generateServiceIdentity( + com.google.cloud.tpu.v2.GenerateServiceIdentityRequest request, + io.grpc.stub.StreamObserver
+ * Lists accelerator types supported by this API. + *+ */ + public void listAcceleratorTypes( + com.google.cloud.tpu.v2.ListAcceleratorTypesRequest request, + io.grpc.stub.StreamObserver
+ * Gets AcceleratorType. + *+ */ + public void getAcceleratorType( + com.google.cloud.tpu.v2.GetAcceleratorTypeRequest request, + io.grpc.stub.StreamObserver
+ * Lists runtime versions supported by this API. + *+ */ + public void listRuntimeVersions( + com.google.cloud.tpu.v2.ListRuntimeVersionsRequest request, + io.grpc.stub.StreamObserver
+ * Gets a runtime version. + *+ */ + public void getRuntimeVersion( + com.google.cloud.tpu.v2.GetRuntimeVersionRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves the guest attributes for the node. + *+ */ + public void getGuestAttributes( + com.google.cloud.tpu.v2.GetGuestAttributesRequest request, + io.grpc.stub.StreamObserver
+ * Manages TPU nodes and other resources + * TPU API v2 + *+ */ + public static final class TpuStub extends io.grpc.stub.AbstractAsyncStub
+ * Lists nodes. + *+ */ + public void listNodes( + com.google.cloud.tpu.v2.ListNodesRequest request, + io.grpc.stub.StreamObserver
+ * Gets the details of a node. + *+ */ + public void getNode( + com.google.cloud.tpu.v2.GetNodeRequest request, + io.grpc.stub.StreamObserver
+ * Creates a node. + *+ */ + public void createNode( + com.google.cloud.tpu.v2.CreateNodeRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a node. + *+ */ + public void deleteNode( + com.google.cloud.tpu.v2.DeleteNodeRequest request, + io.grpc.stub.StreamObserver
+ * 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
+ * Starts a node. + *+ */ + public void startNode( + com.google.cloud.tpu.v2.StartNodeRequest request, + io.grpc.stub.StreamObserver
+ * Updates the configurations of a node. + *+ */ + public void updateNode( + com.google.cloud.tpu.v2.UpdateNodeRequest request, + io.grpc.stub.StreamObserver
+ * Generates the Cloud TPU service identity for the project. + *+ */ + public void generateServiceIdentity( + com.google.cloud.tpu.v2.GenerateServiceIdentityRequest request, + io.grpc.stub.StreamObserver
+ * Lists accelerator types supported by this API. + *+ */ + public void listAcceleratorTypes( + com.google.cloud.tpu.v2.ListAcceleratorTypesRequest request, + io.grpc.stub.StreamObserver
+ * Gets AcceleratorType. + *+ */ + public void getAcceleratorType( + com.google.cloud.tpu.v2.GetAcceleratorTypeRequest request, + io.grpc.stub.StreamObserver
+ * Lists runtime versions supported by this API. + *+ */ + public void listRuntimeVersions( + com.google.cloud.tpu.v2.ListRuntimeVersionsRequest request, + io.grpc.stub.StreamObserver
+ * Gets a runtime version. + *+ */ + public void getRuntimeVersion( + com.google.cloud.tpu.v2.GetRuntimeVersionRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves the guest attributes for the node. + *+ */ + public void getGuestAttributes( + com.google.cloud.tpu.v2.GetGuestAttributesRequest request, + io.grpc.stub.StreamObserver
+ * Manages TPU nodes and other resources + * TPU API v2 + *+ */ + public static final class TpuBlockingStub + extends io.grpc.stub.AbstractBlockingStub
+ * 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
+ * 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
+ * Creates a node. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a node. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Stops a node. This operation is only available with single TPU nodes. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Starts a node. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Updates the configurations of a node. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * 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
+ * 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 + .
+ * 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
+ * Gets the details of a node. + *+ */ + public void getNode( + com.google.cloud.tpu.v2alpha1.GetNodeRequest request, + io.grpc.stub.StreamObserver
+ * Creates a node. + *+ */ + public void createNode( + com.google.cloud.tpu.v2alpha1.CreateNodeRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a node. + *+ */ + public void deleteNode( + com.google.cloud.tpu.v2alpha1.DeleteNodeRequest request, + io.grpc.stub.StreamObserver
+ * 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
+ * Starts a node. + *+ */ + public void startNode( + com.google.cloud.tpu.v2alpha1.StartNodeRequest request, + io.grpc.stub.StreamObserver
+ * Updates the configurations of a node. + *+ */ + public void updateNode( + com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request, + io.grpc.stub.StreamObserver
+ * Lists queued resources. + *+ */ + public void listQueuedResources( + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a queued resource. + *+ */ + public void getQueuedResource( + com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request, + io.grpc.stub.StreamObserver
+ * Creates a QueuedResource TPU instance. + *+ */ + public void createQueuedResource( + com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a QueuedResource TPU instance. + *+ */ + public void deleteQueuedResource( + com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request, + io.grpc.stub.StreamObserver
+ * Generates the Cloud TPU service identity for the project. + *+ */ + public void generateServiceIdentity( + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest request, + io.grpc.stub.StreamObserver
+ * Lists accelerator types supported by this API. + *+ */ + public void listAcceleratorTypes( + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest request, + io.grpc.stub.StreamObserver
+ * Gets AcceleratorType. + *+ */ + public void getAcceleratorType( + com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest request, + io.grpc.stub.StreamObserver
+ * Lists runtime versions supported by this API. + *+ */ + public void listRuntimeVersions( + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request, + io.grpc.stub.StreamObserver
+ * Gets a runtime version. + *+ */ + public void getRuntimeVersion( + com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves the guest attributes for the node. + *+ */ + public void getGuestAttributes( + com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request, + io.grpc.stub.StreamObserver
+ * Simulates a maintenance event. + *+ */ + public void simulateMaintenanceEvent( + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request, + io.grpc.stub.StreamObserver
+ * Manages TPU nodes and other resources + * TPU API v2alpha1 + *+ */ + public static final class TpuStub extends io.grpc.stub.AbstractAsyncStub
+ * Lists nodes. + *+ */ + public void listNodes( + com.google.cloud.tpu.v2alpha1.ListNodesRequest request, + io.grpc.stub.StreamObserver
+ * Gets the details of a node. + *+ */ + public void getNode( + com.google.cloud.tpu.v2alpha1.GetNodeRequest request, + io.grpc.stub.StreamObserver
+ * Creates a node. + *+ */ + public void createNode( + com.google.cloud.tpu.v2alpha1.CreateNodeRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a node. + *+ */ + public void deleteNode( + com.google.cloud.tpu.v2alpha1.DeleteNodeRequest request, + io.grpc.stub.StreamObserver
+ * 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
+ * Starts a node. + *+ */ + public void startNode( + com.google.cloud.tpu.v2alpha1.StartNodeRequest request, + io.grpc.stub.StreamObserver
+ * Updates the configurations of a node. + *+ */ + public void updateNode( + com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request, + io.grpc.stub.StreamObserver
+ * Lists queued resources. + *+ */ + public void listQueuedResources( + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a queued resource. + *+ */ + public void getQueuedResource( + com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request, + io.grpc.stub.StreamObserver
+ * Creates a QueuedResource TPU instance. + *+ */ + public void createQueuedResource( + com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a QueuedResource TPU instance. + *+ */ + public void deleteQueuedResource( + com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request, + io.grpc.stub.StreamObserver
+ * Generates the Cloud TPU service identity for the project. + *+ */ + public void generateServiceIdentity( + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest request, + io.grpc.stub.StreamObserver
+ * Lists accelerator types supported by this API. + *+ */ + public void listAcceleratorTypes( + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest request, + io.grpc.stub.StreamObserver
+ * Gets AcceleratorType. + *+ */ + public void getAcceleratorType( + com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest request, + io.grpc.stub.StreamObserver
+ * Lists runtime versions supported by this API. + *+ */ + public void listRuntimeVersions( + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request, + io.grpc.stub.StreamObserver
+ * Gets a runtime version. + *+ */ + public void getRuntimeVersion( + com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves the guest attributes for the node. + *+ */ + public void getGuestAttributes( + com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request, + io.grpc.stub.StreamObserver
+ * Simulates a maintenance event. + *+ */ + public void simulateMaintenanceEvent( + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request, + io.grpc.stub.StreamObserver
+ * Manages TPU nodes and other resources + * TPU API v2alpha1 + *+ */ + public static final class TpuBlockingStub + extends io.grpc.stub.AbstractBlockingStub
+ * 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
+ * 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
+ * Creates a node. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a node. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Stops a node. This operation is only available with single TPU nodes. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Starts a node. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Updates the configurations of a node. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * 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
+ * Deletes a QueuedResource TPU instance. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * 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
* 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
* 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* 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
* 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* 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
* 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+ * 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
* 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+ * 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
* 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+ * 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
* 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+ * 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
* 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* 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
* The listed nodes. *@@ -64,6 +85,8 @@ public java.util.List
* The listed nodes. *@@ -71,11 +94,13 @@ public java.util.List
repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;
*/
@java.lang.Override
- public java.util.List extends com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder>
+ public java.util.List extends com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder>
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
* The listed nodes. *@@ -663,6 +722,8 @@ public java.util.List
* 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 extends com.google.cloud.tpu.v1.AcceleratorType> 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 extends com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder>
- getAcceleratorTypesOrBuilderList() {
+ public java.util.List extends com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder>
+ 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* 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* 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* The listed nodes. ** *
repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;
*/
- java.util.List* 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 extends com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder>
+ java.util.List extends com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder>
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* 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
* 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* 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
* The listed nodes. *@@ -64,6 +85,8 @@ public java.util.List
* The listed nodes. *@@ -71,11 +94,12 @@ public java.util.List
repeated .google.cloud.tpu.v1.Node nodes = 1;
*/
@java.lang.Override
- public java.util.List extends com.google.cloud.tpu.v1.NodeOrBuilder>
- getNodesOrBuilderList() {
+ public java.util.List extends com.google.cloud.tpu.v1.NodeOrBuilder> 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
* The listed nodes. *@@ -663,6 +717,8 @@ public java.util.List
* 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 extends com.google.cloud.tpu.v1.Node> values) {
+ public Builder addAllNodes(java.lang.Iterable extends com.google.cloud.tpu.v1.Node> 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 extends com.google.cloud.tpu.v1.NodeOrBuilder>
- getNodesOrBuilderList() {
+ public java.util.List extends com.google.cloud.tpu.v1.NodeOrBuilder> 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* 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* 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* The listed nodes. ** *
repeated .google.cloud.tpu.v1.Node nodes = 1;
*/
- java.util.List* 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 extends com.google.cloud.tpu.v1.NodeOrBuilder>
- getNodesOrBuilderList();
+ java.util.List extends com.google.cloud.tpu.v1.NodeOrBuilder> 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* 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
* 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* 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
* The listed nodes. *@@ -64,6 +86,8 @@ public java.util.List
* The listed nodes. *@@ -71,11 +95,13 @@ public java.util.List
repeated .google.cloud.tpu.v1.TensorFlowVersion tensorflow_versions = 1;
*/
@java.lang.Override
- public java.util.List extends com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder>
+ public java.util.List extends com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder>
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
* The listed nodes. *@@ -663,6 +726,8 @@ public java.util.List
* 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 extends com.google.cloud.tpu.v1.TensorFlowVersion> 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 extends com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder>
- getTensorflowVersionsOrBuilderList() {
+ public java.util.List extends com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder>
+ 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* 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* 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* The listed nodes. ** *
repeated .google.cloud.tpu.v1.TensorFlowVersion tensorflow_versions = 1;
*/
- java.util.List* 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 extends com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder>
+ java.util.List extends com.google.cloud.tpu.v1.TensorFlowVersionOrBuilder>
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* 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
* 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* 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.ListnetworkEndpoints_; /** + * + * * * 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.ListgetNetworkEndpointsList() { 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 extends com.google.cloud.tpu.v1.NetworkEndpointOrBuilder> + public java.util.List extends com.google.cloud.tpu.v1.NetworkEndpointOrBuilder> 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.MapgetLabels() { return getLabelsMap(); } /** + * + * * * Resource labels to represent user-provided metadata. *@@ -1544,11 +1775,12 @@ public java.util.MapgetLabels() { * map<string, string> labels = 24;
*/ @java.lang.Override - public java.util.MapgetLabelsMap() { return internalGetLabels().getMap(); } /** + * + * * * Resource labels to represent user-provided metadata. *@@ -1556,16 +1788,16 @@ public java.util.MapgetLabelsMap() { * 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.Mapmap = - 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.Mapmap = - 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.Listsymptoms_; /** + * + * * * 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.ListgetSymptomsList() { 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 extends com.google.cloud.tpu.v1.SymptomOrBuilder> + public java.util.List extends com.google.cloud.tpu.v1.SymptomOrBuilder> 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.Entryentry - : 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.Builderimplements + 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.ListnetworkEndpoints_ = - 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.ListgetNetworkEndpointsList() { 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 extends com.google.cloud.tpu.v1.NetworkEndpoint> 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 extends com.google.cloud.tpu.v1.NetworkEndpointOrBuilder> - getNetworkEndpointsOrBuilderList() { + public java.util.List extends com.google.cloud.tpu.v1.NetworkEndpointOrBuilder> + 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.MapgetLabels() { return getLabelsMap(); } /** + * + * * * Resource labels to represent user-provided metadata. *@@ -4485,11 +5062,12 @@ public java.util.MapgetLabels() { * map<string, string> labels = 24;
*/ @java.lang.Override - public java.util.MapgetLabelsMap() { return internalGetLabels().getMap(); } /** + * + * * * Resource labels to represent user-provided metadata. *@@ -4497,16 +5075,17 @@ public java.util.MapgetLabelsMap() { * 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.Mapmap = - 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.Mapmap = - 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.Mapvalues) { - 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.Listsymptoms_ = - 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.ListgetSymptomsList() { 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 extends com.google.cloud.tpu.v1.Symptom> 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 extends com.google.cloud.tpu.v1.SymptomOrBuilder> - getSymptomsOrBuilderList() { + public java.util.List extends com.google.cloud.tpu.v1.SymptomOrBuilder> + 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 extends com.google.cloud.tpu.v1.NetworkEndpointOrBuilder> + java.util.List extends com.google.cloud.tpu.v1.NetworkEndpointOrBuilder> 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 extends com.google.cloud.tpu.v1.SymptomOrBuilder> - getSymptomsOrBuilderList(); + java.util.List extends com.google.cloud.tpu.v1.SymptomOrBuilder> 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.Builderimplements + 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.Builderimplements + 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