Class InsightTypeConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InsightTypeConfig.Builder>
com.google.cloud.recommender.v1beta1.InsightTypeConfig.Builder
- All Implemented Interfaces:
InsightTypeConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- InsightTypeConfig
public static final class InsightTypeConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<InsightTypeConfig.Builder>
implements InsightTypeConfigOrBuilder
Configuration for an InsightType.Protobuf type
google.cloud.recommender.v1beta1.InsightTypeConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()A user-settable field to provide a human-readable name to be used in user interfaces.Fingerprint of the InsightTypeConfig.InsightTypeGenerationConfig which configures the generation of insights for this insight type.Name of insight type config.Output only.Last time when the config was updated.booleanAllows clients to store small amounts of arbitrary data.Deprecated.intAllows clients to store small amounts of arbitrary data.Allows clients to store small amounts of arbitrary data.getAnnotationsOrDefault(String key, String defaultValue) Allows clients to store small amounts of arbitrary data.Allows clients to store small amounts of arbitrary data.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA user-settable field to provide a human-readable name to be used in user interfaces.com.google.protobuf.ByteStringA user-settable field to provide a human-readable name to be used in user interfaces.getEtag()Fingerprint of the InsightTypeConfig.com.google.protobuf.ByteStringFingerprint of the InsightTypeConfig.InsightTypeGenerationConfig which configures the generation of insights for this insight type.InsightTypeGenerationConfig which configures the generation of insights for this insight type.InsightTypeGenerationConfig which configures the generation of insights for this insight type.Deprecated.getName()Name of insight type config.com.google.protobuf.ByteStringName of insight type config.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampLast time when the config was updated.com.google.protobuf.Timestamp.BuilderLast time when the config was updated.com.google.protobuf.TimestampOrBuilderLast time when the config was updated.booleanInsightTypeGenerationConfig which configures the generation of insights for this insight type.booleanLast time when the config was updated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(InsightTypeConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) InsightTypeGenerationConfig which configures the generation of insights for this insight type.mergeUpdateTime(com.google.protobuf.Timestamp value) Last time when the config was updated.putAllAnnotations(Map<String, String> values) Allows clients to store small amounts of arbitrary data.putAnnotations(String key, String value) Allows clients to store small amounts of arbitrary data.removeAnnotations(String key) Allows clients to store small amounts of arbitrary data.setDisplayName(String value) A user-settable field to provide a human-readable name to be used in user interfaces.setDisplayNameBytes(com.google.protobuf.ByteString value) A user-settable field to provide a human-readable name to be used in user interfaces.Fingerprint of the InsightTypeConfig.setEtagBytes(com.google.protobuf.ByteString value) Fingerprint of the InsightTypeConfig.InsightTypeGenerationConfig which configures the generation of insights for this insight type.setInsightTypeGenerationConfig(InsightTypeGenerationConfig.Builder builderForValue) InsightTypeGenerationConfig which configures the generation of insights for this insight type.Name of insight type config.setNameBytes(com.google.protobuf.ByteString value) Name of insight type config.setRevisionId(String value) Output only.setRevisionIdBytes(com.google.protobuf.ByteString value) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Last time when the config was updated.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Last time when the config was updated.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<InsightTypeConfig.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<InsightTypeConfig.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<InsightTypeConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<InsightTypeConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<InsightTypeConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InsightTypeConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<InsightTypeConfig.Builder>
-
mergeFrom
public InsightTypeConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InsightTypeConfig.Builder>- Throws:
IOException
-
getName
Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config
string name = 1;- Specified by:
getNamein interfaceInsightTypeConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config
string name = 1;- Specified by:
getNameBytesin interfaceInsightTypeConfigOrBuilder- Returns:
- The bytes for name.
-
setName
Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasInsightTypeGenerationConfig
public boolean hasInsightTypeGenerationConfig()InsightTypeGenerationConfig which configures the generation of insights for this insight type.
.google.cloud.recommender.v1beta1.InsightTypeGenerationConfig insight_type_generation_config = 2;- Specified by:
hasInsightTypeGenerationConfigin interfaceInsightTypeConfigOrBuilder- Returns:
- Whether the insightTypeGenerationConfig field is set.
-
getInsightTypeGenerationConfig
InsightTypeGenerationConfig which configures the generation of insights for this insight type.
.google.cloud.recommender.v1beta1.InsightTypeGenerationConfig insight_type_generation_config = 2;- Specified by:
getInsightTypeGenerationConfigin interfaceInsightTypeConfigOrBuilder- Returns:
- The insightTypeGenerationConfig.
-
setInsightTypeGenerationConfig
InsightTypeGenerationConfig which configures the generation of insights for this insight type.
.google.cloud.recommender.v1beta1.InsightTypeGenerationConfig insight_type_generation_config = 2; -
setInsightTypeGenerationConfig
public InsightTypeConfig.Builder setInsightTypeGenerationConfig(InsightTypeGenerationConfig.Builder builderForValue) InsightTypeGenerationConfig which configures the generation of insights for this insight type.
.google.cloud.recommender.v1beta1.InsightTypeGenerationConfig insight_type_generation_config = 2; -
mergeInsightTypeGenerationConfig
public InsightTypeConfig.Builder mergeInsightTypeGenerationConfig(InsightTypeGenerationConfig value) InsightTypeGenerationConfig which configures the generation of insights for this insight type.
.google.cloud.recommender.v1beta1.InsightTypeGenerationConfig insight_type_generation_config = 2; -
clearInsightTypeGenerationConfig
InsightTypeGenerationConfig which configures the generation of insights for this insight type.
.google.cloud.recommender.v1beta1.InsightTypeGenerationConfig insight_type_generation_config = 2; -
getInsightTypeGenerationConfigBuilder
InsightTypeGenerationConfig which configures the generation of insights for this insight type.
.google.cloud.recommender.v1beta1.InsightTypeGenerationConfig insight_type_generation_config = 2; -
getInsightTypeGenerationConfigOrBuilder
InsightTypeGenerationConfig which configures the generation of insights for this insight type.
.google.cloud.recommender.v1beta1.InsightTypeGenerationConfig insight_type_generation_config = 2;- Specified by:
getInsightTypeGenerationConfigOrBuilderin interfaceInsightTypeConfigOrBuilder
-
getEtag
Fingerprint of the InsightTypeConfig. Provides optimistic locking when updating.
string etag = 3;- Specified by:
getEtagin interfaceInsightTypeConfigOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()Fingerprint of the InsightTypeConfig. Provides optimistic locking when updating.
string etag = 3;- Specified by:
getEtagBytesin interfaceInsightTypeConfigOrBuilder- Returns:
- The bytes for etag.
-
setEtag
Fingerprint of the InsightTypeConfig. Provides optimistic locking when updating.
string etag = 3;- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
Fingerprint of the InsightTypeConfig. Provides optimistic locking when updating.
string etag = 3;- Returns:
- This builder for chaining.
-
setEtagBytes
Fingerprint of the InsightTypeConfig. Provides optimistic locking when updating.
string etag = 3;- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-
hasUpdateTime
public boolean hasUpdateTime()Last time when the config was updated.
.google.protobuf.Timestamp update_time = 4;- Specified by:
hasUpdateTimein interfaceInsightTypeConfigOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Last time when the config was updated.
.google.protobuf.Timestamp update_time = 4;- Specified by:
getUpdateTimein interfaceInsightTypeConfigOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Last time when the config was updated.
.google.protobuf.Timestamp update_time = 4; -
setUpdateTime
public InsightTypeConfig.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Last time when the config was updated.
.google.protobuf.Timestamp update_time = 4; -
mergeUpdateTime
Last time when the config was updated.
.google.protobuf.Timestamp update_time = 4; -
clearUpdateTime
Last time when the config was updated.
.google.protobuf.Timestamp update_time = 4; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Last time when the config was updated.
.google.protobuf.Timestamp update_time = 4; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Last time when the config was updated.
.google.protobuf.Timestamp update_time = 4;- Specified by:
getUpdateTimeOrBuilderin interfaceInsightTypeConfigOrBuilder
-
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];- Specified by:
getRevisionIdin interfaceInsightTypeConfigOrBuilder- Returns:
- The revisionId.
-
getRevisionIdBytes
public com.google.protobuf.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];- Specified by:
getRevisionIdBytesin interfaceInsightTypeConfigOrBuilder- Returns:
- The bytes for revisionId.
-
setRevisionId
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];- Parameters:
value- The revisionId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setRevisionIdBytes
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];- Parameters:
value- The bytes for revisionId to set.- Returns:
- This builder for chaining.
-
getAnnotationsCount
public int getAnnotationsCount()Description copied from interface:InsightTypeConfigOrBuilderAllows 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;- Specified by:
getAnnotationsCountin interfaceInsightTypeConfigOrBuilder
-
containsAnnotations
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;- Specified by:
containsAnnotationsin interfaceInsightTypeConfigOrBuilder
-
getAnnotations
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceInsightTypeConfigOrBuilder
-
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;- Specified by:
getAnnotationsMapin interfaceInsightTypeConfigOrBuilder
-
getAnnotationsOrDefault
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;- Specified by:
getAnnotationsOrDefaultin interfaceInsightTypeConfigOrBuilder
-
getAnnotationsOrThrow
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;- Specified by:
getAnnotationsOrThrowin interfaceInsightTypeConfigOrBuilder
-
clearAnnotations
-
removeAnnotations
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; -
getMutableAnnotations
Deprecated.Use alternate mutation accessors instead. -
putAnnotations
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; -
putAllAnnotations
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; -
getDisplayName
A user-settable field to provide a human-readable name to be used in user interfaces.
string display_name = 7;- Specified by:
getDisplayNamein interfaceInsightTypeConfigOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()A user-settable field to provide a human-readable name to be used in user interfaces.
string display_name = 7;- Specified by:
getDisplayNameBytesin interfaceInsightTypeConfigOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
A user-settable field to provide a human-readable name to be used in user interfaces.
string display_name = 7;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
A user-settable field to provide a human-readable name to be used in user interfaces.
string display_name = 7;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
A user-settable field to provide a human-readable name to be used in user interfaces.
string display_name = 7;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-