public final class Profile extends GeneratedMessageV3 implements ProfileOrBuilder
Profile resource.
Protobuf type google.devtools.cloudprofiler.v2.Profile
Static Fields
public static final int DEPLOYMENT_FIELD_NUMBER
Field Value
public static final int DURATION_FIELD_NUMBER
Field Value
public static final int LABELS_FIELD_NUMBER
Field Value
public static final int NAME_FIELD_NUMBER
Field Value
public static final int PROFILE_BYTES_FIELD_NUMBER
Field Value
public static final int PROFILE_TYPE_FIELD_NUMBER
Field Value
Static Methods
public static Profile getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static Profile.Builder newBuilder()
Returns
public static Profile.Builder newBuilder(Profile prototype)
Parameter
Returns
public static Profile parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Profile parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Profile parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static Profile parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Profile parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static Profile parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Profile parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Profile parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Profile parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Profile parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Profile parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static Profile parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<Profile> parser()
Returns
Methods
public 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;
Parameter
Returns
public boolean equals(Object obj)
Parameter
Returns
Overrides
public Profile getDefaultInstanceForType()
Returns
public Deployment getDeployment()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;
Returns
public DeploymentOrBuilder getDeploymentOrBuilder()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;
Returns
public 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;
Returns
public 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;
Returns
public Map<String,String> getLabels()
Returns
public 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
documentation on deployment labels for validation rules and limits.
map<string, string> labels = 6;
Returns
public 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;
Returns
public 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;
Parameters
Returns
public 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;
Parameter
Returns
Output only. Opaque, server-assigned, unique ID for this profile.
string name = 1;
Returns
Type | Description |
String | The name.
|
public ByteString getNameBytes()
Output only. Opaque, server-assigned, unique ID for this profile.
string name = 1;
Returns
public Parser<Profile> getParserForType()
Returns
Overrides
public ByteString getProfileBytes()
Returns
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;
Returns
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;
Returns
Type | Description |
int | The enum numeric value on the wire for profileType.
|
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public boolean hasDeployment()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;
Returns
Type | Description |
boolean | Whether the deployment field is set.
|
public 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;
Returns
Type | Description |
boolean | Whether the duration field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Profile.Builder newBuilderForType()
Returns
protected Profile.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public Profile.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions