Class Profile
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.devtools.cloudprofiler.v2.Profile
-
- All Implemented Interfaces:
ProfileOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Profile extends com.google.protobuf.GeneratedMessageV3 implements ProfileOrBuilder
Profile resource.
Protobuf typegoogle.devtools.cloudprofiler.v2.Profile
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Profile.Builder
Profile resource.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field 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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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()
boolean
hasDeployment()
Deployment this profile corresponds to.boolean
hasDuration()
Duration of the profiling session.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(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(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 Profile
parseFrom(ByteBuffer data)
static Profile
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Profile>
parser()
Profile.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROFILE_TYPE_FIELD_NUMBER
public static final int PROFILE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEPLOYMENT_FIELD_NUMBER
public static final int DEPLOYMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DURATION_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROFILE_BYTES_FIELD_NUMBER
public static final int PROFILE_BYTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Output only. Opaque, server-assigned, unique ID for this profile.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getName
in interfaceProfileOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. Opaque, server-assigned, unique ID for this profile.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNameBytes
in interfaceProfileOrBuilder
- Returns:
- The bytes for name.
-
getProfileTypeValue
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;
- Specified by:
getProfileTypeValue
in interfaceProfileOrBuilder
- Returns:
- The enum numeric value on the wire for profileType.
-
getProfileType
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;
- Specified by:
getProfileType
in interfaceProfileOrBuilder
- Returns:
- The profileType.
-
hasDeployment
public boolean hasDeployment()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;
- Specified by:
hasDeployment
in interfaceProfileOrBuilder
- Returns:
- Whether the deployment field is set.
-
getDeployment
public Deployment getDeployment()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;
- Specified by:
getDeployment
in interfaceProfileOrBuilder
- Returns:
- The deployment.
-
getDeploymentOrBuilder
public DeploymentOrBuilder getDeploymentOrBuilder()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;
- Specified by:
getDeploymentOrBuilder
in interfaceProfileOrBuilder
-
hasDuration
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;
- Specified by:
hasDuration
in interfaceProfileOrBuilder
- Returns:
- Whether the duration field is set.
-
getDuration
public 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;
- Specified by:
getDuration
in interfaceProfileOrBuilder
- Returns:
- The duration.
-
getDurationOrBuilder
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;
- Specified by:
getDurationOrBuilder
in interfaceProfileOrBuilder
-
getProfileBytes
public 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];
- Specified by:
getProfileBytes
in interfaceProfileOrBuilder
- Returns:
- The profileBytes.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:ProfileOrBuilder
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];
- Specified by:
getLabelsCount
in interfaceProfileOrBuilder
-
containsLabels
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 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
containsLabels
in interfaceProfileOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceProfileOrBuilder
-
getLabelsMap
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 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getLabelsMap
in interfaceProfileOrBuilder
-
getLabelsOrDefault
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 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getLabelsOrDefault
in interfaceProfileOrBuilder
-
getLabelsOrThrow
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 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getLabelsOrThrow
in interfaceProfileOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Profile parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Profile parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Profile parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Profile parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Profile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Profile parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Profile parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Profile parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Profile parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Profile parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Profile parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Profile parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Profile.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Profile.Builder newBuilder()
-
newBuilder
public static Profile.Builder newBuilder(Profile prototype)
-
toBuilder
public Profile.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Profile.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Profile getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Profile> parser()
-
getParserForType
public com.google.protobuf.Parser<Profile> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Profile getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-