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
public static final int DEPLOYMENT_FIELD_NUMBER
Field Value
public static final int PARENT_FIELD_NUMBER
Field Value
public static final int PROFILE_TYPE_FIELD_NUMBER
Field Value
Static Methods
public static CreateProfileRequest getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static CreateProfileRequest.Builder newBuilder()
Returns
public static CreateProfileRequest.Builder newBuilder(CreateProfileRequest prototype)
Parameter
Returns
public static CreateProfileRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CreateProfileRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateProfileRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static CreateProfileRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateProfileRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static CreateProfileRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateProfileRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CreateProfileRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateProfileRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CreateProfileRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateProfileRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static CreateProfileRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<CreateProfileRequest> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public CreateProfileRequest getDefaultInstanceForType()
Returns
public Deployment getDeployment()
Deployment details.
.google.devtools.cloudprofiler.v2.Deployment deployment = 1;
Returns
public DeploymentOrBuilder getDeploymentOrBuilder()
Deployment details.
.google.devtools.cloudprofiler.v2.Deployment deployment = 1;
Returns
public String getParent()
Parent project to create the profile in.
string parent = 4;
Returns
Type | Description |
String | The parent.
|
public ByteString getParentBytes()
Parent project to create the profile in.
string parent = 4;
Returns
public Parser<CreateProfileRequest> getParserForType()
Returns
Overrides
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
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
ProfileType | The profileType at the given index.
|
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
Type | Description |
int | The count of profileType.
|
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
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
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
int | The enum numeric value on the wire of profileType at the given index.
|
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
Type | Description |
List<Integer> | A list containing the enum numeric values on the wire for profileType.
|
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public boolean hasDeployment()
Deployment details.
.google.devtools.cloudprofiler.v2.Deployment deployment = 1;
Returns
Type | Description |
boolean | Whether the deployment field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public CreateProfileRequest.Builder newBuilderForType()
Returns
protected CreateProfileRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public CreateProfileRequest.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions