Class InsightTypeConfig.Builder (2.29.0)

public static final class InsightTypeConfig.Builder extends GeneratedMessageV3.Builder<InsightTypeConfig.Builder> implements InsightTypeConfigOrBuilder

Configuration for an InsightType.

Protobuf type google.cloud.recommender.v1.InsightTypeConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InsightTypeConfig build()
Returns
TypeDescription
InsightTypeConfig

buildPartial()

public InsightTypeConfig buildPartial()
Returns
TypeDescription
InsightTypeConfig

clear()

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

clearAnnotations()

public InsightTypeConfig.Builder clearAnnotations()
Returns
TypeDescription
InsightTypeConfig.Builder

clearDisplayName()

public InsightTypeConfig.Builder clearDisplayName()

A user-settable field to provide a human-readable name to be used in user interfaces.

string display_name = 7;

Returns
TypeDescription
InsightTypeConfig.Builder

This builder for chaining.

clearEtag()

public InsightTypeConfig.Builder clearEtag()

Fingerprint of the InsightTypeConfig. Provides optimistic locking when updating.

string etag = 3;

Returns
TypeDescription
InsightTypeConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInsightTypeGenerationConfig()

public InsightTypeConfig.Builder clearInsightTypeGenerationConfig()

InsightTypeGenerationConfig which configures the generation of insights for this insight type.

.google.cloud.recommender.v1.InsightTypeGenerationConfig insight_type_generation_config = 2;

Returns
TypeDescription
InsightTypeConfig.Builder

clearName()

public InsightTypeConfig.Builder clearName()

Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config

string name = 1;

Returns
TypeDescription
InsightTypeConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRevisionId()

public InsightTypeConfig.Builder clearRevisionId()

Output only. Immutable. The revision ID of the config. A new revision is committed whenever the config is changed in any way. The format is an 8-character hexadecimal string.

string revision_id = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
InsightTypeConfig.Builder

This builder for chaining.

clearUpdateTime()

public InsightTypeConfig.Builder clearUpdateTime()

Last time when the config was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
InsightTypeConfig.Builder

clone()

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

containsAnnotations(String key)

public boolean containsAnnotations(String key)

Allows clients to store small amounts of arbitrary data. Annotations must follow the Kubernetes syntax. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations()

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Allows clients to store small amounts of arbitrary data. Annotations must follow the Kubernetes syntax. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 6;

Returns
TypeDescription
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Allows clients to store small amounts of arbitrary data. Annotations must follow the Kubernetes syntax. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 6;

Returns
TypeDescription
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

Allows clients to store small amounts of arbitrary data. Annotations must follow the Kubernetes syntax. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 6;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Allows clients to store small amounts of arbitrary data. Annotations must follow the Kubernetes syntax. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getDefaultInstanceForType()

public InsightTypeConfig getDefaultInstanceForType()
Returns
TypeDescription
InsightTypeConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

A user-settable field to provide a human-readable name to be used in user interfaces.

string display_name = 7;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

A user-settable field to provide a human-readable name to be used in user interfaces.

string display_name = 7;

Returns
TypeDescription
ByteString

The bytes for displayName.

getEtag()

public String getEtag()

Fingerprint of the InsightTypeConfig. Provides optimistic locking when updating.

string etag = 3;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Fingerprint of the InsightTypeConfig. Provides optimistic locking when updating.

string etag = 3;

Returns
TypeDescription
ByteString

The bytes for etag.

getInsightTypeGenerationConfig()

public InsightTypeGenerationConfig getInsightTypeGenerationConfig()

InsightTypeGenerationConfig which configures the generation of insights for this insight type.

.google.cloud.recommender.v1.InsightTypeGenerationConfig insight_type_generation_config = 2;

Returns
TypeDescription
InsightTypeGenerationConfig

The insightTypeGenerationConfig.

getInsightTypeGenerationConfigBuilder()

public InsightTypeGenerationConfig.Builder getInsightTypeGenerationConfigBuilder()

InsightTypeGenerationConfig which configures the generation of insights for this insight type.

.google.cloud.recommender.v1.InsightTypeGenerationConfig insight_type_generation_config = 2;

Returns
TypeDescription
InsightTypeGenerationConfig.Builder

getInsightTypeGenerationConfigOrBuilder()

public InsightTypeGenerationConfigOrBuilder getInsightTypeGenerationConfigOrBuilder()

InsightTypeGenerationConfig which configures the generation of insights for this insight type.

.google.cloud.recommender.v1.InsightTypeGenerationConfig insight_type_generation_config = 2;

Returns
TypeDescription
InsightTypeGenerationConfigOrBuilder

getMutableAnnotations()

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getRevisionId()

public String getRevisionId()

Output only. Immutable. The revision ID of the config. A new revision is committed whenever the config is changed in any way. The format is an 8-character hexadecimal string.

string revision_id = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The revisionId.

getRevisionIdBytes()

public ByteString getRevisionIdBytes()

Output only. Immutable. The revision ID of the config. A new revision is committed whenever the config is changed in any way. The format is an 8-character hexadecimal string.

string revision_id = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for revisionId.

getUpdateTime()

public Timestamp getUpdateTime()

Last time when the config was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Last time when the config was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Last time when the config was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
TimestampOrBuilder

hasInsightTypeGenerationConfig()

public boolean hasInsightTypeGenerationConfig()

InsightTypeGenerationConfig which configures the generation of insights for this insight type.

.google.cloud.recommender.v1.InsightTypeGenerationConfig insight_type_generation_config = 2;

Returns
TypeDescription
boolean

Whether the insightTypeGenerationConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Last time when the config was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InsightTypeConfig other)

public InsightTypeConfig.Builder mergeFrom(InsightTypeConfig other)
Parameter
NameDescription
otherInsightTypeConfig
Returns
TypeDescription
InsightTypeConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInsightTypeGenerationConfig(InsightTypeGenerationConfig value)

public InsightTypeConfig.Builder mergeInsightTypeGenerationConfig(InsightTypeGenerationConfig value)

InsightTypeGenerationConfig which configures the generation of insights for this insight type.

.google.cloud.recommender.v1.InsightTypeGenerationConfig insight_type_generation_config = 2;

Parameter
NameDescription
valueInsightTypeGenerationConfig
Returns
TypeDescription
InsightTypeConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InsightTypeConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InsightTypeConfig.Builder
Overrides

mergeUpdateTime(Timestamp value)

public InsightTypeConfig.Builder mergeUpdateTime(Timestamp value)

Last time when the config was updated.

.google.protobuf.Timestamp update_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
InsightTypeConfig.Builder

putAllAnnotations(Map<String,String> values)

public InsightTypeConfig.Builder putAllAnnotations(Map<String,String> values)

Allows clients to store small amounts of arbitrary data. Annotations must follow the Kubernetes syntax. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 6;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
InsightTypeConfig.Builder

putAnnotations(String key, String value)

public InsightTypeConfig.Builder putAnnotations(String key, String value)

Allows clients to store small amounts of arbitrary data. Annotations must follow the Kubernetes syntax. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 6;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
InsightTypeConfig.Builder

removeAnnotations(String key)

public InsightTypeConfig.Builder removeAnnotations(String key)

Allows clients to store small amounts of arbitrary data. Annotations must follow the Kubernetes syntax. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
InsightTypeConfig.Builder

setDisplayName(String value)

public InsightTypeConfig.Builder setDisplayName(String value)

A user-settable field to provide a human-readable name to be used in user interfaces.

string display_name = 7;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
InsightTypeConfig.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public InsightTypeConfig.Builder setDisplayNameBytes(ByteString value)

A user-settable field to provide a human-readable name to be used in user interfaces.

string display_name = 7;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
InsightTypeConfig.Builder

This builder for chaining.

setEtag(String value)

public InsightTypeConfig.Builder setEtag(String value)

Fingerprint of the InsightTypeConfig. Provides optimistic locking when updating.

string etag = 3;

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
InsightTypeConfig.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public InsightTypeConfig.Builder setEtagBytes(ByteString value)

Fingerprint of the InsightTypeConfig. Provides optimistic locking when updating.

string etag = 3;

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
InsightTypeConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInsightTypeGenerationConfig(InsightTypeGenerationConfig value)

public InsightTypeConfig.Builder setInsightTypeGenerationConfig(InsightTypeGenerationConfig value)

InsightTypeGenerationConfig which configures the generation of insights for this insight type.

.google.cloud.recommender.v1.InsightTypeGenerationConfig insight_type_generation_config = 2;

Parameter
NameDescription
valueInsightTypeGenerationConfig
Returns
TypeDescription
InsightTypeConfig.Builder

setInsightTypeGenerationConfig(InsightTypeGenerationConfig.Builder builderForValue)

public InsightTypeConfig.Builder setInsightTypeGenerationConfig(InsightTypeGenerationConfig.Builder builderForValue)

InsightTypeGenerationConfig which configures the generation of insights for this insight type.

.google.cloud.recommender.v1.InsightTypeGenerationConfig insight_type_generation_config = 2;

Parameter
NameDescription
builderForValueInsightTypeGenerationConfig.Builder
Returns
TypeDescription
InsightTypeConfig.Builder

setName(String value)

public InsightTypeConfig.Builder setName(String value)

Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
InsightTypeConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public InsightTypeConfig.Builder setNameBytes(ByteString value)

Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
InsightTypeConfig.Builder

This builder for chaining.

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

public InsightTypeConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InsightTypeConfig.Builder
Overrides

setRevisionId(String value)

public InsightTypeConfig.Builder setRevisionId(String value)

Output only. Immutable. The revision ID of the config. A new revision is committed whenever the config is changed in any way. The format is an 8-character hexadecimal string.

string revision_id = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The revisionId to set.

Returns
TypeDescription
InsightTypeConfig.Builder

This builder for chaining.

setRevisionIdBytes(ByteString value)

public InsightTypeConfig.Builder setRevisionIdBytes(ByteString value)

Output only. Immutable. The revision ID of the config. A new revision is committed whenever the config is changed in any way. The format is an 8-character hexadecimal string.

string revision_id = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for revisionId to set.

Returns
TypeDescription
InsightTypeConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public InsightTypeConfig.Builder setUpdateTime(Timestamp value)

Last time when the config was updated.

.google.protobuf.Timestamp update_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
InsightTypeConfig.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public InsightTypeConfig.Builder setUpdateTime(Timestamp.Builder builderForValue)

Last time when the config was updated.

.google.protobuf.Timestamp update_time = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
InsightTypeConfig.Builder