Class ContentFilter.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ContentFilter.Builder>
-
- com.google.photos.library.v1.proto.ContentFilter.Builder
-
- All Implemented Interfaces:
ContentFilterOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- ContentFilter
public static final class ContentFilter.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ContentFilter.Builder> implements ContentFilterOrBuilder
This filter allows you to return media items based on the content type. It's possible to specify a list of categories to include, and/or a list of categories to exclude. Within each list, the categories are combined with an OR. <p> The content filter `includedContentCategories`: [c1, c2, c3] would get media items that contain (c1 OR c2 OR c3). <p> The content filter `excludedContentCategories`: [c1, c2, c3] would NOT get media items that contain (c1 OR c2 OR c3). <p> You can also include some categories while excluding others, as in this example: `includedContentCategories`: [c1, c2], `excludedContentCategories`: [c3, c4] <p> The previous example would get media items that contain (c1 OR c2) AND NOT (c3 OR c4). A category that appears in `includedContentategories` must not appear in `excludedContentCategories`.
Protobuf typegoogle.photos.library.v1.ContentFilter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentFilter.Builder
addAllExcludedContentCategories(java.lang.Iterable<? extends ContentCategory> values)
The set of categories which are not to be included in the media item search results.ContentFilter.Builder
addAllExcludedContentCategoriesValue(java.lang.Iterable<java.lang.Integer> values)
The set of categories which are not to be included in the media item search results.ContentFilter.Builder
addAllIncludedContentCategories(java.lang.Iterable<? extends ContentCategory> values)
The set of categories to be included in the media item search results.ContentFilter.Builder
addAllIncludedContentCategoriesValue(java.lang.Iterable<java.lang.Integer> values)
The set of categories to be included in the media item search results.ContentFilter.Builder
addExcludedContentCategories(ContentCategory value)
The set of categories which are not to be included in the media item search results.ContentFilter.Builder
addExcludedContentCategoriesValue(int value)
The set of categories which are not to be included in the media item search results.ContentFilter.Builder
addIncludedContentCategories(ContentCategory value)
The set of categories to be included in the media item search results.ContentFilter.Builder
addIncludedContentCategoriesValue(int value)
The set of categories to be included in the media item search results.ContentFilter.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ContentFilter
build()
ContentFilter
buildPartial()
ContentFilter.Builder
clear()
ContentFilter.Builder
clearExcludedContentCategories()
The set of categories which are not to be included in the media item search results.ContentFilter.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ContentFilter.Builder
clearIncludedContentCategories()
The set of categories to be included in the media item search results.ContentFilter.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ContentFilter.Builder
clone()
ContentFilter
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ContentCategory
getExcludedContentCategories(int index)
The set of categories which are not to be included in the media item search results.int
getExcludedContentCategoriesCount()
The set of categories which are not to be included in the media item search results.java.util.List<ContentCategory>
getExcludedContentCategoriesList()
The set of categories which are not to be included in the media item search results.int
getExcludedContentCategoriesValue(int index)
The set of categories which are not to be included in the media item search results.java.util.List<java.lang.Integer>
getExcludedContentCategoriesValueList()
The set of categories which are not to be included in the media item search results.ContentCategory
getIncludedContentCategories(int index)
The set of categories to be included in the media item search results.int
getIncludedContentCategoriesCount()
The set of categories to be included in the media item search results.java.util.List<ContentCategory>
getIncludedContentCategoriesList()
The set of categories to be included in the media item search results.int
getIncludedContentCategoriesValue(int index)
The set of categories to be included in the media item search results.java.util.List<java.lang.Integer>
getIncludedContentCategoriesValueList()
The set of categories to be included in the media item search results.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ContentFilter.Builder
mergeFrom(ContentFilter other)
ContentFilter.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ContentFilter.Builder
mergeFrom(com.google.protobuf.Message other)
ContentFilter.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ContentFilter.Builder
setExcludedContentCategories(int index, ContentCategory value)
The set of categories which are not to be included in the media item search results.ContentFilter.Builder
setExcludedContentCategoriesValue(int index, int value)
The set of categories which are not to be included in the media item search results.ContentFilter.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ContentFilter.Builder
setIncludedContentCategories(int index, ContentCategory value)
The set of categories to be included in the media item search results.ContentFilter.Builder
setIncludedContentCategoriesValue(int index, int value)
The set of categories to be included in the media item search results.ContentFilter.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
ContentFilter.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContentFilter.Builder>
-
clear
public ContentFilter.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContentFilter.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContentFilter.Builder>
-
getDefaultInstanceForType
public ContentFilter getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ContentFilter build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ContentFilter buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ContentFilter.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContentFilter.Builder>
-
setField
public ContentFilter.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContentFilter.Builder>
-
clearField
public ContentFilter.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContentFilter.Builder>
-
clearOneof
public ContentFilter.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContentFilter.Builder>
-
setRepeatedField
public ContentFilter.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContentFilter.Builder>
-
addRepeatedField
public ContentFilter.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContentFilter.Builder>
-
mergeFrom
public ContentFilter.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ContentFilter.Builder>
-
mergeFrom
public ContentFilter.Builder mergeFrom(ContentFilter other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContentFilter.Builder>
-
mergeFrom
public ContentFilter.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ContentFilter.Builder>
- Throws:
java.io.IOException
-
getIncludedContentCategoriesList
public java.util.List<ContentCategory> getIncludedContentCategoriesList()
The set of categories to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `includedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory included_content_categories = 1;
- Specified by:
getIncludedContentCategoriesList
in interfaceContentFilterOrBuilder
-
getIncludedContentCategoriesCount
public int getIncludedContentCategoriesCount()
The set of categories to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `includedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory included_content_categories = 1;
- Specified by:
getIncludedContentCategoriesCount
in interfaceContentFilterOrBuilder
-
getIncludedContentCategories
public ContentCategory getIncludedContentCategories(int index)
The set of categories to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `includedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory included_content_categories = 1;
- Specified by:
getIncludedContentCategories
in interfaceContentFilterOrBuilder
-
setIncludedContentCategories
public ContentFilter.Builder setIncludedContentCategories(int index, ContentCategory value)
The set of categories to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `includedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory included_content_categories = 1;
-
addIncludedContentCategories
public ContentFilter.Builder addIncludedContentCategories(ContentCategory value)
The set of categories to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `includedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory included_content_categories = 1;
-
addAllIncludedContentCategories
public ContentFilter.Builder addAllIncludedContentCategories(java.lang.Iterable<? extends ContentCategory> values)
The set of categories to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `includedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory included_content_categories = 1;
-
clearIncludedContentCategories
public ContentFilter.Builder clearIncludedContentCategories()
The set of categories to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `includedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory included_content_categories = 1;
-
getIncludedContentCategoriesValueList
public java.util.List<java.lang.Integer> getIncludedContentCategoriesValueList()
The set of categories to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `includedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory included_content_categories = 1;
- Specified by:
getIncludedContentCategoriesValueList
in interfaceContentFilterOrBuilder
-
getIncludedContentCategoriesValue
public int getIncludedContentCategoriesValue(int index)
The set of categories to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `includedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory included_content_categories = 1;
- Specified by:
getIncludedContentCategoriesValue
in interfaceContentFilterOrBuilder
-
setIncludedContentCategoriesValue
public ContentFilter.Builder setIncludedContentCategoriesValue(int index, int value)
The set of categories to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `includedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory included_content_categories = 1;
-
addIncludedContentCategoriesValue
public ContentFilter.Builder addIncludedContentCategoriesValue(int value)
The set of categories to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `includedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory included_content_categories = 1;
-
addAllIncludedContentCategoriesValue
public ContentFilter.Builder addAllIncludedContentCategoriesValue(java.lang.Iterable<java.lang.Integer> values)
The set of categories to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `includedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory included_content_categories = 1;
-
getExcludedContentCategoriesList
public java.util.List<ContentCategory> getExcludedContentCategoriesList()
The set of categories which are not to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `excludedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory excluded_content_categories = 2;
- Specified by:
getExcludedContentCategoriesList
in interfaceContentFilterOrBuilder
-
getExcludedContentCategoriesCount
public int getExcludedContentCategoriesCount()
The set of categories which are not to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `excludedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory excluded_content_categories = 2;
- Specified by:
getExcludedContentCategoriesCount
in interfaceContentFilterOrBuilder
-
getExcludedContentCategories
public ContentCategory getExcludedContentCategories(int index)
The set of categories which are not to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `excludedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory excluded_content_categories = 2;
- Specified by:
getExcludedContentCategories
in interfaceContentFilterOrBuilder
-
setExcludedContentCategories
public ContentFilter.Builder setExcludedContentCategories(int index, ContentCategory value)
The set of categories which are not to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `excludedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory excluded_content_categories = 2;
-
addExcludedContentCategories
public ContentFilter.Builder addExcludedContentCategories(ContentCategory value)
The set of categories which are not to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `excludedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory excluded_content_categories = 2;
-
addAllExcludedContentCategories
public ContentFilter.Builder addAllExcludedContentCategories(java.lang.Iterable<? extends ContentCategory> values)
The set of categories which are not to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `excludedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory excluded_content_categories = 2;
-
clearExcludedContentCategories
public ContentFilter.Builder clearExcludedContentCategories()
The set of categories which are not to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `excludedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory excluded_content_categories = 2;
-
getExcludedContentCategoriesValueList
public java.util.List<java.lang.Integer> getExcludedContentCategoriesValueList()
The set of categories which are not to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `excludedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory excluded_content_categories = 2;
- Specified by:
getExcludedContentCategoriesValueList
in interfaceContentFilterOrBuilder
-
getExcludedContentCategoriesValue
public int getExcludedContentCategoriesValue(int index)
The set of categories which are not to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `excludedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory excluded_content_categories = 2;
- Specified by:
getExcludedContentCategoriesValue
in interfaceContentFilterOrBuilder
-
setExcludedContentCategoriesValue
public ContentFilter.Builder setExcludedContentCategoriesValue(int index, int value)
The set of categories which are not to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `excludedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory excluded_content_categories = 2;
-
addExcludedContentCategoriesValue
public ContentFilter.Builder addExcludedContentCategoriesValue(int value)
The set of categories which are not to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `excludedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory excluded_content_categories = 2;
-
addAllExcludedContentCategoriesValue
public ContentFilter.Builder addAllExcludedContentCategoriesValue(java.lang.Iterable<java.lang.Integer> values)
The set of categories which are not to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `excludedContentCategories` per request.
repeated .google.photos.library.v1.ContentCategory excluded_content_categories = 2;
-
setUnknownFields
public final ContentFilter.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContentFilter.Builder>
-
mergeUnknownFields
public final ContentFilter.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContentFilter.Builder>
-
-