Class ListInsightTypesResponse.Builder (2.41.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.recommender.v1beta1.InsightType>
Returns
TypeDescription
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
NameDescription
valueInsightType
Returns
TypeDescription
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
NameDescription
builderForValueInsightType.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueInsightType
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInsightType.Builder
Returns
TypeDescription
ListInsightTypesResponse.Builder

addInsightTypesBuilder()

public InsightType.Builder addInsightTypesBuilder()

The set of recommenders available

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListInsightTypesResponse build()
Returns
TypeDescription
ListInsightTypesResponse

buildPartial()

public ListInsightTypesResponse buildPartial()
Returns
TypeDescription
ListInsightTypesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInsightTypes()

public ListInsightTypesResponse.Builder clearInsightTypes()

The set of recommenders available

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

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListInsightTypesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListInsightTypesResponse

getDescriptorForType()

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

getInsightTypesBuilderList()

public List<InsightType.Builder> getInsightTypesBuilderList()

The set of recommenders available

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

Returns
TypeDescription
List<Builder>

getInsightTypesCount()

public int getInsightTypesCount()

The set of recommenders available

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

Returns
TypeDescription
int

getInsightTypesList()

public List<InsightType> getInsightTypesList()

The set of recommenders available

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

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

getInsightTypesOrBuilderList()

public List<? extends InsightTypeOrBuilder> getInsightTypesOrBuilderList()

The set of recommenders available

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

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

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListInsightTypesResponse other)

public ListInsightTypesResponse.Builder mergeFrom(ListInsightTypesResponse other)
Parameter
NameDescription
otherListInsightTypesResponse
Returns
TypeDescription
ListInsightTypesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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