Class ListInsightTypesResponse.Builder (2.50.0)

public static final class ListInsightTypesResponse.Builder extends GeneratedMessageV3.Builder<ListInsightTypesResponse.Builder> implements ListInsightTypesResponseOrBuilder

Response for the ListInsightTypes method.

Protobuf type google.cloud.recommender.v1beta1.ListInsightTypesResponse

Static Methods

getDescriptor()

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

Methods

addAllInsightTypes(Iterable<? extends InsightType> values)

public ListInsightTypesResponse.Builder addAllInsightTypes(Iterable<? extends InsightType> values)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.recommender.v1beta1.InsightType>
Returns
Type Description
ListInsightTypesResponse.Builder

addInsightTypes(InsightType value)

public ListInsightTypesResponse.Builder addInsightTypes(InsightType value)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;

Parameter
Name Description
value InsightType
Returns
Type Description
ListInsightTypesResponse.Builder

addInsightTypes(InsightType.Builder builderForValue)

public ListInsightTypesResponse.Builder addInsightTypes(InsightType.Builder builderForValue)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;

Parameter
Name Description
builderForValue InsightType.Builder
Returns
Type Description
ListInsightTypesResponse.Builder

addInsightTypes(int index, InsightType value)

public ListInsightTypesResponse.Builder addInsightTypes(int index, InsightType value)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;

Parameters
Name Description
index int
value InsightType
Returns
Type Description
ListInsightTypesResponse.Builder

addInsightTypes(int index, InsightType.Builder builderForValue)

public ListInsightTypesResponse.Builder addInsightTypes(int index, InsightType.Builder builderForValue)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;

Parameters
Name Description
index int
builderForValue InsightType.Builder
Returns
Type Description
ListInsightTypesResponse.Builder

addInsightTypesBuilder()

public InsightType.Builder addInsightTypesBuilder()

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;

Returns
Type Description
InsightType.Builder

addInsightTypesBuilder(int index)

public InsightType.Builder addInsightTypesBuilder(int index)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;

Parameter
Name Description
index int
Returns
Type Description
InsightType.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListInsightTypesResponse build()
Returns
Type Description
ListInsightTypesResponse

buildPartial()

public ListInsightTypesResponse buildPartial()
Returns
Type Description
ListInsightTypesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInsightTypes()

public ListInsightTypesResponse.Builder clearInsightTypes()

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;

Returns
Type Description
ListInsightTypesResponse.Builder

clearNextPageToken()

public ListInsightTypesResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListInsightTypesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListInsightTypesResponse getDefaultInstanceForType()
Returns
Type Description
ListInsightTypesResponse

getDescriptorForType()

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

getInsightTypes(int index)

public InsightType getInsightTypes(int index)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;

Parameter
Name Description
index int
Returns
Type Description
InsightType

getInsightTypesBuilder(int index)

public InsightType.Builder getInsightTypesBuilder(int index)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;

Parameter
Name Description
index int
Returns
Type Description
InsightType.Builder

getInsightTypesBuilderList()

public List<InsightType.Builder> getInsightTypesBuilderList()

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;

Returns
Type Description
List<Builder>

getInsightTypesCount()

public int getInsightTypesCount()

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;

Returns
Type Description
int

getInsightTypesList()

public List<InsightType> getInsightTypesList()

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;

Returns
Type Description
List<InsightType>

getInsightTypesOrBuilder(int index)

public InsightTypeOrBuilder getInsightTypesOrBuilder(int index)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;

Parameter
Name Description
index int
Returns
Type Description
InsightTypeOrBuilder

getInsightTypesOrBuilderList()

public List<? extends InsightTypeOrBuilder> getInsightTypesOrBuilderList()

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;

Returns
Type Description
List<? extends com.google.cloud.recommender.v1beta1.InsightTypeOrBuilder>

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListInsightTypesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeInsightTypes(int index)

public ListInsightTypesResponse.Builder removeInsightTypes(int index)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;

Parameter
Name Description
index int
Returns
Type Description
ListInsightTypesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInsightTypes(int index, InsightType value)

public ListInsightTypesResponse.Builder setInsightTypes(int index, InsightType value)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;

Parameters
Name Description
index int
value InsightType
Returns
Type Description
ListInsightTypesResponse.Builder

setInsightTypes(int index, InsightType.Builder builderForValue)

public ListInsightTypesResponse.Builder setInsightTypes(int index, InsightType.Builder builderForValue)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;

Parameters
Name Description
index int
builderForValue InsightType.Builder
Returns
Type Description
ListInsightTypesResponse.Builder

setNextPageToken(String value)

public ListInsightTypesResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListInsightTypesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListInsightTypesResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListInsightTypesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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