Class MapEnrichment.Builder

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

    public static final class MapEnrichment.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<MapEnrichment.Builder>
    implements MapEnrichmentOrBuilder
     An enrichment containing a map, showing origin and destination locations.
     
    Protobuf type google.photos.library.v1.MapEnrichment
    • 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<MapEnrichment.Builder>
      • clear

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

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

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

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

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

        public MapEnrichment.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<MapEnrichment.Builder>
      • clearField

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

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

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

        public MapEnrichment.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<MapEnrichment.Builder>
      • mergeFrom

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

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

        public MapEnrichment.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<MapEnrichment.Builder>
        Throws:
        java.io.IOException
      • hasOrigin

        public boolean hasOrigin()
         Origin location for this enrichment item.
         
        .google.photos.library.v1.Location origin = 1;
        Specified by:
        hasOrigin in interface MapEnrichmentOrBuilder
        Returns:
        Whether the origin field is set.
      • getOrigin

        public Location getOrigin()
         Origin location for this enrichment item.
         
        .google.photos.library.v1.Location origin = 1;
        Specified by:
        getOrigin in interface MapEnrichmentOrBuilder
        Returns:
        The origin.
      • setOrigin

        public MapEnrichment.Builder setOrigin​(Location value)
         Origin location for this enrichment item.
         
        .google.photos.library.v1.Location origin = 1;
      • mergeOrigin

        public MapEnrichment.Builder mergeOrigin​(Location value)
         Origin location for this enrichment item.
         
        .google.photos.library.v1.Location origin = 1;
      • clearOrigin

        public MapEnrichment.Builder clearOrigin()
         Origin location for this enrichment item.
         
        .google.photos.library.v1.Location origin = 1;
      • getOriginBuilder

        public Location.Builder getOriginBuilder()
         Origin location for this enrichment item.
         
        .google.photos.library.v1.Location origin = 1;
      • hasDestination

        public boolean hasDestination()
         Destination location for this enrichemt item.
         
        .google.photos.library.v1.Location destination = 2;
        Specified by:
        hasDestination in interface MapEnrichmentOrBuilder
        Returns:
        Whether the destination field is set.
      • getDestination

        public Location getDestination()
         Destination location for this enrichemt item.
         
        .google.photos.library.v1.Location destination = 2;
        Specified by:
        getDestination in interface MapEnrichmentOrBuilder
        Returns:
        The destination.
      • setDestination

        public MapEnrichment.Builder setDestination​(Location value)
         Destination location for this enrichemt item.
         
        .google.photos.library.v1.Location destination = 2;
      • setDestination

        public MapEnrichment.Builder setDestination​(Location.Builder builderForValue)
         Destination location for this enrichemt item.
         
        .google.photos.library.v1.Location destination = 2;
      • mergeDestination

        public MapEnrichment.Builder mergeDestination​(Location value)
         Destination location for this enrichemt item.
         
        .google.photos.library.v1.Location destination = 2;
      • clearDestination

        public MapEnrichment.Builder clearDestination()
         Destination location for this enrichemt item.
         
        .google.photos.library.v1.Location destination = 2;
      • getDestinationBuilder

        public Location.Builder getDestinationBuilder()
         Destination location for this enrichemt item.
         
        .google.photos.library.v1.Location destination = 2;
      • setUnknownFields

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

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