Class RecommendationInfo.Builder (0.6.0)

public static final class RecommendationInfo.Builder extends GeneratedMessage.Builder<RecommendationInfo.Builder> implements RecommendationInfoOrBuilder

Info associated with recommendation.

Protobuf type google.cloud.databasecenter.v1beta.RecommendationInfo

Static Methods

getDescriptor()

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

Methods

build()

public RecommendationInfo build()
Returns
Type Description
RecommendationInfo

buildPartial()

public RecommendationInfo buildPartial()
Returns
Type Description
RecommendationInfo

clear()

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

clearRecommender()

public RecommendationInfo.Builder clearRecommender()

Name of recommendation. Examples: organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876

string recommender = 1;

Returns
Type Description
RecommendationInfo.Builder

This builder for chaining.

clearRecommenderId()

public RecommendationInfo.Builder clearRecommenderId()

ID of recommender. Examples: "google.cloudsql.instance.PerformanceRecommender"

string recommender_id = 2;

Returns
Type Description
RecommendationInfo.Builder

This builder for chaining.

clearRecommenderSubtype()

public RecommendationInfo.Builder clearRecommenderSubtype()

Contains an identifier for a subtype of recommendations produced for the same recommender. Subtype is a function of content and impact, meaning a new subtype might be added when significant changes to content or primary_impact.category are introduced. See the Recommenders section to see a list of subtypes for a given Recommender.

Examples: For recommender = "google.cloudsql.instance.PerformanceRecommender", recommender_subtype can be "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE"

string recommender_subtype = 3;

Returns
Type Description
RecommendationInfo.Builder

This builder for chaining.

getDefaultInstanceForType()

public RecommendationInfo getDefaultInstanceForType()
Returns
Type Description
RecommendationInfo

getDescriptorForType()

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

getRecommender()

public String getRecommender()

Name of recommendation. Examples: organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876

string recommender = 1;

Returns
Type Description
String

The recommender.

getRecommenderBytes()

public ByteString getRecommenderBytes()

Name of recommendation. Examples: organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876

string recommender = 1;

Returns
Type Description
ByteString

The bytes for recommender.

getRecommenderId()

public String getRecommenderId()

ID of recommender. Examples: "google.cloudsql.instance.PerformanceRecommender"

string recommender_id = 2;

Returns
Type Description
String

The recommenderId.

getRecommenderIdBytes()

public ByteString getRecommenderIdBytes()

ID of recommender. Examples: "google.cloudsql.instance.PerformanceRecommender"

string recommender_id = 2;

Returns
Type Description
ByteString

The bytes for recommenderId.

getRecommenderSubtype()

public String getRecommenderSubtype()

Contains an identifier for a subtype of recommendations produced for the same recommender. Subtype is a function of content and impact, meaning a new subtype might be added when significant changes to content or primary_impact.category are introduced. See the Recommenders section to see a list of subtypes for a given Recommender.

Examples: For recommender = "google.cloudsql.instance.PerformanceRecommender", recommender_subtype can be "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE"

string recommender_subtype = 3;

Returns
Type Description
String

The recommenderSubtype.

getRecommenderSubtypeBytes()

public ByteString getRecommenderSubtypeBytes()

Contains an identifier for a subtype of recommendations produced for the same recommender. Subtype is a function of content and impact, meaning a new subtype might be added when significant changes to content or primary_impact.category are introduced. See the Recommenders section to see a list of subtypes for a given Recommender.

Examples: For recommender = "google.cloudsql.instance.PerformanceRecommender", recommender_subtype can be "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE"

string recommender_subtype = 3;

Returns
Type Description
ByteString

The bytes for recommenderSubtype.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RecommendationInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setRecommender(String value)

public RecommendationInfo.Builder setRecommender(String value)

Name of recommendation. Examples: organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876

string recommender = 1;

Parameter
Name Description
value String

The recommender to set.

Returns
Type Description
RecommendationInfo.Builder

This builder for chaining.

setRecommenderBytes(ByteString value)

public RecommendationInfo.Builder setRecommenderBytes(ByteString value)

Name of recommendation. Examples: organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876

string recommender = 1;

Parameter
Name Description
value ByteString

The bytes for recommender to set.

Returns
Type Description
RecommendationInfo.Builder

This builder for chaining.

setRecommenderId(String value)

public RecommendationInfo.Builder setRecommenderId(String value)

ID of recommender. Examples: "google.cloudsql.instance.PerformanceRecommender"

string recommender_id = 2;

Parameter
Name Description
value String

The recommenderId to set.

Returns
Type Description
RecommendationInfo.Builder

This builder for chaining.

setRecommenderIdBytes(ByteString value)

public RecommendationInfo.Builder setRecommenderIdBytes(ByteString value)

ID of recommender. Examples: "google.cloudsql.instance.PerformanceRecommender"

string recommender_id = 2;

Parameter
Name Description
value ByteString

The bytes for recommenderId to set.

Returns
Type Description
RecommendationInfo.Builder

This builder for chaining.

setRecommenderSubtype(String value)

public RecommendationInfo.Builder setRecommenderSubtype(String value)

Contains an identifier for a subtype of recommendations produced for the same recommender. Subtype is a function of content and impact, meaning a new subtype might be added when significant changes to content or primary_impact.category are introduced. See the Recommenders section to see a list of subtypes for a given Recommender.

Examples: For recommender = "google.cloudsql.instance.PerformanceRecommender", recommender_subtype can be "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE"

string recommender_subtype = 3;

Parameter
Name Description
value String

The recommenderSubtype to set.

Returns
Type Description
RecommendationInfo.Builder

This builder for chaining.

setRecommenderSubtypeBytes(ByteString value)

public RecommendationInfo.Builder setRecommenderSubtypeBytes(ByteString value)

Contains an identifier for a subtype of recommendations produced for the same recommender. Subtype is a function of content and impact, meaning a new subtype might be added when significant changes to content or primary_impact.category are introduced. See the Recommenders section to see a list of subtypes for a given Recommender.

Examples: For recommender = "google.cloudsql.instance.PerformanceRecommender", recommender_subtype can be "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE"

string recommender_subtype = 3;

Parameter
Name Description
value ByteString

The bytes for recommenderSubtype to set.

Returns
Type Description
RecommendationInfo.Builder

This builder for chaining.