Class ListProfilesResponse.Builder (2.36.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.devtools.cloudprofiler.v2.Profile>
Returns
TypeDescription
ListProfilesResponse.Builder

addProfiles(Profile value)

public ListProfilesResponse.Builder addProfiles(Profile value)

List of profiles fetched.

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

Parameter
NameDescription
valueProfile
Returns
TypeDescription
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
NameDescription
builderForValueProfile.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueProfile
Returns
TypeDescription
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
NameDescription
indexint
builderForValueProfile.Builder
Returns
TypeDescription
ListProfilesResponse.Builder

addProfilesBuilder()

public Profile.Builder addProfilesBuilder()

List of profiles fetched.

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

Returns
TypeDescription
Profile.Builder

addProfilesBuilder(int index)

public Profile.Builder addProfilesBuilder(int index)

List of profiles fetched.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Profile.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListProfilesResponse build()
Returns
TypeDescription
ListProfilesResponse

buildPartial()

public ListProfilesResponse buildPartial()
Returns
TypeDescription
ListProfilesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListProfilesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListProfilesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProfiles()

public ListProfilesResponse.Builder clearProfiles()

List of profiles fetched.

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

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListProfilesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListProfilesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Profile

getProfilesBuilder(int index)

public Profile.Builder getProfilesBuilder(int index)

List of profiles fetched.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Profile.Builder

getProfilesBuilderList()

public List<Profile.Builder> getProfilesBuilderList()

List of profiles fetched.

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

Returns
TypeDescription
List<Builder>

getProfilesCount()

public int getProfilesCount()

List of profiles fetched.

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

Returns
TypeDescription
int

getProfilesList()

public List<Profile> getProfilesList()

List of profiles fetched.

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

Returns
TypeDescription
List<Profile>

getProfilesOrBuilder(int index)

public ProfileOrBuilder getProfilesOrBuilder(int index)

List of profiles fetched.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ProfileOrBuilder

getProfilesOrBuilderList()

public List<? extends ProfileOrBuilder> getProfilesOrBuilderList()

List of profiles fetched.

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

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

The skippedProfiles.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListProfilesResponse other)

public ListProfilesResponse.Builder mergeFrom(ListProfilesResponse other)
Parameter
NameDescription
otherListProfilesResponse
Returns
TypeDescription
ListProfilesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListProfilesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListProfilesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListProfilesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valueProfile
Returns
TypeDescription
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
NameDescription
indexint
builderForValueProfile.Builder
Returns
TypeDescription
ListProfilesResponse.Builder

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

public ListProfilesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The skippedProfiles to set.

Returns
TypeDescription
ListProfilesResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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