public final class Profile extends com.google.protobuf.GeneratedMessageV3 implements ProfileOrBuilder
Profile resource.Protobuf type
google.devtools.cloudprofiler.v2.Profile| Modifier and Type | Class and Description |
|---|---|
static class |
Profile.Builder
Profile resource.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DEPLOYMENT_FIELD_NUMBER |
static int |
DURATION_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PROFILE_BYTES_FIELD_NUMBER |
static int |
PROFILE_TYPE_FIELD_NUMBER |
static int |
START_TIME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
Input only.
|
boolean |
equals(Object obj) |
static Profile |
getDefaultInstance() |
Profile |
getDefaultInstanceForType() |
Deployment |
getDeployment()
Deployment this profile corresponds to.
|
DeploymentOrBuilder |
getDeploymentOrBuilder()
Deployment this profile corresponds to.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Duration |
getDuration()
Duration of the profiling session.
|
com.google.protobuf.DurationOrBuilder |
getDurationOrBuilder()
Duration of the profiling session.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Input only.
|
Map<String,String> |
getLabelsMap()
Input only.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Input only.
|
String |
getLabelsOrThrow(String key)
Input only.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
com.google.protobuf.Parser<Profile> |
getParserForType() |
com.google.protobuf.ByteString |
getProfileBytes()
Input only.
|
ProfileType |
getProfileType()
Type of profile.
|
int |
getProfileTypeValue()
Type of profile.
|
int |
getSerializedSize() |
com.google.protobuf.Timestamp |
getStartTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getStartTimeOrBuilder()
Output only.
|
boolean |
hasDeployment()
Deployment this profile corresponds to.
|
boolean |
hasDuration()
Duration of the profiling session.
|
int |
hashCode() |
boolean |
hasStartTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static Profile.Builder |
newBuilder() |
static Profile.Builder |
newBuilder(Profile prototype) |
Profile.Builder |
newBuilderForType() |
protected Profile.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Profile |
parseDelimitedFrom(InputStream input) |
static Profile |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Profile |
parseFrom(byte[] data) |
static Profile |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Profile |
parseFrom(ByteBuffer data) |
static Profile |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Profile |
parseFrom(com.google.protobuf.ByteString data) |
static Profile |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Profile |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Profile |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Profile |
parseFrom(InputStream input) |
static Profile |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Profile> |
parser() |
Profile.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int PROFILE_TYPE_FIELD_NUMBER
public static final int DEPLOYMENT_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER
public static final int PROFILE_BYTES_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Output only. Opaque, server-assigned, unique ID for this profile.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface ProfileOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. Opaque, server-assigned, unique ID for this profile.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface ProfileOrBuilderpublic int getProfileTypeValue()
Type of profile. For offline mode, this must be specified when creating the profile. For online mode it is assigned and returned by the server.
.google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;getProfileTypeValue in interface ProfileOrBuilderpublic ProfileType getProfileType()
Type of profile. For offline mode, this must be specified when creating the profile. For online mode it is assigned and returned by the server.
.google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;getProfileType in interface ProfileOrBuilderpublic boolean hasDeployment()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;hasDeployment in interface ProfileOrBuilderpublic Deployment getDeployment()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;getDeployment in interface ProfileOrBuilderpublic DeploymentOrBuilder getDeploymentOrBuilder()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;getDeploymentOrBuilder in interface ProfileOrBuilderpublic boolean hasDuration()
Duration of the profiling session. Input (for the offline mode) or output (for the online mode). The field represents requested profiling duration. It may slightly differ from the effective profiling duration, which is recorded in the profile data, in case the profiling can't be stopped immediately (e.g. in case stopping the profiling is handled asynchronously).
.google.protobuf.Duration duration = 4;hasDuration in interface ProfileOrBuilderpublic com.google.protobuf.Duration getDuration()
Duration of the profiling session. Input (for the offline mode) or output (for the online mode). The field represents requested profiling duration. It may slightly differ from the effective profiling duration, which is recorded in the profile data, in case the profiling can't be stopped immediately (e.g. in case stopping the profiling is handled asynchronously).
.google.protobuf.Duration duration = 4;getDuration in interface ProfileOrBuilderpublic com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
Duration of the profiling session. Input (for the offline mode) or output (for the online mode). The field represents requested profiling duration. It may slightly differ from the effective profiling duration, which is recorded in the profile data, in case the profiling can't be stopped immediately (e.g. in case stopping the profiling is handled asynchronously).
.google.protobuf.Duration duration = 4;getDurationOrBuilder in interface ProfileOrBuilderpublic com.google.protobuf.ByteString getProfileBytes()
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];getProfileBytes in interface ProfileOrBuilderpublic int getLabelsCount()
ProfileOrBuilderInput 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];getLabelsCount in interface ProfileOrBuilderpublic boolean containsLabels(String key)
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];containsLabels in interface ProfileOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface ProfileOrBuilderpublic Map<String,String> 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];getLabelsMap in interface ProfileOrBuilderpublic String getLabelsOrDefault(String key, 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 documentation on deployment labels for validation rules and limits.
map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY];getLabelsOrDefault in interface ProfileOrBuilderpublic String getLabelsOrThrow(String key)
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];getLabelsOrThrow in interface ProfileOrBuilderpublic boolean hasStartTime()
Output only. Start time for the profile. This output is only present in response from the ListProfiles method.
.google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasStartTime in interface ProfileOrBuilderpublic com.google.protobuf.Timestamp getStartTime()
Output only. Start time for the profile. This output is only present in response from the ListProfiles method.
.google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStartTime in interface ProfileOrBuilderpublic com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
Output only. Start time for the profile. This output is only present in response from the ListProfiles method.
.google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStartTimeOrBuilder in interface ProfileOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Profile parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Profile parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Profile parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Profile parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Profile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Profile parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Profile parseFrom(InputStream input) throws IOException
IOExceptionpublic static Profile parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Profile parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Profile parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Profile parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Profile parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Profile.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Profile.Builder newBuilder()
public static Profile.Builder newBuilder(Profile prototype)
public Profile.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Profile.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Profile getDefaultInstance()
public static com.google.protobuf.Parser<Profile> parser()
public com.google.protobuf.Parser<Profile> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Profile getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.