com.google.photos.library.v1.proto.MapEnrichment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-photos-library-client Show documentation
Show all versions of google-photos-library-client Show documentation
Google Photos Library API Client Library for Java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/photos/library/v1/photos_library.proto
package com.google.photos.library.v1.proto;
/**
*
*
*
* An enrichment containing a map, showing origin and destination locations.
*
*
* Protobuf type {@code google.photos.library.v1.MapEnrichment}
*/
public final class MapEnrichment extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.photos.library.v1.MapEnrichment)
MapEnrichmentOrBuilder {
private static final long serialVersionUID = 0L;
// Use MapEnrichment.newBuilder() to construct.
private MapEnrichment(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MapEnrichment() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MapEnrichment();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private MapEnrichment(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.photos.library.v1.proto.Location.Builder subBuilder = null;
if (origin_ != null) {
subBuilder = origin_.toBuilder();
}
origin_ =
input.readMessage(
com.google.photos.library.v1.proto.Location.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(origin_);
origin_ = subBuilder.buildPartial();
}
break;
}
case 18:
{
com.google.photos.library.v1.proto.Location.Builder subBuilder = null;
if (destination_ != null) {
subBuilder = destination_.toBuilder();
}
destination_ =
input.readMessage(
com.google.photos.library.v1.proto.Location.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(destination_);
destination_ = subBuilder.buildPartial();
}
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.photos.library.v1.proto.LibraryServiceProto
.internal_static_google_photos_library_v1_MapEnrichment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.photos.library.v1.proto.LibraryServiceProto
.internal_static_google_photos_library_v1_MapEnrichment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.photos.library.v1.proto.MapEnrichment.class,
com.google.photos.library.v1.proto.MapEnrichment.Builder.class);
}
public static final int ORIGIN_FIELD_NUMBER = 1;
private com.google.photos.library.v1.proto.Location origin_;
/**
*
*
*
* Origin location for this enrichment item.
*
*
* .google.photos.library.v1.Location origin = 1;
*
* @return Whether the origin field is set.
*/
@java.lang.Override
public boolean hasOrigin() {
return origin_ != null;
}
/**
*
*
*
* Origin location for this enrichment item.
*
*
* .google.photos.library.v1.Location origin = 1;
*
* @return The origin.
*/
@java.lang.Override
public com.google.photos.library.v1.proto.Location getOrigin() {
return origin_ == null
? com.google.photos.library.v1.proto.Location.getDefaultInstance()
: origin_;
}
/**
*
*
*
* Origin location for this enrichment item.
*
*
* .google.photos.library.v1.Location origin = 1;
*/
@java.lang.Override
public com.google.photos.library.v1.proto.LocationOrBuilder getOriginOrBuilder() {
return getOrigin();
}
public static final int DESTINATION_FIELD_NUMBER = 2;
private com.google.photos.library.v1.proto.Location destination_;
/**
*
*
*
* Destination location for this enrichemt item.
*
*
* .google.photos.library.v1.Location destination = 2;
*
* @return Whether the destination field is set.
*/
@java.lang.Override
public boolean hasDestination() {
return destination_ != null;
}
/**
*
*
*
* Destination location for this enrichemt item.
*
*
* .google.photos.library.v1.Location destination = 2;
*
* @return The destination.
*/
@java.lang.Override
public com.google.photos.library.v1.proto.Location getDestination() {
return destination_ == null
? com.google.photos.library.v1.proto.Location.getDefaultInstance()
: destination_;
}
/**
*
*
*
* Destination location for this enrichemt item.
*
*
* .google.photos.library.v1.Location destination = 2;
*/
@java.lang.Override
public com.google.photos.library.v1.proto.LocationOrBuilder getDestinationOrBuilder() {
return getDestination();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (origin_ != null) {
output.writeMessage(1, getOrigin());
}
if (destination_ != null) {
output.writeMessage(2, getDestination());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (origin_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOrigin());
}
if (destination_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDestination());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.photos.library.v1.proto.MapEnrichment)) {
return super.equals(obj);
}
com.google.photos.library.v1.proto.MapEnrichment other =
(com.google.photos.library.v1.proto.MapEnrichment) obj;
if (hasOrigin() != other.hasOrigin()) return false;
if (hasOrigin()) {
if (!getOrigin().equals(other.getOrigin())) return false;
}
if (hasDestination() != other.hasDestination()) return false;
if (hasDestination()) {
if (!getDestination().equals(other.getDestination())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOrigin()) {
hash = (37 * hash) + ORIGIN_FIELD_NUMBER;
hash = (53 * hash) + getOrigin().hashCode();
}
if (hasDestination()) {
hash = (37 * hash) + DESTINATION_FIELD_NUMBER;
hash = (53 * hash) + getDestination().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.photos.library.v1.proto.MapEnrichment parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.photos.library.v1.proto.MapEnrichment parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.photos.library.v1.proto.MapEnrichment parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.photos.library.v1.proto.MapEnrichment parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.photos.library.v1.proto.MapEnrichment parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.photos.library.v1.proto.MapEnrichment parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.photos.library.v1.proto.MapEnrichment parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.photos.library.v1.proto.MapEnrichment parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.photos.library.v1.proto.MapEnrichment parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.photos.library.v1.proto.MapEnrichment parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.photos.library.v1.proto.MapEnrichment parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.photos.library.v1.proto.MapEnrichment parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.photos.library.v1.proto.MapEnrichment prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* An enrichment containing a map, showing origin and destination locations.
*
*
* Protobuf type {@code google.photos.library.v1.MapEnrichment}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.photos.library.v1.MapEnrichment)
com.google.photos.library.v1.proto.MapEnrichmentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.photos.library.v1.proto.LibraryServiceProto
.internal_static_google_photos_library_v1_MapEnrichment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.photos.library.v1.proto.LibraryServiceProto
.internal_static_google_photos_library_v1_MapEnrichment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.photos.library.v1.proto.MapEnrichment.class,
com.google.photos.library.v1.proto.MapEnrichment.Builder.class);
}
// Construct using com.google.photos.library.v1.proto.MapEnrichment.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (originBuilder_ == null) {
origin_ = null;
} else {
origin_ = null;
originBuilder_ = null;
}
if (destinationBuilder_ == null) {
destination_ = null;
} else {
destination_ = null;
destinationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.photos.library.v1.proto.LibraryServiceProto
.internal_static_google_photos_library_v1_MapEnrichment_descriptor;
}
@java.lang.Override
public com.google.photos.library.v1.proto.MapEnrichment getDefaultInstanceForType() {
return com.google.photos.library.v1.proto.MapEnrichment.getDefaultInstance();
}
@java.lang.Override
public com.google.photos.library.v1.proto.MapEnrichment build() {
com.google.photos.library.v1.proto.MapEnrichment result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.photos.library.v1.proto.MapEnrichment buildPartial() {
com.google.photos.library.v1.proto.MapEnrichment result =
new com.google.photos.library.v1.proto.MapEnrichment(this);
if (originBuilder_ == null) {
result.origin_ = origin_;
} else {
result.origin_ = originBuilder_.build();
}
if (destinationBuilder_ == null) {
result.destination_ = destination_;
} else {
result.destination_ = destinationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.photos.library.v1.proto.MapEnrichment) {
return mergeFrom((com.google.photos.library.v1.proto.MapEnrichment) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.photos.library.v1.proto.MapEnrichment other) {
if (other == com.google.photos.library.v1.proto.MapEnrichment.getDefaultInstance())
return this;
if (other.hasOrigin()) {
mergeOrigin(other.getOrigin());
}
if (other.hasDestination()) {
mergeDestination(other.getDestination());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.photos.library.v1.proto.MapEnrichment parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.photos.library.v1.proto.MapEnrichment) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.photos.library.v1.proto.Location origin_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.photos.library.v1.proto.Location,
com.google.photos.library.v1.proto.Location.Builder,
com.google.photos.library.v1.proto.LocationOrBuilder>
originBuilder_;
/**
*
*
*
* Origin location for this enrichment item.
*
*
* .google.photos.library.v1.Location origin = 1;
*
* @return Whether the origin field is set.
*/
public boolean hasOrigin() {
return originBuilder_ != null || origin_ != null;
}
/**
*
*
*
* Origin location for this enrichment item.
*
*
* .google.photos.library.v1.Location origin = 1;
*
* @return The origin.
*/
public com.google.photos.library.v1.proto.Location getOrigin() {
if (originBuilder_ == null) {
return origin_ == null
? com.google.photos.library.v1.proto.Location.getDefaultInstance()
: origin_;
} else {
return originBuilder_.getMessage();
}
}
/**
*
*
*
* Origin location for this enrichment item.
*
*
* .google.photos.library.v1.Location origin = 1;
*/
public Builder setOrigin(com.google.photos.library.v1.proto.Location value) {
if (originBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
origin_ = value;
onChanged();
} else {
originBuilder_.setMessage(value);
}
return this;
}
/**
*
*
*
* Origin location for this enrichment item.
*
*
* .google.photos.library.v1.Location origin = 1;
*/
public Builder setOrigin(com.google.photos.library.v1.proto.Location.Builder builderForValue) {
if (originBuilder_ == null) {
origin_ = builderForValue.build();
onChanged();
} else {
originBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Origin location for this enrichment item.
*
*
* .google.photos.library.v1.Location origin = 1;
*/
public Builder mergeOrigin(com.google.photos.library.v1.proto.Location value) {
if (originBuilder_ == null) {
if (origin_ != null) {
origin_ =
com.google.photos.library.v1.proto.Location.newBuilder(origin_)
.mergeFrom(value)
.buildPartial();
} else {
origin_ = value;
}
onChanged();
} else {
originBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
*
* Origin location for this enrichment item.
*
*
* .google.photos.library.v1.Location origin = 1;
*/
public Builder clearOrigin() {
if (originBuilder_ == null) {
origin_ = null;
onChanged();
} else {
origin_ = null;
originBuilder_ = null;
}
return this;
}
/**
*
*
*
* Origin location for this enrichment item.
*
*
* .google.photos.library.v1.Location origin = 1;
*/
public com.google.photos.library.v1.proto.Location.Builder getOriginBuilder() {
onChanged();
return getOriginFieldBuilder().getBuilder();
}
/**
*
*
*
* Origin location for this enrichment item.
*
*
* .google.photos.library.v1.Location origin = 1;
*/
public com.google.photos.library.v1.proto.LocationOrBuilder getOriginOrBuilder() {
if (originBuilder_ != null) {
return originBuilder_.getMessageOrBuilder();
} else {
return origin_ == null
? com.google.photos.library.v1.proto.Location.getDefaultInstance()
: origin_;
}
}
/**
*
*
*
* Origin location for this enrichment item.
*
*
* .google.photos.library.v1.Location origin = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.photos.library.v1.proto.Location,
com.google.photos.library.v1.proto.Location.Builder,
com.google.photos.library.v1.proto.LocationOrBuilder>
getOriginFieldBuilder() {
if (originBuilder_ == null) {
originBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.photos.library.v1.proto.Location,
com.google.photos.library.v1.proto.Location.Builder,
com.google.photos.library.v1.proto.LocationOrBuilder>(
getOrigin(), getParentForChildren(), isClean());
origin_ = null;
}
return originBuilder_;
}
private com.google.photos.library.v1.proto.Location destination_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.photos.library.v1.proto.Location,
com.google.photos.library.v1.proto.Location.Builder,
com.google.photos.library.v1.proto.LocationOrBuilder>
destinationBuilder_;
/**
*
*
*
* Destination location for this enrichemt item.
*
*
* .google.photos.library.v1.Location destination = 2;
*
* @return Whether the destination field is set.
*/
public boolean hasDestination() {
return destinationBuilder_ != null || destination_ != null;
}
/**
*
*
*
* Destination location for this enrichemt item.
*
*
* .google.photos.library.v1.Location destination = 2;
*
* @return The destination.
*/
public com.google.photos.library.v1.proto.Location getDestination() {
if (destinationBuilder_ == null) {
return destination_ == null
? com.google.photos.library.v1.proto.Location.getDefaultInstance()
: destination_;
} else {
return destinationBuilder_.getMessage();
}
}
/**
*
*
*
* Destination location for this enrichemt item.
*
*
* .google.photos.library.v1.Location destination = 2;
*/
public Builder setDestination(com.google.photos.library.v1.proto.Location value) {
if (destinationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
destination_ = value;
onChanged();
} else {
destinationBuilder_.setMessage(value);
}
return this;
}
/**
*
*
*
* Destination location for this enrichemt item.
*
*
* .google.photos.library.v1.Location destination = 2;
*/
public Builder setDestination(
com.google.photos.library.v1.proto.Location.Builder builderForValue) {
if (destinationBuilder_ == null) {
destination_ = builderForValue.build();
onChanged();
} else {
destinationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Destination location for this enrichemt item.
*
*
* .google.photos.library.v1.Location destination = 2;
*/
public Builder mergeDestination(com.google.photos.library.v1.proto.Location value) {
if (destinationBuilder_ == null) {
if (destination_ != null) {
destination_ =
com.google.photos.library.v1.proto.Location.newBuilder(destination_)
.mergeFrom(value)
.buildPartial();
} else {
destination_ = value;
}
onChanged();
} else {
destinationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
*
* Destination location for this enrichemt item.
*
*
* .google.photos.library.v1.Location destination = 2;
*/
public Builder clearDestination() {
if (destinationBuilder_ == null) {
destination_ = null;
onChanged();
} else {
destination_ = null;
destinationBuilder_ = null;
}
return this;
}
/**
*
*
*
* Destination location for this enrichemt item.
*
*
* .google.photos.library.v1.Location destination = 2;
*/
public com.google.photos.library.v1.proto.Location.Builder getDestinationBuilder() {
onChanged();
return getDestinationFieldBuilder().getBuilder();
}
/**
*
*
*
* Destination location for this enrichemt item.
*
*
* .google.photos.library.v1.Location destination = 2;
*/
public com.google.photos.library.v1.proto.LocationOrBuilder getDestinationOrBuilder() {
if (destinationBuilder_ != null) {
return destinationBuilder_.getMessageOrBuilder();
} else {
return destination_ == null
? com.google.photos.library.v1.proto.Location.getDefaultInstance()
: destination_;
}
}
/**
*
*
*
* Destination location for this enrichemt item.
*
*
* .google.photos.library.v1.Location destination = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.photos.library.v1.proto.Location,
com.google.photos.library.v1.proto.Location.Builder,
com.google.photos.library.v1.proto.LocationOrBuilder>
getDestinationFieldBuilder() {
if (destinationBuilder_ == null) {
destinationBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.photos.library.v1.proto.Location,
com.google.photos.library.v1.proto.Location.Builder,
com.google.photos.library.v1.proto.LocationOrBuilder>(
getDestination(), getParentForChildren(), isClean());
destination_ = null;
}
return destinationBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.photos.library.v1.MapEnrichment)
}
// @@protoc_insertion_point(class_scope:google.photos.library.v1.MapEnrichment)
private static final com.google.photos.library.v1.proto.MapEnrichment DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.photos.library.v1.proto.MapEnrichment();
}
public static com.google.photos.library.v1.proto.MapEnrichment getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MapEnrichment parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MapEnrichment(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.photos.library.v1.proto.MapEnrichment getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}