Class CreateProfileRequest (2.34.0)

public final class CreateProfileRequest extends GeneratedMessageV3 implements CreateProfileRequestOrBuilder

CreateProfileRequest describes a profile resource online creation request. The deployment field must be populated. The profile_type specifies the list of profile types supported by the agent. The creation call will hang until a profile of one of these types needs to be collected.

Protobuf type google.devtools.cloudprofiler.v2.CreateProfileRequest

Static Fields

DEPLOYMENT_FIELD_NUMBER

public static final int DEPLOYMENT_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

PROFILE_TYPE_FIELD_NUMBER

public static final int PROFILE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateProfileRequest getDefaultInstance()
Returns
TypeDescription
CreateProfileRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CreateProfileRequest.Builder newBuilder()
Returns
TypeDescription
CreateProfileRequest.Builder

newBuilder(CreateProfileRequest prototype)

public static CreateProfileRequest.Builder newBuilder(CreateProfileRequest prototype)
Parameter
NameDescription
prototypeCreateProfileRequest
Returns
TypeDescription
CreateProfileRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateProfileRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateProfileRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateProfileRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateProfileRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateProfileRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateProfileRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateProfileRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateProfileRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateProfileRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateProfileRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateProfileRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateProfileRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateProfileRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateProfileRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateProfileRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateProfileRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateProfileRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateProfileRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateProfileRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateProfileRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateProfileRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateProfileRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateProfileRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateProfileRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateProfileRequest> parser()
Returns
TypeDescription
Parser<CreateProfileRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CreateProfileRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateProfileRequest

getDeployment()

public Deployment getDeployment()

Deployment details.

.google.devtools.cloudprofiler.v2.Deployment deployment = 1;

Returns
TypeDescription
Deployment

The deployment.

getDeploymentOrBuilder()

public DeploymentOrBuilder getDeploymentOrBuilder()

Deployment details.

.google.devtools.cloudprofiler.v2.Deployment deployment = 1;

Returns
TypeDescription
DeploymentOrBuilder

getParent()

public String getParent()

Parent project to create the profile in.

string parent = 4 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Parent project to create the profile in.

string parent = 4 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<CreateProfileRequest> getParserForType()
Returns
TypeDescription
Parser<CreateProfileRequest>
Overrides

getProfileType(int index)

public 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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
ProfileType

The profileType at the given index.

getProfileTypeCount()

public int getProfileTypeCount()

One or more profile types that the agent is capable of providing.

repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;

Returns
TypeDescription
int

The count of profileType.

getProfileTypeList()

public List<ProfileType> getProfileTypeList()

One or more profile types that the agent is capable of providing.

repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;

Returns
TypeDescription
List<ProfileType>

A list containing the profileType.

getProfileTypeValue(int index)

public int getProfileTypeValue(int index)

One or more profile types that the agent is capable of providing.

repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of profileType at the given index.

getProfileTypeValueList()

public List<Integer> getProfileTypeValueList()

One or more profile types that the agent is capable of providing.

repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for profileType.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasDeployment()

public boolean hasDeployment()

Deployment details.

.google.devtools.cloudprofiler.v2.Deployment deployment = 1;

Returns
TypeDescription
boolean

Whether the deployment field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateProfileRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateProfileRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateProfileRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateProfileRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateProfileRequest.Builder toBuilder()
Returns
TypeDescription
CreateProfileRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException