Class UpdateCatalogItemRequest.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateCatalogItemRequest.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<UpdateCatalogItemRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public UpdateCatalogItemRequest.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<UpdateCatalogItemRequest.Builder>
      • addRepeatedField

        public UpdateCatalogItemRequest.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<UpdateCatalogItemRequest.Builder>
      • isInitialized

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

        public UpdateCatalogItemRequest.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<UpdateCatalogItemRequest.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Required. Full resource name of catalog item, such as
         `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getName in interface UpdateCatalogItemRequestOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. Full resource name of catalog item, such as
         `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getNameBytes in interface UpdateCatalogItemRequestOrBuilder
        Returns:
        The bytes for name.
      • setName

        public UpdateCatalogItemRequest.Builder setName​(String value)
         Required. Full resource name of catalog item, such as
         `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public UpdateCatalogItemRequest.Builder clearName()
         Required. Full resource name of catalog item, such as
         `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setNameBytes

        public UpdateCatalogItemRequest.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. Full resource name of catalog item, such as
         `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasCatalogItem

        public boolean hasCatalogItem()
         Required. The catalog item to update/create. The 'catalog_item_id' field
         has to match that in the 'name'.
         
        .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasCatalogItem in interface UpdateCatalogItemRequestOrBuilder
        Returns:
        Whether the catalogItem field is set.
      • getCatalogItem

        public CatalogItem getCatalogItem()
         Required. The catalog item to update/create. The 'catalog_item_id' field
         has to match that in the 'name'.
         
        .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCatalogItem in interface UpdateCatalogItemRequestOrBuilder
        Returns:
        The catalogItem.
      • setCatalogItem

        public UpdateCatalogItemRequest.Builder setCatalogItem​(CatalogItem value)
         Required. The catalog item to update/create. The 'catalog_item_id' field
         has to match that in the 'name'.
         
        .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED];
      • setCatalogItem

        public UpdateCatalogItemRequest.Builder setCatalogItem​(CatalogItem.Builder builderForValue)
         Required. The catalog item to update/create. The 'catalog_item_id' field
         has to match that in the 'name'.
         
        .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeCatalogItem

        public UpdateCatalogItemRequest.Builder mergeCatalogItem​(CatalogItem value)
         Required. The catalog item to update/create. The 'catalog_item_id' field
         has to match that in the 'name'.
         
        .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearCatalogItem

        public UpdateCatalogItemRequest.Builder clearCatalogItem()
         Required. The catalog item to update/create. The 'catalog_item_id' field
         has to match that in the 'name'.
         
        .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED];
      • getCatalogItemBuilder

        public CatalogItem.Builder getCatalogItemBuilder()
         Required. The catalog item to update/create. The 'catalog_item_id' field
         has to match that in the 'name'.
         
        .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED];
      • getCatalogItemOrBuilder

        public CatalogItemOrBuilder getCatalogItemOrBuilder()
         Required. The catalog item to update/create. The 'catalog_item_id' field
         has to match that in the 'name'.
         
        .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCatalogItemOrBuilder in interface UpdateCatalogItemRequestOrBuilder
      • hasUpdateMask

        public boolean hasUpdateMask()
         Optional. Indicates which fields in the provided 'item' to update. If not
         set, will by default update all fields.
         
        .google.protobuf.FieldMask update_mask = 3;
        Specified by:
        hasUpdateMask in interface UpdateCatalogItemRequestOrBuilder
        Returns:
        Whether the updateMask field is set.
      • getUpdateMask

        public com.google.protobuf.FieldMask getUpdateMask()
         Optional. Indicates which fields in the provided 'item' to update. If not
         set, will by default update all fields.
         
        .google.protobuf.FieldMask update_mask = 3;
        Specified by:
        getUpdateMask in interface UpdateCatalogItemRequestOrBuilder
        Returns:
        The updateMask.
      • setUpdateMask

        public UpdateCatalogItemRequest.Builder setUpdateMask​(com.google.protobuf.FieldMask value)
         Optional. Indicates which fields in the provided 'item' to update. If not
         set, will by default update all fields.
         
        .google.protobuf.FieldMask update_mask = 3;
      • setUpdateMask

        public UpdateCatalogItemRequest.Builder setUpdateMask​(com.google.protobuf.FieldMask.Builder builderForValue)
         Optional. Indicates which fields in the provided 'item' to update. If not
         set, will by default update all fields.
         
        .google.protobuf.FieldMask update_mask = 3;
      • mergeUpdateMask

        public UpdateCatalogItemRequest.Builder mergeUpdateMask​(com.google.protobuf.FieldMask value)
         Optional. Indicates which fields in the provided 'item' to update. If not
         set, will by default update all fields.
         
        .google.protobuf.FieldMask update_mask = 3;
      • clearUpdateMask

        public UpdateCatalogItemRequest.Builder clearUpdateMask()
         Optional. Indicates which fields in the provided 'item' to update. If not
         set, will by default update all fields.
         
        .google.protobuf.FieldMask update_mask = 3;
      • getUpdateMaskBuilder

        public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
         Optional. Indicates which fields in the provided 'item' to update. If not
         set, will by default update all fields.
         
        .google.protobuf.FieldMask update_mask = 3;
      • getUpdateMaskOrBuilder

        public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
         Optional. Indicates which fields in the provided 'item' to update. If not
         set, will by default update all fields.
         
        .google.protobuf.FieldMask update_mask = 3;
        Specified by:
        getUpdateMaskOrBuilder in interface UpdateCatalogItemRequestOrBuilder
      • setUnknownFields

        public final UpdateCatalogItemRequest.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<UpdateCatalogItemRequest.Builder>
      • mergeUnknownFields

        public final UpdateCatalogItemRequest.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<UpdateCatalogItemRequest.Builder>