From f945d32082e2f392375cac8a5cedb127d513772a Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:15:02 +0000 Subject: [PATCH 1/3] feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 --- .../v2/ProfilerServiceClient.java | 25 +- .../v2/ProfilerServiceSettings.java | 31 +- .../cloudprofiler/v2/gapic_metadata.json | 0 .../cloudprofiler/v2/package-info.java | 4 +- .../GrpcProfilerServiceCallableFactory.java | 0 .../v2/stub/GrpcProfilerServiceStub.java | 1 + ...ttpJsonProfilerServiceCallableFactory.java | 105 +++ .../v2/stub/HttpJsonProfilerServiceStub.java | 302 +++++++ .../v2/stub/ProfilerServiceStub.java | 0 .../v2/stub/ProfilerServiceStubSettings.java | 60 +- .../cloudprofiler/v2/MockProfilerService.java | 0 .../v2/MockProfilerServiceImpl.java | 0 .../v2/ProfilerServiceClientHttpJsonTest.java | 267 ++++++ .../v2/ProfilerServiceClientTest.java | 0 .../cloudprofiler/v2/ProfilerServiceGrpc.java | 439 ++++----- .../v2/CreateOfflineProfileRequest.java | 433 ++++----- .../CreateOfflineProfileRequestOrBuilder.java | 35 +- .../v2/CreateProfileRequest.java | 546 +++++------ .../v2/CreateProfileRequestOrBuilder.java | 53 +- .../devtools/cloudprofiler/v2/Deployment.java | 645 ++++++------- .../cloudprofiler/v2/DeploymentOrBuilder.java | 67 +- .../devtools/cloudprofiler/v2/Profile.java | 853 ++++++++---------- .../cloudprofiler/v2/ProfileOrBuilder.java | 83 +- .../cloudprofiler/v2/ProfileType.java | 117 +-- .../cloudprofiler/v2/ProfilerProto.java | 182 ++++ .../v2/UpdateProfileRequest.java | 432 ++++----- .../v2/UpdateProfileRequestOrBuilder.java | 34 +- .../devtools/cloudprofiler/v2/profiler.proto | 0 .../cloudprofiler/v2/ProfilerProto.java | 205 ----- 29 files changed, 2377 insertions(+), 2542 deletions(-) rename {google-cloud-profiler => owl-bot-staging/v2/google-cloud-profiler}/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java (92%) rename {google-cloud-profiler => owl-bot-staging/v2/google-cloud-profiler}/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java (87%) rename {google-cloud-profiler => owl-bot-staging/v2/google-cloud-profiler}/src/main/java/com/google/devtools/cloudprofiler/v2/gapic_metadata.json (100%) rename {google-cloud-profiler => owl-bot-staging/v2/google-cloud-profiler}/src/main/java/com/google/devtools/cloudprofiler/v2/package-info.java (91%) rename {google-cloud-profiler => owl-bot-staging/v2/google-cloud-profiler}/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceCallableFactory.java (100%) rename {google-cloud-profiler => owl-bot-staging/v2/google-cloud-profiler}/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java (99%) create mode 100644 owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceCallableFactory.java create mode 100644 owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceStub.java rename {google-cloud-profiler => owl-bot-staging/v2/google-cloud-profiler}/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStub.java (100%) rename {google-cloud-profiler => owl-bot-staging/v2/google-cloud-profiler}/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java (84%) rename {google-cloud-profiler => owl-bot-staging/v2/google-cloud-profiler}/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerService.java (100%) rename {google-cloud-profiler => owl-bot-staging/v2/google-cloud-profiler}/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerServiceImpl.java (100%) create mode 100644 owl-bot-staging/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientHttpJsonTest.java rename {google-cloud-profiler => owl-bot-staging/v2/google-cloud-profiler}/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientTest.java (100%) rename {grpc-google-cloud-profiler-v2 => owl-bot-staging/v2/grpc-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java (54%) rename {proto-google-cloud-profiler-v2 => owl-bot-staging/v2/proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java (67%) rename {proto-google-cloud-profiler-v2 => owl-bot-staging/v2/proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java (63%) rename {proto-google-cloud-profiler-v2 => owl-bot-staging/v2/proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java (73%) rename {proto-google-cloud-profiler-v2 => owl-bot-staging/v2/proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java (76%) rename {proto-google-cloud-profiler-v2 => owl-bot-staging/v2/proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java (72%) rename {proto-google-cloud-profiler-v2 => owl-bot-staging/v2/proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java (83%) rename {proto-google-cloud-profiler-v2 => owl-bot-staging/v2/proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java (71%) rename {proto-google-cloud-profiler-v2 => owl-bot-staging/v2/proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java (82%) rename {proto-google-cloud-profiler-v2 => owl-bot-staging/v2/proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java (75%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java rename {proto-google-cloud-profiler-v2 => owl-bot-staging/v2/proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java (71%) rename {proto-google-cloud-profiler-v2 => owl-bot-staging/v2/proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java (75%) rename {proto-google-cloud-profiler-v2 => owl-bot-staging/v2/proto-google-cloud-profiler-v2}/src/main/proto/google/devtools/cloudprofiler/v2/profiler.proto (100%) delete mode 100644 proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java diff --git a/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java b/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java similarity index 92% rename from google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java rename to owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java index 7146138..1a2eaea 100644 --- a/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java +++ b/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java @@ -32,8 +32,8 @@ *

General guidelines: * *

* *

This class provides the ability to make remote calls to the backing service through method @@ -61,13 +61,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -104,6 +104,21 @@ * ProfilerServiceClient.create(profilerServiceSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * ProfilerServiceSettings profilerServiceSettings =
+ *     ProfilerServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             ProfilerServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * ProfilerServiceClient profilerServiceClient =
+ *     ProfilerServiceClient.create(profilerServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") diff --git a/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java b/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java similarity index 87% rename from google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java rename to owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java index a72117e..0394788 100644 --- a/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java +++ b/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java @@ -21,9 +21,11 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.devtools.cloudprofiler.v2.stub.ProfilerServiceStubSettings; @@ -38,9 +40,10 @@ *

The default instance has everything set to sensible defaults: * *

* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -108,11 +111,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return ProfilerServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return ProfilerServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ProfilerServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return ProfilerServiceStubSettings.defaultTransportChannelProvider(); } @@ -122,11 +132,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return ProfilerServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -164,6 +180,11 @@ private static Builder createDefault() { return new Builder(ProfilerServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(ProfilerServiceStubSettings.newHttpJsonBuilder()); + } + public ProfilerServiceStubSettings.Builder getStubSettingsBuilder() { return ((ProfilerServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/gapic_metadata.json b/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/gapic_metadata.json similarity index 100% rename from google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/gapic_metadata.json rename to owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/gapic_metadata.json diff --git a/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/package-info.java b/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/package-info.java similarity index 91% rename from google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/package-info.java rename to owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/package-info.java index e3dea24..5cdd897 100644 --- a/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/package-info.java +++ b/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/package-info.java @@ -25,8 +25,8 @@ *

General guidelines: * *

* *

Sample for ProfilerServiceClient: diff --git a/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceCallableFactory.java b/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceCallableFactory.java similarity index 100% rename from google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceCallableFactory.java rename to owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceCallableFactory.java diff --git a/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java b/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java similarity index 99% rename from google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java rename to owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java index 2995173..6a15598 100644 --- a/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java +++ b/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java @@ -31,6 +31,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceCallableFactory.java b/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceCallableFactory.java new file mode 100644 index 0000000..389fa62 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.cloudprofiler.v2.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the ProfilerService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonProfilerServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceStub.java b/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceStub.java new file mode 100644 index 0000000..2ba41df --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceStub.java @@ -0,0 +1,302 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.cloudprofiler.v2.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest; +import com.google.devtools.cloudprofiler.v2.CreateProfileRequest; +import com.google.devtools.cloudprofiler.v2.Profile; +import com.google.devtools.cloudprofiler.v2.UpdateProfileRequest; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the ProfilerService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonProfilerServiceStub extends ProfilerServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createProfileMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.devtools.cloudprofiler.v2.ProfilerService/CreateProfile") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*}/profiles", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Profile.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createOfflineProfileMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.devtools.cloudprofiler.v2.ProfilerService/CreateOfflineProfile") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*}/profiles:createOffline", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("profile", request.getProfile())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Profile.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateProfileMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.devtools.cloudprofiler.v2.ProfilerService/UpdateProfile") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{profile.name=projects/*/profiles/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "profile.name", request.getProfile().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("profile", request.getProfile())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Profile.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createProfileCallable; + private final UnaryCallable createOfflineProfileCallable; + private final UnaryCallable updateProfileCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonProfilerServiceStub create(ProfilerServiceStubSettings settings) + throws IOException { + return new HttpJsonProfilerServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonProfilerServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonProfilerServiceStub( + ProfilerServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonProfilerServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonProfilerServiceStub( + ProfilerServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonProfilerServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonProfilerServiceStub( + ProfilerServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonProfilerServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonProfilerServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonProfilerServiceStub( + ProfilerServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createProfileTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createProfileMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createOfflineProfileTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createOfflineProfileMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateProfileTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateProfileMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createProfileCallable = + callableFactory.createUnaryCallable( + createProfileTransportSettings, settings.createProfileSettings(), clientContext); + this.createOfflineProfileCallable = + callableFactory.createUnaryCallable( + createOfflineProfileTransportSettings, + settings.createOfflineProfileSettings(), + clientContext); + this.updateProfileCallable = + callableFactory.createUnaryCallable( + updateProfileTransportSettings, settings.updateProfileSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createProfileMethodDescriptor); + methodDescriptors.add(createOfflineProfileMethodDescriptor); + methodDescriptors.add(updateProfileMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createProfileCallable() { + return createProfileCallable; + } + + @Override + public UnaryCallable createOfflineProfileCallable() { + return createOfflineProfileCallable; + } + + @Override + public UnaryCallable updateProfileCallable() { + return updateProfileCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStub.java b/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStub.java similarity index 100% rename from google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStub.java rename to owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStub.java diff --git a/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java b/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java similarity index 84% rename from google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java rename to owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java index f05c293..9e982d3 100644 --- a/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java @@ -24,6 +24,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; @@ -51,9 +54,10 @@ *

The default instance has everything set to sensible defaults: * *

* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -114,6 +118,11 @@ public ProfilerServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcProfilerServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonProfilerServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -146,18 +155,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(ProfilerServiceStubSettings.class)) @@ -165,11 +181,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ProfilerServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ProfilerServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -274,6 +309,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createProfileSettings() diff --git a/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerService.java b/owl-bot-staging/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerService.java similarity index 100% rename from google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerService.java rename to owl-bot-staging/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerService.java diff --git a/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerServiceImpl.java b/owl-bot-staging/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerServiceImpl.java similarity index 100% rename from google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerServiceImpl.java rename to owl-bot-staging/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerServiceImpl.java diff --git a/owl-bot-staging/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientHttpJsonTest.java b/owl-bot-staging/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientHttpJsonTest.java new file mode 100644 index 0000000..a8a14a9 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientHttpJsonTest.java @@ -0,0 +1,267 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.cloudprofiler.v2; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.devtools.cloudprofiler.v2.stub.HttpJsonProfilerServiceStub; +import com.google.protobuf.ByteString; +import com.google.protobuf.Duration; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ProfilerServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static ProfilerServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonProfilerServiceStub.getMethodDescriptors(), + ProfilerServiceSettings.getDefaultEndpoint()); + ProfilerServiceSettings settings = + ProfilerServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ProfilerServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ProfilerServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createProfileTest() throws Exception { + Profile expectedResponse = + Profile.newBuilder() + .setName("name3373707") + .setProfileType(ProfileType.forNumber(0)) + .setDeployment(Deployment.newBuilder().build()) + .setDuration(Duration.newBuilder().build()) + .setProfileBytes(ByteString.EMPTY) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + CreateProfileRequest request = + CreateProfileRequest.newBuilder() + .setParent("projects/project-2353") + .setDeployment(Deployment.newBuilder().build()) + .addAllProfileType(new ArrayList()) + .build(); + + Profile actualResponse = client.createProfile(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createProfileExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CreateProfileRequest request = + CreateProfileRequest.newBuilder() + .setParent("projects/project-2353") + .setDeployment(Deployment.newBuilder().build()) + .addAllProfileType(new ArrayList()) + .build(); + client.createProfile(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createOfflineProfileTest() throws Exception { + Profile expectedResponse = + Profile.newBuilder() + .setName("name3373707") + .setProfileType(ProfileType.forNumber(0)) + .setDeployment(Deployment.newBuilder().build()) + .setDuration(Duration.newBuilder().build()) + .setProfileBytes(ByteString.EMPTY) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + CreateOfflineProfileRequest request = + CreateOfflineProfileRequest.newBuilder() + .setParent("projects/project-2353") + .setProfile(Profile.newBuilder().build()) + .build(); + + Profile actualResponse = client.createOfflineProfile(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createOfflineProfileExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CreateOfflineProfileRequest request = + CreateOfflineProfileRequest.newBuilder() + .setParent("projects/project-2353") + .setProfile(Profile.newBuilder().build()) + .build(); + client.createOfflineProfile(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateProfileTest() throws Exception { + Profile expectedResponse = + Profile.newBuilder() + .setName("name3373707") + .setProfileType(ProfileType.forNumber(0)) + .setDeployment(Deployment.newBuilder().build()) + .setDuration(Duration.newBuilder().build()) + .setProfileBytes(ByteString.EMPTY) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + UpdateProfileRequest request = + UpdateProfileRequest.newBuilder() + .setProfile( + Profile.newBuilder() + .setName("projects/project-4284/profiles/profile-4284") + .setProfileType(ProfileType.forNumber(0)) + .setDeployment(Deployment.newBuilder().build()) + .setDuration(Duration.newBuilder().build()) + .setProfileBytes(ByteString.EMPTY) + .putAllLabels(new HashMap()) + .build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Profile actualResponse = client.updateProfile(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateProfileExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UpdateProfileRequest request = + UpdateProfileRequest.newBuilder() + .setProfile( + Profile.newBuilder() + .setName("projects/project-4284/profiles/profile-4284") + .setProfileType(ProfileType.forNumber(0)) + .setDeployment(Deployment.newBuilder().build()) + .setDuration(Duration.newBuilder().build()) + .setProfileBytes(ByteString.EMPTY) + .putAllLabels(new HashMap()) + .build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.updateProfile(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientTest.java b/owl-bot-staging/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientTest.java similarity index 100% rename from google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientTest.java rename to owl-bot-staging/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientTest.java diff --git a/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java similarity index 54% rename from grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java rename to owl-bot-staging/v2/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java index 22d5b47..ec0f344 100644 --- a/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java +++ b/owl-bot-staging/v2/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.devtools.cloudprofiler.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * Manage the collection of continuous profiling data provided by profiling
  * agents running in the cloud or by an offline provider of profiling data.
@@ -39,191 +22,144 @@ private ProfilerServiceGrpc() {}
   public static final String SERVICE_NAME = "google.devtools.cloudprofiler.v2.ProfilerService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.devtools.cloudprofiler.v2.CreateProfileRequest,
-          com.google.devtools.cloudprofiler.v2.Profile>
-      getCreateProfileMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateProfileMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateProfile",
       requestType = com.google.devtools.cloudprofiler.v2.CreateProfileRequest.class,
       responseType = com.google.devtools.cloudprofiler.v2.Profile.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.devtools.cloudprofiler.v2.CreateProfileRequest,
-          com.google.devtools.cloudprofiler.v2.Profile>
-      getCreateProfileMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.devtools.cloudprofiler.v2.CreateProfileRequest,
-            com.google.devtools.cloudprofiler.v2.Profile>
-        getCreateProfileMethod;
+  public static io.grpc.MethodDescriptor getCreateProfileMethod() {
+    io.grpc.MethodDescriptor getCreateProfileMethod;
     if ((getCreateProfileMethod = ProfilerServiceGrpc.getCreateProfileMethod) == null) {
       synchronized (ProfilerServiceGrpc.class) {
         if ((getCreateProfileMethod = ProfilerServiceGrpc.getCreateProfileMethod) == null) {
-          ProfilerServiceGrpc.getCreateProfileMethod =
-              getCreateProfileMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProfile"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.devtools.cloudprofiler.v2.CreateProfileRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProfilerServiceMethodDescriptorSupplier("CreateProfile"))
-                      .build();
+          ProfilerServiceGrpc.getCreateProfileMethod = getCreateProfileMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProfile"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.devtools.cloudprofiler.v2.CreateProfileRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance()))
+              .setSchemaDescriptor(new ProfilerServiceMethodDescriptorSupplier("CreateProfile"))
+              .build();
         }
       }
     }
     return getCreateProfileMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest,
-          com.google.devtools.cloudprofiler.v2.Profile>
-      getCreateOfflineProfileMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateOfflineProfileMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateOfflineProfile",
       requestType = com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.class,
       responseType = com.google.devtools.cloudprofiler.v2.Profile.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest,
-          com.google.devtools.cloudprofiler.v2.Profile>
-      getCreateOfflineProfileMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest,
-            com.google.devtools.cloudprofiler.v2.Profile>
-        getCreateOfflineProfileMethod;
-    if ((getCreateOfflineProfileMethod = ProfilerServiceGrpc.getCreateOfflineProfileMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getCreateOfflineProfileMethod() {
+    io.grpc.MethodDescriptor getCreateOfflineProfileMethod;
+    if ((getCreateOfflineProfileMethod = ProfilerServiceGrpc.getCreateOfflineProfileMethod) == null) {
       synchronized (ProfilerServiceGrpc.class) {
-        if ((getCreateOfflineProfileMethod = ProfilerServiceGrpc.getCreateOfflineProfileMethod)
-            == null) {
-          ProfilerServiceGrpc.getCreateOfflineProfileMethod =
-              getCreateOfflineProfileMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "CreateOfflineProfile"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProfilerServiceMethodDescriptorSupplier("CreateOfflineProfile"))
-                      .build();
+        if ((getCreateOfflineProfileMethod = ProfilerServiceGrpc.getCreateOfflineProfileMethod) == null) {
+          ProfilerServiceGrpc.getCreateOfflineProfileMethod = getCreateOfflineProfileMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateOfflineProfile"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance()))
+              .setSchemaDescriptor(new ProfilerServiceMethodDescriptorSupplier("CreateOfflineProfile"))
+              .build();
         }
       }
     }
     return getCreateOfflineProfileMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.devtools.cloudprofiler.v2.UpdateProfileRequest,
-          com.google.devtools.cloudprofiler.v2.Profile>
-      getUpdateProfileMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateProfileMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateProfile",
       requestType = com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.class,
       responseType = com.google.devtools.cloudprofiler.v2.Profile.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.devtools.cloudprofiler.v2.UpdateProfileRequest,
-          com.google.devtools.cloudprofiler.v2.Profile>
-      getUpdateProfileMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.devtools.cloudprofiler.v2.UpdateProfileRequest,
-            com.google.devtools.cloudprofiler.v2.Profile>
-        getUpdateProfileMethod;
+  public static io.grpc.MethodDescriptor getUpdateProfileMethod() {
+    io.grpc.MethodDescriptor getUpdateProfileMethod;
     if ((getUpdateProfileMethod = ProfilerServiceGrpc.getUpdateProfileMethod) == null) {
       synchronized (ProfilerServiceGrpc.class) {
         if ((getUpdateProfileMethod = ProfilerServiceGrpc.getUpdateProfileMethod) == null) {
-          ProfilerServiceGrpc.getUpdateProfileMethod =
-              getUpdateProfileMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProfile"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.devtools.cloudprofiler.v2.UpdateProfileRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProfilerServiceMethodDescriptorSupplier("UpdateProfile"))
-                      .build();
+          ProfilerServiceGrpc.getUpdateProfileMethod = getUpdateProfileMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProfile"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance()))
+              .setSchemaDescriptor(new ProfilerServiceMethodDescriptorSupplier("UpdateProfile"))
+              .build();
         }
       }
     }
     return getUpdateProfileMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static ProfilerServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ProfilerServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ProfilerServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ProfilerServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ProfilerServiceStub(channel, callOptions);
+        }
+      };
     return ProfilerServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ProfilerServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static ProfilerServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ProfilerServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ProfilerServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ProfilerServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ProfilerServiceBlockingStub(channel, callOptions);
+        }
+      };
     return ProfilerServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static ProfilerServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static ProfilerServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ProfilerServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ProfilerServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ProfilerServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ProfilerServiceFutureStub(channel, callOptions);
+        }
+      };
     return ProfilerServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Manage the collection of continuous profiling data provided by profiling
    * agents running in the cloud or by an offline provider of profiling data.
@@ -232,11 +168,9 @@ public ProfilerServiceFutureStub newStub(
    * * Profiles can be created in either online or offline mode, see below.
    * 
*/ - public abstract static class ProfilerServiceImplBase implements io.grpc.BindableService { + public static abstract class ProfilerServiceImplBase implements io.grpc.BindableService { /** - * - * *
      * CreateProfile creates a new profile resource in the online mode.
      * The server ensures that the new profiles are created at a constant rate per
@@ -251,34 +185,24 @@ public abstract static class ProfilerServiceImplBase implements io.grpc.Bindable
      * "google.rpc.retryinfo-bin".
      * 
*/ - public void createProfile( - com.google.devtools.cloudprofiler.v2.CreateProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateProfileMethod(), responseObserver); + public void createProfile(com.google.devtools.cloudprofiler.v2.CreateProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateProfileMethod(), responseObserver); } /** - * - * *
      * CreateOfflineProfile creates a new profile resource in the offline mode.
      * The client provides the profile to create along with the profile bytes, the
      * server records it.
      * 
*/ - public void createOfflineProfile( - com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateOfflineProfileMethod(), responseObserver); + public void createOfflineProfile(com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateOfflineProfileMethod(), responseObserver); } /** - * - * *
      * UpdateProfile updates the profile bytes and labels on the profile resource
      * created in the online mode. Updating the bytes for profiles created in the
@@ -286,43 +210,39 @@ public void createOfflineProfile(
      * provided at the time of the profile creation.
      * 
*/ - public void updateProfile( - com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateProfileMethod(), responseObserver); + public void updateProfile(com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateProfileMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.devtools.cloudprofiler.v2.CreateProfileRequest, - com.google.devtools.cloudprofiler.v2.Profile>(this, METHODID_CREATE_PROFILE))) + getCreateProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.cloudprofiler.v2.CreateProfileRequest, + com.google.devtools.cloudprofiler.v2.Profile>( + this, METHODID_CREATE_PROFILE))) .addMethod( - getCreateOfflineProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest, - com.google.devtools.cloudprofiler.v2.Profile>( - this, METHODID_CREATE_OFFLINE_PROFILE))) + getCreateOfflineProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest, + com.google.devtools.cloudprofiler.v2.Profile>( + this, METHODID_CREATE_OFFLINE_PROFILE))) .addMethod( - getUpdateProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.devtools.cloudprofiler.v2.UpdateProfileRequest, - com.google.devtools.cloudprofiler.v2.Profile>(this, METHODID_UPDATE_PROFILE))) + getUpdateProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.cloudprofiler.v2.UpdateProfileRequest, + com.google.devtools.cloudprofiler.v2.Profile>( + this, METHODID_UPDATE_PROFILE))) .build(); } } /** - * - * *
    * Manage the collection of continuous profiling data provided by profiling
    * agents running in the cloud or by an offline provider of profiling data.
@@ -331,20 +251,19 @@ public final io.grpc.ServerServiceDefinition bindService() {
    * * Profiles can be created in either online or offline mode, see below.
    * 
*/ - public static final class ProfilerServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private ProfilerServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProfilerServiceStub extends io.grpc.stub.AbstractAsyncStub { + private ProfilerServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ProfilerServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ProfilerServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProfilerServiceStub(channel, callOptions); } /** - * - * *
      * CreateProfile creates a new profile resource in the online mode.
      * The server ensures that the new profiles are created at a constant rate per
@@ -359,38 +278,26 @@ protected ProfilerServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions
      * "google.rpc.retryinfo-bin".
      * 
*/ - public void createProfile( - com.google.devtools.cloudprofiler.v2.CreateProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createProfile(com.google.devtools.cloudprofiler.v2.CreateProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateProfileMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateProfileMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * CreateOfflineProfile creates a new profile resource in the offline mode.
      * The client provides the profile to create along with the profile bytes, the
      * server records it.
      * 
*/ - public void createOfflineProfile( - com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createOfflineProfile(com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateOfflineProfileMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateOfflineProfileMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * UpdateProfile updates the profile bytes and labels on the profile resource
      * created in the online mode. Updating the bytes for profiles created in the
@@ -398,20 +305,14 @@ public void createOfflineProfile(
      * provided at the time of the profile creation.
      * 
*/ - public void updateProfile( - com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void updateProfile(com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateProfileMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateProfileMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Manage the collection of continuous profiling data provided by profiling
    * agents running in the cloud or by an offline provider of profiling data.
@@ -420,9 +321,9 @@ public void updateProfile(
    * * Profiles can be created in either online or offline mode, see below.
    * 
*/ - public static final class ProfilerServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ProfilerServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProfilerServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ProfilerServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -433,8 +334,6 @@ protected ProfilerServiceBlockingStub build( } /** - * - * *
      * CreateProfile creates a new profile resource in the online mode.
      * The server ensures that the new profiles are created at a constant rate per
@@ -449,30 +348,24 @@ protected ProfilerServiceBlockingStub build(
      * "google.rpc.retryinfo-bin".
      * 
*/ - public com.google.devtools.cloudprofiler.v2.Profile createProfile( - com.google.devtools.cloudprofiler.v2.CreateProfileRequest request) { + public com.google.devtools.cloudprofiler.v2.Profile createProfile(com.google.devtools.cloudprofiler.v2.CreateProfileRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateProfileMethod(), getCallOptions(), request); } /** - * - * *
      * CreateOfflineProfile creates a new profile resource in the offline mode.
      * The client provides the profile to create along with the profile bytes, the
      * server records it.
      * 
*/ - public com.google.devtools.cloudprofiler.v2.Profile createOfflineProfile( - com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request) { + public com.google.devtools.cloudprofiler.v2.Profile createOfflineProfile(com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateOfflineProfileMethod(), getCallOptions(), request); } /** - * - * *
      * UpdateProfile updates the profile bytes and labels on the profile resource
      * created in the online mode. Updating the bytes for profiles created in the
@@ -480,16 +373,13 @@ public com.google.devtools.cloudprofiler.v2.Profile createOfflineProfile(
      * provided at the time of the profile creation.
      * 
*/ - public com.google.devtools.cloudprofiler.v2.Profile updateProfile( - com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request) { + public com.google.devtools.cloudprofiler.v2.Profile updateProfile(com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateProfileMethod(), getCallOptions(), request); } } /** - * - * *
    * Manage the collection of continuous profiling data provided by profiling
    * agents running in the cloud or by an offline provider of profiling data.
@@ -498,9 +388,9 @@ public com.google.devtools.cloudprofiler.v2.Profile updateProfile(
    * * Profiles can be created in either online or offline mode, see below.
    * 
*/ - public static final class ProfilerServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ProfilerServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProfilerServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private ProfilerServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -511,8 +401,6 @@ protected ProfilerServiceFutureStub build( } /** - * - * *
      * CreateProfile creates a new profile resource in the online mode.
      * The server ensures that the new profiles are created at a constant rate per
@@ -527,33 +415,26 @@ protected ProfilerServiceFutureStub build(
      * "google.rpc.retryinfo-bin".
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.devtools.cloudprofiler.v2.Profile> - createProfile(com.google.devtools.cloudprofiler.v2.CreateProfileRequest request) { + public com.google.common.util.concurrent.ListenableFuture createProfile( + com.google.devtools.cloudprofiler.v2.CreateProfileRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateProfileMethod(), getCallOptions()), request); } /** - * - * *
      * CreateOfflineProfile creates a new profile resource in the offline mode.
      * The client provides the profile to create along with the profile bytes, the
      * server records it.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.devtools.cloudprofiler.v2.Profile> - createOfflineProfile( - com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request) { + public com.google.common.util.concurrent.ListenableFuture createOfflineProfile( + com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateOfflineProfileMethod(), getCallOptions()), request); } /** - * - * *
      * UpdateProfile updates the profile bytes and labels on the profile resource
      * created in the online mode. Updating the bytes for profiles created in the
@@ -561,9 +442,8 @@ protected ProfilerServiceFutureStub build(
      * provided at the time of the profile creation.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.devtools.cloudprofiler.v2.Profile> - updateProfile(com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateProfile( + com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateProfileMethod(), getCallOptions()), request); } @@ -573,11 +453,11 @@ protected ProfilerServiceFutureStub build( private static final int METHODID_CREATE_OFFLINE_PROFILE = 1; private static final int METHODID_UPDATE_PROFILE = 2; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final ProfilerServiceImplBase serviceImpl; private final int methodId; @@ -591,22 +471,16 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_PROFILE: - serviceImpl.createProfile( - (com.google.devtools.cloudprofiler.v2.CreateProfileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createProfile((com.google.devtools.cloudprofiler.v2.CreateProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_OFFLINE_PROFILE: - serviceImpl.createOfflineProfile( - (com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createOfflineProfile((com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_PROFILE: - serviceImpl.updateProfile( - (com.google.devtools.cloudprofiler.v2.UpdateProfileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updateProfile((com.google.devtools.cloudprofiler.v2.UpdateProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -624,9 +498,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class ProfilerServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class ProfilerServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ProfilerServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -668,14 +541,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (ProfilerServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ProfilerServiceFileDescriptorSupplier()) - .addMethod(getCreateProfileMethod()) - .addMethod(getCreateOfflineProfileMethod()) - .addMethod(getUpdateProfileMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ProfilerServiceFileDescriptorSupplier()) + .addMethod(getCreateProfileMethod()) + .addMethod(getCreateOfflineProfileMethod()) + .addMethod(getUpdateProfileMethod()) + .build(); } } } diff --git a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java similarity index 67% rename from proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java rename to owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java index c586dfa..3d8ab3d 100644 --- a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java @@ -1,26 +1,9 @@ -/* - * 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/devtools/cloudprofiler/v2/profiler.proto package com.google.devtools.cloudprofiler.v2; /** - * - * *
  * CreateOfflineProfileRequest describes a profile resource offline creation
  * request. Profile field must be set.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest}
  */
-public final class CreateOfflineProfileRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateOfflineProfileRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest)
     CreateOfflineProfileRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateOfflineProfileRequest.newBuilder() to construct.
   private CreateOfflineProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateOfflineProfileRequest() {
     parent_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateOfflineProfileRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CreateOfflineProfileRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,36 +54,32 @@ private CreateOfflineProfileRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
+            parent_ = s;
+            break;
+          }
+          case 18: {
+            com.google.devtools.cloudprofiler.v2.Profile.Builder subBuilder = null;
+            if (profile_ != null) {
+              subBuilder = profile_.toBuilder();
             }
-          case 18:
-            {
-              com.google.devtools.cloudprofiler.v2.Profile.Builder subBuilder = null;
-              if (profile_ != null) {
-                subBuilder = profile_.toBuilder();
-              }
-              profile_ =
-                  input.readMessage(
-                      com.google.devtools.cloudprofiler.v2.Profile.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(profile_);
-                profile_ = subBuilder.buildPartial();
-              }
-
-              break;
+            profile_ = input.readMessage(com.google.devtools.cloudprofiler.v2.Profile.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(profile_);
+              profile_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -108,39 +87,34 @@ private CreateOfflineProfileRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.devtools.cloudprofiler.v2.ProfilerProto
-        .internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.devtools.cloudprofiler.v2.ProfilerProto
-        .internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_fieldAccessorTable
+    return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.class,
-            com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.Builder.class);
+            com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.class, com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Parent project to create the profile in.
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -149,29 +123,29 @@ 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; } } /** - * - * *
    * Parent project to create the profile in.
    * 
* * string parent = 1; - * * @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 { @@ -182,14 +156,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PROFILE_FIELD_NUMBER = 2; private com.google.devtools.cloudprofiler.v2.Profile profile_; /** - * - * *
    * Contents of the profile to create.
    * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 2; - * * @return Whether the profile field is set. */ @java.lang.Override @@ -197,25 +168,18 @@ public boolean hasProfile() { return profile_ != null; } /** - * - * *
    * Contents of the profile to create.
    * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 2; - * * @return The profile. */ @java.lang.Override public com.google.devtools.cloudprofiler.v2.Profile getProfile() { - return profile_ == null - ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() - : profile_; + return profile_ == null ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() : profile_; } /** - * - * *
    * Contents of the profile to create.
    * 
@@ -228,7 +192,6 @@ public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +203,8 @@ 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_); } @@ -260,7 +224,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (profile_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProfile()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProfile()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -270,18 +235,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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest)) { return super.equals(obj); } - com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest other = - (com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) obj; + com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest other = (com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasProfile() != other.hasProfile()) return false; if (hasProfile()) { - if (!getProfile().equals(other.getProfile())) return false; + if (!getProfile() + .equals(other.getProfile())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -306,104 +272,96 @@ public int hashCode() { } public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest 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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest 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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest 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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest 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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest 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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest 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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest 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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest 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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest prototype) { + public static Builder newBuilder(com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest 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; } /** - * - * *
    * CreateOfflineProfileRequest describes a profile resource offline creation
    * request. Profile field must be set.
@@ -411,23 +369,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest)
       com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.devtools.cloudprofiler.v2.ProfilerProto
-          .internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.devtools.cloudprofiler.v2.ProfilerProto
-          .internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_fieldAccessorTable
+      return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.class,
-              com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.Builder.class);
+              com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.class, com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.Builder.class);
     }
 
     // Construct using com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.newBuilder()
@@ -435,15 +391,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -459,14 +416,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.devtools.cloudprofiler.v2.ProfilerProto
-          .internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest
-        getDefaultInstanceForType() {
+    public com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest getDefaultInstanceForType() {
       return com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.getDefaultInstance();
     }
 
@@ -481,8 +437,7 @@ public com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest build()
 
     @java.lang.Override
     public com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest buildPartial() {
-      com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest result =
-          new com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest(this);
+      com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest result = new com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest(this);
       result.parent_ = parent_;
       if (profileBuilder_ == null) {
         result.profile_ = profile_;
@@ -497,50 +452,46 @@ public com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest buildPar
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) {
-        return mergeFrom((com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) other);
+        return mergeFrom((com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest other) {
-      if (other
-          == com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest other) {
+      if (other == com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -567,9 +518,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -581,20 +530,18 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Parent project to create the profile in.
      * 
* * string parent = 1; - * * @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; @@ -603,21 +550,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Parent project to create the profile in.
      * 
* * string parent = 1; - * * @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 { @@ -625,61 +571,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Parent project to create the profile in.
      * 
* * string parent = 1; - * * @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; } /** - * - * *
      * Parent project to create the profile in.
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Parent project to create the profile in.
      * 
* * string parent = 1; - * * @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; @@ -687,47 +626,34 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.devtools.cloudprofiler.v2.Profile profile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Profile, - com.google.devtools.cloudprofiler.v2.Profile.Builder, - com.google.devtools.cloudprofiler.v2.ProfileOrBuilder> - profileBuilder_; + com.google.devtools.cloudprofiler.v2.Profile, com.google.devtools.cloudprofiler.v2.Profile.Builder, com.google.devtools.cloudprofiler.v2.ProfileOrBuilder> profileBuilder_; /** - * - * *
      * Contents of the profile to create.
      * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 2; - * * @return Whether the profile field is set. */ public boolean hasProfile() { return profileBuilder_ != null || profile_ != null; } /** - * - * *
      * Contents of the profile to create.
      * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 2; - * * @return The profile. */ public com.google.devtools.cloudprofiler.v2.Profile getProfile() { if (profileBuilder_ == null) { - return profile_ == null - ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() - : profile_; + return profile_ == null ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() : profile_; } else { return profileBuilder_.getMessage(); } } /** - * - * *
      * Contents of the profile to create.
      * 
@@ -748,8 +674,6 @@ public Builder setProfile(com.google.devtools.cloudprofiler.v2.Profile value) { return this; } /** - * - * *
      * Contents of the profile to create.
      * 
@@ -768,8 +692,6 @@ public Builder setProfile( return this; } /** - * - * *
      * Contents of the profile to create.
      * 
@@ -780,9 +702,7 @@ public Builder mergeProfile(com.google.devtools.cloudprofiler.v2.Profile value) if (profileBuilder_ == null) { if (profile_ != null) { profile_ = - com.google.devtools.cloudprofiler.v2.Profile.newBuilder(profile_) - .mergeFrom(value) - .buildPartial(); + com.google.devtools.cloudprofiler.v2.Profile.newBuilder(profile_).mergeFrom(value).buildPartial(); } else { profile_ = value; } @@ -794,8 +714,6 @@ public Builder mergeProfile(com.google.devtools.cloudprofiler.v2.Profile value) return this; } /** - * - * *
      * Contents of the profile to create.
      * 
@@ -814,8 +732,6 @@ public Builder clearProfile() { return this; } /** - * - * *
      * Contents of the profile to create.
      * 
@@ -823,13 +739,11 @@ public Builder clearProfile() { * .google.devtools.cloudprofiler.v2.Profile profile = 2; */ public com.google.devtools.cloudprofiler.v2.Profile.Builder getProfileBuilder() { - + onChanged(); return getProfileFieldBuilder().getBuilder(); } /** - * - * *
      * Contents of the profile to create.
      * 
@@ -840,14 +754,11 @@ public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder if (profileBuilder_ != null) { return profileBuilder_.getMessageOrBuilder(); } else { - return profile_ == null - ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() - : profile_; + return profile_ == null ? + com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() : profile_; } } /** - * - * *
      * Contents of the profile to create.
      * 
@@ -855,24 +766,21 @@ public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder * .google.devtools.cloudprofiler.v2.Profile profile = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Profile, - com.google.devtools.cloudprofiler.v2.Profile.Builder, - com.google.devtools.cloudprofiler.v2.ProfileOrBuilder> + com.google.devtools.cloudprofiler.v2.Profile, com.google.devtools.cloudprofiler.v2.Profile.Builder, com.google.devtools.cloudprofiler.v2.ProfileOrBuilder> getProfileFieldBuilder() { if (profileBuilder_ == null) { - profileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Profile, - com.google.devtools.cloudprofiler.v2.Profile.Builder, - com.google.devtools.cloudprofiler.v2.ProfileOrBuilder>( - getProfile(), getParentForChildren(), isClean()); + profileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.cloudprofiler.v2.Profile, com.google.devtools.cloudprofiler.v2.Profile.Builder, com.google.devtools.cloudprofiler.v2.ProfileOrBuilder>( + getProfile(), + getParentForChildren(), + isClean()); profile_ = null; } return profileBuilder_; } - @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); } @@ -882,32 +790,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) } // @@protoc_insertion_point(class_scope:google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) - private static final com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest - DEFAULT_INSTANCE; - + private static final com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest(); } - public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest - getDefaultInstance() { + public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateOfflineProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateOfflineProfileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateOfflineProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateOfflineProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -919,8 +825,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest - getDefaultInstanceForType() { + public com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java index b7e4bdc..4d36add 100644 --- a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java @@ -1,80 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/devtools/cloudprofiler/v2/profiler.proto package com.google.devtools.cloudprofiler.v2; -public interface CreateOfflineProfileRequestOrBuilder - extends +public interface CreateOfflineProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Parent project to create the profile in.
    * 
* * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Parent project to create the profile in.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Contents of the profile to create.
    * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 2; - * * @return Whether the profile field is set. */ boolean hasProfile(); /** - * - * *
    * Contents of the profile to create.
    * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 2; - * * @return The profile. */ com.google.devtools.cloudprofiler.v2.Profile getProfile(); /** - * - * *
    * Contents of the profile to create.
    * 
diff --git a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java similarity index 73% rename from proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java rename to owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java index d03c51b..c9b02eb 100644 --- a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java @@ -1,26 +1,9 @@ -/* - * 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/devtools/cloudprofiler/v2/profiler.proto package com.google.devtools.cloudprofiler.v2; /** - * - * *
  * CreateProfileRequest describes a profile resource online creation request.
  * The deployment field must be populated. The profile_type specifies the list
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.devtools.cloudprofiler.v2.CreateProfileRequest}
  */
-public final class CreateProfileRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateProfileRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.devtools.cloudprofiler.v2.CreateProfileRequest)
     CreateProfileRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateProfileRequest.newBuilder() to construct.
   private CreateProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateProfileRequest() {
     parent_ = "";
     profileType_ = java.util.Collections.emptyList();
@@ -47,15 +29,16 @@ private CreateProfileRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateProfileRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CreateProfileRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,61 +58,55 @@ private CreateProfileRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.devtools.cloudprofiler.v2.Deployment.Builder subBuilder = null;
-              if (deployment_ != null) {
-                subBuilder = deployment_.toBuilder();
-              }
-              deployment_ =
-                  input.readMessage(
-                      com.google.devtools.cloudprofiler.v2.Deployment.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(deployment_);
-                deployment_ = subBuilder.buildPartial();
-              }
+          case 10: {
+            com.google.devtools.cloudprofiler.v2.Deployment.Builder subBuilder = null;
+            if (deployment_ != null) {
+              subBuilder = deployment_.toBuilder();
+            }
+            deployment_ = input.readMessage(com.google.devtools.cloudprofiler.v2.Deployment.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(deployment_);
+              deployment_ = subBuilder.buildPartial();
+            }
 
-              break;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              profileType_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 16:
-            {
+            profileType_.add(rawValue);
+            break;
+          }
+          case 18: {
+            int length = input.readRawVarint32();
+            int oldLimit = input.pushLimit(length);
+            while(input.getBytesUntilLimit() > 0) {
               int rawValue = input.readEnum();
               if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                 profileType_ = new java.util.ArrayList();
                 mutable_bitField0_ |= 0x00000001;
               }
               profileType_.add(rawValue);
-              break;
-            }
-          case 18:
-            {
-              int length = input.readRawVarint32();
-              int oldLimit = input.pushLimit(length);
-              while (input.getBytesUntilLimit() > 0) {
-                int rawValue = input.readEnum();
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  profileType_ = new java.util.ArrayList();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                profileType_.add(rawValue);
-              }
-              input.popLimit(oldLimit);
-              break;
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            input.popLimit(oldLimit);
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            parent_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -137,7 +114,8 @@ private CreateProfileRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         profileType_ = java.util.Collections.unmodifiableList(profileType_);
@@ -146,33 +124,27 @@ private CreateProfileRequest(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.devtools.cloudprofiler.v2.ProfilerProto
-        .internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.devtools.cloudprofiler.v2.ProfilerProto
-        .internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_fieldAccessorTable
+    return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.devtools.cloudprofiler.v2.CreateProfileRequest.class,
-            com.google.devtools.cloudprofiler.v2.CreateProfileRequest.Builder.class);
+            com.google.devtools.cloudprofiler.v2.CreateProfileRequest.class, com.google.devtools.cloudprofiler.v2.CreateProfileRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 4;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Parent project to create the profile in.
    * 
* * string parent = 4; - * * @return The parent. */ @java.lang.Override @@ -181,29 +153,29 @@ 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; } } /** - * - * *
    * Parent project to create the profile in.
    * 
* * string parent = 4; - * * @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 { @@ -214,14 +186,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DEPLOYMENT_FIELD_NUMBER = 1; private com.google.devtools.cloudprofiler.v2.Deployment deployment_; /** - * - * *
    * Deployment details.
    * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 1; - * * @return Whether the deployment field is set. */ @java.lang.Override @@ -229,25 +198,18 @@ public boolean hasDeployment() { return deployment_ != null; } /** - * - * *
    * Deployment details.
    * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 1; - * * @return The deployment. */ @java.lang.Override public com.google.devtools.cloudprofiler.v2.Deployment getDeployment() { - return deployment_ == null - ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() - : deployment_; + return deployment_ == null ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() : deployment_; } /** - * - * *
    * Deployment details.
    * 
@@ -262,46 +224,34 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB public static final int PROFILE_TYPE_FIELD_NUMBER = 2; private java.util.List profileType_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.devtools.cloudprofiler.v2.ProfileType> - profileType_converter_ = + java.lang.Integer, com.google.devtools.cloudprofiler.v2.ProfileType> profileType_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.devtools.cloudprofiler.v2.ProfileType>() { - public com.google.devtools.cloudprofiler.v2.ProfileType convert( - java.lang.Integer from) { + public com.google.devtools.cloudprofiler.v2.ProfileType convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.devtools.cloudprofiler.v2.ProfileType result = - com.google.devtools.cloudprofiler.v2.ProfileType.valueOf(from); - return result == null - ? com.google.devtools.cloudprofiler.v2.ProfileType.UNRECOGNIZED - : result; + com.google.devtools.cloudprofiler.v2.ProfileType result = com.google.devtools.cloudprofiler.v2.ProfileType.valueOf(from); + return result == null ? com.google.devtools.cloudprofiler.v2.ProfileType.UNRECOGNIZED : result; } }; /** - * - * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @return A list containing the profileType. */ @java.lang.Override public java.util.List getProfileTypeList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.devtools.cloudprofiler.v2.ProfileType>( - profileType_, profileType_converter_); + java.lang.Integer, com.google.devtools.cloudprofiler.v2.ProfileType>(profileType_, profileType_converter_); } /** - * - * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @return The count of profileType. */ @java.lang.Override @@ -309,14 +259,11 @@ public int getProfileTypeCount() { return profileType_.size(); } /** - * - * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @param index The index of the element to return. * @return The profileType at the given index. */ @@ -325,29 +272,24 @@ public com.google.devtools.cloudprofiler.v2.ProfileType getProfileType(int index return profileType_converter_.convert(profileType_.get(index)); } /** - * - * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @return A list containing the enum numeric values on the wire for profileType. */ @java.lang.Override - public java.util.List getProfileTypeValueList() { + public java.util.List + getProfileTypeValueList() { return profileType_; } /** - * - * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of profileType at the given index. */ @@ -355,11 +297,9 @@ public java.util.List getProfileTypeValueList() { public int getProfileTypeValue(int index) { return profileType_.get(index); } - private int profileTypeMemoizedSerializedSize; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,7 +311,8 @@ 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 { getSerializedSize(); if (deployment_ != null) { output.writeMessage(1, getDeployment()); @@ -396,19 +337,20 @@ public int getSerializedSize() { size = 0; if (deployment_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployment()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDeployment()); } { int dataSize = 0; for (int i = 0; i < profileType_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(profileType_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(profileType_.get(i)); } size += dataSize; - if (!getProfileTypeList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - profileTypeMemoizedSerializedSize = dataSize; + if (!getProfileTypeList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }profileTypeMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); @@ -421,18 +363,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.devtools.cloudprofiler.v2.CreateProfileRequest)) { return super.equals(obj); } - com.google.devtools.cloudprofiler.v2.CreateProfileRequest other = - (com.google.devtools.cloudprofiler.v2.CreateProfileRequest) obj; + com.google.devtools.cloudprofiler.v2.CreateProfileRequest other = (com.google.devtools.cloudprofiler.v2.CreateProfileRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasDeployment() != other.hasDeployment()) return false; if (hasDeployment()) { - if (!getDeployment().equals(other.getDeployment())) return false; + if (!getDeployment() + .equals(other.getDeployment())) return false; } if (!profileType_.equals(other.profileType_)) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -462,104 +405,96 @@ public int hashCode() { } public static com.google.devtools.cloudprofiler.v2.CreateProfileRequest 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.devtools.cloudprofiler.v2.CreateProfileRequest 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.devtools.cloudprofiler.v2.CreateProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.cloudprofiler.v2.CreateProfileRequest 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.devtools.cloudprofiler.v2.CreateProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.cloudprofiler.v2.CreateProfileRequest 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.devtools.cloudprofiler.v2.CreateProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.devtools.cloudprofiler.v2.CreateProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.devtools.cloudprofiler.v2.CreateProfileRequest 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.devtools.cloudprofiler.v2.CreateProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.devtools.cloudprofiler.v2.CreateProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.devtools.cloudprofiler.v2.CreateProfileRequest 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.devtools.cloudprofiler.v2.CreateProfileRequest 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.devtools.cloudprofiler.v2.CreateProfileRequest 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.devtools.cloudprofiler.v2.CreateProfileRequest prototype) { + public static Builder newBuilder(com.google.devtools.cloudprofiler.v2.CreateProfileRequest 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; } /** - * - * *
    * CreateProfileRequest describes a profile resource online creation request.
    * The deployment field must be populated. The profile_type specifies the list
@@ -569,23 +504,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.devtools.cloudprofiler.v2.CreateProfileRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.devtools.cloudprofiler.v2.CreateProfileRequest)
       com.google.devtools.cloudprofiler.v2.CreateProfileRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.devtools.cloudprofiler.v2.ProfilerProto
-          .internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.devtools.cloudprofiler.v2.ProfilerProto
-          .internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_fieldAccessorTable
+      return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.devtools.cloudprofiler.v2.CreateProfileRequest.class,
-              com.google.devtools.cloudprofiler.v2.CreateProfileRequest.Builder.class);
+              com.google.devtools.cloudprofiler.v2.CreateProfileRequest.class, com.google.devtools.cloudprofiler.v2.CreateProfileRequest.Builder.class);
     }
 
     // Construct using com.google.devtools.cloudprofiler.v2.CreateProfileRequest.newBuilder()
@@ -593,15 +526,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -619,9 +553,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.devtools.cloudprofiler.v2.ProfilerProto
-          .internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor;
     }
 
     @java.lang.Override
@@ -640,8 +574,7 @@ public com.google.devtools.cloudprofiler.v2.CreateProfileRequest build() {
 
     @java.lang.Override
     public com.google.devtools.cloudprofiler.v2.CreateProfileRequest buildPartial() {
-      com.google.devtools.cloudprofiler.v2.CreateProfileRequest result =
-          new com.google.devtools.cloudprofiler.v2.CreateProfileRequest(this);
+      com.google.devtools.cloudprofiler.v2.CreateProfileRequest result = new com.google.devtools.cloudprofiler.v2.CreateProfileRequest(this);
       int from_bitField0_ = bitField0_;
       result.parent_ = parent_;
       if (deploymentBuilder_ == null) {
@@ -662,39 +595,38 @@ public com.google.devtools.cloudprofiler.v2.CreateProfileRequest 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.devtools.cloudprofiler.v2.CreateProfileRequest) {
-        return mergeFrom((com.google.devtools.cloudprofiler.v2.CreateProfileRequest) other);
+        return mergeFrom((com.google.devtools.cloudprofiler.v2.CreateProfileRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -702,8 +634,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.devtools.cloudprofiler.v2.CreateProfileRequest other) {
-      if (other == com.google.devtools.cloudprofiler.v2.CreateProfileRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.devtools.cloudprofiler.v2.CreateProfileRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -740,8 +671,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.devtools.cloudprofiler.v2.CreateProfileRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.devtools.cloudprofiler.v2.CreateProfileRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -750,25 +680,22 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Parent project to create the profile in.
      * 
* * string parent = 4; - * * @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; @@ -777,21 +704,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Parent project to create the profile in.
      * 
* * string parent = 4; - * * @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 { @@ -799,61 +725,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Parent project to create the profile in.
      * 
* * string parent = 4; - * * @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; } /** - * - * *
      * Parent project to create the profile in.
      * 
* * string parent = 4; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Parent project to create the profile in.
      * 
* * string parent = 4; - * * @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; @@ -861,47 +780,34 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.devtools.cloudprofiler.v2.Deployment deployment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Deployment, - com.google.devtools.cloudprofiler.v2.Deployment.Builder, - com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder> - deploymentBuilder_; + com.google.devtools.cloudprofiler.v2.Deployment, com.google.devtools.cloudprofiler.v2.Deployment.Builder, com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder> deploymentBuilder_; /** - * - * *
      * Deployment details.
      * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 1; - * * @return Whether the deployment field is set. */ public boolean hasDeployment() { return deploymentBuilder_ != null || deployment_ != null; } /** - * - * *
      * Deployment details.
      * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 1; - * * @return The deployment. */ public com.google.devtools.cloudprofiler.v2.Deployment getDeployment() { if (deploymentBuilder_ == null) { - return deployment_ == null - ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() - : deployment_; + return deployment_ == null ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() : deployment_; } else { return deploymentBuilder_.getMessage(); } } /** - * - * *
      * Deployment details.
      * 
@@ -922,8 +828,6 @@ public Builder setDeployment(com.google.devtools.cloudprofiler.v2.Deployment val return this; } /** - * - * *
      * Deployment details.
      * 
@@ -942,8 +846,6 @@ public Builder setDeployment( return this; } /** - * - * *
      * Deployment details.
      * 
@@ -954,9 +856,7 @@ public Builder mergeDeployment(com.google.devtools.cloudprofiler.v2.Deployment v if (deploymentBuilder_ == null) { if (deployment_ != null) { deployment_ = - com.google.devtools.cloudprofiler.v2.Deployment.newBuilder(deployment_) - .mergeFrom(value) - .buildPartial(); + com.google.devtools.cloudprofiler.v2.Deployment.newBuilder(deployment_).mergeFrom(value).buildPartial(); } else { deployment_ = value; } @@ -968,8 +868,6 @@ public Builder mergeDeployment(com.google.devtools.cloudprofiler.v2.Deployment v return this; } /** - * - * *
      * Deployment details.
      * 
@@ -988,8 +886,6 @@ public Builder clearDeployment() { return this; } /** - * - * *
      * Deployment details.
      * 
@@ -997,13 +893,11 @@ public Builder clearDeployment() { * .google.devtools.cloudprofiler.v2.Deployment deployment = 1; */ public com.google.devtools.cloudprofiler.v2.Deployment.Builder getDeploymentBuilder() { - + onChanged(); return getDeploymentFieldBuilder().getBuilder(); } /** - * - * *
      * Deployment details.
      * 
@@ -1014,14 +908,11 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB if (deploymentBuilder_ != null) { return deploymentBuilder_.getMessageOrBuilder(); } else { - return deployment_ == null - ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() - : deployment_; + return deployment_ == null ? + com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() : deployment_; } } /** - * - * *
      * Deployment details.
      * 
@@ -1029,24 +920,21 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB * .google.devtools.cloudprofiler.v2.Deployment deployment = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Deployment, - com.google.devtools.cloudprofiler.v2.Deployment.Builder, - com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder> + com.google.devtools.cloudprofiler.v2.Deployment, com.google.devtools.cloudprofiler.v2.Deployment.Builder, com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder> getDeploymentFieldBuilder() { if (deploymentBuilder_ == null) { - deploymentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Deployment, - com.google.devtools.cloudprofiler.v2.Deployment.Builder, - com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder>( - getDeployment(), getParentForChildren(), isClean()); + deploymentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.cloudprofiler.v2.Deployment, com.google.devtools.cloudprofiler.v2.Deployment.Builder, com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder>( + getDeployment(), + getParentForChildren(), + isClean()); deployment_ = null; } return deploymentBuilder_; } - private java.util.List profileType_ = java.util.Collections.emptyList(); - + private java.util.List profileType_ = + java.util.Collections.emptyList(); private void ensureProfileTypeIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { profileType_ = new java.util.ArrayList(profileType_); @@ -1054,44 +942,34 @@ private void ensureProfileTypeIsMutable() { } } /** - * - * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @return A list containing the profileType. */ public java.util.List getProfileTypeList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.devtools.cloudprofiler.v2.ProfileType>( - profileType_, profileType_converter_); + java.lang.Integer, com.google.devtools.cloudprofiler.v2.ProfileType>(profileType_, profileType_converter_); } /** - * - * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @return The count of profileType. */ public int getProfileTypeCount() { return profileType_.size(); } /** - * - * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @param index The index of the element to return. * @return The profileType at the given index. */ @@ -1099,14 +977,11 @@ public com.google.devtools.cloudprofiler.v2.ProfileType getProfileType(int index return profileType_converter_.convert(profileType_.get(index)); } /** - * - * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @param index The index to set the value at. * @param value The profileType to set. * @return This builder for chaining. @@ -1122,14 +997,11 @@ public Builder setProfileType( return this; } /** - * - * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @param value The profileType to add. * @return This builder for chaining. */ @@ -1143,14 +1015,11 @@ public Builder addProfileType(com.google.devtools.cloudprofiler.v2.ProfileType v return this; } /** - * - * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @param values The profileType to add. * @return This builder for chaining. */ @@ -1164,14 +1033,11 @@ public Builder addAllProfileType( return this; } /** - * - * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @return This builder for chaining. */ public Builder clearProfileType() { @@ -1181,28 +1047,23 @@ public Builder clearProfileType() { return this; } /** - * - * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @return A list containing the enum numeric values on the wire for profileType. */ - public java.util.List getProfileTypeValueList() { + public java.util.List + getProfileTypeValueList() { return java.util.Collections.unmodifiableList(profileType_); } /** - * - * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of profileType at the given index. */ @@ -1210,33 +1071,28 @@ public int getProfileTypeValue(int index) { return profileType_.get(index); } /** - * - * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of profileType at the given index. * @return This builder for chaining. */ - public Builder setProfileTypeValue(int index, int value) { + public Builder setProfileTypeValue( + int index, int value) { ensureProfileTypeIsMutable(); profileType_.set(index, value); onChanged(); return this; } /** - * - * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @param value The enum numeric value on the wire for profileType to add. * @return This builder for chaining. */ @@ -1247,18 +1103,16 @@ public Builder addProfileTypeValue(int value) { return this; } /** - * - * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @param values The enum numeric values on the wire for profileType to add. * @return This builder for chaining. */ - public Builder addAllProfileTypeValue(java.lang.Iterable values) { + public Builder addAllProfileTypeValue( + java.lang.Iterable values) { ensureProfileTypeIsMutable(); for (int value : values) { profileType_.add(value); @@ -1266,9 +1120,9 @@ public Builder addAllProfileTypeValue(java.lang.Iterable valu 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); } @@ -1278,12 +1132,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.devtools.cloudprofiler.v2.CreateProfileRequest) } // @@protoc_insertion_point(class_scope:google.devtools.cloudprofiler.v2.CreateProfileRequest) private static final com.google.devtools.cloudprofiler.v2.CreateProfileRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.devtools.cloudprofiler.v2.CreateProfileRequest(); } @@ -1292,16 +1146,16 @@ public static com.google.devtools.cloudprofiler.v2.CreateProfileRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateProfileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1316,4 +1170,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.devtools.cloudprofiler.v2.CreateProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java similarity index 76% rename from proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java index 9428c94..27bd8e9 100644 --- a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java @@ -1,80 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/devtools/cloudprofiler/v2/profiler.proto package com.google.devtools.cloudprofiler.v2; -public interface CreateProfileRequestOrBuilder - extends +public interface CreateProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.devtools.cloudprofiler.v2.CreateProfileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Parent project to create the profile in.
    * 
* * string parent = 4; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Parent project to create the profile in.
    * 
* * string parent = 4; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Deployment details.
    * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 1; - * * @return Whether the deployment field is set. */ boolean hasDeployment(); /** - * - * *
    * Deployment details.
    * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 1; - * * @return The deployment. */ com.google.devtools.cloudprofiler.v2.Deployment getDeployment(); /** - * - * *
    * Deployment details.
    * 
@@ -84,63 +55,49 @@ public interface CreateProfileRequestOrBuilder com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrBuilder(); /** - * - * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @return A list containing the profileType. */ java.util.List getProfileTypeList(); /** - * - * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @return The count of profileType. */ int getProfileTypeCount(); /** - * - * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @param index The index of the element to return. * @return The profileType at the given index. */ com.google.devtools.cloudprofiler.v2.ProfileType getProfileType(int index); /** - * - * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @return A list containing the enum numeric values on the wire for profileType. */ - java.util.List getProfileTypeValueList(); + java.util.List + getProfileTypeValueList(); /** - * - * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of profileType at the given index. */ diff --git a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java similarity index 72% rename from proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java rename to owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java index 452887a..18a80eb 100644 --- a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java +++ b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/devtools/cloudprofiler/v2/profiler.proto package com.google.devtools.cloudprofiler.v2; /** - * - * *
  * Deployment contains the deployment identification information.
  * 
* * Protobuf type {@code google.devtools.cloudprofiler.v2.Deployment} */ -public final class Deployment extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Deployment extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.devtools.cloudprofiler.v2.Deployment) DeploymentOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Deployment.newBuilder() to construct. private Deployment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Deployment() { projectId_ = ""; target_ = ""; @@ -44,15 +26,16 @@ private Deployment() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Deployment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Deployment( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,40 +55,38 @@ private Deployment( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + target_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,51 +94,47 @@ private Deployment( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto - .internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Deployment_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 3: 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.devtools.cloudprofiler.v2.ProfilerProto - .internal_static_google_devtools_cloudprofiler_v2_Deployment_fieldAccessorTable + return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Deployment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.cloudprofiler.v2.Deployment.class, - com.google.devtools.cloudprofiler.v2.Deployment.Builder.class); + com.google.devtools.cloudprofiler.v2.Deployment.class, com.google.devtools.cloudprofiler.v2.Deployment.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
    * Project ID is the ID of a cloud project.
    * Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
    * 
* * string project_id = 1; - * * @return The projectId. */ @java.lang.Override @@ -166,30 +143,30 @@ public java.lang.String getProjectId() { 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(); projectId_ = s; return s; } } /** - * - * *
    * Project ID is the ID of a cloud project.
    * Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
    * 
* * string project_id = 1; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; 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); projectId_ = b; return b; } else { @@ -200,8 +177,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int TARGET_FIELD_NUMBER = 2; private volatile java.lang.Object target_; /** - * - * *
    * Target is the service name used to group related deployments:
    * * Service name for GAE Flex / Standard.
@@ -212,7 +187,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
    * 
* * string target = 2; - * * @return The target. */ @java.lang.Override @@ -221,15 +195,14 @@ 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 is the service name used to group related deployments:
    * * Service name for GAE Flex / Standard.
@@ -240,15 +213,16 @@ public java.lang.String getTarget() {
    * 
* * string target = 2; - * * @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 { @@ -257,23 +231,24 @@ public com.google.protobuf.ByteString getTargetBytes() { } public static final int LABELS_FIELD_NUMBER = 3; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.devtools.cloudprofiler.v2.ProfilerProto - .internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> 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_; } @@ -282,8 +257,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels identify the deployment within the user universe and same target.
    * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -300,22 +273,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 3;
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Labels identify the deployment within the user universe and same target.
    * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -333,12 +306,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 3;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Labels identify the deployment within the user universe and same target.
    * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -356,16 +328,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 3;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Labels identify the deployment within the user universe and same target.
    * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -383,11 +355,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 3;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -395,7 +368,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -407,15 +379,20 @@ 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(projectId_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, target_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        3);
     unknownFields.writeTo(output);
   }
 
@@ -431,15 +408,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, target_);
     }
-    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(3, labels__);
+    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(3, labels__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -449,17 +426,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.devtools.cloudprofiler.v2.Deployment)) {
       return super.equals(obj);
     }
-    com.google.devtools.cloudprofiler.v2.Deployment other =
-        (com.google.devtools.cloudprofiler.v2.Deployment) obj;
+    com.google.devtools.cloudprofiler.v2.Deployment other = (com.google.devtools.cloudprofiler.v2.Deployment) obj;
 
-    if (!getProjectId().equals(other.getProjectId())) return false;
-    if (!getTarget().equals(other.getTarget())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!getProjectId()
+        .equals(other.getProjectId())) return false;
+    if (!getTarget()
+        .equals(other.getTarget())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -484,147 +463,140 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.devtools.cloudprofiler.v2.Deployment parseFrom(java.nio.ByteBuffer data)
+  public static com.google.devtools.cloudprofiler.v2.Deployment parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.devtools.cloudprofiler.v2.Deployment 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.devtools.cloudprofiler.v2.Deployment parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.devtools.cloudprofiler.v2.Deployment 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.devtools.cloudprofiler.v2.Deployment parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.devtools.cloudprofiler.v2.Deployment 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.devtools.cloudprofiler.v2.Deployment 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.devtools.cloudprofiler.v2.Deployment 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.devtools.cloudprofiler.v2.Deployment parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.devtools.cloudprofiler.v2.Deployment parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.devtools.cloudprofiler.v2.Deployment 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.devtools.cloudprofiler.v2.Deployment 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.devtools.cloudprofiler.v2.Deployment 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.devtools.cloudprofiler.v2.Deployment 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;
   }
   /**
-   *
-   *
    * 
    * Deployment contains the deployment identification information.
    * 
* * Protobuf type {@code google.devtools.cloudprofiler.v2.Deployment} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.devtools.cloudprofiler.v2.Deployment) com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto - .internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: 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 3: 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.devtools.cloudprofiler.v2.ProfilerProto - .internal_static_google_devtools_cloudprofiler_v2_Deployment_fieldAccessorTable + return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Deployment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.cloudprofiler.v2.Deployment.class, - com.google.devtools.cloudprofiler.v2.Deployment.Builder.class); + com.google.devtools.cloudprofiler.v2.Deployment.class, com.google.devtools.cloudprofiler.v2.Deployment.Builder.class); } // Construct using com.google.devtools.cloudprofiler.v2.Deployment.newBuilder() @@ -632,15 +604,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -653,9 +626,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto - .internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor; } @java.lang.Override @@ -674,8 +647,7 @@ public com.google.devtools.cloudprofiler.v2.Deployment build() { @java.lang.Override public com.google.devtools.cloudprofiler.v2.Deployment buildPartial() { - com.google.devtools.cloudprofiler.v2.Deployment result = - new com.google.devtools.cloudprofiler.v2.Deployment(this); + com.google.devtools.cloudprofiler.v2.Deployment result = new com.google.devtools.cloudprofiler.v2.Deployment(this); int from_bitField0_ = bitField0_; result.projectId_ = projectId_; result.target_ = target_; @@ -689,39 +661,38 @@ public com.google.devtools.cloudprofiler.v2.Deployment 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.devtools.cloudprofiler.v2.Deployment) { - return mergeFrom((com.google.devtools.cloudprofiler.v2.Deployment) other); + return mergeFrom((com.google.devtools.cloudprofiler.v2.Deployment)other); } else { super.mergeFrom(other); return this; @@ -729,8 +700,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.devtools.cloudprofiler.v2.Deployment other) { - if (other == com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance()) - return this; + if (other == com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -739,7 +709,8 @@ public Builder mergeFrom(com.google.devtools.cloudprofiler.v2.Deployment other) target_ = other.target_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -768,26 +739,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * *
      * Project ID is the ID of a cloud project.
      * Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
      * 
* * string project_id = 1; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; 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(); projectId_ = s; return s; @@ -796,22 +764,21 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Project ID is the ID of a cloud project.
      * Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
      * 
* * string project_id = 1; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; 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); projectId_ = b; return b; } else { @@ -819,64 +786,57 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Project ID is the ID of a cloud project.
      * Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
      * 
* * string project_id = 1; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Project ID is the ID of a cloud project.
      * Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
      * 
* * string project_id = 1; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Project ID is the ID of a cloud project.
      * Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
      * 
* * string project_id = 1; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -884,8 +844,6 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object target_ = ""; /** - * - * *
      * Target is the service name used to group related deployments:
      * * Service name for GAE Flex / Standard.
@@ -896,13 +854,13 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string target = 2; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -911,8 +869,6 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Target is the service name used to group related deployments:
      * * Service name for GAE Flex / Standard.
@@ -923,14 +879,15 @@ public java.lang.String getTarget() {
      * 
* * string target = 2; - * * @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 { @@ -938,8 +895,6 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Target is the service name used to group related deployments:
      * * Service name for GAE Flex / Standard.
@@ -950,22 +905,20 @@ public com.google.protobuf.ByteString getTargetBytes() {
      * 
* * string target = 2; - * * @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 is the service name used to group related deployments:
      * * Service name for GAE Flex / Standard.
@@ -976,18 +929,15 @@ public Builder setTarget(java.lang.String value) {
      * 
* * string target = 2; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Target is the service name used to group related deployments:
      * * Service name for GAE Flex / Standard.
@@ -998,36 +948,37 @@ public Builder clearTarget() {
      * 
* * string target = 2; - * * @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; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> 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(); @@ -1039,8 +990,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels identify the deployment within the user universe and same target.
      * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -1057,22 +1006,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 3;
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Labels identify the deployment within the user universe and same target.
      * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -1090,12 +1039,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 3;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Labels identify the deployment within the user universe and same target.
      * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -1113,17 +1061,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 3;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Labels identify the deployment within the user universe and same target.
      * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -1141,11 +1088,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 3;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1153,12 +1101,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels identify the deployment within the user universe and same target.
      * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -1175,21 +1122,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 3;
      */
-    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();
     }
     /**
-     *
-     *
      * 
      * Labels identify the deployment within the user universe and same target.
      * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -1206,20 +1155,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 3;
      */
-    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;
     }
     /**
-     *
-     *
      * 
      * Labels identify the deployment within the user universe and same target.
      * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -1236,13 +1184,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 3;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       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);
     }
 
@@ -1252,12 +1203,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.devtools.cloudprofiler.v2.Deployment)
   }
 
   // @@protoc_insertion_point(class_scope:google.devtools.cloudprofiler.v2.Deployment)
   private static final com.google.devtools.cloudprofiler.v2.Deployment DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.devtools.cloudprofiler.v2.Deployment();
   }
@@ -1266,16 +1217,16 @@ public static com.google.devtools.cloudprofiler.v2.Deployment getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Deployment parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Deployment(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Deployment parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Deployment(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1290,4 +1241,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.devtools.cloudprofiler.v2.Deployment getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java
similarity index 83%
rename from proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java
index e72cb9f..e2ed06b 100644
--- a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java
@@ -1,58 +1,35 @@
-/*
- * 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/devtools/cloudprofiler/v2/profiler.proto
 
 package com.google.devtools.cloudprofiler.v2;
 
-public interface DeploymentOrBuilder
-    extends
+public interface DeploymentOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.devtools.cloudprofiler.v2.Deployment)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Project ID is the ID of a cloud project.
    * Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
    * 
* * string project_id = 1; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Project ID is the ID of a cloud project.
    * Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
    * 
* * string project_id = 1; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Target is the service name used to group related deployments:
    * * Service name for GAE Flex / Standard.
@@ -63,13 +40,10 @@ public interface DeploymentOrBuilder
    * 
* * string target = 2; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Target is the service name used to group related deployments:
    * * Service name for GAE Flex / Standard.
@@ -80,14 +54,12 @@ public interface DeploymentOrBuilder
    * 
* * string target = 2; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Labels identify the deployment within the user universe and same target.
    * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -106,8 +78,6 @@ public interface DeploymentOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Labels identify the deployment within the user universe and same target.
    * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -124,13 +94,15 @@ public interface DeploymentOrBuilder
    *
    * map<string, string> labels = 3;
    */
-  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();
   /**
-   *
-   *
    * 
    * Labels identify the deployment within the user universe and same target.
    * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -147,10 +119,9 @@ public interface DeploymentOrBuilder
    *
    * map<string, string> labels = 3;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Labels identify the deployment within the user universe and same target.
    * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -169,13 +140,11 @@ public interface DeploymentOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Labels identify the deployment within the user universe and same target.
    * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -192,5 +161,7 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 3;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java
similarity index 71%
rename from proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java
rename to owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java
index ed53e5c..1c06110 100644
--- a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java
+++ b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/devtools/cloudprofiler/v2/profiler.proto
 
 package com.google.devtools.cloudprofiler.v2;
 
 /**
- *
- *
  * 
  * Profile resource.
  * 
* * Protobuf type {@code google.devtools.cloudprofiler.v2.Profile} */ -public final class Profile extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Profile extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.devtools.cloudprofiler.v2.Profile) ProfileOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Profile.newBuilder() to construct. private Profile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Profile() { name_ = ""; profileType_ = 0; @@ -45,15 +27,16 @@ private Profile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Profile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Profile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,76 +56,69 @@ private Profile( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - profileType_ = rawValue; - break; + profileType_ = rawValue; + break; + } + case 26: { + com.google.devtools.cloudprofiler.v2.Deployment.Builder subBuilder = null; + if (deployment_ != null) { + subBuilder = deployment_.toBuilder(); } - case 26: - { - com.google.devtools.cloudprofiler.v2.Deployment.Builder subBuilder = null; - if (deployment_ != null) { - subBuilder = deployment_.toBuilder(); - } - deployment_ = - input.readMessage( - com.google.devtools.cloudprofiler.v2.Deployment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deployment_); - deployment_ = subBuilder.buildPartial(); - } - - break; + deployment_ = input.readMessage(com.google.devtools.cloudprofiler.v2.Deployment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deployment_); + deployment_ = subBuilder.buildPartial(); } - case 34: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); } - case 42: - { - profileBytes_ = input.readBytes(); - break; + duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); } - case 50: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + + break; + } + case 42: { + + profileBytes_ = input.readBytes(); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,50 +126,46 @@ private Profile( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto - .internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Profile_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 6: 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.devtools.cloudprofiler.v2.ProfilerProto - .internal_static_google_devtools_cloudprofiler_v2_Profile_fieldAccessorTable + return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Profile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.cloudprofiler.v2.Profile.class, - com.google.devtools.cloudprofiler.v2.Profile.Builder.class); + com.google.devtools.cloudprofiler.v2.Profile.class, com.google.devtools.cloudprofiler.v2.Profile.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. Opaque, server-assigned, unique ID for this profile.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -202,29 +174,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; } } /** - * - * *
    * Output only. Opaque, server-assigned, unique ID for this profile.
    * 
* * 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 { @@ -235,8 +207,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PROFILE_TYPE_FIELD_NUMBER = 2; private int profileType_; /** - * - * *
    * Type of profile.
    * For offline mode, this must be specified when creating the profile. For
@@ -244,16 +214,12 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @return The enum numeric value on the wire for profileType. */ - @java.lang.Override - public int getProfileTypeValue() { + @java.lang.Override public int getProfileTypeValue() { return profileType_; } /** - * - * *
    * Type of profile.
    * For offline mode, this must be specified when creating the profile. For
@@ -261,28 +227,22 @@ public int getProfileTypeValue() {
    * 
* * .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @return The profileType. */ - @java.lang.Override - public com.google.devtools.cloudprofiler.v2.ProfileType getProfileType() { + @java.lang.Override public com.google.devtools.cloudprofiler.v2.ProfileType getProfileType() { @SuppressWarnings("deprecation") - com.google.devtools.cloudprofiler.v2.ProfileType result = - com.google.devtools.cloudprofiler.v2.ProfileType.valueOf(profileType_); + com.google.devtools.cloudprofiler.v2.ProfileType result = com.google.devtools.cloudprofiler.v2.ProfileType.valueOf(profileType_); return result == null ? com.google.devtools.cloudprofiler.v2.ProfileType.UNRECOGNIZED : result; } public static final int DEPLOYMENT_FIELD_NUMBER = 3; private com.google.devtools.cloudprofiler.v2.Deployment deployment_; /** - * - * *
    * Deployment this profile corresponds to.
    * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 3; - * * @return Whether the deployment field is set. */ @java.lang.Override @@ -290,25 +250,18 @@ public boolean hasDeployment() { return deployment_ != null; } /** - * - * *
    * Deployment this profile corresponds to.
    * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 3; - * * @return The deployment. */ @java.lang.Override public com.google.devtools.cloudprofiler.v2.Deployment getDeployment() { - return deployment_ == null - ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() - : deployment_; + return deployment_ == null ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() : deployment_; } /** - * - * *
    * Deployment this profile corresponds to.
    * 
@@ -323,8 +276,6 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB public static final int DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration duration_; /** - * - * *
    * Duration of the profiling session.
    * Input (for the offline mode) or output (for the online mode).
@@ -335,7 +286,6 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB
    * 
* * .google.protobuf.Duration duration = 4; - * * @return Whether the duration field is set. */ @java.lang.Override @@ -343,8 +293,6 @@ public boolean hasDuration() { return duration_ != null; } /** - * - * *
    * Duration of the profiling session.
    * Input (for the offline mode) or output (for the online mode).
@@ -355,7 +303,6 @@ public boolean hasDuration() {
    * 
* * .google.protobuf.Duration duration = 4; - * * @return The duration. */ @java.lang.Override @@ -363,8 +310,6 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** - * - * *
    * Duration of the profiling session.
    * Input (for the offline mode) or output (for the online mode).
@@ -384,15 +329,12 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
   public static final int PROFILE_BYTES_FIELD_NUMBER = 5;
   private com.google.protobuf.ByteString profileBytes_;
   /**
-   *
-   *
    * 
    * Input only. Profile bytes, as a gzip compressed serialized proto, the
    * format is https://github.com/google/pprof/blob/master/proto/profile.proto.
    * 
* * bytes profile_bytes = 5; - * * @return The profileBytes. */ @java.lang.Override @@ -401,23 +343,24 @@ public com.google.protobuf.ByteString getProfileBytes() { } public static final int LABELS_FIELD_NUMBER = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.devtools.cloudprofiler.v2.ProfilerProto - .internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> 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_; } @@ -426,8 +369,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Input only. Labels associated to this specific profile. These labels will
    * get merged with the deployment labels for the final data set.  See
@@ -436,22 +377,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 6;
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Input only. Labels associated to this specific profile. These labels will
    * get merged with the deployment labels for the final data set.  See
@@ -461,12 +402,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 6;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Input only. Labels associated to this specific profile. These labels will
    * get merged with the deployment labels for the final data set.  See
@@ -476,16 +416,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Input only. Labels associated to this specific profile. These labels will
    * get merged with the deployment labels for the final data set.  See
@@ -495,11 +435,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 6;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -507,7 +448,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -519,12 +459,12 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
-    if (profileType_
-        != com.google.devtools.cloudprofiler.v2.ProfileType.PROFILE_TYPE_UNSPECIFIED.getNumber()) {
+    if (profileType_ != com.google.devtools.cloudprofiler.v2.ProfileType.PROFILE_TYPE_UNSPECIFIED.getNumber()) {
       output.writeEnum(2, profileType_);
     }
     if (deployment_ != null) {
@@ -536,8 +476,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!profileBytes_.isEmpty()) {
       output.writeBytes(5, profileBytes_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        6);
     unknownFields.writeTo(output);
   }
 
@@ -550,28 +494,31 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    if (profileType_
-        != com.google.devtools.cloudprofiler.v2.ProfileType.PROFILE_TYPE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, profileType_);
+    if (profileType_ != com.google.devtools.cloudprofiler.v2.ProfileType.PROFILE_TYPE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(2, profileType_);
     }
     if (deployment_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeployment());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getDeployment());
     }
     if (duration_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDuration());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getDuration());
     }
     if (!profileBytes_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, profileBytes_);
-    }
-    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(6, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(5, profileBytes_);
+    }
+    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(6, labels__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -581,26 +528,30 @@ 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.devtools.cloudprofiler.v2.Profile)) {
       return super.equals(obj);
     }
-    com.google.devtools.cloudprofiler.v2.Profile other =
-        (com.google.devtools.cloudprofiler.v2.Profile) obj;
+    com.google.devtools.cloudprofiler.v2.Profile other = (com.google.devtools.cloudprofiler.v2.Profile) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (profileType_ != other.profileType_) return false;
     if (hasDeployment() != other.hasDeployment()) return false;
     if (hasDeployment()) {
-      if (!getDeployment().equals(other.getDeployment())) return false;
+      if (!getDeployment()
+          .equals(other.getDeployment())) return false;
     }
     if (hasDuration() != other.hasDuration()) return false;
     if (hasDuration()) {
-      if (!getDuration().equals(other.getDuration())) return false;
+      if (!getDuration()
+          .equals(other.getDuration())) return false;
     }
-    if (!getProfileBytes().equals(other.getProfileBytes())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!getProfileBytes()
+        .equals(other.getProfileBytes())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -635,147 +586,140 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.devtools.cloudprofiler.v2.Profile parseFrom(java.nio.ByteBuffer data)
+  public static com.google.devtools.cloudprofiler.v2.Profile parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.devtools.cloudprofiler.v2.Profile 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.devtools.cloudprofiler.v2.Profile parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.devtools.cloudprofiler.v2.Profile 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.devtools.cloudprofiler.v2.Profile parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.devtools.cloudprofiler.v2.Profile 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.devtools.cloudprofiler.v2.Profile 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.devtools.cloudprofiler.v2.Profile 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.devtools.cloudprofiler.v2.Profile parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.devtools.cloudprofiler.v2.Profile parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.devtools.cloudprofiler.v2.Profile 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.devtools.cloudprofiler.v2.Profile 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.devtools.cloudprofiler.v2.Profile 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.devtools.cloudprofiler.v2.Profile 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;
   }
   /**
-   *
-   *
    * 
    * Profile resource.
    * 
* * Protobuf type {@code google.devtools.cloudprofiler.v2.Profile} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.devtools.cloudprofiler.v2.Profile) com.google.devtools.cloudprofiler.v2.ProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto - .internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: 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 6: 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.devtools.cloudprofiler.v2.ProfilerProto - .internal_static_google_devtools_cloudprofiler_v2_Profile_fieldAccessorTable + return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Profile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.cloudprofiler.v2.Profile.class, - com.google.devtools.cloudprofiler.v2.Profile.Builder.class); + com.google.devtools.cloudprofiler.v2.Profile.class, com.google.devtools.cloudprofiler.v2.Profile.Builder.class); } // Construct using com.google.devtools.cloudprofiler.v2.Profile.newBuilder() @@ -783,15 +727,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -818,9 +763,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto - .internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor; } @java.lang.Override @@ -839,8 +784,7 @@ public com.google.devtools.cloudprofiler.v2.Profile build() { @java.lang.Override public com.google.devtools.cloudprofiler.v2.Profile buildPartial() { - com.google.devtools.cloudprofiler.v2.Profile result = - new com.google.devtools.cloudprofiler.v2.Profile(this); + com.google.devtools.cloudprofiler.v2.Profile result = new com.google.devtools.cloudprofiler.v2.Profile(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.profileType_ = profileType_; @@ -865,39 +809,38 @@ public com.google.devtools.cloudprofiler.v2.Profile 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.devtools.cloudprofiler.v2.Profile) { - return mergeFrom((com.google.devtools.cloudprofiler.v2.Profile) other); + return mergeFrom((com.google.devtools.cloudprofiler.v2.Profile)other); } else { super.mergeFrom(other); return this; @@ -922,7 +865,8 @@ public Builder mergeFrom(com.google.devtools.cloudprofiler.v2.Profile other) { if (other.getProfileBytes() != com.google.protobuf.ByteString.EMPTY) { setProfileBytes(other.getProfileBytes()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -951,25 +895,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Opaque, server-assigned, unique ID for this profile.
      * 
* * 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; @@ -978,21 +919,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Opaque, server-assigned, unique ID for this profile.
      * 
* * 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 { @@ -1000,61 +940,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Opaque, server-assigned, unique ID for this profile.
      * 
* * 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; } /** - * - * *
      * Output only. Opaque, server-assigned, unique ID for this profile.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Opaque, server-assigned, unique ID for this profile.
      * 
* * 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; @@ -1062,8 +995,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int profileType_ = 0; /** - * - * *
      * Type of profile.
      * For offline mode, this must be specified when creating the profile. For
@@ -1071,16 +1002,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @return The enum numeric value on the wire for profileType. */ - @java.lang.Override - public int getProfileTypeValue() { + @java.lang.Override public int getProfileTypeValue() { return profileType_; } /** - * - * *
      * Type of profile.
      * For offline mode, this must be specified when creating the profile. For
@@ -1088,19 +1015,16 @@ public int getProfileTypeValue() {
      * 
* * .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @param value The enum numeric value on the wire for profileType to set. * @return This builder for chaining. */ public Builder setProfileTypeValue(int value) { - + profileType_ = value; onChanged(); return this; } /** - * - * *
      * Type of profile.
      * For offline mode, this must be specified when creating the profile. For
@@ -1108,21 +1032,15 @@ public Builder setProfileTypeValue(int value) {
      * 
* * .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @return The profileType. */ @java.lang.Override public com.google.devtools.cloudprofiler.v2.ProfileType getProfileType() { @SuppressWarnings("deprecation") - com.google.devtools.cloudprofiler.v2.ProfileType result = - com.google.devtools.cloudprofiler.v2.ProfileType.valueOf(profileType_); - return result == null - ? com.google.devtools.cloudprofiler.v2.ProfileType.UNRECOGNIZED - : result; + com.google.devtools.cloudprofiler.v2.ProfileType result = com.google.devtools.cloudprofiler.v2.ProfileType.valueOf(profileType_); + return result == null ? com.google.devtools.cloudprofiler.v2.ProfileType.UNRECOGNIZED : result; } /** - * - * *
      * Type of profile.
      * For offline mode, this must be specified when creating the profile. For
@@ -1130,7 +1048,6 @@ public com.google.devtools.cloudprofiler.v2.ProfileType getProfileType() {
      * 
* * .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @param value The profileType to set. * @return This builder for chaining. */ @@ -1138,14 +1055,12 @@ public Builder setProfileType(com.google.devtools.cloudprofiler.v2.ProfileType v if (value == null) { throw new NullPointerException(); } - + profileType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Type of profile.
      * For offline mode, this must be specified when creating the profile. For
@@ -1153,11 +1068,10 @@ public Builder setProfileType(com.google.devtools.cloudprofiler.v2.ProfileType v
      * 
* * .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @return This builder for chaining. */ public Builder clearProfileType() { - + profileType_ = 0; onChanged(); return this; @@ -1165,47 +1079,34 @@ public Builder clearProfileType() { private com.google.devtools.cloudprofiler.v2.Deployment deployment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Deployment, - com.google.devtools.cloudprofiler.v2.Deployment.Builder, - com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder> - deploymentBuilder_; + com.google.devtools.cloudprofiler.v2.Deployment, com.google.devtools.cloudprofiler.v2.Deployment.Builder, com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder> deploymentBuilder_; /** - * - * *
      * Deployment this profile corresponds to.
      * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 3; - * * @return Whether the deployment field is set. */ public boolean hasDeployment() { return deploymentBuilder_ != null || deployment_ != null; } /** - * - * *
      * Deployment this profile corresponds to.
      * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 3; - * * @return The deployment. */ public com.google.devtools.cloudprofiler.v2.Deployment getDeployment() { if (deploymentBuilder_ == null) { - return deployment_ == null - ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() - : deployment_; + return deployment_ == null ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() : deployment_; } else { return deploymentBuilder_.getMessage(); } } /** - * - * *
      * Deployment this profile corresponds to.
      * 
@@ -1226,8 +1127,6 @@ public Builder setDeployment(com.google.devtools.cloudprofiler.v2.Deployment val return this; } /** - * - * *
      * Deployment this profile corresponds to.
      * 
@@ -1246,8 +1145,6 @@ public Builder setDeployment( return this; } /** - * - * *
      * Deployment this profile corresponds to.
      * 
@@ -1258,9 +1155,7 @@ public Builder mergeDeployment(com.google.devtools.cloudprofiler.v2.Deployment v if (deploymentBuilder_ == null) { if (deployment_ != null) { deployment_ = - com.google.devtools.cloudprofiler.v2.Deployment.newBuilder(deployment_) - .mergeFrom(value) - .buildPartial(); + com.google.devtools.cloudprofiler.v2.Deployment.newBuilder(deployment_).mergeFrom(value).buildPartial(); } else { deployment_ = value; } @@ -1272,8 +1167,6 @@ public Builder mergeDeployment(com.google.devtools.cloudprofiler.v2.Deployment v return this; } /** - * - * *
      * Deployment this profile corresponds to.
      * 
@@ -1292,8 +1185,6 @@ public Builder clearDeployment() { return this; } /** - * - * *
      * Deployment this profile corresponds to.
      * 
@@ -1301,13 +1192,11 @@ public Builder clearDeployment() { * .google.devtools.cloudprofiler.v2.Deployment deployment = 3; */ public com.google.devtools.cloudprofiler.v2.Deployment.Builder getDeploymentBuilder() { - + onChanged(); return getDeploymentFieldBuilder().getBuilder(); } /** - * - * *
      * Deployment this profile corresponds to.
      * 
@@ -1318,14 +1207,11 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB if (deploymentBuilder_ != null) { return deploymentBuilder_.getMessageOrBuilder(); } else { - return deployment_ == null - ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() - : deployment_; + return deployment_ == null ? + com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() : deployment_; } } /** - * - * *
      * Deployment this profile corresponds to.
      * 
@@ -1333,17 +1219,14 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB * .google.devtools.cloudprofiler.v2.Deployment deployment = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Deployment, - com.google.devtools.cloudprofiler.v2.Deployment.Builder, - com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder> + com.google.devtools.cloudprofiler.v2.Deployment, com.google.devtools.cloudprofiler.v2.Deployment.Builder, com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder> getDeploymentFieldBuilder() { if (deploymentBuilder_ == null) { - deploymentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Deployment, - com.google.devtools.cloudprofiler.v2.Deployment.Builder, - com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder>( - getDeployment(), getParentForChildren(), isClean()); + deploymentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.cloudprofiler.v2.Deployment, com.google.devtools.cloudprofiler.v2.Deployment.Builder, com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder>( + getDeployment(), + getParentForChildren(), + isClean()); deployment_ = null; } return deploymentBuilder_; @@ -1351,13 +1234,8 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - durationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** - * - * *
      * Duration of the profiling session.
      * Input (for the offline mode) or output (for the online mode).
@@ -1368,15 +1246,12 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB
      * 
* * .google.protobuf.Duration duration = 4; - * * @return Whether the duration field is set. */ public boolean hasDuration() { return durationBuilder_ != null || duration_ != null; } /** - * - * *
      * Duration of the profiling session.
      * Input (for the offline mode) or output (for the online mode).
@@ -1387,7 +1262,6 @@ public boolean hasDuration() {
      * 
* * .google.protobuf.Duration duration = 4; - * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -1398,8 +1272,6 @@ public com.google.protobuf.Duration getDuration() { } } /** - * - * *
      * Duration of the profiling session.
      * Input (for the offline mode) or output (for the online mode).
@@ -1425,8 +1297,6 @@ public Builder setDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Duration of the profiling session.
      * Input (for the offline mode) or output (for the online mode).
@@ -1438,7 +1308,8 @@ public Builder setDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration duration = 4;
      */
-    public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setDuration(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (durationBuilder_ == null) {
         duration_ = builderForValue.build();
         onChanged();
@@ -1449,8 +1320,6 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Duration of the profiling session.
      * Input (for the offline mode) or output (for the online mode).
@@ -1466,7 +1335,7 @@ public Builder mergeDuration(com.google.protobuf.Duration value) {
       if (durationBuilder_ == null) {
         if (duration_ != null) {
           duration_ =
-              com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial();
         } else {
           duration_ = value;
         }
@@ -1478,8 +1347,6 @@ public Builder mergeDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Duration of the profiling session.
      * Input (for the offline mode) or output (for the online mode).
@@ -1503,8 +1370,6 @@ public Builder clearDuration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Duration of the profiling session.
      * Input (for the offline mode) or output (for the online mode).
@@ -1517,13 +1382,11 @@ public Builder clearDuration() {
      * .google.protobuf.Duration duration = 4;
      */
     public com.google.protobuf.Duration.Builder getDurationBuilder() {
-
+      
       onChanged();
       return getDurationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Duration of the profiling session.
      * Input (for the offline mode) or output (for the online mode).
@@ -1539,12 +1402,11 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
       if (durationBuilder_ != null) {
         return durationBuilder_.getMessageOrBuilder();
       } else {
-        return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
+        return duration_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : duration_;
       }
     }
     /**
-     *
-     *
      * 
      * Duration of the profiling session.
      * Input (for the offline mode) or output (for the online mode).
@@ -1557,17 +1419,14 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
      * .google.protobuf.Duration duration = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getDurationFieldBuilder() {
       if (durationBuilder_ == null) {
-        durationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getDuration(), getParentForChildren(), isClean());
+        durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getDuration(),
+                getParentForChildren(),
+                isClean());
         duration_ = null;
       }
       return durationBuilder_;
@@ -1575,15 +1434,12 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
 
     private com.google.protobuf.ByteString profileBytes_ = com.google.protobuf.ByteString.EMPTY;
     /**
-     *
-     *
      * 
      * Input only. Profile bytes, as a gzip compressed serialized proto, the
      * format is https://github.com/google/pprof/blob/master/proto/profile.proto.
      * 
* * bytes profile_bytes = 5; - * * @return The profileBytes. */ @java.lang.Override @@ -1591,61 +1447,56 @@ public com.google.protobuf.ByteString getProfileBytes() { return profileBytes_; } /** - * - * *
      * Input only. Profile bytes, as a gzip compressed serialized proto, the
      * format is https://github.com/google/pprof/blob/master/proto/profile.proto.
      * 
* * bytes profile_bytes = 5; - * * @param value The profileBytes to set. * @return This builder for chaining. */ public Builder setProfileBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + profileBytes_ = value; onChanged(); return this; } /** - * - * *
      * Input only. Profile bytes, as a gzip compressed serialized proto, the
      * format is https://github.com/google/pprof/blob/master/proto/profile.proto.
      * 
* * bytes profile_bytes = 5; - * * @return This builder for chaining. */ public Builder clearProfileBytes() { - + profileBytes_ = getDefaultInstance().getProfileBytes(); onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> 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(); @@ -1657,8 +1508,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Input only. Labels associated to this specific profile. These labels will
      * get merged with the deployment labels for the final data set.  See
@@ -1667,22 +1516,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 6;
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Input only. Labels associated to this specific profile. These labels will
      * get merged with the deployment labels for the final data set.  See
@@ -1692,12 +1541,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 6;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Input only. Labels associated to this specific profile. These labels will
      * get merged with the deployment labels for the final data set.  See
@@ -1707,17 +1555,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Input only. Labels associated to this specific profile. These labels will
      * get merged with the deployment labels for the final data set.  See
@@ -1727,11 +1574,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 6;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1739,12 +1587,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Input only. Labels associated to this specific profile. These labels will
      * get merged with the deployment labels for the final data set.  See
@@ -1753,21 +1600,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 6;
      */
-    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();
     }
     /**
-     *
-     *
      * 
      * Input only. Labels associated to this specific profile. These labels will
      * get merged with the deployment labels for the final data set.  See
@@ -1776,20 +1625,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 6;
      */
-    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;
     }
     /**
-     *
-     *
      * 
      * Input only. Labels associated to this specific profile. These labels will
      * get merged with the deployment labels for the final data set.  See
@@ -1798,13 +1646,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 6;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       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);
     }
 
@@ -1814,12 +1665,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.devtools.cloudprofiler.v2.Profile)
   }
 
   // @@protoc_insertion_point(class_scope:google.devtools.cloudprofiler.v2.Profile)
   private static final com.google.devtools.cloudprofiler.v2.Profile DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.devtools.cloudprofiler.v2.Profile();
   }
@@ -1828,16 +1679,16 @@ public static com.google.devtools.cloudprofiler.v2.Profile getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Profile parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Profile(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Profile parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Profile(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1852,4 +1703,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.devtools.cloudprofiler.v2.Profile getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java
similarity index 82%
rename from proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java
index b07800f..880b12d 100644
--- a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java
@@ -1,56 +1,33 @@
-/*
- * 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/devtools/cloudprofiler/v2/profiler.proto
 
 package com.google.devtools.cloudprofiler.v2;
 
-public interface ProfileOrBuilder
-    extends
+public interface ProfileOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.devtools.cloudprofiler.v2.Profile)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Output only. Opaque, server-assigned, unique ID for this profile.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Opaque, server-assigned, unique ID for this profile.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Type of profile.
    * For offline mode, this must be specified when creating the profile. For
@@ -58,13 +35,10 @@ public interface ProfileOrBuilder
    * 
* * .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @return The enum numeric value on the wire for profileType. */ int getProfileTypeValue(); /** - * - * *
    * Type of profile.
    * For offline mode, this must be specified when creating the profile. For
@@ -72,38 +46,29 @@ public interface ProfileOrBuilder
    * 
* * .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; - * * @return The profileType. */ com.google.devtools.cloudprofiler.v2.ProfileType getProfileType(); /** - * - * *
    * Deployment this profile corresponds to.
    * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 3; - * * @return Whether the deployment field is set. */ boolean hasDeployment(); /** - * - * *
    * Deployment this profile corresponds to.
    * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 3; - * * @return The deployment. */ com.google.devtools.cloudprofiler.v2.Deployment getDeployment(); /** - * - * *
    * Deployment this profile corresponds to.
    * 
@@ -113,8 +78,6 @@ public interface ProfileOrBuilder com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrBuilder(); /** - * - * *
    * Duration of the profiling session.
    * Input (for the offline mode) or output (for the online mode).
@@ -125,13 +88,10 @@ public interface ProfileOrBuilder
    * 
* * .google.protobuf.Duration duration = 4; - * * @return Whether the duration field is set. */ boolean hasDuration(); /** - * - * *
    * Duration of the profiling session.
    * Input (for the offline mode) or output (for the online mode).
@@ -142,13 +102,10 @@ public interface ProfileOrBuilder
    * 
* * .google.protobuf.Duration duration = 4; - * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** - * - * *
    * Duration of the profiling session.
    * Input (for the offline mode) or output (for the online mode).
@@ -163,22 +120,17 @@ public interface ProfileOrBuilder
   com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Input only. Profile bytes, as a gzip compressed serialized proto, the
    * format is https://github.com/google/pprof/blob/master/proto/profile.proto.
    * 
* * bytes profile_bytes = 5; - * * @return The profileBytes. */ com.google.protobuf.ByteString getProfileBytes(); /** - * - * *
    * Input only. Labels associated to this specific profile. These labels will
    * get merged with the deployment labels for the final data set.  See
@@ -189,8 +141,6 @@ public interface ProfileOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Input only. Labels associated to this specific profile. These labels will
    * get merged with the deployment labels for the final data set.  See
@@ -199,13 +149,15 @@ public interface ProfileOrBuilder
    *
    * map<string, string> labels = 6;
    */
-  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();
   /**
-   *
-   *
    * 
    * Input only. Labels associated to this specific profile. These labels will
    * get merged with the deployment labels for the final data set.  See
@@ -214,10 +166,9 @@ public interface ProfileOrBuilder
    *
    * map<string, string> labels = 6;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Input only. Labels associated to this specific profile. These labels will
    * get merged with the deployment labels for the final data set.  See
@@ -228,13 +179,11 @@ public interface ProfileOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Input only. Labels associated to this specific profile. These labels will
    * get merged with the deployment labels for the final data set.  See
@@ -243,5 +192,7 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 6;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java
similarity index 75%
rename from proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java
rename to owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java
index 13f756b..1884c78 100644
--- a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java
+++ b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java
@@ -1,26 +1,9 @@
-/*
- * 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/devtools/cloudprofiler/v2/profiler.proto
 
 package com.google.devtools.cloudprofiler.v2;
 
 /**
- *
- *
  * 
  * ProfileType is type of profiling data.
  * NOTE: the enumeration member names are used (in lowercase) as unique string
@@ -29,10 +12,9 @@
  *
  * Protobuf enum {@code google.devtools.cloudprofiler.v2.ProfileType}
  */
-public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum {
+public enum ProfileType
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Unspecified profile type.
    * 
@@ -41,8 +23,6 @@ public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum { */ PROFILE_TYPE_UNSPECIFIED(0), /** - * - * *
    * Thread CPU time sampling.
    * 
@@ -51,8 +31,6 @@ public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum { */ CPU(1), /** - * - * *
    * Wallclock time sampling. More expensive as stops all threads.
    * 
@@ -61,8 +39,6 @@ public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum { */ WALL(2), /** - * - * *
    * In-use heap profile. Represents a snapshot of the allocations that are
    * live at the time of the profiling.
@@ -72,8 +48,6 @@ public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum {
    */
   HEAP(3),
   /**
-   *
-   *
    * 
    * Single-shot collection of all thread stacks.
    * 
@@ -82,8 +56,6 @@ public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum { */ THREADS(4), /** - * - * *
    * Synchronization contention profile.
    * 
@@ -92,8 +64,6 @@ public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum { */ CONTENTION(5), /** - * - * *
    * Peak heap profile.
    * 
@@ -102,8 +72,6 @@ public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum { */ PEAK_HEAP(6), /** - * - * *
    * Heap allocation profile. It represents the aggregation of all allocations
    * made over the duration of the profile. All allocations are included,
@@ -120,8 +88,6 @@ public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum {
   ;
 
   /**
-   *
-   *
    * 
    * Unspecified profile type.
    * 
@@ -130,8 +96,6 @@ public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROFILE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Thread CPU time sampling.
    * 
@@ -140,8 +104,6 @@ public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CPU_VALUE = 1; /** - * - * *
    * Wallclock time sampling. More expensive as stops all threads.
    * 
@@ -150,8 +112,6 @@ public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WALL_VALUE = 2; /** - * - * *
    * In-use heap profile. Represents a snapshot of the allocations that are
    * live at the time of the profiling.
@@ -161,8 +121,6 @@ public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int HEAP_VALUE = 3;
   /**
-   *
-   *
    * 
    * Single-shot collection of all thread stacks.
    * 
@@ -171,8 +129,6 @@ public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int THREADS_VALUE = 4; /** - * - * *
    * Synchronization contention profile.
    * 
@@ -181,8 +137,6 @@ public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTENTION_VALUE = 5; /** - * - * *
    * Peak heap profile.
    * 
@@ -191,8 +145,6 @@ public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PEAK_HEAP_VALUE = 6; /** - * - * *
    * Heap allocation profile. It represents the aggregation of all allocations
    * made over the duration of the profile. All allocations are included,
@@ -206,6 +158,7 @@ public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int HEAP_ALLOC_VALUE = 7;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -230,59 +183,54 @@ public static ProfileType valueOf(int value) {
    */
   public static ProfileType forNumber(int value) {
     switch (value) {
-      case 0:
-        return PROFILE_TYPE_UNSPECIFIED;
-      case 1:
-        return CPU;
-      case 2:
-        return WALL;
-      case 3:
-        return HEAP;
-      case 4:
-        return THREADS;
-      case 5:
-        return CONTENTION;
-      case 6:
-        return PEAK_HEAP;
-      case 7:
-        return HEAP_ALLOC;
-      default:
-        return null;
+      case 0: return PROFILE_TYPE_UNSPECIFIED;
+      case 1: return CPU;
+      case 2: return WALL;
+      case 3: return HEAP;
+      case 4: return THREADS;
+      case 5: return CONTENTION;
+      case 6: return PEAK_HEAP;
+      case 7: return HEAP_ALLOC;
+      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 internalValueMap =
-      new com.google.protobuf.Internal.EnumLiteMap() {
-        public ProfileType findValueByNumber(int number) {
-          return ProfileType.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      ProfileType> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public ProfileType findValueByNumber(int number) {
+            return ProfileType.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.devtools.cloudprofiler.v2.ProfilerProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final ProfileType[] VALUES = values();
 
-  public static ProfileType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static ProfileType 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;
@@ -298,3 +246,4 @@ private ProfileType(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.devtools.cloudprofiler.v2.ProfileType)
 }
+
diff --git a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java
new file mode 100644
index 0000000..078a742
--- /dev/null
+++ b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java
@@ -0,0 +1,182 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/devtools/cloudprofiler/v2/profiler.proto
+
+package com.google.devtools.cloudprofiler.v2;
+
+public final class ProfilerProto {
+  private ProfilerProto() {}
+  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_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_devtools_cloudprofiler_v2_Profile_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_devtools_cloudprofiler_v2_Deployment_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_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/devtools/cloudprofiler/v2/profi" +
+      "ler.proto\022 google.devtools.cloudprofiler" +
+      ".v2\032\034google/api/annotations.proto\032\036googl" +
+      "e/protobuf/duration.proto\032 google/protob" +
+      "uf/field_mask.proto\032\027google/api/client.p" +
+      "roto\"\255\001\n\024CreateProfileRequest\022\016\n\006parent\030" +
+      "\004 \001(\t\022@\n\ndeployment\030\001 \001(\0132,.google.devto" +
+      "ols.cloudprofiler.v2.Deployment\022C\n\014profi" +
+      "le_type\030\002 \003(\0162-.google.devtools.cloudpro" +
+      "filer.v2.ProfileType\"i\n\033CreateOfflinePro" +
+      "fileRequest\022\016\n\006parent\030\001 \001(\t\022:\n\007profile\030\002" +
+      " \001(\0132).google.devtools.cloudprofiler.v2." +
+      "Profile\"\203\001\n\024UpdateProfileRequest\022:\n\007prof" +
+      "ile\030\001 \001(\0132).google.devtools.cloudprofile" +
+      "r.v2.Profile\022/\n\013update_mask\030\002 \001(\0132\032.goog" +
+      "le.protobuf.FieldMask\"\330\002\n\007Profile\022\014\n\004nam" +
+      "e\030\001 \001(\t\022C\n\014profile_type\030\002 \001(\0162-.google.d" +
+      "evtools.cloudprofiler.v2.ProfileType\022@\n\n" +
+      "deployment\030\003 \001(\0132,.google.devtools.cloud" +
+      "profiler.v2.Deployment\022+\n\010duration\030\004 \001(\013" +
+      "2\031.google.protobuf.Duration\022\025\n\rprofile_b" +
+      "ytes\030\005 \001(\014\022E\n\006labels\030\006 \003(\01325.google.devt" +
+      "ools.cloudprofiler.v2.Profile.LabelsEntr" +
+      "y\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" +
+      " \001(\t:\0028\001\"\251\001\n\nDeployment\022\022\n\nproject_id\030\001 " +
+      "\001(\t\022\016\n\006target\030\002 \001(\t\022H\n\006labels\030\003 \003(\01328.go" +
+      "ogle.devtools.cloudprofiler.v2.Deploymen" +
+      "t.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" +
+      "\t\022\r\n\005value\030\002 \001(\t:\0028\001*\204\001\n\013ProfileType\022\034\n\030" +
+      "PROFILE_TYPE_UNSPECIFIED\020\000\022\007\n\003CPU\020\001\022\010\n\004W" +
+      "ALL\020\002\022\010\n\004HEAP\020\003\022\013\n\007THREADS\020\004\022\016\n\nCONTENTI" +
+      "ON\020\005\022\r\n\tPEAK_HEAP\020\006\022\016\n\nHEAP_ALLOC\020\0072\327\005\n\017" +
+      "ProfilerService\022\237\001\n\rCreateProfile\0226.goog" +
+      "le.devtools.cloudprofiler.v2.CreateProfi" +
+      "leRequest\032).google.devtools.cloudprofile" +
+      "r.v2.Profile\"+\202\323\344\223\002%\" /v2/{parent=projec" +
+      "ts/*}/profiles:\001*\022\301\001\n\024CreateOfflineProfi" +
+      "le\022=.google.devtools.cloudprofiler.v2.Cr" +
+      "eateOfflineProfileRequest\032).google.devto" +
+      "ols.cloudprofiler.v2.Profile\"?\202\323\344\223\0029\"./v" +
+      "2/{parent=projects/*}/profiles:createOff" +
+      "line:\007profile\022\255\001\n\rUpdateProfile\0226.google" +
+      ".devtools.cloudprofiler.v2.UpdateProfile" +
+      "Request\032).google.devtools.cloudprofiler." +
+      "v2.Profile\"9\202\323\344\223\00232(/v2/{profile.name=pr" +
+      "ojects/*/profiles/*}:\007profile\032\255\001\312A\034cloud" +
+      "profiler.googleapis.com\322A\212\001https://www.g" +
+      "oogleapis.com/auth/cloud-platform,https:" +
+      "//www.googleapis.com/auth/monitoring,htt" +
+      "ps://www.googleapis.com/auth/monitoring." +
+      "writeB\332\001\n$com.google.devtools.cloudprofi" +
+      "ler.v2B\rProfilerProtoP\001ZMgoogle.golang.o" +
+      "rg/genproto/googleapis/devtools/cloudpro" +
+      "filer/v2;cloudprofiler\252\002\030Google.Cloud.Pr" +
+      "ofiler.V2\312\002\030Google\\Cloud\\Profiler\\V2\352\002\033G" +
+      "oogle::Cloud::Profiler::V2b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.AnnotationsProto.getDescriptor(),
+          com.google.protobuf.DurationProto.getDescriptor(),
+          com.google.protobuf.FieldMaskProto.getDescriptor(),
+          com.google.api.ClientProto.getDescriptor(),
+        });
+    internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor,
+        new java.lang.String[] { "Parent", "Deployment", "ProfileType", });
+    internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor,
+        new java.lang.String[] { "Parent", "Profile", });
+    internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor,
+        new java.lang.String[] { "Profile", "UpdateMask", });
+    internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_devtools_cloudprofiler_v2_Profile_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor,
+        new java.lang.String[] { "Name", "ProfileType", "Deployment", "Duration", "ProfileBytes", "Labels", });
+    internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_descriptor =
+      internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor.getNestedTypes().get(0);
+    internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_devtools_cloudprofiler_v2_Deployment_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor,
+        new java.lang.String[] { "ProjectId", "Target", "Labels", });
+    internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_descriptor =
+      internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor.getNestedTypes().get(0);
+    internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.protobuf.DurationProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java
similarity index 71%
rename from proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java
index a723ea4..95de86d 100644
--- a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java
@@ -1,55 +1,39 @@
-/*
- * 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/devtools/cloudprofiler/v2/profiler.proto
 
 package com.google.devtools.cloudprofiler.v2;
 
 /**
- *
- *
  * 
  * UpdateProfileRequest contains the profile to update.
  * 
* * Protobuf type {@code google.devtools.cloudprofiler.v2.UpdateProfileRequest} */ -public final class UpdateProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.devtools.cloudprofiler.v2.UpdateProfileRequest) UpdateProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateProfileRequest.newBuilder() to construct. private UpdateProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateProfileRequest() {} + private UpdateProfileRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateProfileRequest( case 0: done = true; break; - case 10: - { - com.google.devtools.cloudprofiler.v2.Profile.Builder subBuilder = null; - if (profile_ != null) { - subBuilder = profile_.toBuilder(); - } - profile_ = - input.readMessage( - com.google.devtools.cloudprofiler.v2.Profile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(profile_); - profile_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.devtools.cloudprofiler.v2.Profile.Builder subBuilder = null; + if (profile_ != null) { + subBuilder = profile_.toBuilder(); + } + profile_ = input.readMessage(com.google.devtools.cloudprofiler.v2.Profile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(profile_); + profile_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,39 +92,34 @@ private UpdateProfileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto - .internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto - .internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_fieldAccessorTable + return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.class, - com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.Builder.class); + com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.class, com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.Builder.class); } public static final int PROFILE_FIELD_NUMBER = 1; private com.google.devtools.cloudprofiler.v2.Profile profile_; /** - * - * *
    * Profile to update
    * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 1; - * * @return Whether the profile field is set. */ @java.lang.Override @@ -153,25 +127,18 @@ public boolean hasProfile() { return profile_ != null; } /** - * - * *
    * Profile to update
    * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 1; - * * @return The profile. */ @java.lang.Override public com.google.devtools.cloudprofiler.v2.Profile getProfile() { - return profile_ == null - ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() - : profile_; + return profile_ == null ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() : profile_; } /** - * - * *
    * Profile to update
    * 
@@ -186,8 +153,6 @@ public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Field mask used to specify the fields to be overwritten. Currently only
    * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -196,7 +161,6 @@ public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -204,8 +168,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Field mask used to specify the fields to be overwritten. Currently only
    * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -214,7 +176,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -222,8 +183,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Field mask used to specify the fields to be overwritten. Currently only
    * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -239,7 +198,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -251,7 +209,8 @@ 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 (profile_ != null) {
       output.writeMessage(1, getProfile());
     }
@@ -268,10 +227,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (profile_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProfile());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getProfile());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -281,21 +242,22 @@ 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.devtools.cloudprofiler.v2.UpdateProfileRequest)) {
       return super.equals(obj);
     }
-    com.google.devtools.cloudprofiler.v2.UpdateProfileRequest other =
-        (com.google.devtools.cloudprofiler.v2.UpdateProfileRequest) obj;
+    com.google.devtools.cloudprofiler.v2.UpdateProfileRequest other = (com.google.devtools.cloudprofiler.v2.UpdateProfileRequest) obj;
 
     if (hasProfile() != other.hasProfile()) return false;
     if (hasProfile()) {
-      if (!getProfile().equals(other.getProfile())) return false;
+      if (!getProfile()
+          .equals(other.getProfile())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -322,127 +284,117 @@ public int hashCode() {
   }
 
   public static com.google.devtools.cloudprofiler.v2.UpdateProfileRequest 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.devtools.cloudprofiler.v2.UpdateProfileRequest 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.devtools.cloudprofiler.v2.UpdateProfileRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.devtools.cloudprofiler.v2.UpdateProfileRequest 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.devtools.cloudprofiler.v2.UpdateProfileRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.devtools.cloudprofiler.v2.UpdateProfileRequest 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.devtools.cloudprofiler.v2.UpdateProfileRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.devtools.cloudprofiler.v2.UpdateProfileRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.devtools.cloudprofiler.v2.UpdateProfileRequest 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.devtools.cloudprofiler.v2.UpdateProfileRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.devtools.cloudprofiler.v2.UpdateProfileRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.devtools.cloudprofiler.v2.UpdateProfileRequest 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.devtools.cloudprofiler.v2.UpdateProfileRequest 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.devtools.cloudprofiler.v2.UpdateProfileRequest 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.devtools.cloudprofiler.v2.UpdateProfileRequest prototype) {
+  public static Builder newBuilder(com.google.devtools.cloudprofiler.v2.UpdateProfileRequest 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;
   }
   /**
-   *
-   *
    * 
    * UpdateProfileRequest contains the profile to update.
    * 
* * Protobuf type {@code google.devtools.cloudprofiler.v2.UpdateProfileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.devtools.cloudprofiler.v2.UpdateProfileRequest) com.google.devtools.cloudprofiler.v2.UpdateProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto - .internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto - .internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_fieldAccessorTable + return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.class, - com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.Builder.class); + com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.class, com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.Builder.class); } // Construct using com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.newBuilder() @@ -450,15 +402,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +431,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto - .internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor; } @java.lang.Override @@ -499,8 +452,7 @@ public com.google.devtools.cloudprofiler.v2.UpdateProfileRequest build() { @java.lang.Override public com.google.devtools.cloudprofiler.v2.UpdateProfileRequest buildPartial() { - com.google.devtools.cloudprofiler.v2.UpdateProfileRequest result = - new com.google.devtools.cloudprofiler.v2.UpdateProfileRequest(this); + com.google.devtools.cloudprofiler.v2.UpdateProfileRequest result = new com.google.devtools.cloudprofiler.v2.UpdateProfileRequest(this); if (profileBuilder_ == null) { result.profile_ = profile_; } else { @@ -519,39 +471,38 @@ public com.google.devtools.cloudprofiler.v2.UpdateProfileRequest 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.devtools.cloudprofiler.v2.UpdateProfileRequest) { - return mergeFrom((com.google.devtools.cloudprofiler.v2.UpdateProfileRequest) other); + return mergeFrom((com.google.devtools.cloudprofiler.v2.UpdateProfileRequest)other); } else { super.mergeFrom(other); return this; @@ -559,8 +510,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.devtools.cloudprofiler.v2.UpdateProfileRequest other) { - if (other == com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.getDefaultInstance()) - return this; + if (other == com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.getDefaultInstance()) return this; if (other.hasProfile()) { mergeProfile(other.getProfile()); } @@ -586,8 +536,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.devtools.cloudprofiler.v2.UpdateProfileRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.devtools.cloudprofiler.v2.UpdateProfileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -599,47 +548,34 @@ public Builder mergeFrom( private com.google.devtools.cloudprofiler.v2.Profile profile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Profile, - com.google.devtools.cloudprofiler.v2.Profile.Builder, - com.google.devtools.cloudprofiler.v2.ProfileOrBuilder> - profileBuilder_; + com.google.devtools.cloudprofiler.v2.Profile, com.google.devtools.cloudprofiler.v2.Profile.Builder, com.google.devtools.cloudprofiler.v2.ProfileOrBuilder> profileBuilder_; /** - * - * *
      * Profile to update
      * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 1; - * * @return Whether the profile field is set. */ public boolean hasProfile() { return profileBuilder_ != null || profile_ != null; } /** - * - * *
      * Profile to update
      * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 1; - * * @return The profile. */ public com.google.devtools.cloudprofiler.v2.Profile getProfile() { if (profileBuilder_ == null) { - return profile_ == null - ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() - : profile_; + return profile_ == null ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() : profile_; } else { return profileBuilder_.getMessage(); } } /** - * - * *
      * Profile to update
      * 
@@ -660,8 +596,6 @@ public Builder setProfile(com.google.devtools.cloudprofiler.v2.Profile value) { return this; } /** - * - * *
      * Profile to update
      * 
@@ -680,8 +614,6 @@ public Builder setProfile( return this; } /** - * - * *
      * Profile to update
      * 
@@ -692,9 +624,7 @@ public Builder mergeProfile(com.google.devtools.cloudprofiler.v2.Profile value) if (profileBuilder_ == null) { if (profile_ != null) { profile_ = - com.google.devtools.cloudprofiler.v2.Profile.newBuilder(profile_) - .mergeFrom(value) - .buildPartial(); + com.google.devtools.cloudprofiler.v2.Profile.newBuilder(profile_).mergeFrom(value).buildPartial(); } else { profile_ = value; } @@ -706,8 +636,6 @@ public Builder mergeProfile(com.google.devtools.cloudprofiler.v2.Profile value) return this; } /** - * - * *
      * Profile to update
      * 
@@ -726,8 +654,6 @@ public Builder clearProfile() { return this; } /** - * - * *
      * Profile to update
      * 
@@ -735,13 +661,11 @@ public Builder clearProfile() { * .google.devtools.cloudprofiler.v2.Profile profile = 1; */ public com.google.devtools.cloudprofiler.v2.Profile.Builder getProfileBuilder() { - + onChanged(); return getProfileFieldBuilder().getBuilder(); } /** - * - * *
      * Profile to update
      * 
@@ -752,14 +676,11 @@ public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder if (profileBuilder_ != null) { return profileBuilder_.getMessageOrBuilder(); } else { - return profile_ == null - ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() - : profile_; + return profile_ == null ? + com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() : profile_; } } /** - * - * *
      * Profile to update
      * 
@@ -767,17 +688,14 @@ public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder * .google.devtools.cloudprofiler.v2.Profile profile = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Profile, - com.google.devtools.cloudprofiler.v2.Profile.Builder, - com.google.devtools.cloudprofiler.v2.ProfileOrBuilder> + com.google.devtools.cloudprofiler.v2.Profile, com.google.devtools.cloudprofiler.v2.Profile.Builder, com.google.devtools.cloudprofiler.v2.ProfileOrBuilder> getProfileFieldBuilder() { if (profileBuilder_ == null) { - profileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Profile, - com.google.devtools.cloudprofiler.v2.Profile.Builder, - com.google.devtools.cloudprofiler.v2.ProfileOrBuilder>( - getProfile(), getParentForChildren(), isClean()); + profileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.cloudprofiler.v2.Profile, com.google.devtools.cloudprofiler.v2.Profile.Builder, com.google.devtools.cloudprofiler.v2.ProfileOrBuilder>( + getProfile(), + getParentForChildren(), + isClean()); profile_ = null; } return profileBuilder_; @@ -785,13 +703,8 @@ public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Field mask used to specify the fields to be overwritten. Currently only
      * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -800,15 +713,12 @@ public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Field mask used to specify the fields to be overwritten. Currently only
      * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -817,21 +727,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Field mask used to specify the fields to be overwritten. Currently only
      * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -855,8 +760,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask used to specify the fields to be overwritten. Currently only
      * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -866,7 +769,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -877,8 +781,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask used to specify the fields to be overwritten. Currently only
      * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -892,7 +794,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -904,8 +806,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask used to specify the fields to be overwritten. Currently only
      * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -927,8 +827,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask used to specify the fields to be overwritten. Currently only
      * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -939,13 +837,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Field mask used to specify the fields to be overwritten. Currently only
      * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -959,14 +855,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * Field mask used to specify the fields to be overwritten. Currently only
      * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -977,24 +870,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @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);
     }
 
@@ -1004,12 +894,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.devtools.cloudprofiler.v2.UpdateProfileRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.devtools.cloudprofiler.v2.UpdateProfileRequest)
   private static final com.google.devtools.cloudprofiler.v2.UpdateProfileRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.devtools.cloudprofiler.v2.UpdateProfileRequest();
   }
@@ -1018,16 +908,16 @@ public static com.google.devtools.cloudprofiler.v2.UpdateProfileRequest getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateProfileRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateProfileRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateProfileRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateProfileRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1042,4 +932,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.devtools.cloudprofiler.v2.UpdateProfileRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java
similarity index 75%
rename from proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java
index 54fa1f2..781d7b6 100644
--- a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java
@@ -1,55 +1,31 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/devtools/cloudprofiler/v2/profiler.proto
 
 package com.google.devtools.cloudprofiler.v2;
 
-public interface UpdateProfileRequestOrBuilder
-    extends
+public interface UpdateProfileRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.devtools.cloudprofiler.v2.UpdateProfileRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Profile to update
    * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 1; - * * @return Whether the profile field is set. */ boolean hasProfile(); /** - * - * *
    * Profile to update
    * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 1; - * * @return The profile. */ com.google.devtools.cloudprofiler.v2.Profile getProfile(); /** - * - * *
    * Profile to update
    * 
@@ -59,8 +35,6 @@ public interface UpdateProfileRequestOrBuilder com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder(); /** - * - * *
    * Field mask used to specify the fields to be overwritten. Currently only
    * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -69,13 +43,10 @@ public interface UpdateProfileRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Field mask used to specify the fields to be overwritten. Currently only
    * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -84,13 +55,10 @@ public interface UpdateProfileRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Field mask used to specify the fields to be overwritten. Currently only
    * profile_bytes and labels fields are supported by UpdateProfile, so only
diff --git a/proto-google-cloud-profiler-v2/src/main/proto/google/devtools/cloudprofiler/v2/profiler.proto b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/proto/google/devtools/cloudprofiler/v2/profiler.proto
similarity index 100%
rename from proto-google-cloud-profiler-v2/src/main/proto/google/devtools/cloudprofiler/v2/profiler.proto
rename to owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/proto/google/devtools/cloudprofiler/v2/profiler.proto
diff --git a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java
deleted file mode 100644
index 7c435ce..0000000
--- a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java
+++ /dev/null
@@ -1,205 +0,0 @@
-/*
- * 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/devtools/cloudprofiler/v2/profiler.proto
-
-package com.google.devtools.cloudprofiler.v2;
-
-public final class ProfilerProto {
-  private ProfilerProto() {}
-
-  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_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_devtools_cloudprofiler_v2_Profile_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_devtools_cloudprofiler_v2_Deployment_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_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/devtools/cloudprofiler/v2/profi"
-          + "ler.proto\022 google.devtools.cloudprofiler"
-          + ".v2\032\034google/api/annotations.proto\032\036googl"
-          + "e/protobuf/duration.proto\032 google/protob"
-          + "uf/field_mask.proto\032\027google/api/client.p"
-          + "roto\"\255\001\n\024CreateProfileRequest\022\016\n\006parent\030"
-          + "\004 \001(\t\022@\n\ndeployment\030\001 \001(\0132,.google.devto"
-          + "ols.cloudprofiler.v2.Deployment\022C\n\014profi"
-          + "le_type\030\002 \003(\0162-.google.devtools.cloudpro"
-          + "filer.v2.ProfileType\"i\n\033CreateOfflinePro"
-          + "fileRequest\022\016\n\006parent\030\001 \001(\t\022:\n\007profile\030\002"
-          + " \001(\0132).google.devtools.cloudprofiler.v2."
-          + "Profile\"\203\001\n\024UpdateProfileRequest\022:\n\007prof"
-          + "ile\030\001 \001(\0132).google.devtools.cloudprofile"
-          + "r.v2.Profile\022/\n\013update_mask\030\002 \001(\0132\032.goog"
-          + "le.protobuf.FieldMask\"\330\002\n\007Profile\022\014\n\004nam"
-          + "e\030\001 \001(\t\022C\n\014profile_type\030\002 \001(\0162-.google.d"
-          + "evtools.cloudprofiler.v2.ProfileType\022@\n\n"
-          + "deployment\030\003 \001(\0132,.google.devtools.cloud"
-          + "profiler.v2.Deployment\022+\n\010duration\030\004 \001(\013"
-          + "2\031.google.protobuf.Duration\022\025\n\rprofile_b"
-          + "ytes\030\005 \001(\014\022E\n\006labels\030\006 \003(\01325.google.devt"
-          + "ools.cloudprofiler.v2.Profile.LabelsEntr"
-          + "y\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002"
-          + " \001(\t:\0028\001\"\251\001\n\nDeployment\022\022\n\nproject_id\030\001 "
-          + "\001(\t\022\016\n\006target\030\002 \001(\t\022H\n\006labels\030\003 \003(\01328.go"
-          + "ogle.devtools.cloudprofiler.v2.Deploymen"
-          + "t.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001("
-          + "\t\022\r\n\005value\030\002 \001(\t:\0028\001*\204\001\n\013ProfileType\022\034\n\030"
-          + "PROFILE_TYPE_UNSPECIFIED\020\000\022\007\n\003CPU\020\001\022\010\n\004W"
-          + "ALL\020\002\022\010\n\004HEAP\020\003\022\013\n\007THREADS\020\004\022\016\n\nCONTENTI"
-          + "ON\020\005\022\r\n\tPEAK_HEAP\020\006\022\016\n\nHEAP_ALLOC\020\0072\327\005\n\017"
-          + "ProfilerService\022\237\001\n\rCreateProfile\0226.goog"
-          + "le.devtools.cloudprofiler.v2.CreateProfi"
-          + "leRequest\032).google.devtools.cloudprofile"
-          + "r.v2.Profile\"+\202\323\344\223\002%\" /v2/{parent=projec"
-          + "ts/*}/profiles:\001*\022\301\001\n\024CreateOfflineProfi"
-          + "le\022=.google.devtools.cloudprofiler.v2.Cr"
-          + "eateOfflineProfileRequest\032).google.devto"
-          + "ols.cloudprofiler.v2.Profile\"?\202\323\344\223\0029\"./v"
-          + "2/{parent=projects/*}/profiles:createOff"
-          + "line:\007profile\022\255\001\n\rUpdateProfile\0226.google"
-          + ".devtools.cloudprofiler.v2.UpdateProfile"
-          + "Request\032).google.devtools.cloudprofiler."
-          + "v2.Profile\"9\202\323\344\223\00232(/v2/{profile.name=pr"
-          + "ojects/*/profiles/*}:\007profile\032\255\001\312A\034cloud"
-          + "profiler.googleapis.com\322A\212\001https://www.g"
-          + "oogleapis.com/auth/cloud-platform,https:"
-          + "//www.googleapis.com/auth/monitoring,htt"
-          + "ps://www.googleapis.com/auth/monitoring."
-          + "writeB\332\001\n$com.google.devtools.cloudprofi"
-          + "ler.v2B\rProfilerProtoP\001ZMgoogle.golang.o"
-          + "rg/genproto/googleapis/devtools/cloudpro"
-          + "filer/v2;cloudprofiler\252\002\030Google.Cloud.Pr"
-          + "ofiler.V2\312\002\030Google\\Cloud\\Profiler\\V2\352\002\033G"
-          + "oogle::Cloud::Profiler::V2b\006proto3"
-    };
-    descriptor =
-        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
-            descriptorData,
-            new com.google.protobuf.Descriptors.FileDescriptor[] {
-              com.google.api.AnnotationsProto.getDescriptor(),
-              com.google.protobuf.DurationProto.getDescriptor(),
-              com.google.protobuf.FieldMaskProto.getDescriptor(),
-              com.google.api.ClientProto.getDescriptor(),
-            });
-    internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor =
-        getDescriptor().getMessageTypes().get(0);
-    internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor,
-            new java.lang.String[] {
-              "Parent", "Deployment", "ProfileType",
-            });
-    internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor =
-        getDescriptor().getMessageTypes().get(1);
-    internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor,
-            new java.lang.String[] {
-              "Parent", "Profile",
-            });
-    internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor =
-        getDescriptor().getMessageTypes().get(2);
-    internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor,
-            new java.lang.String[] {
-              "Profile", "UpdateMask",
-            });
-    internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor =
-        getDescriptor().getMessageTypes().get(3);
-    internal_static_google_devtools_cloudprofiler_v2_Profile_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor,
-            new java.lang.String[] {
-              "Name", "ProfileType", "Deployment", "Duration", "ProfileBytes", "Labels",
-            });
-    internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_descriptor =
-        internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor.getNestedTypes().get(0);
-    internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_descriptor,
-            new java.lang.String[] {
-              "Key", "Value",
-            });
-    internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor =
-        getDescriptor().getMessageTypes().get(4);
-    internal_static_google_devtools_cloudprofiler_v2_Deployment_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor,
-            new java.lang.String[] {
-              "ProjectId", "Target", "Labels",
-            });
-    internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_descriptor =
-        internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor
-            .getNestedTypes()
-            .get(0);
-    internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_descriptor,
-            new java.lang.String[] {
-              "Key", "Value",
-            });
-    com.google.protobuf.ExtensionRegistry registry =
-        com.google.protobuf.ExtensionRegistry.newInstance();
-    registry.add(com.google.api.ClientProto.defaultHost);
-    registry.add(com.google.api.AnnotationsProto.http);
-    registry.add(com.google.api.ClientProto.oauthScopes);
-    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
-        descriptor, registry);
-    com.google.api.AnnotationsProto.getDescriptor();
-    com.google.protobuf.DurationProto.getDescriptor();
-    com.google.protobuf.FieldMaskProto.getDescriptor();
-    com.google.api.ClientProto.getDescriptor();
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}

From c069948a5d96a1f2cf79e319070b165d18ac82dd Mon Sep 17 00:00:00 2001
From: Owl Bot 
Date: Thu, 23 Jun 2022 02:17:07 +0000
Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?=
 =?UTF-8?q?st-processor?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---
 .../v2/ProfilerServiceClient.java             |  10 +-
 .../v2/ProfilerServiceSettings.java           |   8 +-
 .../cloudprofiler/v2/gapic_metadata.json      |   0
 .../cloudprofiler/v2/package-info.java        |   4 +-
 .../GrpcProfilerServiceCallableFactory.java   |   0
 .../v2/stub/GrpcProfilerServiceStub.java      |   1 -
 ...ttpJsonProfilerServiceCallableFactory.java |   0
 .../v2/stub/HttpJsonProfilerServiceStub.java  |   0
 .../v2/stub/ProfilerServiceStub.java          |   0
 .../v2/stub/ProfilerServiceStubSettings.java  |   7 +-
 .../cloudprofiler/v2/MockProfilerService.java |   0
 .../v2/MockProfilerServiceImpl.java           |   0
 .../v2/ProfilerServiceClientHttpJsonTest.java |   0
 .../v2/ProfilerServiceClientTest.java         |   0
 .../cloudprofiler/v2/ProfilerServiceGrpc.java | 439 +++++----
 .../cloudprofiler/v2/ProfilerProto.java       | 182 ----
 .../v2/CreateOfflineProfileRequest.java       | 433 +++++----
 .../CreateOfflineProfileRequestOrBuilder.java |  35 +-
 .../v2/CreateProfileRequest.java              | 546 ++++++-----
 .../v2/CreateProfileRequestOrBuilder.java     |  53 +-
 .../devtools/cloudprofiler/v2/Deployment.java | 645 +++++++------
 .../cloudprofiler/v2/DeploymentOrBuilder.java |  67 +-
 .../devtools/cloudprofiler/v2/Profile.java    | 853 ++++++++++--------
 .../cloudprofiler/v2/ProfileOrBuilder.java    |  83 +-
 .../cloudprofiler/v2/ProfileType.java         | 117 ++-
 .../cloudprofiler/v2/ProfilerProto.java       | 205 +++++
 .../v2/UpdateProfileRequest.java              | 432 +++++----
 .../v2/UpdateProfileRequestOrBuilder.java     |  34 +-
 .../devtools/cloudprofiler/v2/profiler.proto  |   0
 29 files changed, 2537 insertions(+), 1617 deletions(-)
 rename {owl-bot-staging/v2/google-cloud-profiler => google-cloud-profiler}/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java (97%)
 rename {owl-bot-staging/v2/google-cloud-profiler => google-cloud-profiler}/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java (96%)
 rename {owl-bot-staging/v2/google-cloud-profiler => google-cloud-profiler}/src/main/java/com/google/devtools/cloudprofiler/v2/gapic_metadata.json (100%)
 rename {owl-bot-staging/v2/google-cloud-profiler => google-cloud-profiler}/src/main/java/com/google/devtools/cloudprofiler/v2/package-info.java (91%)
 rename {owl-bot-staging/v2/google-cloud-profiler => google-cloud-profiler}/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceCallableFactory.java (100%)
 rename {owl-bot-staging/v2/google-cloud-profiler => google-cloud-profiler}/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java (99%)
 rename {owl-bot-staging/v2/google-cloud-profiler => google-cloud-profiler}/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceCallableFactory.java (100%)
 rename {owl-bot-staging/v2/google-cloud-profiler => google-cloud-profiler}/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceStub.java (100%)
 rename {owl-bot-staging/v2/google-cloud-profiler => google-cloud-profiler}/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStub.java (100%)
 rename {owl-bot-staging/v2/google-cloud-profiler => google-cloud-profiler}/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java (98%)
 rename {owl-bot-staging/v2/google-cloud-profiler => google-cloud-profiler}/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerService.java (100%)
 rename {owl-bot-staging/v2/google-cloud-profiler => google-cloud-profiler}/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerServiceImpl.java (100%)
 rename {owl-bot-staging/v2/google-cloud-profiler => google-cloud-profiler}/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientHttpJsonTest.java (100%)
 rename {owl-bot-staging/v2/google-cloud-profiler => google-cloud-profiler}/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientTest.java (100%)
 rename {owl-bot-staging/v2/grpc-google-cloud-profiler-v2 => grpc-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java (54%)
 delete mode 100644 owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java
 rename {owl-bot-staging/v2/proto-google-cloud-profiler-v2 => proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java (67%)
 rename {owl-bot-staging/v2/proto-google-cloud-profiler-v2 => proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java (63%)
 rename {owl-bot-staging/v2/proto-google-cloud-profiler-v2 => proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java (73%)
 rename {owl-bot-staging/v2/proto-google-cloud-profiler-v2 => proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java (76%)
 rename {owl-bot-staging/v2/proto-google-cloud-profiler-v2 => proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java (72%)
 rename {owl-bot-staging/v2/proto-google-cloud-profiler-v2 => proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java (83%)
 rename {owl-bot-staging/v2/proto-google-cloud-profiler-v2 => proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java (71%)
 rename {owl-bot-staging/v2/proto-google-cloud-profiler-v2 => proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java (82%)
 rename {owl-bot-staging/v2/proto-google-cloud-profiler-v2 => proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java (75%)
 create mode 100644 proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java
 rename {owl-bot-staging/v2/proto-google-cloud-profiler-v2 => proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java (71%)
 rename {owl-bot-staging/v2/proto-google-cloud-profiler-v2 => proto-google-cloud-profiler-v2}/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java (75%)
 rename {owl-bot-staging/v2/proto-google-cloud-profiler-v2 => proto-google-cloud-profiler-v2}/src/main/proto/google/devtools/cloudprofiler/v2/profiler.proto (100%)

diff --git a/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java b/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java
similarity index 97%
rename from owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java
rename to google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java
index 1a2eaea..fb07f73 100644
--- a/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java
+++ b/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java
@@ -32,8 +32,8 @@
  * 

General guidelines: * *

    - *
  • Profiles for a single deployment must be created in ascending time order. - *
  • Profiles can be created in either online or offline mode, see below. + *
  • Profiles for a single deployment must be created in ascending time order. + *
  • Profiles can be created in either online or offline mode, see below. *
* *

This class provides the ability to make remote calls to the backing service through method @@ -61,13 +61,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java b/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java similarity index 96% rename from owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java rename to google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java index 0394788..33f1b1e 100644 --- a/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java +++ b/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.devtools.cloudprofiler.v2.stub.ProfilerServiceStubSettings; @@ -40,10 +39,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (cloudprofiler.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (cloudprofiler.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/gapic_metadata.json b/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/gapic_metadata.json rename to google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/gapic_metadata.json diff --git a/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/package-info.java b/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/package-info.java similarity index 91% rename from owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/package-info.java rename to google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/package-info.java index 5cdd897..e3dea24 100644 --- a/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/package-info.java +++ b/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/package-info.java @@ -25,8 +25,8 @@ *

General guidelines: * *

    - *
  • Profiles for a single deployment must be created in ascending time order. - *
  • Profiles can be created in either online or offline mode, see below. + *
  • Profiles for a single deployment must be created in ascending time order. + *
  • Profiles can be created in either online or offline mode, see below. *
* *

Sample for ProfilerServiceClient: diff --git a/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceCallableFactory.java b/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceCallableFactory.java rename to google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceCallableFactory.java diff --git a/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java b/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java rename to google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java index 6a15598..2995173 100644 --- a/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java +++ b/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java @@ -31,7 +31,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceCallableFactory.java b/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceCallableFactory.java rename to google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceCallableFactory.java diff --git a/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceStub.java b/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceStub.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceStub.java rename to google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceStub.java diff --git a/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStub.java b/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStub.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStub.java rename to google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStub.java diff --git a/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java b/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java similarity index 98% rename from owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java rename to google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java index 9e982d3..f2ed96c 100644 --- a/owl-bot-staging/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java +++ b/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java @@ -54,10 +54,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (cloudprofiler.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (cloudprofiler.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerService.java b/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerService.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerService.java rename to google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerService.java diff --git a/owl-bot-staging/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerServiceImpl.java b/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerServiceImpl.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerServiceImpl.java rename to google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerServiceImpl.java diff --git a/owl-bot-staging/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientHttpJsonTest.java b/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientHttpJsonTest.java rename to google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientTest.java b/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientTest.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientTest.java rename to google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientTest.java diff --git a/owl-bot-staging/v2/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java b/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java similarity index 54% rename from owl-bot-staging/v2/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java rename to grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java index ec0f344..22d5b47 100644 --- a/owl-bot-staging/v2/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java +++ b/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.devtools.cloudprofiler.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *

  * Manage the collection of continuous profiling data provided by profiling
  * agents running in the cloud or by an offline provider of profiling data.
@@ -22,144 +39,191 @@ private ProfilerServiceGrpc() {}
   public static final String SERVICE_NAME = "google.devtools.cloudprofiler.v2.ProfilerService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getCreateProfileMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.devtools.cloudprofiler.v2.CreateProfileRequest,
+          com.google.devtools.cloudprofiler.v2.Profile>
+      getCreateProfileMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateProfile",
       requestType = com.google.devtools.cloudprofiler.v2.CreateProfileRequest.class,
       responseType = com.google.devtools.cloudprofiler.v2.Profile.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateProfileMethod() {
-    io.grpc.MethodDescriptor getCreateProfileMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.devtools.cloudprofiler.v2.CreateProfileRequest,
+          com.google.devtools.cloudprofiler.v2.Profile>
+      getCreateProfileMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.devtools.cloudprofiler.v2.CreateProfileRequest,
+            com.google.devtools.cloudprofiler.v2.Profile>
+        getCreateProfileMethod;
     if ((getCreateProfileMethod = ProfilerServiceGrpc.getCreateProfileMethod) == null) {
       synchronized (ProfilerServiceGrpc.class) {
         if ((getCreateProfileMethod = ProfilerServiceGrpc.getCreateProfileMethod) == null) {
-          ProfilerServiceGrpc.getCreateProfileMethod = getCreateProfileMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProfile"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.devtools.cloudprofiler.v2.CreateProfileRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance()))
-              .setSchemaDescriptor(new ProfilerServiceMethodDescriptorSupplier("CreateProfile"))
-              .build();
+          ProfilerServiceGrpc.getCreateProfileMethod =
+              getCreateProfileMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProfile"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.devtools.cloudprofiler.v2.CreateProfileRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProfilerServiceMethodDescriptorSupplier("CreateProfile"))
+                      .build();
         }
       }
     }
     return getCreateProfileMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getCreateOfflineProfileMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest,
+          com.google.devtools.cloudprofiler.v2.Profile>
+      getCreateOfflineProfileMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateOfflineProfile",
       requestType = com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.class,
       responseType = com.google.devtools.cloudprofiler.v2.Profile.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateOfflineProfileMethod() {
-    io.grpc.MethodDescriptor getCreateOfflineProfileMethod;
-    if ((getCreateOfflineProfileMethod = ProfilerServiceGrpc.getCreateOfflineProfileMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest,
+          com.google.devtools.cloudprofiler.v2.Profile>
+      getCreateOfflineProfileMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest,
+            com.google.devtools.cloudprofiler.v2.Profile>
+        getCreateOfflineProfileMethod;
+    if ((getCreateOfflineProfileMethod = ProfilerServiceGrpc.getCreateOfflineProfileMethod)
+        == null) {
       synchronized (ProfilerServiceGrpc.class) {
-        if ((getCreateOfflineProfileMethod = ProfilerServiceGrpc.getCreateOfflineProfileMethod) == null) {
-          ProfilerServiceGrpc.getCreateOfflineProfileMethod = getCreateOfflineProfileMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateOfflineProfile"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance()))
-              .setSchemaDescriptor(new ProfilerServiceMethodDescriptorSupplier("CreateOfflineProfile"))
-              .build();
+        if ((getCreateOfflineProfileMethod = ProfilerServiceGrpc.getCreateOfflineProfileMethod)
+            == null) {
+          ProfilerServiceGrpc.getCreateOfflineProfileMethod =
+              getCreateOfflineProfileMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "CreateOfflineProfile"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProfilerServiceMethodDescriptorSupplier("CreateOfflineProfile"))
+                      .build();
         }
       }
     }
     return getCreateOfflineProfileMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateProfileMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.devtools.cloudprofiler.v2.UpdateProfileRequest,
+          com.google.devtools.cloudprofiler.v2.Profile>
+      getUpdateProfileMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateProfile",
       requestType = com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.class,
       responseType = com.google.devtools.cloudprofiler.v2.Profile.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateProfileMethod() {
-    io.grpc.MethodDescriptor getUpdateProfileMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.devtools.cloudprofiler.v2.UpdateProfileRequest,
+          com.google.devtools.cloudprofiler.v2.Profile>
+      getUpdateProfileMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.devtools.cloudprofiler.v2.UpdateProfileRequest,
+            com.google.devtools.cloudprofiler.v2.Profile>
+        getUpdateProfileMethod;
     if ((getUpdateProfileMethod = ProfilerServiceGrpc.getUpdateProfileMethod) == null) {
       synchronized (ProfilerServiceGrpc.class) {
         if ((getUpdateProfileMethod = ProfilerServiceGrpc.getUpdateProfileMethod) == null) {
-          ProfilerServiceGrpc.getUpdateProfileMethod = getUpdateProfileMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProfile"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance()))
-              .setSchemaDescriptor(new ProfilerServiceMethodDescriptorSupplier("UpdateProfile"))
-              .build();
+          ProfilerServiceGrpc.getUpdateProfileMethod =
+              getUpdateProfileMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProfile"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.devtools.cloudprofiler.v2.UpdateProfileRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProfilerServiceMethodDescriptorSupplier("UpdateProfile"))
+                      .build();
         }
       }
     }
     return getUpdateProfileMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static ProfilerServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ProfilerServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ProfilerServiceStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ProfilerServiceStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ProfilerServiceStub(channel, callOptions);
+          }
+        };
     return ProfilerServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ProfilerServiceBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static ProfilerServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ProfilerServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ProfilerServiceBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ProfilerServiceBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ProfilerServiceBlockingStub(channel, callOptions);
+          }
+        };
     return ProfilerServiceBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static ProfilerServiceFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static ProfilerServiceFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ProfilerServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ProfilerServiceFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ProfilerServiceFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ProfilerServiceFutureStub(channel, callOptions);
+          }
+        };
     return ProfilerServiceFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * Manage the collection of continuous profiling data provided by profiling
    * agents running in the cloud or by an offline provider of profiling data.
@@ -168,9 +232,11 @@ public ProfilerServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOp
    * * Profiles can be created in either online or offline mode, see below.
    * 
*/ - public static abstract class ProfilerServiceImplBase implements io.grpc.BindableService { + public abstract static class ProfilerServiceImplBase implements io.grpc.BindableService { /** + * + * *
      * CreateProfile creates a new profile resource in the online mode.
      * The server ensures that the new profiles are created at a constant rate per
@@ -185,24 +251,34 @@ public static abstract class ProfilerServiceImplBase implements io.grpc.Bindable
      * "google.rpc.retryinfo-bin".
      * 
*/ - public void createProfile(com.google.devtools.cloudprofiler.v2.CreateProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateProfileMethod(), responseObserver); + public void createProfile( + com.google.devtools.cloudprofiler.v2.CreateProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateProfileMethod(), responseObserver); } /** + * + * *
      * CreateOfflineProfile creates a new profile resource in the offline mode.
      * The client provides the profile to create along with the profile bytes, the
      * server records it.
      * 
*/ - public void createOfflineProfile(com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateOfflineProfileMethod(), responseObserver); + public void createOfflineProfile( + com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateOfflineProfileMethod(), responseObserver); } /** + * + * *
      * UpdateProfile updates the profile bytes and labels on the profile resource
      * created in the online mode. Updating the bytes for profiles created in the
@@ -210,39 +286,43 @@ public void createOfflineProfile(com.google.devtools.cloudprofiler.v2.CreateOffl
      * provided at the time of the profile creation.
      * 
*/ - public void updateProfile(com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateProfileMethod(), responseObserver); + public void updateProfile( + com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateProfileMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.devtools.cloudprofiler.v2.CreateProfileRequest, - com.google.devtools.cloudprofiler.v2.Profile>( - this, METHODID_CREATE_PROFILE))) + getCreateProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.cloudprofiler.v2.CreateProfileRequest, + com.google.devtools.cloudprofiler.v2.Profile>(this, METHODID_CREATE_PROFILE))) .addMethod( - getCreateOfflineProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest, - com.google.devtools.cloudprofiler.v2.Profile>( - this, METHODID_CREATE_OFFLINE_PROFILE))) + getCreateOfflineProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest, + com.google.devtools.cloudprofiler.v2.Profile>( + this, METHODID_CREATE_OFFLINE_PROFILE))) .addMethod( - getUpdateProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.devtools.cloudprofiler.v2.UpdateProfileRequest, - com.google.devtools.cloudprofiler.v2.Profile>( - this, METHODID_UPDATE_PROFILE))) + getUpdateProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.cloudprofiler.v2.UpdateProfileRequest, + com.google.devtools.cloudprofiler.v2.Profile>(this, METHODID_UPDATE_PROFILE))) .build(); } } /** + * + * *
    * Manage the collection of continuous profiling data provided by profiling
    * agents running in the cloud or by an offline provider of profiling data.
@@ -251,19 +331,20 @@ public void updateProfile(com.google.devtools.cloudprofiler.v2.UpdateProfileRequ
    * * Profiles can be created in either online or offline mode, see below.
    * 
*/ - public static final class ProfilerServiceStub extends io.grpc.stub.AbstractAsyncStub { - private ProfilerServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProfilerServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ProfilerServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ProfilerServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ProfilerServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProfilerServiceStub(channel, callOptions); } /** + * + * *
      * CreateProfile creates a new profile resource in the online mode.
      * The server ensures that the new profiles are created at a constant rate per
@@ -278,26 +359,38 @@ protected ProfilerServiceStub build(
      * "google.rpc.retryinfo-bin".
      * 
*/ - public void createProfile(com.google.devtools.cloudprofiler.v2.CreateProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createProfile( + com.google.devtools.cloudprofiler.v2.CreateProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateProfileMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateProfileMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * CreateOfflineProfile creates a new profile resource in the offline mode.
      * The client provides the profile to create along with the profile bytes, the
      * server records it.
      * 
*/ - public void createOfflineProfile(com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createOfflineProfile( + com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateOfflineProfileMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateOfflineProfileMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * UpdateProfile updates the profile bytes and labels on the profile resource
      * created in the online mode. Updating the bytes for profiles created in the
@@ -305,14 +398,20 @@ public void createOfflineProfile(com.google.devtools.cloudprofiler.v2.CreateOffl
      * provided at the time of the profile creation.
      * 
*/ - public void updateProfile(com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void updateProfile( + com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateProfileMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateProfileMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * Manage the collection of continuous profiling data provided by profiling
    * agents running in the cloud or by an offline provider of profiling data.
@@ -321,9 +420,9 @@ public void updateProfile(com.google.devtools.cloudprofiler.v2.UpdateProfileRequ
    * * Profiles can be created in either online or offline mode, see below.
    * 
*/ - public static final class ProfilerServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ProfilerServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProfilerServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ProfilerServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -334,6 +433,8 @@ protected ProfilerServiceBlockingStub build( } /** + * + * *
      * CreateProfile creates a new profile resource in the online mode.
      * The server ensures that the new profiles are created at a constant rate per
@@ -348,24 +449,30 @@ protected ProfilerServiceBlockingStub build(
      * "google.rpc.retryinfo-bin".
      * 
*/ - public com.google.devtools.cloudprofiler.v2.Profile createProfile(com.google.devtools.cloudprofiler.v2.CreateProfileRequest request) { + public com.google.devtools.cloudprofiler.v2.Profile createProfile( + com.google.devtools.cloudprofiler.v2.CreateProfileRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateProfileMethod(), getCallOptions(), request); } /** + * + * *
      * CreateOfflineProfile creates a new profile resource in the offline mode.
      * The client provides the profile to create along with the profile bytes, the
      * server records it.
      * 
*/ - public com.google.devtools.cloudprofiler.v2.Profile createOfflineProfile(com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request) { + public com.google.devtools.cloudprofiler.v2.Profile createOfflineProfile( + com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateOfflineProfileMethod(), getCallOptions(), request); } /** + * + * *
      * UpdateProfile updates the profile bytes and labels on the profile resource
      * created in the online mode. Updating the bytes for profiles created in the
@@ -373,13 +480,16 @@ public com.google.devtools.cloudprofiler.v2.Profile createOfflineProfile(com.goo
      * provided at the time of the profile creation.
      * 
*/ - public com.google.devtools.cloudprofiler.v2.Profile updateProfile(com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request) { + public com.google.devtools.cloudprofiler.v2.Profile updateProfile( + com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateProfileMethod(), getCallOptions(), request); } } /** + * + * *
    * Manage the collection of continuous profiling data provided by profiling
    * agents running in the cloud or by an offline provider of profiling data.
@@ -388,9 +498,9 @@ public com.google.devtools.cloudprofiler.v2.Profile updateProfile(com.google.dev
    * * Profiles can be created in either online or offline mode, see below.
    * 
*/ - public static final class ProfilerServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private ProfilerServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProfilerServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ProfilerServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -401,6 +511,8 @@ protected ProfilerServiceFutureStub build( } /** + * + * *
      * CreateProfile creates a new profile resource in the online mode.
      * The server ensures that the new profiles are created at a constant rate per
@@ -415,26 +527,33 @@ protected ProfilerServiceFutureStub build(
      * "google.rpc.retryinfo-bin".
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createProfile( - com.google.devtools.cloudprofiler.v2.CreateProfileRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.devtools.cloudprofiler.v2.Profile> + createProfile(com.google.devtools.cloudprofiler.v2.CreateProfileRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateProfileMethod(), getCallOptions()), request); } /** + * + * *
      * CreateOfflineProfile creates a new profile resource in the offline mode.
      * The client provides the profile to create along with the profile bytes, the
      * server records it.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createOfflineProfile( - com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.devtools.cloudprofiler.v2.Profile> + createOfflineProfile( + com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateOfflineProfileMethod(), getCallOptions()), request); } /** + * + * *
      * UpdateProfile updates the profile bytes and labels on the profile resource
      * created in the online mode. Updating the bytes for profiles created in the
@@ -442,8 +561,9 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateProfile(
-        com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.devtools.cloudprofiler.v2.Profile>
+        updateProfile(com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateProfileMethod(), getCallOptions()), request);
     }
@@ -453,11 +573,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final ProfilerServiceImplBase serviceImpl;
     private final int methodId;
 
@@ -471,16 +591,22 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_CREATE_PROFILE:
-          serviceImpl.createProfile((com.google.devtools.cloudprofiler.v2.CreateProfileRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.createProfile(
+              (com.google.devtools.cloudprofiler.v2.CreateProfileRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_CREATE_OFFLINE_PROFILE:
-          serviceImpl.createOfflineProfile((com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.createOfflineProfile(
+              (com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_UPDATE_PROFILE:
-          serviceImpl.updateProfile((com.google.devtools.cloudprofiler.v2.UpdateProfileRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.updateProfile(
+              (com.google.devtools.cloudprofiler.v2.UpdateProfileRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         default:
           throw new AssertionError();
@@ -498,8 +624,9 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  private static abstract class ProfilerServiceBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class ProfilerServiceBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     ProfilerServiceBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -541,12 +668,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (ProfilerServiceGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new ProfilerServiceFileDescriptorSupplier())
-              .addMethod(getCreateProfileMethod())
-              .addMethod(getCreateOfflineProfileMethod())
-              .addMethod(getUpdateProfileMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new ProfilerServiceFileDescriptorSupplier())
+                      .addMethod(getCreateProfileMethod())
+                      .addMethod(getCreateOfflineProfileMethod())
+                      .addMethod(getUpdateProfileMethod())
+                      .build();
         }
       }
     }
diff --git a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java b/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java
deleted file mode 100644
index 078a742..0000000
--- a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java
+++ /dev/null
@@ -1,182 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/devtools/cloudprofiler/v2/profiler.proto
-
-package com.google.devtools.cloudprofiler.v2;
-
-public final class ProfilerProto {
-  private ProfilerProto() {}
-  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_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_devtools_cloudprofiler_v2_Profile_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_devtools_cloudprofiler_v2_Deployment_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_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/devtools/cloudprofiler/v2/profi" +
-      "ler.proto\022 google.devtools.cloudprofiler" +
-      ".v2\032\034google/api/annotations.proto\032\036googl" +
-      "e/protobuf/duration.proto\032 google/protob" +
-      "uf/field_mask.proto\032\027google/api/client.p" +
-      "roto\"\255\001\n\024CreateProfileRequest\022\016\n\006parent\030" +
-      "\004 \001(\t\022@\n\ndeployment\030\001 \001(\0132,.google.devto" +
-      "ols.cloudprofiler.v2.Deployment\022C\n\014profi" +
-      "le_type\030\002 \003(\0162-.google.devtools.cloudpro" +
-      "filer.v2.ProfileType\"i\n\033CreateOfflinePro" +
-      "fileRequest\022\016\n\006parent\030\001 \001(\t\022:\n\007profile\030\002" +
-      " \001(\0132).google.devtools.cloudprofiler.v2." +
-      "Profile\"\203\001\n\024UpdateProfileRequest\022:\n\007prof" +
-      "ile\030\001 \001(\0132).google.devtools.cloudprofile" +
-      "r.v2.Profile\022/\n\013update_mask\030\002 \001(\0132\032.goog" +
-      "le.protobuf.FieldMask\"\330\002\n\007Profile\022\014\n\004nam" +
-      "e\030\001 \001(\t\022C\n\014profile_type\030\002 \001(\0162-.google.d" +
-      "evtools.cloudprofiler.v2.ProfileType\022@\n\n" +
-      "deployment\030\003 \001(\0132,.google.devtools.cloud" +
-      "profiler.v2.Deployment\022+\n\010duration\030\004 \001(\013" +
-      "2\031.google.protobuf.Duration\022\025\n\rprofile_b" +
-      "ytes\030\005 \001(\014\022E\n\006labels\030\006 \003(\01325.google.devt" +
-      "ools.cloudprofiler.v2.Profile.LabelsEntr" +
-      "y\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" +
-      " \001(\t:\0028\001\"\251\001\n\nDeployment\022\022\n\nproject_id\030\001 " +
-      "\001(\t\022\016\n\006target\030\002 \001(\t\022H\n\006labels\030\003 \003(\01328.go" +
-      "ogle.devtools.cloudprofiler.v2.Deploymen" +
-      "t.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" +
-      "\t\022\r\n\005value\030\002 \001(\t:\0028\001*\204\001\n\013ProfileType\022\034\n\030" +
-      "PROFILE_TYPE_UNSPECIFIED\020\000\022\007\n\003CPU\020\001\022\010\n\004W" +
-      "ALL\020\002\022\010\n\004HEAP\020\003\022\013\n\007THREADS\020\004\022\016\n\nCONTENTI" +
-      "ON\020\005\022\r\n\tPEAK_HEAP\020\006\022\016\n\nHEAP_ALLOC\020\0072\327\005\n\017" +
-      "ProfilerService\022\237\001\n\rCreateProfile\0226.goog" +
-      "le.devtools.cloudprofiler.v2.CreateProfi" +
-      "leRequest\032).google.devtools.cloudprofile" +
-      "r.v2.Profile\"+\202\323\344\223\002%\" /v2/{parent=projec" +
-      "ts/*}/profiles:\001*\022\301\001\n\024CreateOfflineProfi" +
-      "le\022=.google.devtools.cloudprofiler.v2.Cr" +
-      "eateOfflineProfileRequest\032).google.devto" +
-      "ols.cloudprofiler.v2.Profile\"?\202\323\344\223\0029\"./v" +
-      "2/{parent=projects/*}/profiles:createOff" +
-      "line:\007profile\022\255\001\n\rUpdateProfile\0226.google" +
-      ".devtools.cloudprofiler.v2.UpdateProfile" +
-      "Request\032).google.devtools.cloudprofiler." +
-      "v2.Profile\"9\202\323\344\223\00232(/v2/{profile.name=pr" +
-      "ojects/*/profiles/*}:\007profile\032\255\001\312A\034cloud" +
-      "profiler.googleapis.com\322A\212\001https://www.g" +
-      "oogleapis.com/auth/cloud-platform,https:" +
-      "//www.googleapis.com/auth/monitoring,htt" +
-      "ps://www.googleapis.com/auth/monitoring." +
-      "writeB\332\001\n$com.google.devtools.cloudprofi" +
-      "ler.v2B\rProfilerProtoP\001ZMgoogle.golang.o" +
-      "rg/genproto/googleapis/devtools/cloudpro" +
-      "filer/v2;cloudprofiler\252\002\030Google.Cloud.Pr" +
-      "ofiler.V2\312\002\030Google\\Cloud\\Profiler\\V2\352\002\033G" +
-      "oogle::Cloud::Profiler::V2b\006proto3"
-    };
-    descriptor = com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          com.google.api.AnnotationsProto.getDescriptor(),
-          com.google.protobuf.DurationProto.getDescriptor(),
-          com.google.protobuf.FieldMaskProto.getDescriptor(),
-          com.google.api.ClientProto.getDescriptor(),
-        });
-    internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor,
-        new java.lang.String[] { "Parent", "Deployment", "ProfileType", });
-    internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor,
-        new java.lang.String[] { "Parent", "Profile", });
-    internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor =
-      getDescriptor().getMessageTypes().get(2);
-    internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor,
-        new java.lang.String[] { "Profile", "UpdateMask", });
-    internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor =
-      getDescriptor().getMessageTypes().get(3);
-    internal_static_google_devtools_cloudprofiler_v2_Profile_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor,
-        new java.lang.String[] { "Name", "ProfileType", "Deployment", "Duration", "ProfileBytes", "Labels", });
-    internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_descriptor =
-      internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor.getNestedTypes().get(0);
-    internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_descriptor,
-        new java.lang.String[] { "Key", "Value", });
-    internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor =
-      getDescriptor().getMessageTypes().get(4);
-    internal_static_google_devtools_cloudprofiler_v2_Deployment_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor,
-        new java.lang.String[] { "ProjectId", "Target", "Labels", });
-    internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_descriptor =
-      internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor.getNestedTypes().get(0);
-    internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_descriptor,
-        new java.lang.String[] { "Key", "Value", });
-    com.google.protobuf.ExtensionRegistry registry =
-        com.google.protobuf.ExtensionRegistry.newInstance();
-    registry.add(com.google.api.ClientProto.defaultHost);
-    registry.add(com.google.api.AnnotationsProto.http);
-    registry.add(com.google.api.ClientProto.oauthScopes);
-    com.google.protobuf.Descriptors.FileDescriptor
-        .internalUpdateFileDescriptor(descriptor, registry);
-    com.google.api.AnnotationsProto.getDescriptor();
-    com.google.protobuf.DurationProto.getDescriptor();
-    com.google.protobuf.FieldMaskProto.getDescriptor();
-    com.google.api.ClientProto.getDescriptor();
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java
similarity index 67%
rename from owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java
rename to proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java
index 3d8ab3d..c586dfa 100644
--- a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java
+++ b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/devtools/cloudprofiler/v2/profiler.proto
 
 package com.google.devtools.cloudprofiler.v2;
 
 /**
+ *
+ *
  * 
  * CreateOfflineProfileRequest describes a profile resource offline creation
  * request. Profile field must be set.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest}
  */
-public final class CreateOfflineProfileRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateOfflineProfileRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest)
     CreateOfflineProfileRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateOfflineProfileRequest.newBuilder() to construct.
   private CreateOfflineProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateOfflineProfileRequest() {
     parent_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateOfflineProfileRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CreateOfflineProfileRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,32 +71,36 @@ private CreateOfflineProfileRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            parent_ = s;
-            break;
-          }
-          case 18: {
-            com.google.devtools.cloudprofiler.v2.Profile.Builder subBuilder = null;
-            if (profile_ != null) {
-              subBuilder = profile_.toBuilder();
+              parent_ = s;
+              break;
             }
-            profile_ = input.readMessage(com.google.devtools.cloudprofiler.v2.Profile.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(profile_);
-              profile_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.devtools.cloudprofiler.v2.Profile.Builder subBuilder = null;
+              if (profile_ != null) {
+                subBuilder = profile_.toBuilder();
+              }
+              profile_ =
+                  input.readMessage(
+                      com.google.devtools.cloudprofiler.v2.Profile.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(profile_);
+                profile_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -87,34 +108,39 @@ private CreateOfflineProfileRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.devtools.cloudprofiler.v2.ProfilerProto
+        .internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_fieldAccessorTable
+    return com.google.devtools.cloudprofiler.v2.ProfilerProto
+        .internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.class, com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.Builder.class);
+            com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.class,
+            com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
+   *
+   *
    * 
    * Parent project to create the profile in.
    * 
* * string parent = 1; + * * @return The parent. */ @java.lang.Override @@ -123,29 +149,29 @@ 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; } } /** + * + * *
    * Parent project to create the profile in.
    * 
* * string parent = 1; + * * @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 { @@ -156,11 +182,14 @@ public java.lang.String getParent() { public static final int PROFILE_FIELD_NUMBER = 2; private com.google.devtools.cloudprofiler.v2.Profile profile_; /** + * + * *
    * Contents of the profile to create.
    * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 2; + * * @return Whether the profile field is set. */ @java.lang.Override @@ -168,18 +197,25 @@ public boolean hasProfile() { return profile_ != null; } /** + * + * *
    * Contents of the profile to create.
    * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 2; + * * @return The profile. */ @java.lang.Override public com.google.devtools.cloudprofiler.v2.Profile getProfile() { - return profile_ == null ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() : profile_; + return profile_ == null + ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() + : profile_; } /** + * + * *
    * Contents of the profile to create.
    * 
@@ -192,6 +228,7 @@ public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,8 +240,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_); } @@ -224,8 +260,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (profile_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getProfile()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProfile()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -235,19 +270,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest)) { return super.equals(obj); } - com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest other = (com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) obj; + com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest other = + (com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasProfile() != other.hasProfile()) return false; if (hasProfile()) { - if (!getProfile() - .equals(other.getProfile())) return false; + if (!getProfile().equals(other.getProfile())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -272,96 +306,104 @@ public int hashCode() { } public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest 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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest 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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest 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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest 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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest 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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest 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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest 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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest 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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest prototype) { + + public static Builder newBuilder( + com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest 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; } /** + * + * *
    * CreateOfflineProfileRequest describes a profile resource offline creation
    * request. Profile field must be set.
@@ -369,21 +411,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest)
       com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.devtools.cloudprofiler.v2.ProfilerProto
+          .internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_fieldAccessorTable
+      return com.google.devtools.cloudprofiler.v2.ProfilerProto
+          .internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.class, com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.Builder.class);
+              com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.class,
+              com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.Builder.class);
     }
 
     // Construct using com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.newBuilder()
@@ -391,16 +435,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -416,13 +459,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.devtools.cloudprofiler.v2.ProfilerProto
+          .internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest getDefaultInstanceForType() {
+    public com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest
+        getDefaultInstanceForType() {
       return com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.getDefaultInstance();
     }
 
@@ -437,7 +481,8 @@ public com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest build()
 
     @java.lang.Override
     public com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest buildPartial() {
-      com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest result = new com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest(this);
+      com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest result =
+          new com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest(this);
       result.parent_ = parent_;
       if (profileBuilder_ == null) {
         result.profile_ = profile_;
@@ -452,46 +497,50 @@ public com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest buildPar
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        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.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) {
-        return mergeFrom((com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest)other);
+        return mergeFrom((com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest other) {
-      if (other == com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest other) {
+      if (other
+          == com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -518,7 +567,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -530,18 +581,20 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Parent project to create the profile in.
      * 
* * string parent = 1; + * * @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; @@ -550,20 +603,21 @@ public java.lang.String getParent() { } } /** + * + * *
      * Parent project to create the profile in.
      * 
* * string parent = 1; + * * @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 { @@ -571,54 +625,61 @@ public java.lang.String getParent() { } } /** + * + * *
      * Parent project to create the profile in.
      * 
* * string parent = 1; + * * @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; } /** + * + * *
      * Parent project to create the profile in.
      * 
* * string parent = 1; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Parent project to create the profile in.
      * 
* * string parent = 1; + * * @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; @@ -626,34 +687,47 @@ public Builder setParentBytes( private com.google.devtools.cloudprofiler.v2.Profile profile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Profile, com.google.devtools.cloudprofiler.v2.Profile.Builder, com.google.devtools.cloudprofiler.v2.ProfileOrBuilder> profileBuilder_; + com.google.devtools.cloudprofiler.v2.Profile, + com.google.devtools.cloudprofiler.v2.Profile.Builder, + com.google.devtools.cloudprofiler.v2.ProfileOrBuilder> + profileBuilder_; /** + * + * *
      * Contents of the profile to create.
      * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 2; + * * @return Whether the profile field is set. */ public boolean hasProfile() { return profileBuilder_ != null || profile_ != null; } /** + * + * *
      * Contents of the profile to create.
      * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 2; + * * @return The profile. */ public com.google.devtools.cloudprofiler.v2.Profile getProfile() { if (profileBuilder_ == null) { - return profile_ == null ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() : profile_; + return profile_ == null + ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() + : profile_; } else { return profileBuilder_.getMessage(); } } /** + * + * *
      * Contents of the profile to create.
      * 
@@ -674,6 +748,8 @@ public Builder setProfile(com.google.devtools.cloudprofiler.v2.Profile value) { return this; } /** + * + * *
      * Contents of the profile to create.
      * 
@@ -692,6 +768,8 @@ public Builder setProfile( return this; } /** + * + * *
      * Contents of the profile to create.
      * 
@@ -702,7 +780,9 @@ public Builder mergeProfile(com.google.devtools.cloudprofiler.v2.Profile value) if (profileBuilder_ == null) { if (profile_ != null) { profile_ = - com.google.devtools.cloudprofiler.v2.Profile.newBuilder(profile_).mergeFrom(value).buildPartial(); + com.google.devtools.cloudprofiler.v2.Profile.newBuilder(profile_) + .mergeFrom(value) + .buildPartial(); } else { profile_ = value; } @@ -714,6 +794,8 @@ public Builder mergeProfile(com.google.devtools.cloudprofiler.v2.Profile value) return this; } /** + * + * *
      * Contents of the profile to create.
      * 
@@ -732,6 +814,8 @@ public Builder clearProfile() { return this; } /** + * + * *
      * Contents of the profile to create.
      * 
@@ -739,11 +823,13 @@ public Builder clearProfile() { * .google.devtools.cloudprofiler.v2.Profile profile = 2; */ public com.google.devtools.cloudprofiler.v2.Profile.Builder getProfileBuilder() { - + onChanged(); return getProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Contents of the profile to create.
      * 
@@ -754,11 +840,14 @@ public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder if (profileBuilder_ != null) { return profileBuilder_.getMessageOrBuilder(); } else { - return profile_ == null ? - com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() : profile_; + return profile_ == null + ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() + : profile_; } } /** + * + * *
      * Contents of the profile to create.
      * 
@@ -766,21 +855,24 @@ public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder * .google.devtools.cloudprofiler.v2.Profile profile = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Profile, com.google.devtools.cloudprofiler.v2.Profile.Builder, com.google.devtools.cloudprofiler.v2.ProfileOrBuilder> + com.google.devtools.cloudprofiler.v2.Profile, + com.google.devtools.cloudprofiler.v2.Profile.Builder, + com.google.devtools.cloudprofiler.v2.ProfileOrBuilder> getProfileFieldBuilder() { if (profileBuilder_ == null) { - profileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Profile, com.google.devtools.cloudprofiler.v2.Profile.Builder, com.google.devtools.cloudprofiler.v2.ProfileOrBuilder>( - getProfile(), - getParentForChildren(), - isClean()); + profileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.cloudprofiler.v2.Profile, + com.google.devtools.cloudprofiler.v2.Profile.Builder, + com.google.devtools.cloudprofiler.v2.ProfileOrBuilder>( + getProfile(), getParentForChildren(), isClean()); profile_ = null; } return profileBuilder_; } + @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); } @@ -790,30 +882,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) } // @@protoc_insertion_point(class_scope:google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) - private static final com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest DEFAULT_INSTANCE; + private static final com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest(); } - public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest getDefaultInstance() { + public static com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateOfflineProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateOfflineProfileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateOfflineProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateOfflineProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -825,9 +919,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest getDefaultInstanceForType() { + public com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java rename to proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java index 4d36add..b7e4bdc 100644 --- a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java +++ b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java @@ -1,51 +1,80 @@ +/* + * 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/devtools/cloudprofiler/v2/profiler.proto package com.google.devtools.cloudprofiler.v2; -public interface CreateOfflineProfileRequestOrBuilder extends +public interface CreateOfflineProfileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Parent project to create the profile in.
    * 
* * string parent = 1; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Parent project to create the profile in.
    * 
* * string parent = 1; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Contents of the profile to create.
    * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 2; + * * @return Whether the profile field is set. */ boolean hasProfile(); /** + * + * *
    * Contents of the profile to create.
    * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 2; + * * @return The profile. */ com.google.devtools.cloudprofiler.v2.Profile getProfile(); /** + * + * *
    * Contents of the profile to create.
    * 
diff --git a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java rename to proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java index c9b02eb..d03c51b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java +++ b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/devtools/cloudprofiler/v2/profiler.proto package com.google.devtools.cloudprofiler.v2; /** + * + * *
  * CreateProfileRequest describes a profile resource online creation request.
  * The deployment field must be populated. The profile_type specifies the list
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.devtools.cloudprofiler.v2.CreateProfileRequest}
  */
-public final class CreateProfileRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateProfileRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.devtools.cloudprofiler.v2.CreateProfileRequest)
     CreateProfileRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateProfileRequest.newBuilder() to construct.
   private CreateProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateProfileRequest() {
     parent_ = "";
     profileType_ = java.util.Collections.emptyList();
@@ -29,16 +47,15 @@ private CreateProfileRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateProfileRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CreateProfileRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,55 +75,61 @@ private CreateProfileRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.devtools.cloudprofiler.v2.Deployment.Builder subBuilder = null;
-            if (deployment_ != null) {
-              subBuilder = deployment_.toBuilder();
-            }
-            deployment_ = input.readMessage(com.google.devtools.cloudprofiler.v2.Deployment.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(deployment_);
-              deployment_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.devtools.cloudprofiler.v2.Deployment.Builder subBuilder = null;
+              if (deployment_ != null) {
+                subBuilder = deployment_.toBuilder();
+              }
+              deployment_ =
+                  input.readMessage(
+                      com.google.devtools.cloudprofiler.v2.Deployment.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(deployment_);
+                deployment_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              profileType_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            profileType_.add(rawValue);
-            break;
-          }
-          case 18: {
-            int length = input.readRawVarint32();
-            int oldLimit = input.pushLimit(length);
-            while(input.getBytesUntilLimit() > 0) {
+          case 16:
+            {
               int rawValue = input.readEnum();
               if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                 profileType_ = new java.util.ArrayList();
                 mutable_bitField0_ |= 0x00000001;
               }
               profileType_.add(rawValue);
+              break;
             }
-            input.popLimit(oldLimit);
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              int length = input.readRawVarint32();
+              int oldLimit = input.pushLimit(length);
+              while (input.getBytesUntilLimit() > 0) {
+                int rawValue = input.readEnum();
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  profileType_ = new java.util.ArrayList();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                profileType_.add(rawValue);
+              }
+              input.popLimit(oldLimit);
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            parent_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              parent_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -114,8 +137,7 @@ private CreateProfileRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         profileType_ = java.util.Collections.unmodifiableList(profileType_);
@@ -124,27 +146,33 @@ private CreateProfileRequest(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.devtools.cloudprofiler.v2.ProfilerProto
+        .internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_fieldAccessorTable
+    return com.google.devtools.cloudprofiler.v2.ProfilerProto
+        .internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.devtools.cloudprofiler.v2.CreateProfileRequest.class, com.google.devtools.cloudprofiler.v2.CreateProfileRequest.Builder.class);
+            com.google.devtools.cloudprofiler.v2.CreateProfileRequest.class,
+            com.google.devtools.cloudprofiler.v2.CreateProfileRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 4;
   private volatile java.lang.Object parent_;
   /**
+   *
+   *
    * 
    * Parent project to create the profile in.
    * 
* * string parent = 4; + * * @return The parent. */ @java.lang.Override @@ -153,29 +181,29 @@ 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; } } /** + * + * *
    * Parent project to create the profile in.
    * 
* * string parent = 4; + * * @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 { @@ -186,11 +214,14 @@ public java.lang.String getParent() { public static final int DEPLOYMENT_FIELD_NUMBER = 1; private com.google.devtools.cloudprofiler.v2.Deployment deployment_; /** + * + * *
    * Deployment details.
    * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 1; + * * @return Whether the deployment field is set. */ @java.lang.Override @@ -198,18 +229,25 @@ public boolean hasDeployment() { return deployment_ != null; } /** + * + * *
    * Deployment details.
    * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 1; + * * @return The deployment. */ @java.lang.Override public com.google.devtools.cloudprofiler.v2.Deployment getDeployment() { - return deployment_ == null ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() : deployment_; + return deployment_ == null + ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() + : deployment_; } /** + * + * *
    * Deployment details.
    * 
@@ -224,34 +262,46 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB public static final int PROFILE_TYPE_FIELD_NUMBER = 2; private java.util.List profileType_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.devtools.cloudprofiler.v2.ProfileType> profileType_converter_ = + java.lang.Integer, com.google.devtools.cloudprofiler.v2.ProfileType> + profileType_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.devtools.cloudprofiler.v2.ProfileType>() { - public com.google.devtools.cloudprofiler.v2.ProfileType convert(java.lang.Integer from) { + public com.google.devtools.cloudprofiler.v2.ProfileType convert( + java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.devtools.cloudprofiler.v2.ProfileType result = com.google.devtools.cloudprofiler.v2.ProfileType.valueOf(from); - return result == null ? com.google.devtools.cloudprofiler.v2.ProfileType.UNRECOGNIZED : result; + com.google.devtools.cloudprofiler.v2.ProfileType result = + com.google.devtools.cloudprofiler.v2.ProfileType.valueOf(from); + return result == null + ? com.google.devtools.cloudprofiler.v2.ProfileType.UNRECOGNIZED + : result; } }; /** + * + * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @return A list containing the profileType. */ @java.lang.Override public java.util.List getProfileTypeList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.devtools.cloudprofiler.v2.ProfileType>(profileType_, profileType_converter_); + java.lang.Integer, com.google.devtools.cloudprofiler.v2.ProfileType>( + profileType_, profileType_converter_); } /** + * + * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @return The count of profileType. */ @java.lang.Override @@ -259,11 +309,14 @@ public int getProfileTypeCount() { return profileType_.size(); } /** + * + * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @param index The index of the element to return. * @return The profileType at the given index. */ @@ -272,24 +325,29 @@ public com.google.devtools.cloudprofiler.v2.ProfileType getProfileType(int index return profileType_converter_.convert(profileType_.get(index)); } /** + * + * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @return A list containing the enum numeric values on the wire for profileType. */ @java.lang.Override - public java.util.List - getProfileTypeValueList() { + public java.util.List getProfileTypeValueList() { return profileType_; } /** + * + * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of profileType at the given index. */ @@ -297,9 +355,11 @@ public com.google.devtools.cloudprofiler.v2.ProfileType getProfileType(int index public int getProfileTypeValue(int index) { return profileType_.get(index); } + private int profileTypeMemoizedSerializedSize; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,8 +371,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 { getSerializedSize(); if (deployment_ != null) { output.writeMessage(1, getDeployment()); @@ -337,20 +396,19 @@ public int getSerializedSize() { size = 0; if (deployment_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDeployment()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployment()); } { int dataSize = 0; for (int i = 0; i < profileType_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(profileType_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(profileType_.get(i)); } size += dataSize; - if (!getProfileTypeList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }profileTypeMemoizedSerializedSize = dataSize; + if (!getProfileTypeList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + profileTypeMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); @@ -363,19 +421,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.devtools.cloudprofiler.v2.CreateProfileRequest)) { return super.equals(obj); } - com.google.devtools.cloudprofiler.v2.CreateProfileRequest other = (com.google.devtools.cloudprofiler.v2.CreateProfileRequest) obj; + com.google.devtools.cloudprofiler.v2.CreateProfileRequest other = + (com.google.devtools.cloudprofiler.v2.CreateProfileRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasDeployment() != other.hasDeployment()) return false; if (hasDeployment()) { - if (!getDeployment() - .equals(other.getDeployment())) return false; + if (!getDeployment().equals(other.getDeployment())) return false; } if (!profileType_.equals(other.profileType_)) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -405,96 +462,104 @@ public int hashCode() { } public static com.google.devtools.cloudprofiler.v2.CreateProfileRequest 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.devtools.cloudprofiler.v2.CreateProfileRequest 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.devtools.cloudprofiler.v2.CreateProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.devtools.cloudprofiler.v2.CreateProfileRequest 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.devtools.cloudprofiler.v2.CreateProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.devtools.cloudprofiler.v2.CreateProfileRequest 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.devtools.cloudprofiler.v2.CreateProfileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.devtools.cloudprofiler.v2.CreateProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.devtools.cloudprofiler.v2.CreateProfileRequest 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.devtools.cloudprofiler.v2.CreateProfileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.devtools.cloudprofiler.v2.CreateProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.devtools.cloudprofiler.v2.CreateProfileRequest 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.devtools.cloudprofiler.v2.CreateProfileRequest 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.devtools.cloudprofiler.v2.CreateProfileRequest 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.devtools.cloudprofiler.v2.CreateProfileRequest prototype) { + + public static Builder newBuilder( + com.google.devtools.cloudprofiler.v2.CreateProfileRequest 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; } /** + * + * *
    * CreateProfileRequest describes a profile resource online creation request.
    * The deployment field must be populated. The profile_type specifies the list
@@ -504,21 +569,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.devtools.cloudprofiler.v2.CreateProfileRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.devtools.cloudprofiler.v2.CreateProfileRequest)
       com.google.devtools.cloudprofiler.v2.CreateProfileRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.devtools.cloudprofiler.v2.ProfilerProto
+          .internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_fieldAccessorTable
+      return com.google.devtools.cloudprofiler.v2.ProfilerProto
+          .internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.devtools.cloudprofiler.v2.CreateProfileRequest.class, com.google.devtools.cloudprofiler.v2.CreateProfileRequest.Builder.class);
+              com.google.devtools.cloudprofiler.v2.CreateProfileRequest.class,
+              com.google.devtools.cloudprofiler.v2.CreateProfileRequest.Builder.class);
     }
 
     // Construct using com.google.devtools.cloudprofiler.v2.CreateProfileRequest.newBuilder()
@@ -526,16 +593,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -553,9 +619,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.devtools.cloudprofiler.v2.ProfilerProto
+          .internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor;
     }
 
     @java.lang.Override
@@ -574,7 +640,8 @@ public com.google.devtools.cloudprofiler.v2.CreateProfileRequest build() {
 
     @java.lang.Override
     public com.google.devtools.cloudprofiler.v2.CreateProfileRequest buildPartial() {
-      com.google.devtools.cloudprofiler.v2.CreateProfileRequest result = new com.google.devtools.cloudprofiler.v2.CreateProfileRequest(this);
+      com.google.devtools.cloudprofiler.v2.CreateProfileRequest result =
+          new com.google.devtools.cloudprofiler.v2.CreateProfileRequest(this);
       int from_bitField0_ = bitField0_;
       result.parent_ = parent_;
       if (deploymentBuilder_ == null) {
@@ -595,38 +662,39 @@ public com.google.devtools.cloudprofiler.v2.CreateProfileRequest 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.devtools.cloudprofiler.v2.CreateProfileRequest) {
-        return mergeFrom((com.google.devtools.cloudprofiler.v2.CreateProfileRequest)other);
+        return mergeFrom((com.google.devtools.cloudprofiler.v2.CreateProfileRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -634,7 +702,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.devtools.cloudprofiler.v2.CreateProfileRequest other) {
-      if (other == com.google.devtools.cloudprofiler.v2.CreateProfileRequest.getDefaultInstance()) return this;
+      if (other == com.google.devtools.cloudprofiler.v2.CreateProfileRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -671,7 +740,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.devtools.cloudprofiler.v2.CreateProfileRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.devtools.cloudprofiler.v2.CreateProfileRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -680,22 +750,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Parent project to create the profile in.
      * 
* * string parent = 4; + * * @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; @@ -704,20 +777,21 @@ public java.lang.String getParent() { } } /** + * + * *
      * Parent project to create the profile in.
      * 
* * string parent = 4; + * * @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 { @@ -725,54 +799,61 @@ public java.lang.String getParent() { } } /** + * + * *
      * Parent project to create the profile in.
      * 
* * string parent = 4; + * * @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; } /** + * + * *
      * Parent project to create the profile in.
      * 
* * string parent = 4; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Parent project to create the profile in.
      * 
* * string parent = 4; + * * @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; @@ -780,34 +861,47 @@ public Builder setParentBytes( private com.google.devtools.cloudprofiler.v2.Deployment deployment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Deployment, com.google.devtools.cloudprofiler.v2.Deployment.Builder, com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder> deploymentBuilder_; + com.google.devtools.cloudprofiler.v2.Deployment, + com.google.devtools.cloudprofiler.v2.Deployment.Builder, + com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder> + deploymentBuilder_; /** + * + * *
      * Deployment details.
      * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 1; + * * @return Whether the deployment field is set. */ public boolean hasDeployment() { return deploymentBuilder_ != null || deployment_ != null; } /** + * + * *
      * Deployment details.
      * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 1; + * * @return The deployment. */ public com.google.devtools.cloudprofiler.v2.Deployment getDeployment() { if (deploymentBuilder_ == null) { - return deployment_ == null ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() : deployment_; + return deployment_ == null + ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() + : deployment_; } else { return deploymentBuilder_.getMessage(); } } /** + * + * *
      * Deployment details.
      * 
@@ -828,6 +922,8 @@ public Builder setDeployment(com.google.devtools.cloudprofiler.v2.Deployment val return this; } /** + * + * *
      * Deployment details.
      * 
@@ -846,6 +942,8 @@ public Builder setDeployment( return this; } /** + * + * *
      * Deployment details.
      * 
@@ -856,7 +954,9 @@ public Builder mergeDeployment(com.google.devtools.cloudprofiler.v2.Deployment v if (deploymentBuilder_ == null) { if (deployment_ != null) { deployment_ = - com.google.devtools.cloudprofiler.v2.Deployment.newBuilder(deployment_).mergeFrom(value).buildPartial(); + com.google.devtools.cloudprofiler.v2.Deployment.newBuilder(deployment_) + .mergeFrom(value) + .buildPartial(); } else { deployment_ = value; } @@ -868,6 +968,8 @@ public Builder mergeDeployment(com.google.devtools.cloudprofiler.v2.Deployment v return this; } /** + * + * *
      * Deployment details.
      * 
@@ -886,6 +988,8 @@ public Builder clearDeployment() { return this; } /** + * + * *
      * Deployment details.
      * 
@@ -893,11 +997,13 @@ public Builder clearDeployment() { * .google.devtools.cloudprofiler.v2.Deployment deployment = 1; */ public com.google.devtools.cloudprofiler.v2.Deployment.Builder getDeploymentBuilder() { - + onChanged(); return getDeploymentFieldBuilder().getBuilder(); } /** + * + * *
      * Deployment details.
      * 
@@ -908,11 +1014,14 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB if (deploymentBuilder_ != null) { return deploymentBuilder_.getMessageOrBuilder(); } else { - return deployment_ == null ? - com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() : deployment_; + return deployment_ == null + ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() + : deployment_; } } /** + * + * *
      * Deployment details.
      * 
@@ -920,21 +1029,24 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB * .google.devtools.cloudprofiler.v2.Deployment deployment = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Deployment, com.google.devtools.cloudprofiler.v2.Deployment.Builder, com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder> + com.google.devtools.cloudprofiler.v2.Deployment, + com.google.devtools.cloudprofiler.v2.Deployment.Builder, + com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder> getDeploymentFieldBuilder() { if (deploymentBuilder_ == null) { - deploymentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Deployment, com.google.devtools.cloudprofiler.v2.Deployment.Builder, com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder>( - getDeployment(), - getParentForChildren(), - isClean()); + deploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.cloudprofiler.v2.Deployment, + com.google.devtools.cloudprofiler.v2.Deployment.Builder, + com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder>( + getDeployment(), getParentForChildren(), isClean()); deployment_ = null; } return deploymentBuilder_; } - private java.util.List profileType_ = - java.util.Collections.emptyList(); + private java.util.List profileType_ = java.util.Collections.emptyList(); + private void ensureProfileTypeIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { profileType_ = new java.util.ArrayList(profileType_); @@ -942,34 +1054,44 @@ private void ensureProfileTypeIsMutable() { } } /** + * + * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @return A list containing the profileType. */ public java.util.List getProfileTypeList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.devtools.cloudprofiler.v2.ProfileType>(profileType_, profileType_converter_); + java.lang.Integer, com.google.devtools.cloudprofiler.v2.ProfileType>( + profileType_, profileType_converter_); } /** + * + * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @return The count of profileType. */ public int getProfileTypeCount() { return profileType_.size(); } /** + * + * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @param index The index of the element to return. * @return The profileType at the given index. */ @@ -977,11 +1099,14 @@ public com.google.devtools.cloudprofiler.v2.ProfileType getProfileType(int index return profileType_converter_.convert(profileType_.get(index)); } /** + * + * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @param index The index to set the value at. * @param value The profileType to set. * @return This builder for chaining. @@ -997,11 +1122,14 @@ public Builder setProfileType( return this; } /** + * + * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @param value The profileType to add. * @return This builder for chaining. */ @@ -1015,11 +1143,14 @@ public Builder addProfileType(com.google.devtools.cloudprofiler.v2.ProfileType v return this; } /** + * + * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @param values The profileType to add. * @return This builder for chaining. */ @@ -1033,11 +1164,14 @@ public Builder addAllProfileType( return this; } /** + * + * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @return This builder for chaining. */ public Builder clearProfileType() { @@ -1047,23 +1181,28 @@ public Builder clearProfileType() { return this; } /** + * + * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @return A list containing the enum numeric values on the wire for profileType. */ - public java.util.List - getProfileTypeValueList() { + public java.util.List getProfileTypeValueList() { return java.util.Collections.unmodifiableList(profileType_); } /** + * + * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of profileType at the given index. */ @@ -1071,28 +1210,33 @@ public int getProfileTypeValue(int index) { return profileType_.get(index); } /** + * + * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of profileType at the given index. * @return This builder for chaining. */ - public Builder setProfileTypeValue( - int index, int value) { + public Builder setProfileTypeValue(int index, int value) { ensureProfileTypeIsMutable(); profileType_.set(index, value); onChanged(); return this; } /** + * + * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @param value The enum numeric value on the wire for profileType to add. * @return This builder for chaining. */ @@ -1103,16 +1247,18 @@ public Builder addProfileTypeValue(int value) { return this; } /** + * + * *
      * One or more profile types that the agent is capable of providing.
      * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @param values The enum numeric values on the wire for profileType to add. * @return This builder for chaining. */ - public Builder addAllProfileTypeValue( - java.lang.Iterable values) { + public Builder addAllProfileTypeValue(java.lang.Iterable values) { ensureProfileTypeIsMutable(); for (int value : values) { profileType_.add(value); @@ -1120,9 +1266,9 @@ public Builder addAllProfileTypeValue( 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); } @@ -1132,12 +1278,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.devtools.cloudprofiler.v2.CreateProfileRequest) } // @@protoc_insertion_point(class_scope:google.devtools.cloudprofiler.v2.CreateProfileRequest) private static final com.google.devtools.cloudprofiler.v2.CreateProfileRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.devtools.cloudprofiler.v2.CreateProfileRequest(); } @@ -1146,16 +1292,16 @@ public static com.google.devtools.cloudprofiler.v2.CreateProfileRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateProfileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1170,6 +1316,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.devtools.cloudprofiler.v2.CreateProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java rename to proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java index 27bd8e9..9428c94 100644 --- a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java +++ b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java @@ -1,51 +1,80 @@ +/* + * 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/devtools/cloudprofiler/v2/profiler.proto package com.google.devtools.cloudprofiler.v2; -public interface CreateProfileRequestOrBuilder extends +public interface CreateProfileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.devtools.cloudprofiler.v2.CreateProfileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Parent project to create the profile in.
    * 
* * string parent = 4; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Parent project to create the profile in.
    * 
* * string parent = 4; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Deployment details.
    * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 1; + * * @return Whether the deployment field is set. */ boolean hasDeployment(); /** + * + * *
    * Deployment details.
    * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 1; + * * @return The deployment. */ com.google.devtools.cloudprofiler.v2.Deployment getDeployment(); /** + * + * *
    * Deployment details.
    * 
@@ -55,49 +84,63 @@ public interface CreateProfileRequestOrBuilder extends com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrBuilder(); /** + * + * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @return A list containing the profileType. */ java.util.List getProfileTypeList(); /** + * + * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @return The count of profileType. */ int getProfileTypeCount(); /** + * + * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @param index The index of the element to return. * @return The profileType at the given index. */ com.google.devtools.cloudprofiler.v2.ProfileType getProfileType(int index); /** + * + * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @return A list containing the enum numeric values on the wire for profileType. */ - java.util.List - getProfileTypeValueList(); + java.util.List getProfileTypeValueList(); /** + * + * *
    * One or more profile types that the agent is capable of providing.
    * 
* * repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of profileType at the given index. */ diff --git a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java rename to proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java index 18a80eb..452887a 100644 --- a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java +++ b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.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/devtools/cloudprofiler/v2/profiler.proto package com.google.devtools.cloudprofiler.v2; /** + * + * *
  * Deployment contains the deployment identification information.
  * 
* * Protobuf type {@code google.devtools.cloudprofiler.v2.Deployment} */ -public final class Deployment extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Deployment extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.devtools.cloudprofiler.v2.Deployment) DeploymentOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Deployment.newBuilder() to construct. private Deployment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Deployment() { projectId_ = ""; target_ = ""; @@ -26,16 +44,15 @@ private Deployment() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Deployment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Deployment( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,38 +72,40 @@ private Deployment( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + target_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,47 +113,51 @@ private Deployment( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.cloudprofiler.v2.ProfilerProto + .internal_static_google_devtools_cloudprofiler_v2_Deployment_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 3: 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.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Deployment_fieldAccessorTable + return com.google.devtools.cloudprofiler.v2.ProfilerProto + .internal_static_google_devtools_cloudprofiler_v2_Deployment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.cloudprofiler.v2.Deployment.class, com.google.devtools.cloudprofiler.v2.Deployment.Builder.class); + com.google.devtools.cloudprofiler.v2.Deployment.class, + com.google.devtools.cloudprofiler.v2.Deployment.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
    * Project ID is the ID of a cloud project.
    * Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
    * 
* * string project_id = 1; + * * @return The projectId. */ @java.lang.Override @@ -143,30 +166,30 @@ public java.lang.String getProjectId() { 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(); projectId_ = s; return s; } } /** + * + * *
    * Project ID is the ID of a cloud project.
    * Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
    * 
* * string project_id = 1; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; 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); projectId_ = b; return b; } else { @@ -177,6 +200,8 @@ public java.lang.String getProjectId() { public static final int TARGET_FIELD_NUMBER = 2; private volatile java.lang.Object target_; /** + * + * *
    * Target is the service name used to group related deployments:
    * * Service name for GAE Flex / Standard.
@@ -187,6 +212,7 @@ public java.lang.String getProjectId() {
    * 
* * string target = 2; + * * @return The target. */ @java.lang.Override @@ -195,14 +221,15 @@ 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 is the service name used to group related deployments:
    * * Service name for GAE Flex / Standard.
@@ -213,16 +240,15 @@ public java.lang.String getTarget() {
    * 
* * string target = 2; + * * @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 { @@ -231,24 +257,23 @@ public java.lang.String getTarget() { } public static final int LABELS_FIELD_NUMBER = 3; + 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.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Deployment_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.devtools.cloudprofiler.v2.ProfilerProto + .internal_static_google_devtools_cloudprofiler_v2_Deployment_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_; } @@ -257,6 +282,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels identify the deployment within the user universe and same target.
    * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -273,22 +300,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 3;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Labels identify the deployment within the user universe and same target.
    * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -306,11 +333,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 3;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Labels identify the deployment within the user universe and same target.
    * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -328,16 +356,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 3;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Labels identify the deployment within the user universe and same target.
    * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -355,12 +383,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 3;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -368,6 +395,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -379,20 +407,15 @@ 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(projectId_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, target_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        3);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3);
     unknownFields.writeTo(output);
   }
 
@@ -408,15 +431,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, target_);
     }
-    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(3, labels__);
+    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(3, labels__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -426,19 +449,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.devtools.cloudprofiler.v2.Deployment)) {
       return super.equals(obj);
     }
-    com.google.devtools.cloudprofiler.v2.Deployment other = (com.google.devtools.cloudprofiler.v2.Deployment) obj;
+    com.google.devtools.cloudprofiler.v2.Deployment other =
+        (com.google.devtools.cloudprofiler.v2.Deployment) obj;
 
-    if (!getProjectId()
-        .equals(other.getProjectId())) return false;
-    if (!getTarget()
-        .equals(other.getTarget())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!getProjectId().equals(other.getProjectId())) return false;
+    if (!getTarget().equals(other.getTarget())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -463,140 +484,147 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.devtools.cloudprofiler.v2.Deployment parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.devtools.cloudprofiler.v2.Deployment parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.devtools.cloudprofiler.v2.Deployment 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.devtools.cloudprofiler.v2.Deployment parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.devtools.cloudprofiler.v2.Deployment 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.devtools.cloudprofiler.v2.Deployment parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.devtools.cloudprofiler.v2.Deployment 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.devtools.cloudprofiler.v2.Deployment 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.devtools.cloudprofiler.v2.Deployment 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.devtools.cloudprofiler.v2.Deployment parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.devtools.cloudprofiler.v2.Deployment parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.devtools.cloudprofiler.v2.Deployment 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.devtools.cloudprofiler.v2.Deployment 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.devtools.cloudprofiler.v2.Deployment 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.devtools.cloudprofiler.v2.Deployment 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;
   }
   /**
+   *
+   *
    * 
    * Deployment contains the deployment identification information.
    * 
* * Protobuf type {@code google.devtools.cloudprofiler.v2.Deployment} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.devtools.cloudprofiler.v2.Deployment) com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.cloudprofiler.v2.ProfilerProto + .internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: 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 3: 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.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Deployment_fieldAccessorTable + return com.google.devtools.cloudprofiler.v2.ProfilerProto + .internal_static_google_devtools_cloudprofiler_v2_Deployment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.cloudprofiler.v2.Deployment.class, com.google.devtools.cloudprofiler.v2.Deployment.Builder.class); + com.google.devtools.cloudprofiler.v2.Deployment.class, + com.google.devtools.cloudprofiler.v2.Deployment.Builder.class); } // Construct using com.google.devtools.cloudprofiler.v2.Deployment.newBuilder() @@ -604,16 +632,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -626,9 +653,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.cloudprofiler.v2.ProfilerProto + .internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor; } @java.lang.Override @@ -647,7 +674,8 @@ public com.google.devtools.cloudprofiler.v2.Deployment build() { @java.lang.Override public com.google.devtools.cloudprofiler.v2.Deployment buildPartial() { - com.google.devtools.cloudprofiler.v2.Deployment result = new com.google.devtools.cloudprofiler.v2.Deployment(this); + com.google.devtools.cloudprofiler.v2.Deployment result = + new com.google.devtools.cloudprofiler.v2.Deployment(this); int from_bitField0_ = bitField0_; result.projectId_ = projectId_; result.target_ = target_; @@ -661,38 +689,39 @@ public com.google.devtools.cloudprofiler.v2.Deployment 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.devtools.cloudprofiler.v2.Deployment) { - return mergeFrom((com.google.devtools.cloudprofiler.v2.Deployment)other); + return mergeFrom((com.google.devtools.cloudprofiler.v2.Deployment) other); } else { super.mergeFrom(other); return this; @@ -700,7 +729,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.devtools.cloudprofiler.v2.Deployment other) { - if (other == com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance()) return this; + if (other == com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance()) + return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -709,8 +739,7 @@ public Builder mergeFrom(com.google.devtools.cloudprofiler.v2.Deployment other) target_ = other.target_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -739,23 +768,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object projectId_ = ""; /** + * + * *
      * Project ID is the ID of a cloud project.
      * Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
      * 
* * string project_id = 1; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; 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(); projectId_ = s; return s; @@ -764,21 +796,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Project ID is the ID of a cloud project.
      * Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
      * 
* * string project_id = 1; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; 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); projectId_ = b; return b; } else { @@ -786,57 +819,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Project ID is the ID of a cloud project.
      * Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
      * 
* * string project_id = 1; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Project ID is the ID of a cloud project.
      * Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
      * 
* * string project_id = 1; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Project ID is the ID of a cloud project.
      * Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
      * 
* * string project_id = 1; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -844,6 +884,8 @@ public Builder setProjectIdBytes( private java.lang.Object target_ = ""; /** + * + * *
      * Target is the service name used to group related deployments:
      * * Service name for GAE Flex / Standard.
@@ -854,13 +896,13 @@ public Builder setProjectIdBytes(
      * 
* * string target = 2; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -869,6 +911,8 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Target is the service name used to group related deployments:
      * * Service name for GAE Flex / Standard.
@@ -879,15 +923,14 @@ public java.lang.String getTarget() {
      * 
* * string target = 2; + * * @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 { @@ -895,6 +938,8 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Target is the service name used to group related deployments:
      * * Service name for GAE Flex / Standard.
@@ -905,20 +950,22 @@ public java.lang.String getTarget() {
      * 
* * string target = 2; + * * @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 is the service name used to group related deployments:
      * * Service name for GAE Flex / Standard.
@@ -929,15 +976,18 @@ public Builder setTarget(
      * 
* * string target = 2; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Target is the service name used to group related deployments:
      * * Service name for GAE Flex / Standard.
@@ -948,37 +998,36 @@ public Builder clearTarget() {
      * 
* * string target = 2; + * * @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; } - 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(); @@ -990,6 +1039,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels identify the deployment within the user universe and same target.
      * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -1006,22 +1057,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 3;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Labels identify the deployment within the user universe and same target.
      * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -1039,11 +1090,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 3;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Labels identify the deployment within the user universe and same target.
      * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -1061,16 +1113,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 3;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Labels identify the deployment within the user universe and same target.
      * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -1088,12 +1141,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 3;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1101,11 +1153,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels identify the deployment within the user universe and same target.
      * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -1122,23 +1175,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 3;
      */
-
-    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();
     }
     /**
+     *
+     *
      * 
      * Labels identify the deployment within the user universe and same target.
      * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -1155,19 +1206,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 3;
      */
-    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;
     }
     /**
+     *
+     *
      * 
      * Labels identify the deployment within the user universe and same target.
      * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -1184,16 +1236,13 @@ public Builder putLabels(
      *
      * map<string, string> labels = 3;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       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);
     }
 
@@ -1203,12 +1252,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.devtools.cloudprofiler.v2.Deployment)
   }
 
   // @@protoc_insertion_point(class_scope:google.devtools.cloudprofiler.v2.Deployment)
   private static final com.google.devtools.cloudprofiler.v2.Deployment DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.devtools.cloudprofiler.v2.Deployment();
   }
@@ -1217,16 +1266,16 @@ public static com.google.devtools.cloudprofiler.v2.Deployment getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Deployment parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Deployment(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Deployment parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Deployment(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1241,6 +1290,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.devtools.cloudprofiler.v2.Deployment getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java
similarity index 83%
rename from owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java
rename to proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java
index e2ed06b..e72cb9f 100644
--- a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java
+++ b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java
@@ -1,35 +1,58 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/devtools/cloudprofiler/v2/profiler.proto
 
 package com.google.devtools.cloudprofiler.v2;
 
-public interface DeploymentOrBuilder extends
+public interface DeploymentOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.devtools.cloudprofiler.v2.Deployment)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Project ID is the ID of a cloud project.
    * Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
    * 
* * string project_id = 1; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Project ID is the ID of a cloud project.
    * Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
    * 
* * string project_id = 1; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Target is the service name used to group related deployments:
    * * Service name for GAE Flex / Standard.
@@ -40,10 +63,13 @@ public interface DeploymentOrBuilder extends
    * 
* * string target = 2; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Target is the service name used to group related deployments:
    * * Service name for GAE Flex / Standard.
@@ -54,12 +80,14 @@ public interface DeploymentOrBuilder extends
    * 
* * string target = 2; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Labels identify the deployment within the user universe and same target.
    * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -78,6 +106,8 @@ public interface DeploymentOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Labels identify the deployment within the user universe and same target.
    * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -94,15 +124,13 @@ public interface DeploymentOrBuilder extends
    *
    * map<string, string> labels = 3;
    */
-  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();
   /**
+   *
+   *
    * 
    * Labels identify the deployment within the user universe and same target.
    * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -119,9 +147,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 3;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Labels identify the deployment within the user universe and same target.
    * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -140,11 +169,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Labels identify the deployment within the user universe and same target.
    * Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
@@ -161,7 +192,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 3;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java
similarity index 71%
rename from owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java
rename to proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java
index 1c06110..ed53e5c 100644
--- a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java
+++ b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.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/devtools/cloudprofiler/v2/profiler.proto
 
 package com.google.devtools.cloudprofiler.v2;
 
 /**
+ *
+ *
  * 
  * Profile resource.
  * 
* * Protobuf type {@code google.devtools.cloudprofiler.v2.Profile} */ -public final class Profile extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Profile extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.devtools.cloudprofiler.v2.Profile) ProfileOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Profile.newBuilder() to construct. private Profile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Profile() { name_ = ""; profileType_ = 0; @@ -27,16 +45,15 @@ private Profile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Profile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Profile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,69 +73,76 @@ private Profile( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - profileType_ = rawValue; - break; - } - case 26: { - com.google.devtools.cloudprofiler.v2.Deployment.Builder subBuilder = null; - if (deployment_ != null) { - subBuilder = deployment_.toBuilder(); + profileType_ = rawValue; + break; } - deployment_ = input.readMessage(com.google.devtools.cloudprofiler.v2.Deployment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deployment_); - deployment_ = subBuilder.buildPartial(); + case 26: + { + com.google.devtools.cloudprofiler.v2.Deployment.Builder subBuilder = null; + if (deployment_ != null) { + subBuilder = deployment_.toBuilder(); + } + deployment_ = + input.readMessage( + com.google.devtools.cloudprofiler.v2.Deployment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deployment_); + deployment_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); + case 34: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } + + break; } - duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); + case 42: + { + profileBytes_ = input.readBytes(); + break; } - - break; - } - case 42: { - - profileBytes_ = input.readBytes(); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -126,46 +150,50 @@ private Profile( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.cloudprofiler.v2.ProfilerProto + .internal_static_google_devtools_cloudprofiler_v2_Profile_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 6: 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.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Profile_fieldAccessorTable + return com.google.devtools.cloudprofiler.v2.ProfilerProto + .internal_static_google_devtools_cloudprofiler_v2_Profile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.cloudprofiler.v2.Profile.class, com.google.devtools.cloudprofiler.v2.Profile.Builder.class); + com.google.devtools.cloudprofiler.v2.Profile.class, + com.google.devtools.cloudprofiler.v2.Profile.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. Opaque, server-assigned, unique ID for this profile.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -174,29 +202,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; } } /** + * + * *
    * Output only. Opaque, server-assigned, unique ID for this profile.
    * 
* * 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 { @@ -207,6 +235,8 @@ public java.lang.String getName() { public static final int PROFILE_TYPE_FIELD_NUMBER = 2; private int profileType_; /** + * + * *
    * Type of profile.
    * For offline mode, this must be specified when creating the profile. For
@@ -214,12 +244,16 @@ public java.lang.String getName() {
    * 
* * .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @return The enum numeric value on the wire for profileType. */ - @java.lang.Override public int getProfileTypeValue() { + @java.lang.Override + public int getProfileTypeValue() { return profileType_; } /** + * + * *
    * Type of profile.
    * For offline mode, this must be specified when creating the profile. For
@@ -227,22 +261,28 @@ public java.lang.String getName() {
    * 
* * .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @return The profileType. */ - @java.lang.Override public com.google.devtools.cloudprofiler.v2.ProfileType getProfileType() { + @java.lang.Override + public com.google.devtools.cloudprofiler.v2.ProfileType getProfileType() { @SuppressWarnings("deprecation") - com.google.devtools.cloudprofiler.v2.ProfileType result = com.google.devtools.cloudprofiler.v2.ProfileType.valueOf(profileType_); + com.google.devtools.cloudprofiler.v2.ProfileType result = + com.google.devtools.cloudprofiler.v2.ProfileType.valueOf(profileType_); return result == null ? com.google.devtools.cloudprofiler.v2.ProfileType.UNRECOGNIZED : result; } public static final int DEPLOYMENT_FIELD_NUMBER = 3; private com.google.devtools.cloudprofiler.v2.Deployment deployment_; /** + * + * *
    * Deployment this profile corresponds to.
    * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 3; + * * @return Whether the deployment field is set. */ @java.lang.Override @@ -250,18 +290,25 @@ public boolean hasDeployment() { return deployment_ != null; } /** + * + * *
    * Deployment this profile corresponds to.
    * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 3; + * * @return The deployment. */ @java.lang.Override public com.google.devtools.cloudprofiler.v2.Deployment getDeployment() { - return deployment_ == null ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() : deployment_; + return deployment_ == null + ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() + : deployment_; } /** + * + * *
    * Deployment this profile corresponds to.
    * 
@@ -276,6 +323,8 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB public static final int DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration duration_; /** + * + * *
    * Duration of the profiling session.
    * Input (for the offline mode) or output (for the online mode).
@@ -286,6 +335,7 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB
    * 
* * .google.protobuf.Duration duration = 4; + * * @return Whether the duration field is set. */ @java.lang.Override @@ -293,6 +343,8 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
    * Duration of the profiling session.
    * Input (for the offline mode) or output (for the online mode).
@@ -303,6 +355,7 @@ public boolean hasDuration() {
    * 
* * .google.protobuf.Duration duration = 4; + * * @return The duration. */ @java.lang.Override @@ -310,6 +363,8 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
    * Duration of the profiling session.
    * Input (for the offline mode) or output (for the online mode).
@@ -329,12 +384,15 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
   public static final int PROFILE_BYTES_FIELD_NUMBER = 5;
   private com.google.protobuf.ByteString profileBytes_;
   /**
+   *
+   *
    * 
    * Input only. Profile bytes, as a gzip compressed serialized proto, the
    * format is https://github.com/google/pprof/blob/master/proto/profile.proto.
    * 
* * bytes profile_bytes = 5; + * * @return The profileBytes. */ @java.lang.Override @@ -343,24 +401,23 @@ public com.google.protobuf.ByteString getProfileBytes() { } public static final int LABELS_FIELD_NUMBER = 6; + 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.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Profile_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.devtools.cloudprofiler.v2.ProfilerProto + .internal_static_google_devtools_cloudprofiler_v2_Profile_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_; } @@ -369,6 +426,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Input only. Labels associated to this specific profile. These labels will
    * get merged with the deployment labels for the final data set.  See
@@ -377,22 +436,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 6;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Input only. Labels associated to this specific profile. These labels will
    * get merged with the deployment labels for the final data set.  See
@@ -402,11 +461,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 6;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Input only. Labels associated to this specific profile. These labels will
    * get merged with the deployment labels for the final data set.  See
@@ -416,16 +476,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Input only. Labels associated to this specific profile. These labels will
    * get merged with the deployment labels for the final data set.  See
@@ -435,12 +495,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 6;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -448,6 +507,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -459,12 +519,12 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
-    if (profileType_ != com.google.devtools.cloudprofiler.v2.ProfileType.PROFILE_TYPE_UNSPECIFIED.getNumber()) {
+    if (profileType_
+        != com.google.devtools.cloudprofiler.v2.ProfileType.PROFILE_TYPE_UNSPECIFIED.getNumber()) {
       output.writeEnum(2, profileType_);
     }
     if (deployment_ != null) {
@@ -476,12 +536,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!profileBytes_.isEmpty()) {
       output.writeBytes(5, profileBytes_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        6);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6);
     unknownFields.writeTo(output);
   }
 
@@ -494,31 +550,28 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    if (profileType_ != com.google.devtools.cloudprofiler.v2.ProfileType.PROFILE_TYPE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(2, profileType_);
+    if (profileType_
+        != com.google.devtools.cloudprofiler.v2.ProfileType.PROFILE_TYPE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, profileType_);
     }
     if (deployment_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getDeployment());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeployment());
     }
     if (duration_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getDuration());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDuration());
     }
     if (!profileBytes_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBytesSize(5, profileBytes_);
-    }
-    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(6, labels__);
+      size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, profileBytes_);
+    }
+    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(6, labels__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -528,30 +581,26 @@ 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.devtools.cloudprofiler.v2.Profile)) {
       return super.equals(obj);
     }
-    com.google.devtools.cloudprofiler.v2.Profile other = (com.google.devtools.cloudprofiler.v2.Profile) obj;
+    com.google.devtools.cloudprofiler.v2.Profile other =
+        (com.google.devtools.cloudprofiler.v2.Profile) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (profileType_ != other.profileType_) return false;
     if (hasDeployment() != other.hasDeployment()) return false;
     if (hasDeployment()) {
-      if (!getDeployment()
-          .equals(other.getDeployment())) return false;
+      if (!getDeployment().equals(other.getDeployment())) return false;
     }
     if (hasDuration() != other.hasDuration()) return false;
     if (hasDuration()) {
-      if (!getDuration()
-          .equals(other.getDuration())) return false;
+      if (!getDuration().equals(other.getDuration())) return false;
     }
-    if (!getProfileBytes()
-        .equals(other.getProfileBytes())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!getProfileBytes().equals(other.getProfileBytes())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -586,140 +635,147 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.devtools.cloudprofiler.v2.Profile parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.devtools.cloudprofiler.v2.Profile parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.devtools.cloudprofiler.v2.Profile 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.devtools.cloudprofiler.v2.Profile parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.devtools.cloudprofiler.v2.Profile 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.devtools.cloudprofiler.v2.Profile parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.devtools.cloudprofiler.v2.Profile 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.devtools.cloudprofiler.v2.Profile 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.devtools.cloudprofiler.v2.Profile 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.devtools.cloudprofiler.v2.Profile parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.devtools.cloudprofiler.v2.Profile parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.devtools.cloudprofiler.v2.Profile 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.devtools.cloudprofiler.v2.Profile 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.devtools.cloudprofiler.v2.Profile 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.devtools.cloudprofiler.v2.Profile 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;
   }
   /**
+   *
+   *
    * 
    * Profile resource.
    * 
* * Protobuf type {@code google.devtools.cloudprofiler.v2.Profile} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.devtools.cloudprofiler.v2.Profile) com.google.devtools.cloudprofiler.v2.ProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.cloudprofiler.v2.ProfilerProto + .internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: 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 6: 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.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Profile_fieldAccessorTable + return com.google.devtools.cloudprofiler.v2.ProfilerProto + .internal_static_google_devtools_cloudprofiler_v2_Profile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.cloudprofiler.v2.Profile.class, com.google.devtools.cloudprofiler.v2.Profile.Builder.class); + com.google.devtools.cloudprofiler.v2.Profile.class, + com.google.devtools.cloudprofiler.v2.Profile.Builder.class); } // Construct using com.google.devtools.cloudprofiler.v2.Profile.newBuilder() @@ -727,16 +783,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -763,9 +818,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.cloudprofiler.v2.ProfilerProto + .internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor; } @java.lang.Override @@ -784,7 +839,8 @@ public com.google.devtools.cloudprofiler.v2.Profile build() { @java.lang.Override public com.google.devtools.cloudprofiler.v2.Profile buildPartial() { - com.google.devtools.cloudprofiler.v2.Profile result = new com.google.devtools.cloudprofiler.v2.Profile(this); + com.google.devtools.cloudprofiler.v2.Profile result = + new com.google.devtools.cloudprofiler.v2.Profile(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.profileType_ = profileType_; @@ -809,38 +865,39 @@ public com.google.devtools.cloudprofiler.v2.Profile 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.devtools.cloudprofiler.v2.Profile) { - return mergeFrom((com.google.devtools.cloudprofiler.v2.Profile)other); + return mergeFrom((com.google.devtools.cloudprofiler.v2.Profile) other); } else { super.mergeFrom(other); return this; @@ -865,8 +922,7 @@ public Builder mergeFrom(com.google.devtools.cloudprofiler.v2.Profile other) { if (other.getProfileBytes() != com.google.protobuf.ByteString.EMPTY) { setProfileBytes(other.getProfileBytes()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -895,22 +951,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Opaque, server-assigned, unique ID for this profile.
      * 
* * 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; @@ -919,20 +978,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Opaque, server-assigned, unique ID for this profile.
      * 
* * 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 { @@ -940,54 +1000,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Opaque, server-assigned, unique ID for this profile.
      * 
* * 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; } /** + * + * *
      * Output only. Opaque, server-assigned, unique ID for this profile.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Opaque, server-assigned, unique ID for this profile.
      * 
* * 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; @@ -995,6 +1062,8 @@ public Builder setNameBytes( private int profileType_ = 0; /** + * + * *
      * Type of profile.
      * For offline mode, this must be specified when creating the profile. For
@@ -1002,12 +1071,16 @@ public Builder setNameBytes(
      * 
* * .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @return The enum numeric value on the wire for profileType. */ - @java.lang.Override public int getProfileTypeValue() { + @java.lang.Override + public int getProfileTypeValue() { return profileType_; } /** + * + * *
      * Type of profile.
      * For offline mode, this must be specified when creating the profile. For
@@ -1015,16 +1088,19 @@ public Builder setNameBytes(
      * 
* * .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @param value The enum numeric value on the wire for profileType to set. * @return This builder for chaining. */ public Builder setProfileTypeValue(int value) { - + profileType_ = value; onChanged(); return this; } /** + * + * *
      * Type of profile.
      * For offline mode, this must be specified when creating the profile. For
@@ -1032,15 +1108,21 @@ public Builder setProfileTypeValue(int value) {
      * 
* * .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @return The profileType. */ @java.lang.Override public com.google.devtools.cloudprofiler.v2.ProfileType getProfileType() { @SuppressWarnings("deprecation") - com.google.devtools.cloudprofiler.v2.ProfileType result = com.google.devtools.cloudprofiler.v2.ProfileType.valueOf(profileType_); - return result == null ? com.google.devtools.cloudprofiler.v2.ProfileType.UNRECOGNIZED : result; + com.google.devtools.cloudprofiler.v2.ProfileType result = + com.google.devtools.cloudprofiler.v2.ProfileType.valueOf(profileType_); + return result == null + ? com.google.devtools.cloudprofiler.v2.ProfileType.UNRECOGNIZED + : result; } /** + * + * *
      * Type of profile.
      * For offline mode, this must be specified when creating the profile. For
@@ -1048,6 +1130,7 @@ public com.google.devtools.cloudprofiler.v2.ProfileType getProfileType() {
      * 
* * .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @param value The profileType to set. * @return This builder for chaining. */ @@ -1055,12 +1138,14 @@ public Builder setProfileType(com.google.devtools.cloudprofiler.v2.ProfileType v if (value == null) { throw new NullPointerException(); } - + profileType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Type of profile.
      * For offline mode, this must be specified when creating the profile. For
@@ -1068,10 +1153,11 @@ public Builder setProfileType(com.google.devtools.cloudprofiler.v2.ProfileType v
      * 
* * .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @return This builder for chaining. */ public Builder clearProfileType() { - + profileType_ = 0; onChanged(); return this; @@ -1079,34 +1165,47 @@ public Builder clearProfileType() { private com.google.devtools.cloudprofiler.v2.Deployment deployment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Deployment, com.google.devtools.cloudprofiler.v2.Deployment.Builder, com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder> deploymentBuilder_; + com.google.devtools.cloudprofiler.v2.Deployment, + com.google.devtools.cloudprofiler.v2.Deployment.Builder, + com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder> + deploymentBuilder_; /** + * + * *
      * Deployment this profile corresponds to.
      * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 3; + * * @return Whether the deployment field is set. */ public boolean hasDeployment() { return deploymentBuilder_ != null || deployment_ != null; } /** + * + * *
      * Deployment this profile corresponds to.
      * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 3; + * * @return The deployment. */ public com.google.devtools.cloudprofiler.v2.Deployment getDeployment() { if (deploymentBuilder_ == null) { - return deployment_ == null ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() : deployment_; + return deployment_ == null + ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() + : deployment_; } else { return deploymentBuilder_.getMessage(); } } /** + * + * *
      * Deployment this profile corresponds to.
      * 
@@ -1127,6 +1226,8 @@ public Builder setDeployment(com.google.devtools.cloudprofiler.v2.Deployment val return this; } /** + * + * *
      * Deployment this profile corresponds to.
      * 
@@ -1145,6 +1246,8 @@ public Builder setDeployment( return this; } /** + * + * *
      * Deployment this profile corresponds to.
      * 
@@ -1155,7 +1258,9 @@ public Builder mergeDeployment(com.google.devtools.cloudprofiler.v2.Deployment v if (deploymentBuilder_ == null) { if (deployment_ != null) { deployment_ = - com.google.devtools.cloudprofiler.v2.Deployment.newBuilder(deployment_).mergeFrom(value).buildPartial(); + com.google.devtools.cloudprofiler.v2.Deployment.newBuilder(deployment_) + .mergeFrom(value) + .buildPartial(); } else { deployment_ = value; } @@ -1167,6 +1272,8 @@ public Builder mergeDeployment(com.google.devtools.cloudprofiler.v2.Deployment v return this; } /** + * + * *
      * Deployment this profile corresponds to.
      * 
@@ -1185,6 +1292,8 @@ public Builder clearDeployment() { return this; } /** + * + * *
      * Deployment this profile corresponds to.
      * 
@@ -1192,11 +1301,13 @@ public Builder clearDeployment() { * .google.devtools.cloudprofiler.v2.Deployment deployment = 3; */ public com.google.devtools.cloudprofiler.v2.Deployment.Builder getDeploymentBuilder() { - + onChanged(); return getDeploymentFieldBuilder().getBuilder(); } /** + * + * *
      * Deployment this profile corresponds to.
      * 
@@ -1207,11 +1318,14 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB if (deploymentBuilder_ != null) { return deploymentBuilder_.getMessageOrBuilder(); } else { - return deployment_ == null ? - com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() : deployment_; + return deployment_ == null + ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() + : deployment_; } } /** + * + * *
      * Deployment this profile corresponds to.
      * 
@@ -1219,14 +1333,17 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB * .google.devtools.cloudprofiler.v2.Deployment deployment = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Deployment, com.google.devtools.cloudprofiler.v2.Deployment.Builder, com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder> + com.google.devtools.cloudprofiler.v2.Deployment, + com.google.devtools.cloudprofiler.v2.Deployment.Builder, + com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder> getDeploymentFieldBuilder() { if (deploymentBuilder_ == null) { - deploymentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Deployment, com.google.devtools.cloudprofiler.v2.Deployment.Builder, com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder>( - getDeployment(), - getParentForChildren(), - isClean()); + deploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.cloudprofiler.v2.Deployment, + com.google.devtools.cloudprofiler.v2.Deployment.Builder, + com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder>( + getDeployment(), getParentForChildren(), isClean()); deployment_ = null; } return deploymentBuilder_; @@ -1234,8 +1351,13 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationBuilder_; /** + * + * *
      * Duration of the profiling session.
      * Input (for the offline mode) or output (for the online mode).
@@ -1246,12 +1368,15 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB
      * 
* * .google.protobuf.Duration duration = 4; + * * @return Whether the duration field is set. */ public boolean hasDuration() { return durationBuilder_ != null || duration_ != null; } /** + * + * *
      * Duration of the profiling session.
      * Input (for the offline mode) or output (for the online mode).
@@ -1262,6 +1387,7 @@ public boolean hasDuration() {
      * 
* * .google.protobuf.Duration duration = 4; + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -1272,6 +1398,8 @@ public com.google.protobuf.Duration getDuration() { } } /** + * + * *
      * Duration of the profiling session.
      * Input (for the offline mode) or output (for the online mode).
@@ -1297,6 +1425,8 @@ public Builder setDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Duration of the profiling session.
      * Input (for the offline mode) or output (for the online mode).
@@ -1308,8 +1438,7 @@ public Builder setDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration duration = 4;
      */
-    public Builder setDuration(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) {
       if (durationBuilder_ == null) {
         duration_ = builderForValue.build();
         onChanged();
@@ -1320,6 +1449,8 @@ public Builder setDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * Duration of the profiling session.
      * Input (for the offline mode) or output (for the online mode).
@@ -1335,7 +1466,7 @@ public Builder mergeDuration(com.google.protobuf.Duration value) {
       if (durationBuilder_ == null) {
         if (duration_ != null) {
           duration_ =
-            com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial();
         } else {
           duration_ = value;
         }
@@ -1347,6 +1478,8 @@ public Builder mergeDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Duration of the profiling session.
      * Input (for the offline mode) or output (for the online mode).
@@ -1370,6 +1503,8 @@ public Builder clearDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Duration of the profiling session.
      * Input (for the offline mode) or output (for the online mode).
@@ -1382,11 +1517,13 @@ public Builder clearDuration() {
      * .google.protobuf.Duration duration = 4;
      */
     public com.google.protobuf.Duration.Builder getDurationBuilder() {
-      
+
       onChanged();
       return getDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Duration of the profiling session.
      * Input (for the offline mode) or output (for the online mode).
@@ -1402,11 +1539,12 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
       if (durationBuilder_ != null) {
         return durationBuilder_.getMessageOrBuilder();
       } else {
-        return duration_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : duration_;
+        return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
       }
     }
     /**
+     *
+     *
      * 
      * Duration of the profiling session.
      * Input (for the offline mode) or output (for the online mode).
@@ -1419,14 +1557,17 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
      * .google.protobuf.Duration duration = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getDurationFieldBuilder() {
       if (durationBuilder_ == null) {
-        durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getDuration(),
-                getParentForChildren(),
-                isClean());
+        durationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getDuration(), getParentForChildren(), isClean());
         duration_ = null;
       }
       return durationBuilder_;
@@ -1434,12 +1575,15 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
 
     private com.google.protobuf.ByteString profileBytes_ = com.google.protobuf.ByteString.EMPTY;
     /**
+     *
+     *
      * 
      * Input only. Profile bytes, as a gzip compressed serialized proto, the
      * format is https://github.com/google/pprof/blob/master/proto/profile.proto.
      * 
* * bytes profile_bytes = 5; + * * @return The profileBytes. */ @java.lang.Override @@ -1447,56 +1591,61 @@ public com.google.protobuf.ByteString getProfileBytes() { return profileBytes_; } /** + * + * *
      * Input only. Profile bytes, as a gzip compressed serialized proto, the
      * format is https://github.com/google/pprof/blob/master/proto/profile.proto.
      * 
* * bytes profile_bytes = 5; + * * @param value The profileBytes to set. * @return This builder for chaining. */ public Builder setProfileBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + profileBytes_ = value; onChanged(); return this; } /** + * + * *
      * Input only. Profile bytes, as a gzip compressed serialized proto, the
      * format is https://github.com/google/pprof/blob/master/proto/profile.proto.
      * 
* * bytes profile_bytes = 5; + * * @return This builder for chaining. */ public Builder clearProfileBytes() { - + profileBytes_ = getDefaultInstance().getProfileBytes(); 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(); @@ -1508,6 +1657,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Input only. Labels associated to this specific profile. These labels will
      * get merged with the deployment labels for the final data set.  See
@@ -1516,22 +1667,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 6;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Input only. Labels associated to this specific profile. These labels will
      * get merged with the deployment labels for the final data set.  See
@@ -1541,11 +1692,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 6;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Input only. Labels associated to this specific profile. These labels will
      * get merged with the deployment labels for the final data set.  See
@@ -1555,16 +1707,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Input only. Labels associated to this specific profile. These labels will
      * get merged with the deployment labels for the final data set.  See
@@ -1574,12 +1727,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 6;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1587,11 +1739,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Input only. Labels associated to this specific profile. These labels will
      * get merged with the deployment labels for the final data set.  See
@@ -1600,23 +1753,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 6;
      */
-
-    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();
     }
     /**
+     *
+     *
      * 
      * Input only. Labels associated to this specific profile. These labels will
      * get merged with the deployment labels for the final data set.  See
@@ -1625,19 +1776,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 6;
      */
-    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;
     }
     /**
+     *
+     *
      * 
      * Input only. Labels associated to this specific profile. These labels will
      * get merged with the deployment labels for the final data set.  See
@@ -1646,16 +1798,13 @@ public Builder putLabels(
      *
      * map<string, string> labels = 6;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       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);
     }
 
@@ -1665,12 +1814,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.devtools.cloudprofiler.v2.Profile)
   }
 
   // @@protoc_insertion_point(class_scope:google.devtools.cloudprofiler.v2.Profile)
   private static final com.google.devtools.cloudprofiler.v2.Profile DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.devtools.cloudprofiler.v2.Profile();
   }
@@ -1679,16 +1828,16 @@ public static com.google.devtools.cloudprofiler.v2.Profile getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Profile parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Profile(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Profile parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Profile(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1703,6 +1852,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.devtools.cloudprofiler.v2.Profile getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java
similarity index 82%
rename from owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java
rename to proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java
index 880b12d..b07800f 100644
--- a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java
+++ b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java
@@ -1,33 +1,56 @@
+/*
+ * 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/devtools/cloudprofiler/v2/profiler.proto
 
 package com.google.devtools.cloudprofiler.v2;
 
-public interface ProfileOrBuilder extends
+public interface ProfileOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.devtools.cloudprofiler.v2.Profile)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Output only. Opaque, server-assigned, unique ID for this profile.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Opaque, server-assigned, unique ID for this profile.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Type of profile.
    * For offline mode, this must be specified when creating the profile. For
@@ -35,10 +58,13 @@ public interface ProfileOrBuilder extends
    * 
* * .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @return The enum numeric value on the wire for profileType. */ int getProfileTypeValue(); /** + * + * *
    * Type of profile.
    * For offline mode, this must be specified when creating the profile. For
@@ -46,29 +72,38 @@ public interface ProfileOrBuilder extends
    * 
* * .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2; + * * @return The profileType. */ com.google.devtools.cloudprofiler.v2.ProfileType getProfileType(); /** + * + * *
    * Deployment this profile corresponds to.
    * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 3; + * * @return Whether the deployment field is set. */ boolean hasDeployment(); /** + * + * *
    * Deployment this profile corresponds to.
    * 
* * .google.devtools.cloudprofiler.v2.Deployment deployment = 3; + * * @return The deployment. */ com.google.devtools.cloudprofiler.v2.Deployment getDeployment(); /** + * + * *
    * Deployment this profile corresponds to.
    * 
@@ -78,6 +113,8 @@ public interface ProfileOrBuilder extends com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrBuilder(); /** + * + * *
    * Duration of the profiling session.
    * Input (for the offline mode) or output (for the online mode).
@@ -88,10 +125,13 @@ public interface ProfileOrBuilder extends
    * 
* * .google.protobuf.Duration duration = 4; + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
    * Duration of the profiling session.
    * Input (for the offline mode) or output (for the online mode).
@@ -102,10 +142,13 @@ public interface ProfileOrBuilder extends
    * 
* * .google.protobuf.Duration duration = 4; + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
    * Duration of the profiling session.
    * Input (for the offline mode) or output (for the online mode).
@@ -120,17 +163,22 @@ public interface ProfileOrBuilder extends
   com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Input only. Profile bytes, as a gzip compressed serialized proto, the
    * format is https://github.com/google/pprof/blob/master/proto/profile.proto.
    * 
* * bytes profile_bytes = 5; + * * @return The profileBytes. */ com.google.protobuf.ByteString getProfileBytes(); /** + * + * *
    * Input only. Labels associated to this specific profile. These labels will
    * get merged with the deployment labels for the final data set.  See
@@ -141,6 +189,8 @@ public interface ProfileOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Input only. Labels associated to this specific profile. These labels will
    * get merged with the deployment labels for the final data set.  See
@@ -149,15 +199,13 @@ public interface ProfileOrBuilder extends
    *
    * map<string, string> labels = 6;
    */
-  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();
   /**
+   *
+   *
    * 
    * Input only. Labels associated to this specific profile. These labels will
    * get merged with the deployment labels for the final data set.  See
@@ -166,9 +214,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 6;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Input only. Labels associated to this specific profile. These labels will
    * get merged with the deployment labels for the final data set.  See
@@ -179,11 +228,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Input only. Labels associated to this specific profile. These labels will
    * get merged with the deployment labels for the final data set.  See
@@ -192,7 +243,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 6;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java
similarity index 75%
rename from owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java
rename to proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java
index 1884c78..13f756b 100644
--- a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java
+++ b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/devtools/cloudprofiler/v2/profiler.proto
 
 package com.google.devtools.cloudprofiler.v2;
 
 /**
+ *
+ *
  * 
  * ProfileType is type of profiling data.
  * NOTE: the enumeration member names are used (in lowercase) as unique string
@@ -12,9 +29,10 @@
  *
  * Protobuf enum {@code google.devtools.cloudprofiler.v2.ProfileType}
  */
-public enum ProfileType
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Unspecified profile type.
    * 
@@ -23,6 +41,8 @@ public enum ProfileType */ PROFILE_TYPE_UNSPECIFIED(0), /** + * + * *
    * Thread CPU time sampling.
    * 
@@ -31,6 +51,8 @@ public enum ProfileType */ CPU(1), /** + * + * *
    * Wallclock time sampling. More expensive as stops all threads.
    * 
@@ -39,6 +61,8 @@ public enum ProfileType */ WALL(2), /** + * + * *
    * In-use heap profile. Represents a snapshot of the allocations that are
    * live at the time of the profiling.
@@ -48,6 +72,8 @@ public enum ProfileType
    */
   HEAP(3),
   /**
+   *
+   *
    * 
    * Single-shot collection of all thread stacks.
    * 
@@ -56,6 +82,8 @@ public enum ProfileType */ THREADS(4), /** + * + * *
    * Synchronization contention profile.
    * 
@@ -64,6 +92,8 @@ public enum ProfileType */ CONTENTION(5), /** + * + * *
    * Peak heap profile.
    * 
@@ -72,6 +102,8 @@ public enum ProfileType */ PEAK_HEAP(6), /** + * + * *
    * Heap allocation profile. It represents the aggregation of all allocations
    * made over the duration of the profile. All allocations are included,
@@ -88,6 +120,8 @@ public enum ProfileType
   ;
 
   /**
+   *
+   *
    * 
    * Unspecified profile type.
    * 
@@ -96,6 +130,8 @@ public enum ProfileType */ public static final int PROFILE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Thread CPU time sampling.
    * 
@@ -104,6 +140,8 @@ public enum ProfileType */ public static final int CPU_VALUE = 1; /** + * + * *
    * Wallclock time sampling. More expensive as stops all threads.
    * 
@@ -112,6 +150,8 @@ public enum ProfileType */ public static final int WALL_VALUE = 2; /** + * + * *
    * In-use heap profile. Represents a snapshot of the allocations that are
    * live at the time of the profiling.
@@ -121,6 +161,8 @@ public enum ProfileType
    */
   public static final int HEAP_VALUE = 3;
   /**
+   *
+   *
    * 
    * Single-shot collection of all thread stacks.
    * 
@@ -129,6 +171,8 @@ public enum ProfileType */ public static final int THREADS_VALUE = 4; /** + * + * *
    * Synchronization contention profile.
    * 
@@ -137,6 +181,8 @@ public enum ProfileType */ public static final int CONTENTION_VALUE = 5; /** + * + * *
    * Peak heap profile.
    * 
@@ -145,6 +191,8 @@ public enum ProfileType */ public static final int PEAK_HEAP_VALUE = 6; /** + * + * *
    * Heap allocation profile. It represents the aggregation of all allocations
    * made over the duration of the profile. All allocations are included,
@@ -158,7 +206,6 @@ public enum ProfileType
    */
   public static final int HEAP_ALLOC_VALUE = 7;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -183,54 +230,59 @@ public static ProfileType valueOf(int value) {
    */
   public static ProfileType forNumber(int value) {
     switch (value) {
-      case 0: return PROFILE_TYPE_UNSPECIFIED;
-      case 1: return CPU;
-      case 2: return WALL;
-      case 3: return HEAP;
-      case 4: return THREADS;
-      case 5: return CONTENTION;
-      case 6: return PEAK_HEAP;
-      case 7: return HEAP_ALLOC;
-      default: return null;
+      case 0:
+        return PROFILE_TYPE_UNSPECIFIED;
+      case 1:
+        return CPU;
+      case 2:
+        return WALL;
+      case 3:
+        return HEAP;
+      case 4:
+        return THREADS;
+      case 5:
+        return CONTENTION;
+      case 6:
+        return PEAK_HEAP;
+      case 7:
+        return HEAP_ALLOC;
+      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<
-      ProfileType> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public ProfileType findValueByNumber(int number) {
-            return ProfileType.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 ProfileType findValueByNumber(int number) {
+          return ProfileType.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.devtools.cloudprofiler.v2.ProfilerProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final ProfileType[] VALUES = values();
 
-  public static ProfileType valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static ProfileType 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;
@@ -246,4 +298,3 @@ private ProfileType(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.devtools.cloudprofiler.v2.ProfileType)
 }
-
diff --git a/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java
new file mode 100644
index 0000000..7c435ce
--- /dev/null
+++ b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java
@@ -0,0 +1,205 @@
+/*
+ * 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/devtools/cloudprofiler/v2/profiler.proto
+
+package com.google.devtools.cloudprofiler.v2;
+
+public final class ProfilerProto {
+  private ProfilerProto() {}
+
+  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_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_devtools_cloudprofiler_v2_Profile_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_devtools_cloudprofiler_v2_Deployment_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_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/devtools/cloudprofiler/v2/profi"
+          + "ler.proto\022 google.devtools.cloudprofiler"
+          + ".v2\032\034google/api/annotations.proto\032\036googl"
+          + "e/protobuf/duration.proto\032 google/protob"
+          + "uf/field_mask.proto\032\027google/api/client.p"
+          + "roto\"\255\001\n\024CreateProfileRequest\022\016\n\006parent\030"
+          + "\004 \001(\t\022@\n\ndeployment\030\001 \001(\0132,.google.devto"
+          + "ols.cloudprofiler.v2.Deployment\022C\n\014profi"
+          + "le_type\030\002 \003(\0162-.google.devtools.cloudpro"
+          + "filer.v2.ProfileType\"i\n\033CreateOfflinePro"
+          + "fileRequest\022\016\n\006parent\030\001 \001(\t\022:\n\007profile\030\002"
+          + " \001(\0132).google.devtools.cloudprofiler.v2."
+          + "Profile\"\203\001\n\024UpdateProfileRequest\022:\n\007prof"
+          + "ile\030\001 \001(\0132).google.devtools.cloudprofile"
+          + "r.v2.Profile\022/\n\013update_mask\030\002 \001(\0132\032.goog"
+          + "le.protobuf.FieldMask\"\330\002\n\007Profile\022\014\n\004nam"
+          + "e\030\001 \001(\t\022C\n\014profile_type\030\002 \001(\0162-.google.d"
+          + "evtools.cloudprofiler.v2.ProfileType\022@\n\n"
+          + "deployment\030\003 \001(\0132,.google.devtools.cloud"
+          + "profiler.v2.Deployment\022+\n\010duration\030\004 \001(\013"
+          + "2\031.google.protobuf.Duration\022\025\n\rprofile_b"
+          + "ytes\030\005 \001(\014\022E\n\006labels\030\006 \003(\01325.google.devt"
+          + "ools.cloudprofiler.v2.Profile.LabelsEntr"
+          + "y\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002"
+          + " \001(\t:\0028\001\"\251\001\n\nDeployment\022\022\n\nproject_id\030\001 "
+          + "\001(\t\022\016\n\006target\030\002 \001(\t\022H\n\006labels\030\003 \003(\01328.go"
+          + "ogle.devtools.cloudprofiler.v2.Deploymen"
+          + "t.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001("
+          + "\t\022\r\n\005value\030\002 \001(\t:\0028\001*\204\001\n\013ProfileType\022\034\n\030"
+          + "PROFILE_TYPE_UNSPECIFIED\020\000\022\007\n\003CPU\020\001\022\010\n\004W"
+          + "ALL\020\002\022\010\n\004HEAP\020\003\022\013\n\007THREADS\020\004\022\016\n\nCONTENTI"
+          + "ON\020\005\022\r\n\tPEAK_HEAP\020\006\022\016\n\nHEAP_ALLOC\020\0072\327\005\n\017"
+          + "ProfilerService\022\237\001\n\rCreateProfile\0226.goog"
+          + "le.devtools.cloudprofiler.v2.CreateProfi"
+          + "leRequest\032).google.devtools.cloudprofile"
+          + "r.v2.Profile\"+\202\323\344\223\002%\" /v2/{parent=projec"
+          + "ts/*}/profiles:\001*\022\301\001\n\024CreateOfflineProfi"
+          + "le\022=.google.devtools.cloudprofiler.v2.Cr"
+          + "eateOfflineProfileRequest\032).google.devto"
+          + "ols.cloudprofiler.v2.Profile\"?\202\323\344\223\0029\"./v"
+          + "2/{parent=projects/*}/profiles:createOff"
+          + "line:\007profile\022\255\001\n\rUpdateProfile\0226.google"
+          + ".devtools.cloudprofiler.v2.UpdateProfile"
+          + "Request\032).google.devtools.cloudprofiler."
+          + "v2.Profile\"9\202\323\344\223\00232(/v2/{profile.name=pr"
+          + "ojects/*/profiles/*}:\007profile\032\255\001\312A\034cloud"
+          + "profiler.googleapis.com\322A\212\001https://www.g"
+          + "oogleapis.com/auth/cloud-platform,https:"
+          + "//www.googleapis.com/auth/monitoring,htt"
+          + "ps://www.googleapis.com/auth/monitoring."
+          + "writeB\332\001\n$com.google.devtools.cloudprofi"
+          + "ler.v2B\rProfilerProtoP\001ZMgoogle.golang.o"
+          + "rg/genproto/googleapis/devtools/cloudpro"
+          + "filer/v2;cloudprofiler\252\002\030Google.Cloud.Pr"
+          + "ofiler.V2\312\002\030Google\\Cloud\\Profiler\\V2\352\002\033G"
+          + "oogle::Cloud::Profiler::V2b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.AnnotationsProto.getDescriptor(),
+              com.google.protobuf.DurationProto.getDescriptor(),
+              com.google.protobuf.FieldMaskProto.getDescriptor(),
+              com.google.api.ClientProto.getDescriptor(),
+            });
+    internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_devtools_cloudprofiler_v2_CreateProfileRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "Deployment", "ProfileType",
+            });
+    internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_devtools_cloudprofiler_v2_CreateOfflineProfileRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "Profile",
+            });
+    internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor,
+            new java.lang.String[] {
+              "Profile", "UpdateMask",
+            });
+    internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_devtools_cloudprofiler_v2_Profile_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor,
+            new java.lang.String[] {
+              "Name", "ProfileType", "Deployment", "Duration", "ProfileBytes", "Labels",
+            });
+    internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_descriptor =
+        internal_static_google_devtools_cloudprofiler_v2_Profile_descriptor.getNestedTypes().get(0);
+    internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_devtools_cloudprofiler_v2_Profile_LabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_devtools_cloudprofiler_v2_Deployment_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor,
+            new java.lang.String[] {
+              "ProjectId", "Target", "Labels",
+            });
+    internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_descriptor =
+        internal_static_google_devtools_cloudprofiler_v2_Deployment_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_devtools_cloudprofiler_v2_Deployment_LabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.protobuf.DurationProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java
similarity index 71%
rename from owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java
rename to proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java
index 95de86d..a723ea4 100644
--- a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java
+++ b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java
@@ -1,39 +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/devtools/cloudprofiler/v2/profiler.proto
 
 package com.google.devtools.cloudprofiler.v2;
 
 /**
+ *
+ *
  * 
  * UpdateProfileRequest contains the profile to update.
  * 
* * Protobuf type {@code google.devtools.cloudprofiler.v2.UpdateProfileRequest} */ -public final class UpdateProfileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.devtools.cloudprofiler.v2.UpdateProfileRequest) UpdateProfileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateProfileRequest.newBuilder() to construct. private UpdateProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateProfileRequest() { - } + + private UpdateProfileRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateProfileRequest( case 0: done = true; break; - case 10: { - com.google.devtools.cloudprofiler.v2.Profile.Builder subBuilder = null; - if (profile_ != null) { - subBuilder = profile_.toBuilder(); - } - profile_ = input.readMessage(com.google.devtools.cloudprofiler.v2.Profile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(profile_); - profile_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.devtools.cloudprofiler.v2.Profile.Builder subBuilder = null; + if (profile_ != null) { + subBuilder = profile_.toBuilder(); + } + profile_ = + input.readMessage( + com.google.devtools.cloudprofiler.v2.Profile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(profile_); + profile_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +113,39 @@ private UpdateProfileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.cloudprofiler.v2.ProfilerProto + .internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_fieldAccessorTable + return com.google.devtools.cloudprofiler.v2.ProfilerProto + .internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.class, com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.Builder.class); + com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.class, + com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.Builder.class); } public static final int PROFILE_FIELD_NUMBER = 1; private com.google.devtools.cloudprofiler.v2.Profile profile_; /** + * + * *
    * Profile to update
    * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 1; + * * @return Whether the profile field is set. */ @java.lang.Override @@ -127,18 +153,25 @@ public boolean hasProfile() { return profile_ != null; } /** + * + * *
    * Profile to update
    * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 1; + * * @return The profile. */ @java.lang.Override public com.google.devtools.cloudprofiler.v2.Profile getProfile() { - return profile_ == null ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() : profile_; + return profile_ == null + ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() + : profile_; } /** + * + * *
    * Profile to update
    * 
@@ -153,6 +186,8 @@ public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Field mask used to specify the fields to be overwritten. Currently only
    * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -161,6 +196,7 @@ public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -168,6 +204,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Field mask used to specify the fields to be overwritten. Currently only
    * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -176,6 +214,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -183,6 +222,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Field mask used to specify the fields to be overwritten. Currently only
    * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -198,6 +239,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -209,8 +251,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 (profile_ != null) {
       output.writeMessage(1, getProfile());
     }
@@ -227,12 +268,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (profile_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getProfile());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProfile());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -242,22 +281,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.devtools.cloudprofiler.v2.UpdateProfileRequest)) {
       return super.equals(obj);
     }
-    com.google.devtools.cloudprofiler.v2.UpdateProfileRequest other = (com.google.devtools.cloudprofiler.v2.UpdateProfileRequest) obj;
+    com.google.devtools.cloudprofiler.v2.UpdateProfileRequest other =
+        (com.google.devtools.cloudprofiler.v2.UpdateProfileRequest) obj;
 
     if (hasProfile() != other.hasProfile()) return false;
     if (hasProfile()) {
-      if (!getProfile()
-          .equals(other.getProfile())) return false;
+      if (!getProfile().equals(other.getProfile())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -284,117 +322,127 @@ public int hashCode() {
   }
 
   public static com.google.devtools.cloudprofiler.v2.UpdateProfileRequest 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.devtools.cloudprofiler.v2.UpdateProfileRequest 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.devtools.cloudprofiler.v2.UpdateProfileRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.devtools.cloudprofiler.v2.UpdateProfileRequest 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.devtools.cloudprofiler.v2.UpdateProfileRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.devtools.cloudprofiler.v2.UpdateProfileRequest 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.devtools.cloudprofiler.v2.UpdateProfileRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.devtools.cloudprofiler.v2.UpdateProfileRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.devtools.cloudprofiler.v2.UpdateProfileRequest 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.devtools.cloudprofiler.v2.UpdateProfileRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.devtools.cloudprofiler.v2.UpdateProfileRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.devtools.cloudprofiler.v2.UpdateProfileRequest 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.devtools.cloudprofiler.v2.UpdateProfileRequest 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.devtools.cloudprofiler.v2.UpdateProfileRequest 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.devtools.cloudprofiler.v2.UpdateProfileRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.devtools.cloudprofiler.v2.UpdateProfileRequest 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;
   }
   /**
+   *
+   *
    * 
    * UpdateProfileRequest contains the profile to update.
    * 
* * Protobuf type {@code google.devtools.cloudprofiler.v2.UpdateProfileRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.devtools.cloudprofiler.v2.UpdateProfileRequest) com.google.devtools.cloudprofiler.v2.UpdateProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.cloudprofiler.v2.ProfilerProto + .internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_fieldAccessorTable + return com.google.devtools.cloudprofiler.v2.ProfilerProto + .internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.class, com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.Builder.class); + com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.class, + com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.Builder.class); } // Construct using com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.newBuilder() @@ -402,16 +450,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -431,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.devtools.cloudprofiler.v2.ProfilerProto.internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.cloudprofiler.v2.ProfilerProto + .internal_static_google_devtools_cloudprofiler_v2_UpdateProfileRequest_descriptor; } @java.lang.Override @@ -452,7 +499,8 @@ public com.google.devtools.cloudprofiler.v2.UpdateProfileRequest build() { @java.lang.Override public com.google.devtools.cloudprofiler.v2.UpdateProfileRequest buildPartial() { - com.google.devtools.cloudprofiler.v2.UpdateProfileRequest result = new com.google.devtools.cloudprofiler.v2.UpdateProfileRequest(this); + com.google.devtools.cloudprofiler.v2.UpdateProfileRequest result = + new com.google.devtools.cloudprofiler.v2.UpdateProfileRequest(this); if (profileBuilder_ == null) { result.profile_ = profile_; } else { @@ -471,38 +519,39 @@ public com.google.devtools.cloudprofiler.v2.UpdateProfileRequest 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.devtools.cloudprofiler.v2.UpdateProfileRequest) { - return mergeFrom((com.google.devtools.cloudprofiler.v2.UpdateProfileRequest)other); + return mergeFrom((com.google.devtools.cloudprofiler.v2.UpdateProfileRequest) other); } else { super.mergeFrom(other); return this; @@ -510,7 +559,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.devtools.cloudprofiler.v2.UpdateProfileRequest other) { - if (other == com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.getDefaultInstance()) return this; + if (other == com.google.devtools.cloudprofiler.v2.UpdateProfileRequest.getDefaultInstance()) + return this; if (other.hasProfile()) { mergeProfile(other.getProfile()); } @@ -536,7 +586,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.devtools.cloudprofiler.v2.UpdateProfileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.devtools.cloudprofiler.v2.UpdateProfileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -548,34 +599,47 @@ public Builder mergeFrom( private com.google.devtools.cloudprofiler.v2.Profile profile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Profile, com.google.devtools.cloudprofiler.v2.Profile.Builder, com.google.devtools.cloudprofiler.v2.ProfileOrBuilder> profileBuilder_; + com.google.devtools.cloudprofiler.v2.Profile, + com.google.devtools.cloudprofiler.v2.Profile.Builder, + com.google.devtools.cloudprofiler.v2.ProfileOrBuilder> + profileBuilder_; /** + * + * *
      * Profile to update
      * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 1; + * * @return Whether the profile field is set. */ public boolean hasProfile() { return profileBuilder_ != null || profile_ != null; } /** + * + * *
      * Profile to update
      * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 1; + * * @return The profile. */ public com.google.devtools.cloudprofiler.v2.Profile getProfile() { if (profileBuilder_ == null) { - return profile_ == null ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() : profile_; + return profile_ == null + ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() + : profile_; } else { return profileBuilder_.getMessage(); } } /** + * + * *
      * Profile to update
      * 
@@ -596,6 +660,8 @@ public Builder setProfile(com.google.devtools.cloudprofiler.v2.Profile value) { return this; } /** + * + * *
      * Profile to update
      * 
@@ -614,6 +680,8 @@ public Builder setProfile( return this; } /** + * + * *
      * Profile to update
      * 
@@ -624,7 +692,9 @@ public Builder mergeProfile(com.google.devtools.cloudprofiler.v2.Profile value) if (profileBuilder_ == null) { if (profile_ != null) { profile_ = - com.google.devtools.cloudprofiler.v2.Profile.newBuilder(profile_).mergeFrom(value).buildPartial(); + com.google.devtools.cloudprofiler.v2.Profile.newBuilder(profile_) + .mergeFrom(value) + .buildPartial(); } else { profile_ = value; } @@ -636,6 +706,8 @@ public Builder mergeProfile(com.google.devtools.cloudprofiler.v2.Profile value) return this; } /** + * + * *
      * Profile to update
      * 
@@ -654,6 +726,8 @@ public Builder clearProfile() { return this; } /** + * + * *
      * Profile to update
      * 
@@ -661,11 +735,13 @@ public Builder clearProfile() { * .google.devtools.cloudprofiler.v2.Profile profile = 1; */ public com.google.devtools.cloudprofiler.v2.Profile.Builder getProfileBuilder() { - + onChanged(); return getProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Profile to update
      * 
@@ -676,11 +752,14 @@ public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder if (profileBuilder_ != null) { return profileBuilder_.getMessageOrBuilder(); } else { - return profile_ == null ? - com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() : profile_; + return profile_ == null + ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() + : profile_; } } /** + * + * *
      * Profile to update
      * 
@@ -688,14 +767,17 @@ public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder * .google.devtools.cloudprofiler.v2.Profile profile = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Profile, com.google.devtools.cloudprofiler.v2.Profile.Builder, com.google.devtools.cloudprofiler.v2.ProfileOrBuilder> + com.google.devtools.cloudprofiler.v2.Profile, + com.google.devtools.cloudprofiler.v2.Profile.Builder, + com.google.devtools.cloudprofiler.v2.ProfileOrBuilder> getProfileFieldBuilder() { if (profileBuilder_ == null) { - profileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.cloudprofiler.v2.Profile, com.google.devtools.cloudprofiler.v2.Profile.Builder, com.google.devtools.cloudprofiler.v2.ProfileOrBuilder>( - getProfile(), - getParentForChildren(), - isClean()); + profileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.cloudprofiler.v2.Profile, + com.google.devtools.cloudprofiler.v2.Profile.Builder, + com.google.devtools.cloudprofiler.v2.ProfileOrBuilder>( + getProfile(), getParentForChildren(), isClean()); profile_ = null; } return profileBuilder_; @@ -703,8 +785,13 @@ public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Field mask used to specify the fields to be overwritten. Currently only
      * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -713,12 +800,15 @@ public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Field mask used to specify the fields to be overwritten. Currently only
      * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -727,16 +817,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Field mask used to specify the fields to be overwritten. Currently only
      * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -760,6 +855,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask used to specify the fields to be overwritten. Currently only
      * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -769,8 +866,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -781,6 +877,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask used to specify the fields to be overwritten. Currently only
      * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -794,7 +892,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -806,6 +904,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask used to specify the fields to be overwritten. Currently only
      * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -827,6 +927,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask used to specify the fields to be overwritten. Currently only
      * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -837,11 +939,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Field mask used to specify the fields to be overwritten. Currently only
      * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -855,11 +959,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * Field mask used to specify the fields to be overwritten. Currently only
      * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -870,21 +977,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @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);
     }
 
@@ -894,12 +1004,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.devtools.cloudprofiler.v2.UpdateProfileRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.devtools.cloudprofiler.v2.UpdateProfileRequest)
   private static final com.google.devtools.cloudprofiler.v2.UpdateProfileRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.devtools.cloudprofiler.v2.UpdateProfileRequest();
   }
@@ -908,16 +1018,16 @@ public static com.google.devtools.cloudprofiler.v2.UpdateProfileRequest getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateProfileRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateProfileRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateProfileRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateProfileRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -932,6 +1042,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.devtools.cloudprofiler.v2.UpdateProfileRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java
similarity index 75%
rename from owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java
rename to proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java
index 781d7b6..54fa1f2 100644
--- a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java
+++ b/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.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/devtools/cloudprofiler/v2/profiler.proto
 
 package com.google.devtools.cloudprofiler.v2;
 
-public interface UpdateProfileRequestOrBuilder extends
+public interface UpdateProfileRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.devtools.cloudprofiler.v2.UpdateProfileRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Profile to update
    * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 1; + * * @return Whether the profile field is set. */ boolean hasProfile(); /** + * + * *
    * Profile to update
    * 
* * .google.devtools.cloudprofiler.v2.Profile profile = 1; + * * @return The profile. */ com.google.devtools.cloudprofiler.v2.Profile getProfile(); /** + * + * *
    * Profile to update
    * 
@@ -35,6 +59,8 @@ public interface UpdateProfileRequestOrBuilder extends com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder(); /** + * + * *
    * Field mask used to specify the fields to be overwritten. Currently only
    * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -43,10 +69,13 @@ public interface UpdateProfileRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Field mask used to specify the fields to be overwritten. Currently only
    * profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -55,10 +84,13 @@ public interface UpdateProfileRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Field mask used to specify the fields to be overwritten. Currently only
    * profile_bytes and labels fields are supported by UpdateProfile, so only
diff --git a/owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/proto/google/devtools/cloudprofiler/v2/profiler.proto b/proto-google-cloud-profiler-v2/src/main/proto/google/devtools/cloudprofiler/v2/profiler.proto
similarity index 100%
rename from owl-bot-staging/v2/proto-google-cloud-profiler-v2/src/main/proto/google/devtools/cloudprofiler/v2/profiler.proto
rename to proto-google-cloud-profiler-v2/src/main/proto/google/devtools/cloudprofiler/v2/profiler.proto

From 803299ff664d27c6b9a99d05de9bfe89476e323c Mon Sep 17 00:00:00 2001
From: Tomo Suzuki 
Date: Thu, 23 Jun 2022 21:13:39 +0000
Subject: [PATCH 3/3] deps: adding gax-httpjson

---
 google-cloud-profiler/pom.xml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/google-cloud-profiler/pom.xml b/google-cloud-profiler/pom.xml
index 25f4912..b10e4f3 100644
--- a/google-cloud-profiler/pom.xml
+++ b/google-cloud-profiler/pom.xml
@@ -58,6 +58,10 @@
       com.google.api
       gax-grpc
     
+    
+      com.google.api
+      gax-httpjson
+    
     
       org.threeten
       threetenbp
@@ -77,12 +81,24 @@
       test
     
     
+    
+      com.google.api
+      gax
+      testlib
+      test
+    
     
       com.google.api
       gax-grpc
       testlib
       test
     
+    
+      com.google.api
+      gax-httpjson
+      testlib
+      test
+