diff --git a/owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java rename to java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java diff --git a/owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java similarity index 99% rename from owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java rename to java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java index 74921cd87fe4..a78ea707bcbb 100644 --- a/owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java +++ b/java-profiler/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; diff --git a/owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/gapic_metadata.json b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/gapic_metadata.json rename to java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/gapic_metadata.json diff --git a/owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/package-info.java b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/package-info.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/package-info.java rename to java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/package-info.java diff --git a/owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceCallableFactory.java b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceCallableFactory.java rename to java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceCallableFactory.java diff --git a/owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java similarity index 99% rename from owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java rename to java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java index 6c45c6d510b2..6f518f6d94fd 100644 --- a/owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/GrpcProfilerServiceStub.java +++ b/java-profiler/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/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceCallableFactory.java b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceCallableFactory.java rename to java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceCallableFactory.java diff --git a/owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceStub.java b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceStub.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceStub.java rename to java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/HttpJsonProfilerServiceStub.java diff --git a/owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStub.java b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStub.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStub.java rename to java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStub.java diff --git a/owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java rename to java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java diff --git a/owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/resources/META-INF/native-image/com.google.devtools.cloudprofiler.v2/reflect-config.json b/java-profiler/google-cloud-profiler/src/main/resources/META-INF/native-image/com.google.devtools.cloudprofiler.v2/reflect-config.json similarity index 100% rename from owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/main/resources/META-INF/native-image/com.google.devtools.cloudprofiler.v2/reflect-config.json rename to java-profiler/google-cloud-profiler/src/main/resources/META-INF/native-image/com.google.devtools.cloudprofiler.v2/reflect-config.json diff --git a/owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerService.java b/java-profiler/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerService.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerService.java rename to java-profiler/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerService.java diff --git a/owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerServiceImpl.java b/java-profiler/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerServiceImpl.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerServiceImpl.java rename to java-profiler/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/MockProfilerServiceImpl.java diff --git a/owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientHttpJsonTest.java b/java-profiler/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientHttpJsonTest.java rename to java-profiler/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientTest.java b/java-profiler/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientTest.java rename to java-profiler/google-cloud-profiler/src/test/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClientTest.java diff --git a/owl-bot-staging/java-profiler/v2/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java b/java-profiler/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java similarity index 57% rename from owl-bot-staging/java-profiler/v2/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java rename to java-profiler/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java index c1fae02acb74..11779a7df9eb 100644 --- a/owl-bot-staging/java-profiler/v2/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java +++ b/java-profiler/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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. @@ -19,147 +36,195 @@ public final class ProfilerServiceGrpc { private ProfilerServiceGrpc() {} - public static final java.lang.String SERVICE_NAME = "google.devtools.cloudprofiler.v2.ProfilerService"; + public static final java.lang.String SERVICE_NAME = + "google.devtools.cloudprofiler.v2.ProfilerService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptorgetCreateProfileMethod; + 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. @@ -171,6 +236,8 @@ public ProfilerServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOp public interface AsyncService { /** + * + * ** 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 +252,34 @@ public interface AsyncService { * "google.rpc.retryinfo-bin". **/ - default void createProfile(com.google.devtools.cloudprofiler.v2.CreateProfileRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateProfileMethod(), responseObserver); + default 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. **/ - default void createOfflineProfile(com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateOfflineProfileMethod(), responseObserver); + default 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,14 +287,18 @@ default void createOfflineProfile(com.google.devtools.cloudprofiler.v2.CreateOff * provided at the time of the profile creation. **/ - default void updateProfile(com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateProfileMethod(), responseObserver); + default void updateProfile( + com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateProfileMethod(), responseObserver); } } /** * Base class for the server implementation of the service ProfilerService. + * * * Manage the collection of continuous profiling data provided by profiling * agents running in the cloud or by an offline provider of profiling data. @@ -226,16 +307,18 @@ default void updateProfile(com.google.devtools.cloudprofiler.v2.UpdateProfileReq * * Profiles can be created in either online or offline mode, see below. **/ - public static abstract class ProfilerServiceImplBase + public abstract static class ProfilerServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return ProfilerServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service ProfilerService. + * ** Manage the collection of continuous profiling data provided by profiling * agents running in the cloud or by an offline provider of profiling data. @@ -246,18 +329,18 @@ public static abstract class ProfilerServiceImplBase */ public static final class ProfilerServiceStub extends io.grpc.stub.AbstractAsyncStub{ - private ProfilerServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + 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 @@ -272,26 +355,38 @@ protected ProfilerServiceStub build( * "google.rpc.retryinfo-bin". **/ - public void createProfile(com.google.devtools.cloudprofiler.v2.CreateProfileRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + 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.StreamObserverresponseObserver) { + 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 @@ -299,15 +394,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.StreamObserverresponseObserver) { + 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); } } /** * A stub to allow clients to do synchronous rpc calls to service ProfilerService. + * * * Manage the collection of continuous profiling data provided by profiling * agents running in the cloud or by an offline provider of profiling data. @@ -318,8 +418,7 @@ public void updateProfile(com.google.devtools.cloudprofiler.v2.UpdateProfileRequ */ public static final class ProfilerServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub{ - private ProfilerServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private ProfilerServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -330,6 +429,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 @@ -344,24 +445,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 @@ -369,7 +476,8 @@ 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); } @@ -377,6 +485,7 @@ public com.google.devtools.cloudprofiler.v2.Profile updateProfile(com.google.dev /** * A stub to allow clients to do ListenableFuture-style rpc calls to service ProfilerService. + * ** Manage the collection of continuous profiling data provided by profiling * agents running in the cloud or by an offline provider of profiling data. @@ -387,8 +496,7 @@ public com.google.devtools.cloudprofiler.v2.Profile updateProfile(com.google.dev */ public static final class ProfilerServiceFutureStub extends io.grpc.stub.AbstractFutureStub{ - private ProfilerServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private ProfilerServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -399,6 +507,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 @@ -413,26 +523,33 @@ protected ProfilerServiceFutureStub build( * "google.rpc.retryinfo-bin". **/ - public com.google.common.util.concurrent.ListenableFuturecreateProfile( - 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.ListenableFuturecreateOfflineProfile( - 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 @@ -440,8 +557,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); } @@ -451,11 +569,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 AsyncService serviceImpl; private final int methodId; @@ -469,16 +587,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(); @@ -499,31 +623,32 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { 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>( - service, METHODID_CREATE_PROFILE))) + getCreateProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.cloudprofiler.v2.CreateProfileRequest, + com.google.devtools.cloudprofiler.v2.Profile>( + service, METHODID_CREATE_PROFILE))) .addMethod( - getCreateOfflineProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest, - com.google.devtools.cloudprofiler.v2.Profile>( - service, METHODID_CREATE_OFFLINE_PROFILE))) + getCreateOfflineProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest, + com.google.devtools.cloudprofiler.v2.Profile>( + service, 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>( - service, METHODID_UPDATE_PROFILE))) + getUpdateProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.cloudprofiler.v2.UpdateProfileRequest, + com.google.devtools.cloudprofiler.v2.Profile>( + service, METHODID_UPDATE_PROFILE))) .build(); } - 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 @@ -565,12 +690,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/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java similarity index 65% rename from owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java rename to java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java index a0bb09ba102b..5f46f1b147a0 100644 --- a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java +++ b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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. @@ -11,48 +28,54 @@ * * 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(); } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * ** Parent project to create the profile in. ** *string parent = 1 [(.google.api.resource_reference) = { ... }
+ * * @return The parent. */ @java.lang.Override @@ -61,29 +84,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 [(.google.api.resource_reference) = { ... }
+ * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -94,11 +117,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 @@ -106,18 +132,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. *@@ -126,10 +159,13 @@ public com.google.devtools.cloudprofiler.v2.Profile getProfile() { */ @java.lang.Override public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder() { - return profile_ == null ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() : profile_; + return profile_ == null + ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() + : profile_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,8 +177,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_); } @@ -162,8 +197,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -173,19 +207,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -210,98 +243,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. @@ -309,33 +348,32 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,13 +388,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(); } @@ -371,21 +410,23 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest result = + new com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest result) { + private void buildPartial0( + com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.profile_ = profileBuilder_ == null - ? profile_ - : profileBuilder_.build(); + result.profile_ = profileBuilder_ == null ? profile_ : profileBuilder_.build(); } } @@ -393,46 +434,50 @@ private void buildPartial0(com.google.devtools.cloudprofiler.v2.CreateOfflinePro 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_; bitField0_ |= 0x00000001; @@ -467,24 +512,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getProfileFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getProfileFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,22 +540,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * * * Parent project to create the profile in. ** *string parent = 1 [(.google.api.resource_reference) = { ... }
+ * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -518,20 +567,21 @@ public java.lang.String getParent() { } } /** + * + * ** Parent project to create the profile in. ** *string parent = 1 [(.google.api.resource_reference) = { ... }
+ * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -539,28 +589,35 @@ public java.lang.String getParent() { } } /** + * + * ** Parent project to create the profile in. ** *string parent = 1 [(.google.api.resource_reference) = { ... }
+ * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** Parent project to create the profile in. ** *string parent = 1 [(.google.api.resource_reference) = { ... }
+ * * @return This builder for chaining. */ public Builder clearParent() { @@ -570,17 +627,21 @@ public Builder clearParent() { return this; } /** + * + * ** Parent project to create the profile in. ** *string parent = 1 [(.google.api.resource_reference) = { ... }
+ * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -590,34 +651,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * ** 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. *@@ -638,6 +712,8 @@ public Builder setProfile(com.google.devtools.cloudprofiler.v2.Profile value) { return this; } /** + * + * ** Contents of the profile to create. *@@ -656,6 +732,8 @@ public Builder setProfile( return this; } /** + * + * ** Contents of the profile to create. *@@ -664,9 +742,9 @@ public Builder setProfile( */ public Builder mergeProfile(com.google.devtools.cloudprofiler.v2.Profile value) { if (profileBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - profile_ != null && - profile_ != com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && profile_ != null + && profile_ != com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance()) { getProfileBuilder().mergeFrom(value); } else { profile_ = value; @@ -679,6 +757,8 @@ public Builder mergeProfile(com.google.devtools.cloudprofiler.v2.Profile value) return this; } /** + * + * ** Contents of the profile to create. *@@ -696,6 +776,8 @@ public Builder clearProfile() { return this; } /** + * + * ** Contents of the profile to create. *@@ -708,6 +790,8 @@ public com.google.devtools.cloudprofiler.v2.Profile.Builder getProfileBuilder() return getProfileFieldBuilder().getBuilder(); } /** + * + * ** Contents of the profile to create. *@@ -718,11 +802,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. *@@ -730,21 +817,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); } @@ -754,41 +844,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public CreateOfflineProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -800,9 +892,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/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java rename to java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java index 1bde2b351aa2..f392e918fc45 100644 --- a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java +++ b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateOfflineProfileRequestOrBuilder.java @@ -1,51 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 [(.google.api.resource_reference) = { ... }
+ * * @return The parent. */ java.lang.String getParent(); /** + * + * ** Parent project to create the profile in. ** *string parent = 1 [(.google.api.resource_reference) = { ... }
+ * * @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/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java similarity index 72% rename from owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java rename to java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java index 37aafc34de86..4d3534de097b 100644 --- a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java +++ b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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,33 +47,38 @@ private CreateProfileRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateProfileRequest(); } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * ** Parent project to create the profile in. ** *string parent = 4 [(.google.api.resource_reference) = { ... }
+ * * @return The parent. */ @java.lang.Override @@ -64,29 +87,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 [(.google.api.resource_reference) = { ... }
+ * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -97,11 +120,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 @@ -109,18 +135,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. *@@ -129,40 +162,56 @@ public com.google.devtools.cloudprofiler.v2.Deployment getDeployment() { */ @java.lang.Override public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrBuilder() { - return deployment_ == null ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() : deployment_; + return deployment_ == null + ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() + : deployment_; } public static final int PROFILE_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.ListprofileType_; + 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) { - com.google.devtools.cloudprofiler.v2.ProfileType result = com.google.devtools.cloudprofiler.v2.ProfileType.forNumber(from); - return result == null ? com.google.devtools.cloudprofiler.v2.ProfileType.UNRECOGNIZED : result; + public com.google.devtools.cloudprofiler.v2.ProfileType convert( + java.lang.Integer from) { + com.google.devtools.cloudprofiler.v2.ProfileType result = + com.google.devtools.cloudprofiler.v2.ProfileType.forNumber(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.ListgetProfileTypeList() { 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 @@ -170,11 +219,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. */ @@ -183,24 +235,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. */ @@ -208,9 +265,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; @@ -222,8 +281,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()); @@ -248,20 +306,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_); @@ -274,19 +331,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -316,98 +372,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 @@ -417,33 +479,32 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.devtools.cloudprofiler.v2.CreateProfileRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -460,9 +521,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 @@ -481,14 +542,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.devtools.cloudprofiler.v2.CreateProfileRequest result) { + private void buildPartialRepeatedFields( + com.google.devtools.cloudprofiler.v2.CreateProfileRequest result) { if (((bitField0_ & 0x00000004) != 0)) { profileType_ = java.util.Collections.unmodifiableList(profileType_); bitField0_ = (bitField0_ & ~0x00000004); @@ -502,9 +567,7 @@ private void buildPartial0(com.google.devtools.cloudprofiler.v2.CreateProfileReq result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.deployment_ = deploymentBuilder_ == null - ? deployment_ - : deploymentBuilder_.build(); + result.deployment_ = deploymentBuilder_ == null ? deployment_ : deploymentBuilder_.build(); } } @@ -512,38 +575,39 @@ private void buildPartial0(com.google.devtools.cloudprofiler.v2.CreateProfileReq 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; @@ -551,7 +615,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_; bitField0_ |= 0x00000001; @@ -596,41 +661,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getDeploymentFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 16: { - int tmpRaw = input.readEnum(); - ensureProfileTypeIsMutable(); - profileType_.add(tmpRaw); - break; - } // case 16 - case 18: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 10: + { + input.readMessage(getDeploymentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 16: + { int tmpRaw = input.readEnum(); ensureProfileTypeIsMutable(); profileType_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 18 - case 34: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureProfileTypeIsMutable(); + profileType_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 18 + case 34: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -640,22 +708,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * * * Parent project to create the profile in. ** *string parent = 4 [(.google.api.resource_reference) = { ... }
+ * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -664,20 +735,21 @@ public java.lang.String getParent() { } } /** + * + * ** Parent project to create the profile in. ** *string parent = 4 [(.google.api.resource_reference) = { ... }
+ * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -685,28 +757,35 @@ public java.lang.String getParent() { } } /** + * + * ** Parent project to create the profile in. ** *string parent = 4 [(.google.api.resource_reference) = { ... }
+ * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** Parent project to create the profile in. ** *string parent = 4 [(.google.api.resource_reference) = { ... }
+ * * @return This builder for chaining. */ public Builder clearParent() { @@ -716,17 +795,21 @@ public Builder clearParent() { return this; } /** + * + * ** Parent project to create the profile in. ** *string parent = 4 [(.google.api.resource_reference) = { ... }
+ * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -736,34 +819,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * ** 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. *@@ -784,6 +880,8 @@ public Builder setDeployment(com.google.devtools.cloudprofiler.v2.Deployment val return this; } /** + * + * ** Deployment details. *@@ -802,6 +900,8 @@ public Builder setDeployment( return this; } /** + * + * ** Deployment details. *@@ -810,9 +910,10 @@ public Builder setDeployment( */ public Builder mergeDeployment(com.google.devtools.cloudprofiler.v2.Deployment value) { if (deploymentBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - deployment_ != null && - deployment_ != com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && deployment_ != null + && deployment_ + != com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance()) { getDeploymentBuilder().mergeFrom(value); } else { deployment_ = value; @@ -825,6 +926,8 @@ public Builder mergeDeployment(com.google.devtools.cloudprofiler.v2.Deployment v return this; } /** + * + * ** Deployment details. *@@ -842,6 +945,8 @@ public Builder clearDeployment() { return this; } /** + * + * ** Deployment details. *@@ -854,6 +959,8 @@ public com.google.devtools.cloudprofiler.v2.Deployment.Builder getDeploymentBuil return getDeploymentFieldBuilder().getBuilder(); } /** + * + * ** Deployment details. *@@ -864,11 +971,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. *@@ -876,21 +986,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.ListprofileType_ = - java.util.Collections.emptyList(); + private java.util.List profileType_ = java.util.Collections.emptyList(); + private void ensureProfileTypeIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { profileType_ = new java.util.ArrayList (profileType_); @@ -898,34 +1011,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.ListgetProfileTypeList() { 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. */ @@ -933,11 +1056,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. @@ -953,11 +1079,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. */ @@ -971,11 +1100,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. */ @@ -989,11 +1121,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() { @@ -1003,23 +1138,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. */ @@ -1027,28 +1167,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 to set the value at. * @param value The enum numeric value on the wire for profileType to set. * @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. */ @@ -1059,16 +1204,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.Iterablevalues) { + public Builder addAllProfileTypeValue(java.lang.Iterable values) { ensureProfileTypeIsMutable(); for (int value : values) { profileType_.add(value); @@ -1076,9 +1223,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); } @@ -1088,12 +1235,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(); } @@ -1102,27 +1249,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public CreateProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1137,6 +1284,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.devtools.cloudprofiler.v2.CreateProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java rename to java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java index e82adecd63d5..ffd0a3887ca1 100644 --- a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java +++ b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/CreateProfileRequestOrBuilder.java @@ -1,51 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 [(.google.api.resource_reference) = { ... }
+ * * @return The parent. */ java.lang.String getParent(); /** + * + * ** Parent project to create the profile in. ** *string parent = 4 [(.google.api.resource_reference) = { ... }
+ * * @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.ListgetProfileTypeList(); /** + * + * * * 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/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java similarity index 71% rename from owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java rename to java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java index d543e0331ce7..348a9987140e 100644 --- a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java +++ b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Deployment.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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,46 +44,50 @@ private Deployment() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Deployment(); } - 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; + @SuppressWarnings("serial") 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 @@ -74,30 +96,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 { @@ -106,9 +128,12 @@ public java.lang.String getProjectId() { } public static final int TARGET_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** + * + * ** Target is the service name used to group related deployments: * * Service name for App Engine Flex / Standard. @@ -119,6 +144,7 @@ public java.lang.String getProjectId() { ** *string target = 2;
+ * * @return The target. */ @java.lang.Override @@ -127,14 +153,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 App Engine Flex / Standard. @@ -145,16 +172,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 { @@ -163,32 +189,34 @@ 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, + ""); } + @SuppressWarnings("serial") - 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_; } + 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])?$`. @@ -208,20 +236,21 @@ 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.MapgetLabels() { 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])?$`. @@ -245,6 +274,8 @@ public java.util.MapgetLabelsMap() { 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])?$`. @@ -264,17 +295,19 @@ public java.util.MapgetLabelsMap() { * map<string, string> labels = 3;
*/ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Mapmap = - internalGetLabels().getMap(); + 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])?$`. @@ -294,11 +327,11 @@ 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.Mapmap = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -306,6 +339,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,20 +351,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); getUnknownFields().writeTo(output); } @@ -346,15 +375,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -364,19 +393,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -401,154 +428,156 @@ 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.Builderimplements + 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -560,9 +589,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 @@ -581,8 +610,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.devtools.cloudprofiler.v2.Deployment result = + new com.google.devtools.cloudprofiler.v2.Deployment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -605,38 +637,39 @@ private void buildPartial0(com.google.devtools.cloudprofiler.v2.Deployment resul 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; @@ -644,7 +677,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_; bitField0_ |= 0x00000001; @@ -655,8 +689,7 @@ public Builder mergeFrom(com.google.devtools.cloudprofiler.v2.Deployment other) bitField0_ |= 0x00000002; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000004; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -684,31 +717,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -718,23 +757,26 @@ public Builder mergeFrom( } // finally 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; @@ -743,21 +785,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 { @@ -765,30 +808,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } projectId_ = value; bitField0_ |= 0x00000001; 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() { @@ -798,18 +848,22 @@ public Builder clearProjectId() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000001; @@ -819,6 +873,8 @@ public Builder setProjectIdBytes( private java.lang.Object target_ = ""; /** + * + * ** Target is the service name used to group related deployments: * * Service name for App Engine Flex / Standard. @@ -829,13 +885,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; @@ -844,6 +900,8 @@ public java.lang.String getTarget() { } } /** + * + * ** Target is the service name used to group related deployments: * * Service name for App Engine Flex / Standard. @@ -854,15 +912,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 { @@ -870,6 +927,8 @@ public java.lang.String getTarget() { } } /** + * + * ** Target is the service name used to group related deployments: * * Service name for App Engine Flex / Standard. @@ -880,18 +939,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } target_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * ** Target is the service name used to group related deployments: * * Service name for App Engine Flex / Standard. @@ -902,6 +965,7 @@ public Builder setTarget( ** *string target = 2;
+ * * @return This builder for chaining. */ public Builder clearTarget() { @@ -911,6 +975,8 @@ public Builder clearTarget() { return this; } /** + * + * ** Target is the service name used to group related deployments: * * Service name for App Engine Flex / Standard. @@ -921,12 +987,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000002; @@ -934,21 +1002,19 @@ public Builder setTargetBytes( 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() { 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(); @@ -957,10 +1023,13 @@ public Builder setTargetBytes( onChanged(); return labels_; } + 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])?$`. @@ -980,20 +1049,21 @@ 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.MapgetLabels() { 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])?$`. @@ -1017,6 +1087,8 @@ public java.util.MapgetLabelsMap() { 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])?$`. @@ -1036,17 +1108,19 @@ public java.util.MapgetLabelsMap() { * map<string, string> labels = 3;
*/ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Mapmap = - internalGetLabels().getMap(); + 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])?$`. @@ -1066,23 +1140,25 @@ 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.Mapmap = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000004); - 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])?$`. @@ -1101,23 +1177,22 @@ 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() { bitField0_ |= 0x00000004; 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])?$`. @@ -1136,17 +1211,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"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + 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"); + } + internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000004; 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])?$`. @@ -1165,16 +1243,14 @@ public Builder putLabels( * *map<string, string> labels = 3;
*/ - public Builder putAllLabels( - java.util.Mapvalues) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000004; 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); } @@ -1184,12 +1260,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(); } @@ -1198,27 +1274,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public Deployment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1233,6 +1309,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.devtools.cloudprofiler.v2.Deployment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java similarity index 83% rename from owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java rename to java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java index b641ed4378f8..f4bf7cdbc819 100644 --- a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java +++ b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/DeploymentOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 App Engine 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 App Engine 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])?$`. @@ -80,6 +108,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])?$`. @@ -98,15 +128,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])?$`. @@ -125,9 +153,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])?$`. @@ -147,11 +176,13 @@ boolean containsLabels( *map<string, string> labels = 3;
*/ /* 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])?$`. @@ -170,6 +201,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/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java similarity index 70% rename from owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java rename to java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java index 1c56ae75ebba..6798be292d4a 100644 --- a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java +++ b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/Profile.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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,45 +45,49 @@ private Profile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Profile(); } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * ** Output only. Opaque, server-assigned, unique ID for this profile. ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The name. */ @java.lang.Override @@ -74,29 +96,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 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -107,6 +129,8 @@ public java.lang.String getName() { public static final int PROFILE_TYPE_FIELD_NUMBER = 2; private int profileType_ = 0; /** + * + * ** Type of profile. * For offline mode, this must be specified when creating the profile. For @@ -114,12 +138,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 @@ -127,21 +155,27 @@ 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() { - com.google.devtools.cloudprofiler.v2.ProfileType result = com.google.devtools.cloudprofiler.v2.ProfileType.forNumber(profileType_); + @java.lang.Override + public com.google.devtools.cloudprofiler.v2.ProfileType getProfileType() { + com.google.devtools.cloudprofiler.v2.ProfileType result = + com.google.devtools.cloudprofiler.v2.ProfileType.forNumber(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 @@ -149,18 +183,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. *@@ -169,12 +210,16 @@ public com.google.devtools.cloudprofiler.v2.Deployment getDeployment() { */ @java.lang.Override public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrBuilder() { - return deployment_ == null ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() : deployment_; + return deployment_ == null + ? com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance() + : deployment_; } 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). @@ -185,6 +230,7 @@ public com.google.devtools.cloudprofiler.v2.DeploymentOrBuilder getDeploymentOrB ** *.google.protobuf.Duration duration = 4;
+ * * @return Whether the duration field is set. */ @java.lang.Override @@ -192,6 +238,8 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * ** Duration of the profiling session. * Input (for the offline mode) or output (for the online mode). @@ -202,6 +250,7 @@ public boolean hasDuration() { ** *.google.protobuf.Duration duration = 4;
+ * * @return The duration. */ @java.lang.Override @@ -209,6 +258,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). @@ -228,12 +279,15 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { public static final int PROFILE_BYTES_FIELD_NUMBER = 5; 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 [(.google.api.field_behavior) = INPUT_ONLY];
+ * * @return The profileBytes. */ @java.lang.Override @@ -242,32 +296,34 @@ 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, + ""); } + @SuppressWarnings("serial") - 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_; } + 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 @@ -277,20 +333,21 @@ public int getLabelsCount() { *map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY];
*/ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.MapgetLabels() { return getLabelsMap(); } /** + * + * * * Input only. Labels associated to this specific profile. These labels will * get merged with the deployment labels for the final data set. See @@ -304,6 +361,8 @@ public java.util.MapgetLabelsMap() { 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 @@ -313,17 +372,19 @@ public java.util.MapgetLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY];
*/ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Mapmap = - internalGetLabels().getMap(); + 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 @@ -333,11 +394,11 @@ java.lang.String getLabelsOrDefault( *map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY];
*/ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Mapmap = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -345,6 +406,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -356,12 +418,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) { @@ -373,12 +435,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); getUnknownFields().writeTo(output); } @@ -391,31 +449,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -425,30 +480,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -483,154 +534,156 @@ 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.Builderimplements + 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -653,9 +706,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 @@ -674,8 +727,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.devtools.cloudprofiler.v2.Profile result = + new com.google.devtools.cloudprofiler.v2.Profile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -689,14 +745,10 @@ private void buildPartial0(com.google.devtools.cloudprofiler.v2.Profile result) result.profileType_ = profileType_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.deployment_ = deploymentBuilder_ == null - ? deployment_ - : deploymentBuilder_.build(); + result.deployment_ = deploymentBuilder_ == null ? deployment_ : deploymentBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.duration_ = durationBuilder_ == null - ? duration_ - : durationBuilder_.build(); + result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.profileBytes_ = profileBytes_; @@ -711,38 +763,39 @@ private void buildPartial0(com.google.devtools.cloudprofiler.v2.Profile result) 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; @@ -768,8 +821,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()); bitField0_ |= 0x00000020; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -797,50 +849,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - profileType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getDeploymentFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - profileBytes_ = input.readBytes(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + profileType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getDeploymentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + profileBytes_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -850,22 +907,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * * * Output only. Opaque, server-assigned, unique ID for this profile. ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -874,20 +934,21 @@ public java.lang.String getName() { } } /** + * + * ** Output only. Opaque, server-assigned, unique ID for this profile. ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -895,28 +956,35 @@ public java.lang.String getName() { } } /** + * + * ** Output only. Opaque, server-assigned, unique ID for this profile. ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** Output only. Opaque, server-assigned, unique ID for this profile. ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return This builder for chaining. */ public Builder clearName() { @@ -926,17 +994,21 @@ public Builder clearName() { return this; } /** + * + * ** Output only. Opaque, server-assigned, unique ID for this profile. ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -946,6 +1018,8 @@ public Builder setNameBytes( private int profileType_ = 0; /** + * + * ** Type of profile. * For offline mode, this must be specified when creating the profile. For @@ -953,12 +1027,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 @@ -966,6 +1044,7 @@ 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. */ @@ -976,6 +1055,8 @@ public Builder setProfileTypeValue(int value) { return this; } /** + * + * ** Type of profile. * For offline mode, this must be specified when creating the profile. For @@ -983,14 +1064,20 @@ 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() { - com.google.devtools.cloudprofiler.v2.ProfileType result = com.google.devtools.cloudprofiler.v2.ProfileType.forNumber(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.forNumber(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 @@ -998,6 +1085,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. */ @@ -1011,6 +1099,8 @@ public Builder setProfileType(com.google.devtools.cloudprofiler.v2.ProfileType v return this; } /** + * + * ** Type of profile. * For offline mode, this must be specified when creating the profile. For @@ -1018,6 +1108,7 @@ 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() { @@ -1029,34 +1120,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * ** 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. *@@ -1077,6 +1181,8 @@ public Builder setDeployment(com.google.devtools.cloudprofiler.v2.Deployment val return this; } /** + * + * ** Deployment this profile corresponds to. *@@ -1095,6 +1201,8 @@ public Builder setDeployment( return this; } /** + * + * ** Deployment this profile corresponds to. *@@ -1103,9 +1211,10 @@ public Builder setDeployment( */ public Builder mergeDeployment(com.google.devtools.cloudprofiler.v2.Deployment value) { if (deploymentBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - deployment_ != null && - deployment_ != com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && deployment_ != null + && deployment_ + != com.google.devtools.cloudprofiler.v2.Deployment.getDefaultInstance()) { getDeploymentBuilder().mergeFrom(value); } else { deployment_ = value; @@ -1118,6 +1227,8 @@ public Builder mergeDeployment(com.google.devtools.cloudprofiler.v2.Deployment v return this; } /** + * + * ** Deployment this profile corresponds to. *@@ -1135,6 +1246,8 @@ public Builder clearDeployment() { return this; } /** + * + * ** Deployment this profile corresponds to. *@@ -1147,6 +1260,8 @@ public com.google.devtools.cloudprofiler.v2.Deployment.Builder getDeploymentBuil return getDeploymentFieldBuilder().getBuilder(); } /** + * + * ** Deployment this profile corresponds to. *@@ -1157,11 +1272,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. *@@ -1169,14 +1287,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_; @@ -1184,8 +1305,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). @@ -1196,12 +1322,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 ((bitField0_ & 0x00000008) != 0); } /** + * + * ** Duration of the profiling session. * Input (for the offline mode) or output (for the online mode). @@ -1212,6 +1341,7 @@ public boolean hasDuration() { ** *.google.protobuf.Duration duration = 4;
+ * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -1222,6 +1352,8 @@ public com.google.protobuf.Duration getDuration() { } } /** + * + * ** Duration of the profiling session. * Input (for the offline mode) or output (for the online mode). @@ -1247,6 +1379,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). @@ -1258,8 +1392,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(); } else { @@ -1270,6 +1403,8 @@ public Builder setDuration( return this; } /** + * + * ** Duration of the profiling session. * Input (for the offline mode) or output (for the online mode). @@ -1283,9 +1418,9 @@ public Builder setDuration( */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - duration_ != null && - duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && duration_ != null + && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; @@ -1298,6 +1433,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). @@ -1320,6 +1457,8 @@ public Builder clearDuration() { return this; } /** + * + * ** Duration of the profiling session. * Input (for the offline mode) or output (for the online mode). @@ -1337,6 +1476,8 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() { return getDurationFieldBuilder().getBuilder(); } /** + * + * ** Duration of the profiling session. * Input (for the offline mode) or output (for the online mode). @@ -1352,11 +1493,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). @@ -1369,14 +1511,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_; @@ -1384,12 +1529,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 [(.google.api.field_behavior) = INPUT_ONLY];
+ * * @return The profileBytes. */ @java.lang.Override @@ -1397,29 +1545,37 @@ 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 [(.google.api.field_behavior) = INPUT_ONLY];
+ * * @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(); } + if (value == null) { + throw new NullPointerException(); + } profileBytes_ = value; bitField0_ |= 0x00000010; 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 [(.google.api.field_behavior) = INPUT_ONLY];
+ * * @return This builder for chaining. */ public Builder clearProfileBytes() { @@ -1429,21 +1585,19 @@ public Builder clearProfileBytes() { 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() { 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(); @@ -1452,154 +1606,171 @@ public Builder clearProfileBytes() { onChanged(); return labels_; } + 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 * documentation on deployment labels for validation rules and limits. ** - *map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY];
+ *map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + *
*/ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.MapgetLabels() { return getLabelsMap(); } /** + * + * * * Input only. Labels associated to this specific profile. These labels will * get merged with the deployment labels for the final data set. See * documentation on deployment labels for validation rules and limits. ** - *map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY];
+ *map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + *
*/ @java.lang.Override public java.util.MapgetLabelsMap() { 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 * documentation on deployment labels for validation rules and limits. ** - *map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY];
+ *map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + *
*/ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Mapmap = - internalGetLabels().getMap(); + 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 * documentation on deployment labels for validation rules and limits. ** - *map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY];
+ *map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + *
*/ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Mapmap = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000020); - 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 * documentation on deployment labels for validation rules and limits. ** - *map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY];
+ *map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + *
*/ - 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() { bitField0_ |= 0x00000020; 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 * documentation on deployment labels for validation rules and limits. ** - *map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY];
+ *map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + *
*/ - 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"); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + 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"); + } + internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000020; 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 * documentation on deployment labels for validation rules and limits. ** - *map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY];
+ *map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + *
*/ - public Builder putAllLabels( - java.util.Mapvalues) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000020; 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); } @@ -1609,12 +1780,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(); } @@ -1623,27 +1794,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public Profile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1658,6 +1829,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.devtools.cloudprofiler.v2.Profile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java similarity index 83% rename from owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java rename to java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java index e638810d23cf..65835862d808 100644 --- a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java +++ b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The name. */ java.lang.String getName(); /** + * + * ** Output only. Opaque, server-assigned, unique ID for this profile. ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @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 [(.google.api.field_behavior) = INPUT_ONLY];
+ * * @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 [(.google.api.field_behavior) = INPUT_ONLY];
*/ - 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 [(.google.api.field_behavior) = INPUT_ONLY];
*/ - 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 @@ -178,11 +227,13 @@ boolean containsLabels( *map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY];
*/ /* 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 @@ -191,6 +242,5 @@ java.lang.String getLabelsOrDefault( * *map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY];
*/ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java similarity index 75% rename from owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java rename to java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java index 1884c78ebf92..9f64b743cb83 100644 --- a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java +++ b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfileType.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java new file mode 100644 index 000000000000..d0fe4724cb45 --- /dev/null +++ b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java @@ -0,0 +1,221 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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\027googl" + + "e/api/client.proto\032\037google/api/field_beh" + + "avior.proto\032\031google/api/resource.proto\032\036" + + "google/protobuf/duration.proto\032 google/p" + + "rotobuf/field_mask.proto\"\337\001\n\024CreateProfi" + + "leRequest\022@\n\006parent\030\004 \001(\tB0\372A-\n+cloudres" + + "ourcemanager.googleapis.com/Project\022@\n\nd" + + "eployment\030\001 \001(\0132,.google.devtools.cloudp" + + "rofiler.v2.Deployment\022C\n\014profile_type\030\002 " + + "\003(\0162-.google.devtools.cloudprofiler.v2.P" + + "rofileType\"\233\001\n\033CreateOfflineProfileReque" + + "st\022@\n\006parent\030\001 \001(\tB0\372A-\n+cloudresourcema" + + "nager.googleapis.com/Project\022:\n\007profile\030" + + "\002 \001(\0132).google.devtools.cloudprofiler.v2" + + ".Profile\"\203\001\n\024UpdateProfileRequest\022:\n\007pro" + + "file\030\001 \001(\0132).google.devtools.cloudprofil" + + "er.v2.Profile\022/\n\013update_mask\030\002 \001(\0132\032.goo" + + "gle.protobuf.FieldMask\"\274\003\n\007Profile\022\022\n\004na" + + "me\030\001 \001(\tB\004\342A\001\003\022C\n\014profile_type\030\002 \001(\0162-.g" + + "oogle.devtools.cloudprofiler.v2.ProfileT" + + "ype\022@\n\ndeployment\030\003 \001(\0132,.google.devtool" + + "s.cloudprofiler.v2.Deployment\022+\n\010duratio" + + "n\030\004 \001(\0132\031.google.protobuf.Duration\022\033\n\rpr" + + "ofile_bytes\030\005 \001(\014B\004\342A\001\004\022K\n\006labels\030\006 \003(\0132" + + "5.google.devtools.cloudprofiler.v2.Profi" + + "le.LabelsEntryB\004\342A\001\004\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:P\352AM\n$cloudp" + + "rofiler.googleapis.com/Profile\022%projects" + + "/{project}/profiles/{profile}\"\251\001\n\nDeploy" + + "ment\022\022\n\nproject_id\030\001 \001(\t\022\016\n\006target\030\002 \001(\t" + + "\022H\n\006labels\030\003 \003(\01328.google.devtools.cloud" + + "profiler.v2.Deployment.LabelsEntry\032-\n\013La" + + "belsEntry\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\030PROFILE_TYPE_UNSPEC" + + "IFIED\020\000\022\007\n\003CPU\020\001\022\010\n\004WALL\020\002\022\010\n\004HEAP\020\003\022\013\n\007" + + "THREADS\020\004\022\016\n\nCONTENTION\020\005\022\r\n\tPEAK_HEAP\020\006" + + "\022\016\n\nHEAP_ALLOC\020\0072\376\005\n\017ProfilerService\022\237\001\n" + + "\rCreateProfile\0226.google.devtools.cloudpr" + + "ofiler.v2.CreateProfileRequest\032).google." + + "devtools.cloudprofiler.v2.Profile\"+\202\323\344\223\002" + + "%\" /v2/{parent=projects/*}/profiles:\001*\022\322" + + "\001\n\024CreateOfflineProfile\022=.google.devtool" + + "s.cloudprofiler.v2.CreateOfflineProfileR" + + "equest\032).google.devtools.cloudprofiler.v" + + "2.Profile\"P\332A\016parent,profile\202\323\344\223\0029\"./v2/" + + "{parent=projects/*}/profiles:createOffli" + + "ne:\007profile\022\303\001\n\rUpdateProfile\0226.google.d" + + "evtools.cloudprofiler.v2.UpdateProfileRe" + + "quest\032).google.devtools.cloudprofiler.v2" + + ".Profile\"O\332A\023profile,update_mask\202\323\344\223\00232(" + + "/v2/{profile.name=projects/*/profiles/*}" + + ":\007profile\032\255\001\312A\034cloudprofiler.googleapis." + + "com\322A\212\001https://www.googleapis.com/auth/c" + + "loud-platform,https://www.googleapis.com" + + "/auth/monitoring,https://www.googleapis." + + "com/auth/monitoring.writeB\324\001\n$com.google" + + ".devtools.cloudprofiler.v2B\rProfilerProt" + + "oP\001ZGcloud.google.com/go/cloudprofiler/a" + + "piv2/cloudprofilerpb;cloudprofilerpb\252\002\030G" + + "oogle.Cloud.Profiler.V2\312\002\030Google\\Cloud\\P" + + "rofiler\\V2\352\002\033Google::Cloud::Profiler::V2" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.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.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProjectName.java b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProjectName.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProjectName.java rename to java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProjectName.java diff --git a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java similarity index 69% rename from owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java rename to java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java index 0f7c65ad7263..f4914861b6bb 100644 --- a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java +++ b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequest.java @@ -1,55 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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(); } - 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 @@ -57,18 +78,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. *@@ -77,12 +105,16 @@ public com.google.devtools.cloudprofiler.v2.Profile getProfile() { */ @java.lang.Override public com.google.devtools.cloudprofiler.v2.ProfileOrBuilder getProfileOrBuilder() { - return profile_ == null ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() : profile_; + return profile_ == null + ? com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance() + : profile_; } 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 @@ -91,6 +123,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 @@ -98,6 +131,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 @@ -106,6 +141,7 @@ public boolean hasUpdateMask() { ** *.google.protobuf.FieldMask update_mask = 2;
+ * * @return The updateMask. */ @java.lang.Override @@ -113,6 +149,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 @@ -128,6 +166,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,8 +178,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()); } @@ -157,12 +195,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -172,22 +208,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -214,131 +249,136 @@ 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.Builderimplements + 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -357,9 +397,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 @@ -378,8 +418,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.devtools.cloudprofiler.v2.UpdateProfileRequest result = + new com.google.devtools.cloudprofiler.v2.UpdateProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -387,14 +430,10 @@ public com.google.devtools.cloudprofiler.v2.UpdateProfileRequest buildPartial() private void buildPartial0(com.google.devtools.cloudprofiler.v2.UpdateProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.profile_ = profileBuilder_ == null - ? profile_ - : profileBuilder_.build(); + result.profile_ = profileBuilder_ == null ? profile_ : profileBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -402,38 +441,39 @@ private void buildPartial0(com.google.devtools.cloudprofiler.v2.UpdateProfileReq 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; @@ -441,7 +481,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()); } @@ -474,26 +515,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getProfileFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getProfileFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -503,38 +543,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** + * + * ** 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. *@@ -555,6 +609,8 @@ public Builder setProfile(com.google.devtools.cloudprofiler.v2.Profile value) { return this; } /** + * + * ** Profile to update. *@@ -573,6 +629,8 @@ public Builder setProfile( return this; } /** + * + * ** Profile to update. *@@ -581,9 +639,9 @@ public Builder setProfile( */ public Builder mergeProfile(com.google.devtools.cloudprofiler.v2.Profile value) { if (profileBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - profile_ != null && - profile_ != com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && profile_ != null + && profile_ != com.google.devtools.cloudprofiler.v2.Profile.getDefaultInstance()) { getProfileBuilder().mergeFrom(value); } else { profile_ = value; @@ -596,6 +654,8 @@ public Builder mergeProfile(com.google.devtools.cloudprofiler.v2.Profile value) return this; } /** + * + * ** Profile to update. *@@ -613,6 +673,8 @@ public Builder clearProfile() { return this; } /** + * + * ** Profile to update. *@@ -625,6 +687,8 @@ public com.google.devtools.cloudprofiler.v2.Profile.Builder getProfileBuilder() return getProfileFieldBuilder().getBuilder(); } /** + * + * ** Profile to update. *@@ -635,11 +699,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. *@@ -647,14 +714,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_; @@ -662,8 +732,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 @@ -672,12 +747,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * ** Field mask used to specify the fields to be overwritten. Currently only * profile_bytes and labels fields are supported by UpdateProfile, so only @@ -686,16 +764,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 @@ -719,6 +802,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 @@ -728,8 +813,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(); } else { @@ -740,6 +824,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 @@ -751,9 +837,9 @@ public Builder setUpdateMask( */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -766,6 +852,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 @@ -786,6 +874,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 @@ -801,6 +891,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { 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 @@ -814,11 +906,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 @@ -829,21 +924,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); } @@ -853,12 +951,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(); } @@ -867,27 +965,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public UpdateProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -902,6 +1000,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.devtools.cloudprofiler.v2.UpdateProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java rename to java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java index 27945edbebdd..ac44305da568 100644 --- a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java +++ b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/UpdateProfileRequestOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/proto/google/devtools/cloudprofiler/v2/profiler.proto b/java-profiler/proto-google-cloud-profiler-v2/src/main/proto/google/devtools/cloudprofiler/v2/profiler.proto similarity index 100% rename from owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/proto/google/devtools/cloudprofiler/v2/profiler.proto rename to java-profiler/proto-google-cloud-profiler-v2/src/main/proto/google/devtools/cloudprofiler/v2/profiler.proto diff --git a/owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/create/SyncCreateSetCredentialsProvider.java b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/create/SyncCreateSetCredentialsProvider.java rename to java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/create/SyncCreateSetCredentialsProvider1.java b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/create/SyncCreateSetCredentialsProvider1.java rename to java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/create/SyncCreateSetEndpoint.java b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/create/SyncCreateSetEndpoint.java rename to java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createofflineprofile/AsyncCreateOfflineProfile.java b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createofflineprofile/AsyncCreateOfflineProfile.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createofflineprofile/AsyncCreateOfflineProfile.java rename to java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createofflineprofile/AsyncCreateOfflineProfile.java diff --git a/owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createofflineprofile/SyncCreateOfflineProfile.java b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createofflineprofile/SyncCreateOfflineProfile.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createofflineprofile/SyncCreateOfflineProfile.java rename to java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createofflineprofile/SyncCreateOfflineProfile.java diff --git a/owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createofflineprofile/SyncCreateOfflineProfileProjectnameProfile.java b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createofflineprofile/SyncCreateOfflineProfileProjectnameProfile.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createofflineprofile/SyncCreateOfflineProfileProjectnameProfile.java rename to java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createofflineprofile/SyncCreateOfflineProfileProjectnameProfile.java diff --git a/owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createofflineprofile/SyncCreateOfflineProfileStringProfile.java b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createofflineprofile/SyncCreateOfflineProfileStringProfile.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createofflineprofile/SyncCreateOfflineProfileStringProfile.java rename to java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createofflineprofile/SyncCreateOfflineProfileStringProfile.java diff --git a/owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createprofile/AsyncCreateProfile.java b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createprofile/AsyncCreateProfile.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createprofile/AsyncCreateProfile.java rename to java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createprofile/AsyncCreateProfile.java diff --git a/owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createprofile/SyncCreateProfile.java b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createprofile/SyncCreateProfile.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createprofile/SyncCreateProfile.java rename to java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/createprofile/SyncCreateProfile.java diff --git a/owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/updateprofile/AsyncUpdateProfile.java b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/updateprofile/AsyncUpdateProfile.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/updateprofile/AsyncUpdateProfile.java rename to java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/updateprofile/AsyncUpdateProfile.java diff --git a/owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/updateprofile/SyncUpdateProfile.java b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/updateprofile/SyncUpdateProfile.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/updateprofile/SyncUpdateProfile.java rename to java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/updateprofile/SyncUpdateProfile.java diff --git a/owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/updateprofile/SyncUpdateProfileProfileFieldmask.java b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/updateprofile/SyncUpdateProfileProfileFieldmask.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/updateprofile/SyncUpdateProfileProfileFieldmask.java rename to java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/updateprofile/SyncUpdateProfileProfileFieldmask.java diff --git a/owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservicesettings/createprofile/SyncCreateProfile.java b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservicesettings/createprofile/SyncCreateProfile.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservicesettings/createprofile/SyncCreateProfile.java rename to java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservicesettings/createprofile/SyncCreateProfile.java diff --git a/owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/stub/profilerservicestubsettings/createprofile/SyncCreateProfile.java b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/stub/profilerservicestubsettings/createprofile/SyncCreateProfile.java similarity index 100% rename from owl-bot-staging/java-profiler/v2/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/stub/profilerservicestubsettings/createprofile/SyncCreateProfile.java rename to java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/stub/profilerservicestubsettings/createprofile/SyncCreateProfile.java diff --git a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java b/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java deleted file mode 100644 index 679deaad550f..000000000000 --- a/owl-bot-staging/java-profiler/v2/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerProto.java +++ /dev/null @@ -1,198 +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\027googl" + - "e/api/client.proto\032\037google/api/field_beh" + - "avior.proto\032\031google/api/resource.proto\032\036" + - "google/protobuf/duration.proto\032 google/p" + - "rotobuf/field_mask.proto\"\337\001\n\024CreateProfi" + - "leRequest\022@\n\006parent\030\004 \001(\tB0\372A-\n+cloudres" + - "ourcemanager.googleapis.com/Project\022@\n\nd" + - "eployment\030\001 \001(\0132,.google.devtools.cloudp" + - "rofiler.v2.Deployment\022C\n\014profile_type\030\002 " + - "\003(\0162-.google.devtools.cloudprofiler.v2.P" + - "rofileType\"\233\001\n\033CreateOfflineProfileReque" + - "st\022@\n\006parent\030\001 \001(\tB0\372A-\n+cloudresourcema" + - "nager.googleapis.com/Project\022:\n\007profile\030" + - "\002 \001(\0132).google.devtools.cloudprofiler.v2" + - ".Profile\"\203\001\n\024UpdateProfileRequest\022:\n\007pro" + - "file\030\001 \001(\0132).google.devtools.cloudprofil" + - "er.v2.Profile\022/\n\013update_mask\030\002 \001(\0132\032.goo" + - "gle.protobuf.FieldMask\"\274\003\n\007Profile\022\022\n\004na" + - "me\030\001 \001(\tB\004\342A\001\003\022C\n\014profile_type\030\002 \001(\0162-.g" + - "oogle.devtools.cloudprofiler.v2.ProfileT" + - "ype\022@\n\ndeployment\030\003 \001(\0132,.google.devtool" + - "s.cloudprofiler.v2.Deployment\022+\n\010duratio" + - "n\030\004 \001(\0132\031.google.protobuf.Duration\022\033\n\rpr" + - "ofile_bytes\030\005 \001(\014B\004\342A\001\004\022K\n\006labels\030\006 \003(\0132" + - "5.google.devtools.cloudprofiler.v2.Profi" + - "le.LabelsEntryB\004\342A\001\004\032-\n\013LabelsEntry\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:P\352AM\n$cloudp" + - "rofiler.googleapis.com/Profile\022%projects" + - "/{project}/profiles/{profile}\"\251\001\n\nDeploy" + - "ment\022\022\n\nproject_id\030\001 \001(\t\022\016\n\006target\030\002 \001(\t" + - "\022H\n\006labels\030\003 \003(\01328.google.devtools.cloud" + - "profiler.v2.Deployment.LabelsEntry\032-\n\013La" + - "belsEntry\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\030PROFILE_TYPE_UNSPEC" + - "IFIED\020\000\022\007\n\003CPU\020\001\022\010\n\004WALL\020\002\022\010\n\004HEAP\020\003\022\013\n\007" + - "THREADS\020\004\022\016\n\nCONTENTION\020\005\022\r\n\tPEAK_HEAP\020\006" + - "\022\016\n\nHEAP_ALLOC\020\0072\376\005\n\017ProfilerService\022\237\001\n" + - "\rCreateProfile\0226.google.devtools.cloudpr" + - "ofiler.v2.CreateProfileRequest\032).google." + - "devtools.cloudprofiler.v2.Profile\"+\202\323\344\223\002" + - "%\" /v2/{parent=projects/*}/profiles:\001*\022\322" + - "\001\n\024CreateOfflineProfile\022=.google.devtool" + - "s.cloudprofiler.v2.CreateOfflineProfileR" + - "equest\032).google.devtools.cloudprofiler.v" + - "2.Profile\"P\332A\016parent,profile\202\323\344\223\0029\"./v2/" + - "{parent=projects/*}/profiles:createOffli" + - "ne:\007profile\022\303\001\n\rUpdateProfile\0226.google.d" + - "evtools.cloudprofiler.v2.UpdateProfileRe" + - "quest\032).google.devtools.cloudprofiler.v2" + - ".Profile\"O\332A\023profile,update_mask\202\323\344\223\00232(" + - "/v2/{profile.name=projects/*/profiles/*}" + - ":\007profile\032\255\001\312A\034cloudprofiler.googleapis." + - "com\322A\212\001https://www.googleapis.com/auth/c" + - "loud-platform,https://www.googleapis.com" + - "/auth/monitoring,https://www.googleapis." + - "com/auth/monitoring.writeB\324\001\n$com.google" + - ".devtools.cloudprofiler.v2B\rProfilerProt" + - "oP\001ZGcloud.google.com/go/cloudprofiler/a" + - "piv2/cloudprofilerpb;cloudprofilerpb\252\002\030G" + - "oogle.Cloud.Profiler.V2\312\002\030Google\\Cloud\\P" + - "rofiler\\V2\352\002\033Google::Cloud::Profiler::V2" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.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.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}