Class NewEnrichmentItem.Builder

  • All Implemented Interfaces:
    NewEnrichmentItemOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    NewEnrichmentItem

    public static final class NewEnrichmentItem.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<NewEnrichmentItem.Builder>
    implements NewEnrichmentItemOrBuilder
     A new enrichment item to be added to an album, used by the
     `albums.addEnrichment` call.
     
    Protobuf type google.photos.library.v1.NewEnrichmentItem
    • 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<NewEnrichmentItem.Builder>
      • clear

        public NewEnrichmentItem.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<NewEnrichmentItem.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<NewEnrichmentItem.Builder>
      • getDefaultInstanceForType

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

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

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

        public NewEnrichmentItem.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<NewEnrichmentItem.Builder>
      • setField

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

        public NewEnrichmentItem.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<NewEnrichmentItem.Builder>
      • clearOneof

        public NewEnrichmentItem.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<NewEnrichmentItem.Builder>
      • setRepeatedField

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

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

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

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

        public NewEnrichmentItem.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws java.io.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<NewEnrichmentItem.Builder>
        Throws:
        java.io.IOException
      • hasTextEnrichment

        public boolean hasTextEnrichment()
         Text to be added to the album.
         
        .google.photos.library.v1.TextEnrichment text_enrichment = 1;
        Specified by:
        hasTextEnrichment in interface NewEnrichmentItemOrBuilder
        Returns:
        Whether the textEnrichment field is set.
      • mergeTextEnrichment

        public NewEnrichmentItem.Builder mergeTextEnrichment​(TextEnrichment value)
         Text to be added to the album.
         
        .google.photos.library.v1.TextEnrichment text_enrichment = 1;
      • clearTextEnrichment

        public NewEnrichmentItem.Builder clearTextEnrichment()
         Text to be added to the album.
         
        .google.photos.library.v1.TextEnrichment text_enrichment = 1;
      • getTextEnrichmentBuilder

        public TextEnrichment.Builder getTextEnrichmentBuilder()
         Text to be added to the album.
         
        .google.photos.library.v1.TextEnrichment text_enrichment = 1;
      • hasLocationEnrichment

        public boolean hasLocationEnrichment()
         Location to be added to the album.
         
        .google.photos.library.v1.LocationEnrichment location_enrichment = 2;
        Specified by:
        hasLocationEnrichment in interface NewEnrichmentItemOrBuilder
        Returns:
        Whether the locationEnrichment field is set.
      • setLocationEnrichment

        public NewEnrichmentItem.Builder setLocationEnrichment​(LocationEnrichment value)
         Location to be added to the album.
         
        .google.photos.library.v1.LocationEnrichment location_enrichment = 2;
      • mergeLocationEnrichment

        public NewEnrichmentItem.Builder mergeLocationEnrichment​(LocationEnrichment value)
         Location to be added to the album.
         
        .google.photos.library.v1.LocationEnrichment location_enrichment = 2;
      • clearLocationEnrichment

        public NewEnrichmentItem.Builder clearLocationEnrichment()
         Location to be added to the album.
         
        .google.photos.library.v1.LocationEnrichment location_enrichment = 2;
      • getLocationEnrichmentBuilder

        public LocationEnrichment.Builder getLocationEnrichmentBuilder()
         Location to be added to the album.
         
        .google.photos.library.v1.LocationEnrichment location_enrichment = 2;
      • hasMapEnrichment

        public boolean hasMapEnrichment()
         Map to be added to the album.
         
        .google.photos.library.v1.MapEnrichment map_enrichment = 3;
        Specified by:
        hasMapEnrichment in interface NewEnrichmentItemOrBuilder
        Returns:
        Whether the mapEnrichment field is set.
      • clearMapEnrichment

        public NewEnrichmentItem.Builder clearMapEnrichment()
         Map to be added to the album.
         
        .google.photos.library.v1.MapEnrichment map_enrichment = 3;
      • getMapEnrichmentBuilder

        public MapEnrichment.Builder getMapEnrichmentBuilder()
         Map to be added to the album.
         
        .google.photos.library.v1.MapEnrichment map_enrichment = 3;
      • setUnknownFields

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

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