Class RecommenderConfig.Builder

  • All Implemented Interfaces:
    RecommenderConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    RecommenderConfig

    public static final class RecommenderConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RecommenderConfig.Builder>
    implements RecommenderConfigOrBuilder
     Configuration for a Recommender.
     
    Protobuf type google.cloud.recommender.v1beta1.RecommenderConfig
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<RecommenderConfig.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<RecommenderConfig.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RecommenderConfig.Builder>
      • clear

        public RecommenderConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<RecommenderConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RecommenderConfig.Builder>
      • getDefaultInstanceForType

        public RecommenderConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public RecommenderConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public RecommenderConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public RecommenderConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<RecommenderConfig.Builder>
      • setField

        public RecommenderConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<RecommenderConfig.Builder>
      • clearField

        public RecommenderConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RecommenderConfig.Builder>
      • clearOneof

        public RecommenderConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RecommenderConfig.Builder>
      • setRepeatedField

        public RecommenderConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RecommenderConfig.Builder>
      • addRepeatedField

        public RecommenderConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RecommenderConfig.Builder>
      • mergeFrom

        public RecommenderConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RecommenderConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RecommenderConfig.Builder>
      • mergeFrom

        public RecommenderConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RecommenderConfig.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Name of recommender config.
         Eg,
         projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config
         
        string name = 1;
        Specified by:
        getName in interface RecommenderConfigOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Name of recommender config.
         Eg,
         projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config
         
        string name = 1;
        Specified by:
        getNameBytes in interface RecommenderConfigOrBuilder
        Returns:
        The bytes for name.
      • setName

        public RecommenderConfig.Builder setName​(String value)
         Name of recommender config.
         Eg,
         projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public RecommenderConfig.Builder clearName()
         Name of recommender config.
         Eg,
         projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public RecommenderConfig.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Name of recommender config.
         Eg,
         projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasRecommenderGenerationConfig

        public boolean hasRecommenderGenerationConfig()
         RecommenderGenerationConfig which configures the Generation of
         recommendations for this recommender.
         
        .google.cloud.recommender.v1beta1.RecommenderGenerationConfig recommender_generation_config = 2;
        Specified by:
        hasRecommenderGenerationConfig in interface RecommenderConfigOrBuilder
        Returns:
        Whether the recommenderGenerationConfig field is set.
      • getRecommenderGenerationConfig

        public RecommenderGenerationConfig getRecommenderGenerationConfig()
         RecommenderGenerationConfig which configures the Generation of
         recommendations for this recommender.
         
        .google.cloud.recommender.v1beta1.RecommenderGenerationConfig recommender_generation_config = 2;
        Specified by:
        getRecommenderGenerationConfig in interface RecommenderConfigOrBuilder
        Returns:
        The recommenderGenerationConfig.
      • setRecommenderGenerationConfig

        public RecommenderConfig.Builder setRecommenderGenerationConfig​(RecommenderGenerationConfig value)
         RecommenderGenerationConfig which configures the Generation of
         recommendations for this recommender.
         
        .google.cloud.recommender.v1beta1.RecommenderGenerationConfig recommender_generation_config = 2;
      • setRecommenderGenerationConfig

        public RecommenderConfig.Builder setRecommenderGenerationConfig​(RecommenderGenerationConfig.Builder builderForValue)
         RecommenderGenerationConfig which configures the Generation of
         recommendations for this recommender.
         
        .google.cloud.recommender.v1beta1.RecommenderGenerationConfig recommender_generation_config = 2;
      • mergeRecommenderGenerationConfig

        public RecommenderConfig.Builder mergeRecommenderGenerationConfig​(RecommenderGenerationConfig value)
         RecommenderGenerationConfig which configures the Generation of
         recommendations for this recommender.
         
        .google.cloud.recommender.v1beta1.RecommenderGenerationConfig recommender_generation_config = 2;
      • clearRecommenderGenerationConfig

        public RecommenderConfig.Builder clearRecommenderGenerationConfig()
         RecommenderGenerationConfig which configures the Generation of
         recommendations for this recommender.
         
        .google.cloud.recommender.v1beta1.RecommenderGenerationConfig recommender_generation_config = 2;
      • getRecommenderGenerationConfigBuilder

        public RecommenderGenerationConfig.Builder getRecommenderGenerationConfigBuilder()
         RecommenderGenerationConfig which configures the Generation of
         recommendations for this recommender.
         
        .google.cloud.recommender.v1beta1.RecommenderGenerationConfig recommender_generation_config = 2;
      • getEtag

        public String getEtag()
         Fingerprint of the RecommenderConfig. Provides optimistic locking when
         updating.
         
        string etag = 3;
        Specified by:
        getEtag in interface RecommenderConfigOrBuilder
        Returns:
        The etag.
      • getEtagBytes

        public com.google.protobuf.ByteString getEtagBytes()
         Fingerprint of the RecommenderConfig. Provides optimistic locking when
         updating.
         
        string etag = 3;
        Specified by:
        getEtagBytes in interface RecommenderConfigOrBuilder
        Returns:
        The bytes for etag.
      • setEtag

        public RecommenderConfig.Builder setEtag​(String value)
         Fingerprint of the RecommenderConfig. Provides optimistic locking when
         updating.
         
        string etag = 3;
        Parameters:
        value - The etag to set.
        Returns:
        This builder for chaining.
      • clearEtag

        public RecommenderConfig.Builder clearEtag()
         Fingerprint of the RecommenderConfig. Provides optimistic locking when
         updating.
         
        string etag = 3;
        Returns:
        This builder for chaining.
      • setEtagBytes

        public RecommenderConfig.Builder setEtagBytes​(com.google.protobuf.ByteString value)
         Fingerprint of the RecommenderConfig. 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:
        hasUpdateTime in interface RecommenderConfigOrBuilder
        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:
        getUpdateTime in interface RecommenderConfigOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public RecommenderConfig.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Last time when the config was updated.
         
        .google.protobuf.Timestamp update_time = 4;
      • setUpdateTime

        public RecommenderConfig.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Last time when the config was updated.
         
        .google.protobuf.Timestamp update_time = 4;
      • mergeUpdateTime

        public RecommenderConfig.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Last time when the config was updated.
         
        .google.protobuf.Timestamp update_time = 4;
      • clearUpdateTime

        public RecommenderConfig.Builder 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:
        getUpdateTimeOrBuilder in interface RecommenderConfigOrBuilder
      • 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];
        Specified by:
        getRevisionId in interface RecommenderConfigOrBuilder
        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:
        getRevisionIdBytes in interface RecommenderConfigOrBuilder
        Returns:
        The bytes for revisionId.
      • setRevisionId

        public RecommenderConfig.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];
        Parameters:
        value - The revisionId to set.
        Returns:
        This builder for chaining.
      • clearRevisionId

        public RecommenderConfig.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:
        This builder for chaining.
      • setRevisionIdBytes

        public RecommenderConfig.Builder setRevisionIdBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for revisionId to set.
        Returns:
        This builder for chaining.
      • getAnnotationsCount

        public int getAnnotationsCount()
        Description copied from interface: RecommenderConfigOrBuilder
         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:
        getAnnotationsCount in interface RecommenderConfigOrBuilder
      • containsAnnotations

        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;
        Specified by:
        containsAnnotations in interface RecommenderConfigOrBuilder
      • 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;
        Specified by:
        getAnnotationsMap in interface RecommenderConfigOrBuilder
      • getAnnotationsOrDefault

        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;
        Specified by:
        getAnnotationsOrDefault in interface RecommenderConfigOrBuilder
      • getAnnotationsOrThrow

        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;
        Specified by:
        getAnnotationsOrThrow in interface RecommenderConfigOrBuilder
      • removeAnnotations

        public RecommenderConfig.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;
      • getMutableAnnotations

        @Deprecated
        public Map<String,​String> getMutableAnnotations()
        Deprecated.
        Use alternate mutation accessors instead.
      • putAnnotations

        public RecommenderConfig.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;
      • putAllAnnotations

        public RecommenderConfig.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;
      • getDisplayName

        public String getDisplayName()
         A user-settable field to provide a human-readable name to be used in user
         interfaces.
         
        string display_name = 7;
        Specified by:
        getDisplayName in interface RecommenderConfigOrBuilder
        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:
        getDisplayNameBytes in interface RecommenderConfigOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public RecommenderConfig.Builder setDisplayName​(String value)
         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

        public RecommenderConfig.Builder 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

        public RecommenderConfig.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         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.
      • setUnknownFields

        public final RecommenderConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RecommenderConfig.Builder>
      • mergeUnknownFields

        public final RecommenderConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RecommenderConfig.Builder>