Class CreateProfileRequest.Builder (2.46.0)

public static final class CreateProfileRequest.Builder extends GeneratedMessageV3.Builder<CreateProfileRequest.Builder> 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 Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllProfileType(Iterable<? extends ProfileType> values)

public CreateProfileRequest.Builder addAllProfileType(Iterable<? extends ProfileType> values)

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

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

Parameter
Name Description
values Iterable<? extends com.google.devtools.cloudprofiler.v2.ProfileType>

The profileType to add.

Returns
Type Description
CreateProfileRequest.Builder

This builder for chaining.

addAllProfileTypeValue(Iterable<Integer> values)

public CreateProfileRequest.Builder addAllProfileTypeValue(Iterable<Integer> values)

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

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

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for profileType to add.

Returns
Type Description
CreateProfileRequest.Builder

This builder for chaining.

addProfileType(ProfileType value)

public CreateProfileRequest.Builder addProfileType(ProfileType value)

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

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

Parameter
Name Description
value ProfileType

The profileType to add.

Returns
Type Description
CreateProfileRequest.Builder

This builder for chaining.

addProfileTypeValue(int value)

public CreateProfileRequest.Builder addProfileTypeValue(int value)

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

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

Parameter
Name Description
value int

The enum numeric value on the wire for profileType to add.

Returns
Type Description
CreateProfileRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateProfileRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateProfileRequest.Builder
Overrides

build()

public CreateProfileRequest build()
Returns
Type Description
CreateProfileRequest

buildPartial()

public CreateProfileRequest buildPartial()
Returns
Type Description
CreateProfileRequest

clear()

public CreateProfileRequest.Builder clear()
Returns
Type Description
CreateProfileRequest.Builder
Overrides

clearDeployment()

public CreateProfileRequest.Builder clearDeployment()

Deployment details.

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

Returns
Type Description
CreateProfileRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateProfileRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateProfileRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateProfileRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateProfileRequest.Builder
Overrides

clearParent()

public CreateProfileRequest.Builder clearParent()

Parent project to create the profile in.

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

Returns
Type Description
CreateProfileRequest.Builder

This builder for chaining.

clearProfileType()

public CreateProfileRequest.Builder clearProfileType()

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

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

Returns
Type Description
CreateProfileRequest.Builder

This builder for chaining.

clone()

public CreateProfileRequest.Builder clone()
Returns
Type Description
CreateProfileRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateProfileRequest getDefaultInstanceForType()
Returns
Type Description
CreateProfileRequest

getDeployment()

public Deployment getDeployment()

Deployment details.

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

Returns
Type Description
Deployment

The deployment.

getDeploymentBuilder()

public Deployment.Builder getDeploymentBuilder()

Deployment details.

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

Returns
Type Description
Deployment.Builder

getDeploymentOrBuilder()

public DeploymentOrBuilder getDeploymentOrBuilder()

Deployment details.

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

Returns
Type Description
DeploymentOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Parent project to create the profile in.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Parent project to create the profile in.

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

Returns
Type Description
ByteString

The bytes for parent.

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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Type Description
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
Type Description
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
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.

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
Type Description
List<Integer>

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

hasDeployment()

public boolean hasDeployment()

Deployment details.

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

Returns
Type Description
boolean

Whether the deployment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDeployment(Deployment value)

public CreateProfileRequest.Builder mergeDeployment(Deployment value)

Deployment details.

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

Parameter
Name Description
value Deployment
Returns
Type Description
CreateProfileRequest.Builder

mergeFrom(CreateProfileRequest other)

public CreateProfileRequest.Builder mergeFrom(CreateProfileRequest other)
Parameter
Name Description
other CreateProfileRequest
Returns
Type Description
CreateProfileRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateProfileRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateProfileRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateProfileRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateProfileRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateProfileRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateProfileRequest.Builder
Overrides

setDeployment(Deployment value)

public CreateProfileRequest.Builder setDeployment(Deployment value)

Deployment details.

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

Parameter
Name Description
value Deployment
Returns
Type Description
CreateProfileRequest.Builder

setDeployment(Deployment.Builder builderForValue)

public CreateProfileRequest.Builder setDeployment(Deployment.Builder builderForValue)

Deployment details.

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

Parameter
Name Description
builderForValue Deployment.Builder
Returns
Type Description
CreateProfileRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateProfileRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateProfileRequest.Builder
Overrides

setParent(String value)

public CreateProfileRequest.Builder setParent(String value)

Parent project to create the profile in.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateProfileRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateProfileRequest.Builder setParentBytes(ByteString value)

Parent project to create the profile in.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateProfileRequest.Builder

This builder for chaining.

setProfileType(int index, ProfileType value)

public CreateProfileRequest.Builder setProfileType(int index, ProfileType value)

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

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

Parameters
Name Description
index int

The index to set the value at.

value ProfileType

The profileType to set.

Returns
Type Description
CreateProfileRequest.Builder

This builder for chaining.

setProfileTypeValue(int index, int value)

public CreateProfileRequest.Builder setProfileTypeValue(int index, int value)

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

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

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for profileType to set.

Returns
Type Description
CreateProfileRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateProfileRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateProfileRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateProfileRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateProfileRequest.Builder
Overrides