Class Moderation.Builder
- 
                    
                    
- All Implemented Interfaces:
 
public final class Moderation.BuilderA builder for Moderation.
 
- 
                
                    
                    
- 
                                
                            
                                
Method Summary
- 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
categories
final Moderation.Builder categories(Moderation.Categories categories)
A list of the categories, and whether they are flagged or not.
 
- 
                                        
categories
final Moderation.Builder categories(JsonField<Moderation.Categories> categories)
Sets Builder.categories to an arbitrary JSON value.
You should usually call Builder.categories with a well-typed Categories value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
categoryAppliedInputTypes
final Moderation.Builder categoryAppliedInputTypes(Moderation.CategoryAppliedInputTypes categoryAppliedInputTypes)
A list of the categories along with the input type(s) that the score applies to.
 
- 
                                        
categoryAppliedInputTypes
final Moderation.Builder categoryAppliedInputTypes(JsonField<Moderation.CategoryAppliedInputTypes> categoryAppliedInputTypes)
Sets Builder.categoryAppliedInputTypes to an arbitrary JSON value.
You should usually call Builder.categoryAppliedInputTypes with a well-typed CategoryAppliedInputTypes value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
categoryScores
final Moderation.Builder categoryScores(Moderation.CategoryScores categoryScores)
A list of the categories along with their scores as predicted by model.
 
- 
                                        
categoryScores
final Moderation.Builder categoryScores(JsonField<Moderation.CategoryScores> categoryScores)
Sets Builder.categoryScores to an arbitrary JSON value.
You should usually call Builder.categoryScores with a well-typed CategoryScores value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
flagged
final Moderation.Builder flagged(Boolean flagged)
Whether any of the below categories are flagged.
 
- 
                                        
flagged
final Moderation.Builder flagged(JsonField<Boolean> flagged)
Sets Builder.flagged to an arbitrary JSON value.
You should usually call Builder.flagged with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
additionalProperties
final Moderation.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
putAdditionalProperty
final Moderation.Builder putAdditionalProperty(String key, JsonValue value)
 
- 
                                        
putAllAdditionalProperties
final Moderation.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
removeAdditionalProperty
final Moderation.Builder removeAdditionalProperty(String key)
 
- 
                                        
removeAllAdditionalProperties
final Moderation.Builder removeAllAdditionalProperties(Set<String> keys)
 
- 
                                        
build
final Moderation build()
Returns an immutable instance of Moderation.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.categories() .categoryAppliedInputTypes() .categoryScores() .flagged() 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -