public static final class Profile.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder> implements ProfileOrBuilder
Profile resource.Protobuf type
google.devtools.cloudprofiler.v2.Profile| Modifier and Type | Method and Description |
|---|---|
Profile.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Profile |
build() |
Profile |
buildPartial() |
Profile.Builder |
clear() |
Profile.Builder |
clearDeployment()
Deployment this profile corresponds to.
|
Profile.Builder |
clearDuration()
Duration of the profiling session.
|
Profile.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Profile.Builder |
clearLabels() |
Profile.Builder |
clearName()
Output only.
|
Profile.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Profile.Builder |
clearProfileBytes()
Input only.
|
Profile.Builder |
clearProfileType()
Type of profile.
|
Profile.Builder |
clearStartTime()
Output only.
|
Profile.Builder |
clone() |
boolean |
containsLabels(String key)
Input only.
|
Profile |
getDefaultInstanceForType() |
Deployment |
getDeployment()
Deployment this profile corresponds to.
|
Deployment.Builder |
getDeploymentBuilder()
Deployment this profile corresponds to.
|
DeploymentOrBuilder |
getDeploymentOrBuilder()
Deployment this profile corresponds to.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Duration |
getDuration()
Duration of the profiling session.
|
com.google.protobuf.Duration.Builder |
getDurationBuilder()
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.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
com.google.protobuf.ByteString |
getProfileBytes()
Input only.
|
ProfileType |
getProfileType()
Type of profile.
|
int |
getProfileTypeValue()
Type of profile.
|
com.google.protobuf.Timestamp |
getStartTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getStartTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getStartTimeOrBuilder()
Output only.
|
boolean |
hasDeployment()
Deployment this profile corresponds to.
|
boolean |
hasDuration()
Duration of the profiling session.
|
boolean |
hasStartTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
Profile.Builder |
mergeDeployment(Deployment value)
Deployment this profile corresponds to.
|
Profile.Builder |
mergeDuration(com.google.protobuf.Duration value)
Duration of the profiling session.
|
Profile.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Profile.Builder |
mergeFrom(com.google.protobuf.Message other) |
Profile.Builder |
mergeFrom(Profile other) |
Profile.Builder |
mergeStartTime(com.google.protobuf.Timestamp value)
Output only.
|
Profile.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Profile.Builder |
putAllLabels(Map<String,String> values)
Input only.
|
Profile.Builder |
putLabels(String key,
String value)
Input only.
|
Profile.Builder |
removeLabels(String key)
Input only.
|
Profile.Builder |
setDeployment(Deployment.Builder builderForValue)
Deployment this profile corresponds to.
|
Profile.Builder |
setDeployment(Deployment value)
Deployment this profile corresponds to.
|
Profile.Builder |
setDuration(com.google.protobuf.Duration.Builder builderForValue)
Duration of the profiling session.
|
Profile.Builder |
setDuration(com.google.protobuf.Duration value)
Duration of the profiling session.
|
Profile.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Profile.Builder |
setName(String value)
Output only.
|
Profile.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
Profile.Builder |
setProfileBytes(com.google.protobuf.ByteString value)
Input only.
|
Profile.Builder |
setProfileType(ProfileType value)
Type of profile.
|
Profile.Builder |
setProfileTypeValue(int value)
Type of profile.
|
Profile.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Profile.Builder |
setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Profile.Builder |
setStartTime(com.google.protobuf.Timestamp value)
Output only.
|
Profile.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>public Profile.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>public Profile getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Profile build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Profile buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Profile.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>public Profile.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>public Profile.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>public Profile.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>public Profile.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>public Profile.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>public Profile.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Profile.Builder>public Profile.Builder mergeFrom(Profile other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>public Profile.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Profile.Builder>IOExceptionpublic 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 Profile.Builder setName(String value)
Output only. Opaque, server-assigned, unique ID for this profile.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The name to set.public Profile.Builder clearName()
Output only. Opaque, server-assigned, unique ID for this profile.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];public Profile.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. Opaque, server-assigned, unique ID for this profile.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for name to set.public 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 Profile.Builder setProfileTypeValue(int value)
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;value - The enum numeric value on the wire for profileType to set.public 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 Profile.Builder setProfileType(ProfileType value)
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;value - The profileType to set.public Profile.Builder clearProfileType()
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;public 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 Profile.Builder setDeployment(Deployment value)
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;public Profile.Builder setDeployment(Deployment.Builder builderForValue)
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;public Profile.Builder mergeDeployment(Deployment value)
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;public Profile.Builder clearDeployment()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;public Deployment.Builder getDeploymentBuilder()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;public 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 Profile.Builder setDuration(com.google.protobuf.Duration value)
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;public Profile.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
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;public Profile.Builder mergeDuration(com.google.protobuf.Duration value)
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;public Profile.Builder clearDuration()
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;public com.google.protobuf.Duration.Builder getDurationBuilder()
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;public 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 Profile.Builder setProfileBytes(com.google.protobuf.ByteString value)
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];value - The profileBytes to set.public Profile.Builder clearProfileBytes()
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];public 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 Profile.Builder clearLabels()
public Profile.Builder removeLabels(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];
@Deprecated public Map<String,String> getMutableLabels()
public Profile.Builder putLabels(String key, String value)
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];
public Profile.Builder putAllLabels(Map<String,String> values)
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];
public 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 Profile.Builder setStartTime(com.google.protobuf.Timestamp value)
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];
public Profile.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
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];
public Profile.Builder mergeStartTime(com.google.protobuf.Timestamp value)
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];
public Profile.Builder clearStartTime()
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];
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
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];
public 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 Profile.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>public final Profile.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>Copyright © 2025 Google LLC. All rights reserved.