Class CreateOfflineProfileRequest.Builder (2.5.0)

public static final class CreateOfflineProfileRequest.Builder extends GeneratedMessageV3.Builder<CreateOfflineProfileRequest.Builder> implements CreateOfflineProfileRequestOrBuilder

CreateOfflineProfileRequest describes a profile resource offline creation request. Profile field must be set.

Protobuf type google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateOfflineProfileRequest build()
Returns
TypeDescription
CreateOfflineProfileRequest

buildPartial()

public CreateOfflineProfileRequest buildPartial()
Returns
TypeDescription
CreateOfflineProfileRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateOfflineProfileRequest.Builder clearParent()

Parent project to create the profile in.

string parent = 1;

Returns
TypeDescription
CreateOfflineProfileRequest.Builder

This builder for chaining.

clearProfile()

public CreateOfflineProfileRequest.Builder clearProfile()

Contents of the profile to create.

.google.devtools.cloudprofiler.v2.Profile profile = 2;

Returns
TypeDescription
CreateOfflineProfileRequest.Builder

clone()

public CreateOfflineProfileRequest.Builder clone()
Returns
TypeDescription
CreateOfflineProfileRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateOfflineProfileRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateOfflineProfileRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Parent project to create the profile in.

string parent = 1;

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Parent project to create the profile in.

string parent = 1;

Returns
TypeDescription
ByteString

The bytes for parent.

getProfile()

public Profile getProfile()

Contents of the profile to create.

.google.devtools.cloudprofiler.v2.Profile profile = 2;

Returns
TypeDescription
Profile

The profile.

getProfileBuilder()

public Profile.Builder getProfileBuilder()

Contents of the profile to create.

.google.devtools.cloudprofiler.v2.Profile profile = 2;

Returns
TypeDescription
Profile.Builder

getProfileOrBuilder()

public ProfileOrBuilder getProfileOrBuilder()

Contents of the profile to create.

.google.devtools.cloudprofiler.v2.Profile profile = 2;

Returns
TypeDescription
ProfileOrBuilder

hasProfile()

public boolean hasProfile()

Contents of the profile to create.

.google.devtools.cloudprofiler.v2.Profile profile = 2;

Returns
TypeDescription
boolean

Whether the profile field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateOfflineProfileRequest other)

public CreateOfflineProfileRequest.Builder mergeFrom(CreateOfflineProfileRequest other)
Parameter
NameDescription
otherCreateOfflineProfileRequest
Returns
TypeDescription
CreateOfflineProfileRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeProfile(Profile value)

public CreateOfflineProfileRequest.Builder mergeProfile(Profile value)

Contents of the profile to create.

.google.devtools.cloudprofiler.v2.Profile profile = 2;

Parameter
NameDescription
valueProfile
Returns
TypeDescription
CreateOfflineProfileRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateOfflineProfileRequest.Builder setParent(String value)

Parent project to create the profile in.

string parent = 1;

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateOfflineProfileRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateOfflineProfileRequest.Builder setParentBytes(ByteString value)

Parent project to create the profile in.

string parent = 1;

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateOfflineProfileRequest.Builder

This builder for chaining.

setProfile(Profile value)

public CreateOfflineProfileRequest.Builder setProfile(Profile value)

Contents of the profile to create.

.google.devtools.cloudprofiler.v2.Profile profile = 2;

Parameter
NameDescription
valueProfile
Returns
TypeDescription
CreateOfflineProfileRequest.Builder

setProfile(Profile.Builder builderForValue)

public CreateOfflineProfileRequest.Builder setProfile(Profile.Builder builderForValue)

Contents of the profile to create.

.google.devtools.cloudprofiler.v2.Profile profile = 2;

Parameter
NameDescription
builderForValueProfile.Builder
Returns
TypeDescription
CreateOfflineProfileRequest.Builder

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

public CreateOfflineProfileRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateOfflineProfileRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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