Class CreateProfileRequest.Builder (2.5.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.devtools.cloudprofiler.v2.ProfileType>

The profileType to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
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
NameDescription
valueProfileType

The profileType to add.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
CreateProfileRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateProfileRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateProfileRequest.Builder
Overrides

build()

public CreateProfileRequest build()
Returns
TypeDescription
CreateProfileRequest

buildPartial()

public CreateProfileRequest buildPartial()
Returns
TypeDescription
CreateProfileRequest

clear()

public CreateProfileRequest.Builder clear()
Returns
TypeDescription
CreateProfileRequest.Builder
Overrides

clearDeployment()

public CreateProfileRequest.Builder clearDeployment()

Deployment details.

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

Returns
TypeDescription
CreateProfileRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateProfileRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateProfileRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateProfileRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateProfileRequest.Builder
Overrides

clearParent()

public CreateProfileRequest.Builder clearParent()

Parent project to create the profile in.

string parent = 4;

Returns
TypeDescription
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
TypeDescription
CreateProfileRequest.Builder

This builder for chaining.

clone()

public CreateProfileRequest.Builder clone()
Returns
TypeDescription
CreateProfileRequest.Builder
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.

getDeploymentBuilder()

public Deployment.Builder getDeploymentBuilder()

Deployment details.

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

Returns
TypeDescription
Deployment.Builder

getDeploymentOrBuilder()

public DeploymentOrBuilder getDeploymentOrBuilder()

Deployment details.

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

Returns
TypeDescription
DeploymentOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Parent project to create the profile in.

string parent = 4;

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Parent project to create the profile in.

string parent = 4;

Returns
TypeDescription
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
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.

hasDeployment()

public boolean hasDeployment()

Deployment details.

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

Returns
TypeDescription
boolean

Whether the deployment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDeployment(Deployment value)

public CreateProfileRequest.Builder mergeDeployment(Deployment value)

Deployment details.

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

Parameter
NameDescription
valueDeployment
Returns
TypeDescription
CreateProfileRequest.Builder

mergeFrom(CreateProfileRequest other)

public CreateProfileRequest.Builder mergeFrom(CreateProfileRequest other)
Parameter
NameDescription
otherCreateProfileRequest
Returns
TypeDescription
CreateProfileRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateProfileRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateProfileRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateProfileRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateProfileRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateProfileRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateProfileRequest.Builder
Overrides

setDeployment(Deployment value)

public CreateProfileRequest.Builder setDeployment(Deployment value)

Deployment details.

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

Parameter
NameDescription
valueDeployment
Returns
TypeDescription
CreateProfileRequest.Builder

setDeployment(Deployment.Builder builderForValue)

public CreateProfileRequest.Builder setDeployment(Deployment.Builder builderForValue)

Deployment details.

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

Parameter
NameDescription
builderForValueDeployment.Builder
Returns
TypeDescription
CreateProfileRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateProfileRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateProfileRequest.Builder
Overrides

setParent(String value)

public CreateProfileRequest.Builder setParent(String value)

Parent project to create the profile in.

string parent = 4;

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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;

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueProfileType

The profileType to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateProfileRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateProfileRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateProfileRequest.Builder
Overrides