Class ListProfilesResponse.Builder (2.55.0)

public static final class ListProfilesResponse.Builder extends GeneratedMessageV3.Builder<ListProfilesResponse.Builder> implements ListProfilesResponseOrBuilder

ListProfileResponse contains the list of collected profiles for deployments in projects which the user has permissions to view.

Protobuf type google.devtools.cloudprofiler.v2.ListProfilesResponse

Static Methods

getDescriptor()

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

Methods

addAllProfiles(Iterable<? extends Profile> values)

public ListProfilesResponse.Builder addAllProfiles(Iterable<? extends Profile> values)

List of profiles fetched.

repeated .google.devtools.cloudprofiler.v2.Profile profiles = 1;

Parameter
Name Description
values Iterable<? extends com.google.devtools.cloudprofiler.v2.Profile>
Returns
Type Description
ListProfilesResponse.Builder

addProfiles(Profile value)

public ListProfilesResponse.Builder addProfiles(Profile value)

List of profiles fetched.

repeated .google.devtools.cloudprofiler.v2.Profile profiles = 1;

Parameter
Name Description
value Profile
Returns
Type Description
ListProfilesResponse.Builder

addProfiles(Profile.Builder builderForValue)

public ListProfilesResponse.Builder addProfiles(Profile.Builder builderForValue)

List of profiles fetched.

repeated .google.devtools.cloudprofiler.v2.Profile profiles = 1;

Parameter
Name Description
builderForValue Profile.Builder
Returns
Type Description
ListProfilesResponse.Builder

addProfiles(int index, Profile value)

public ListProfilesResponse.Builder addProfiles(int index, Profile value)

List of profiles fetched.

repeated .google.devtools.cloudprofiler.v2.Profile profiles = 1;

Parameters
Name Description
index int
value Profile
Returns
Type Description
ListProfilesResponse.Builder

addProfiles(int index, Profile.Builder builderForValue)

public ListProfilesResponse.Builder addProfiles(int index, Profile.Builder builderForValue)

List of profiles fetched.

repeated .google.devtools.cloudprofiler.v2.Profile profiles = 1;

Parameters
Name Description
index int
builderForValue Profile.Builder
Returns
Type Description
ListProfilesResponse.Builder

addProfilesBuilder()

public Profile.Builder addProfilesBuilder()

List of profiles fetched.

repeated .google.devtools.cloudprofiler.v2.Profile profiles = 1;

Returns
Type Description
Profile.Builder

addProfilesBuilder(int index)

public Profile.Builder addProfilesBuilder(int index)

List of profiles fetched.

repeated .google.devtools.cloudprofiler.v2.Profile profiles = 1;

Parameter
Name Description
index int
Returns
Type Description
Profile.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListProfilesResponse build()
Returns
Type Description
ListProfilesResponse

buildPartial()

public ListProfilesResponse buildPartial()
Returns
Type Description
ListProfilesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListProfilesResponse.Builder clearNextPageToken()

Token to receive the next page of results. This field maybe empty if there are no more profiles to fetch.

string next_page_token = 2;

Returns
Type Description
ListProfilesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProfiles()

public ListProfilesResponse.Builder clearProfiles()

List of profiles fetched.

repeated .google.devtools.cloudprofiler.v2.Profile profiles = 1;

Returns
Type Description
ListProfilesResponse.Builder

clearSkippedProfiles()

public ListProfilesResponse.Builder clearSkippedProfiles()

Number of profiles that were skipped in the current page since they were not able to be fetched successfully. This should typically be zero. A non-zero value may indicate a transient failure, in which case if the number is too high for your use case, the call may be retried.

int32 skipped_profiles = 3;

Returns
Type Description
ListProfilesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListProfilesResponse getDefaultInstanceForType()
Returns
Type Description
ListProfilesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Token to receive the next page of results. This field maybe empty if there are no more profiles to fetch.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token to receive the next page of results. This field maybe empty if there are no more profiles to fetch.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getProfiles(int index)

public Profile getProfiles(int index)

List of profiles fetched.

repeated .google.devtools.cloudprofiler.v2.Profile profiles = 1;

Parameter
Name Description
index int
Returns
Type Description
Profile

getProfilesBuilder(int index)

public Profile.Builder getProfilesBuilder(int index)

List of profiles fetched.

repeated .google.devtools.cloudprofiler.v2.Profile profiles = 1;

Parameter
Name Description
index int
Returns
Type Description
Profile.Builder

getProfilesBuilderList()

public List<Profile.Builder> getProfilesBuilderList()

List of profiles fetched.

repeated .google.devtools.cloudprofiler.v2.Profile profiles = 1;

Returns
Type Description
List<Builder>

getProfilesCount()

public int getProfilesCount()

List of profiles fetched.

repeated .google.devtools.cloudprofiler.v2.Profile profiles = 1;

Returns
Type Description
int

getProfilesList()

public List<Profile> getProfilesList()

List of profiles fetched.

repeated .google.devtools.cloudprofiler.v2.Profile profiles = 1;

Returns
Type Description
List<Profile>

getProfilesOrBuilder(int index)

public ProfileOrBuilder getProfilesOrBuilder(int index)

List of profiles fetched.

repeated .google.devtools.cloudprofiler.v2.Profile profiles = 1;

Parameter
Name Description
index int
Returns
Type Description
ProfileOrBuilder

getProfilesOrBuilderList()

public List<? extends ProfileOrBuilder> getProfilesOrBuilderList()

List of profiles fetched.

repeated .google.devtools.cloudprofiler.v2.Profile profiles = 1;

Returns
Type Description
List<? extends com.google.devtools.cloudprofiler.v2.ProfileOrBuilder>

getSkippedProfiles()

public int getSkippedProfiles()

Number of profiles that were skipped in the current page since they were not able to be fetched successfully. This should typically be zero. A non-zero value may indicate a transient failure, in which case if the number is too high for your use case, the call may be retried.

int32 skipped_profiles = 3;

Returns
Type Description
int

The skippedProfiles.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListProfilesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeProfiles(int index)

public ListProfilesResponse.Builder removeProfiles(int index)

List of profiles fetched.

repeated .google.devtools.cloudprofiler.v2.Profile profiles = 1;

Parameter
Name Description
index int
Returns
Type Description
ListProfilesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListProfilesResponse.Builder setNextPageToken(String value)

Token to receive the next page of results. This field maybe empty if there are no more profiles to fetch.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListProfilesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListProfilesResponse.Builder setNextPageTokenBytes(ByteString value)

Token to receive the next page of results. This field maybe empty if there are no more profiles to fetch.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListProfilesResponse.Builder

This builder for chaining.

setProfiles(int index, Profile value)

public ListProfilesResponse.Builder setProfiles(int index, Profile value)

List of profiles fetched.

repeated .google.devtools.cloudprofiler.v2.Profile profiles = 1;

Parameters
Name Description
index int
value Profile
Returns
Type Description
ListProfilesResponse.Builder

setProfiles(int index, Profile.Builder builderForValue)

public ListProfilesResponse.Builder setProfiles(int index, Profile.Builder builderForValue)

List of profiles fetched.

repeated .google.devtools.cloudprofiler.v2.Profile profiles = 1;

Parameters
Name Description
index int
builderForValue Profile.Builder
Returns
Type Description
ListProfilesResponse.Builder

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

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

setSkippedProfiles(int value)

public ListProfilesResponse.Builder setSkippedProfiles(int value)

Number of profiles that were skipped in the current page since they were not able to be fetched successfully. This should typically be zero. A non-zero value may indicate a transient failure, in which case if the number is too high for your use case, the call may be retried.

int32 skipped_profiles = 3;

Parameter
Name Description
value int

The skippedProfiles to set.

Returns
Type Description
ListProfilesResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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