All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.maps.places.v1.Place Maven / Gradle / Ivy

There is a newer version: 0.22.0
Show newest version
/*
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/maps/places/v1/place.proto

package com.google.maps.places.v1;

/**
 *
 *
 * 
 * All the information representing a Place.
 * 
* * Protobuf type {@code google.maps.places.v1.Place} */ public final class Place extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place) PlaceOrBuilder { private static final long serialVersionUID = 0L; // Use Place.newBuilder() to construct. private Place(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Place() { name_ = ""; id_ = ""; types_ = com.google.protobuf.LazyStringArrayList.emptyList(); nationalPhoneNumber_ = ""; internationalPhoneNumber_ = ""; formattedAddress_ = ""; addressComponents_ = java.util.Collections.emptyList(); googleMapsUri_ = ""; websiteUri_ = ""; reviews_ = java.util.Collections.emptyList(); photos_ = java.util.Collections.emptyList(); adrFormatAddress_ = ""; businessStatus_ = 0; priceLevel_ = 0; attributions_ = java.util.Collections.emptyList(); iconMaskBaseUri_ = ""; iconBackgroundColor_ = ""; currentSecondaryOpeningHours_ = java.util.Collections.emptyList(); regularSecondaryOpeningHours_ = java.util.Collections.emptyList(); subDestinations_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Place(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.class, com.google.maps.places.v1.Place.Builder.class); } /** * * *
   * Business status for the place.
   * 
* * Protobuf enum {@code google.maps.places.v1.Place.BusinessStatus} */ public enum BusinessStatus implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Default value. This value is unused.
     * 
* * BUSINESS_STATUS_UNSPECIFIED = 0; */ BUSINESS_STATUS_UNSPECIFIED(0), /** * * *
     * The establishment is operational, not necessarily open now.
     * 
* * OPERATIONAL = 1; */ OPERATIONAL(1), /** * * *
     * The establishment is temporarily closed.
     * 
* * CLOSED_TEMPORARILY = 2; */ CLOSED_TEMPORARILY(2), /** * * *
     * The establishment is permanently closed.
     * 
* * CLOSED_PERMANENTLY = 3; */ CLOSED_PERMANENTLY(3), UNRECOGNIZED(-1), ; /** * * *
     * Default value. This value is unused.
     * 
* * BUSINESS_STATUS_UNSPECIFIED = 0; */ public static final int BUSINESS_STATUS_UNSPECIFIED_VALUE = 0; /** * * *
     * The establishment is operational, not necessarily open now.
     * 
* * OPERATIONAL = 1; */ public static final int OPERATIONAL_VALUE = 1; /** * * *
     * The establishment is temporarily closed.
     * 
* * CLOSED_TEMPORARILY = 2; */ public static final int CLOSED_TEMPORARILY_VALUE = 2; /** * * *
     * The establishment is permanently closed.
     * 
* * CLOSED_PERMANENTLY = 3; */ public static final int CLOSED_PERMANENTLY_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static BusinessStatus valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static BusinessStatus forNumber(int value) { switch (value) { case 0: return BUSINESS_STATUS_UNSPECIFIED; case 1: return OPERATIONAL; case 2: return CLOSED_TEMPORARILY; case 3: return CLOSED_PERMANENTLY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public BusinessStatus findValueByNumber(int number) { return BusinessStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.maps.places.v1.Place.getDescriptor().getEnumTypes().get(0); } private static final BusinessStatus[] VALUES = values(); public static BusinessStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private BusinessStatus(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.maps.places.v1.Place.BusinessStatus) } public interface AddressComponentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.AddressComponent) com.google.protobuf.MessageOrBuilder { /** * * *
     * Output only. The full text description or name of the address component.
     * For example, an address component for the country Australia may have a
     * long_name of "Australia".
     * 
* * string long_text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The longText. */ java.lang.String getLongText(); /** * * *
     * Output only. The full text description or name of the address component.
     * For example, an address component for the country Australia may have a
     * long_name of "Australia".
     * 
* * string long_text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for longText. */ com.google.protobuf.ByteString getLongTextBytes(); /** * * *
     * Output only. An abbreviated textual name for the address component, if
     * available. For example, an address component for the country of Australia
     * may have a short_name of "AU".
     * 
* * string short_text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The shortText. */ java.lang.String getShortText(); /** * * *
     * Output only. An abbreviated textual name for the address component, if
     * available. For example, an address component for the country of Australia
     * may have a short_name of "AU".
     * 
* * string short_text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for shortText. */ com.google.protobuf.ByteString getShortTextBytes(); /** * * *
     * Output only. An array indicating the type(s) of the address component.
     * 
* * repeated string types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return A list containing the types. */ java.util.List getTypesList(); /** * * *
     * Output only. An array indicating the type(s) of the address component.
     * 
* * repeated string types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The count of types. */ int getTypesCount(); /** * * *
     * Output only. An array indicating the type(s) of the address component.
     * 
* * repeated string types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the element to return. * @return The types at the given index. */ java.lang.String getTypes(int index); /** * * *
     * Output only. An array indicating the type(s) of the address component.
     * 
* * repeated string types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the value to return. * @return The bytes of the types at the given index. */ com.google.protobuf.ByteString getTypesBytes(int index); /** * * *
     * Output only. The language used to format this components, in CLDR
     * notation.
     * 
* * string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The languageCode. */ java.lang.String getLanguageCode(); /** * * *
     * Output only. The language used to format this components, in CLDR
     * notation.
     * 
* * string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for languageCode. */ com.google.protobuf.ByteString getLanguageCodeBytes(); } /** * * *
   * The structured components that form the formatted address, if this
   * information is available.
   * 
* * Protobuf type {@code google.maps.places.v1.Place.AddressComponent} */ public static final class AddressComponent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.AddressComponent) AddressComponentOrBuilder { private static final long serialVersionUID = 0L; // Use AddressComponent.newBuilder() to construct. private AddressComponent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AddressComponent() { longText_ = ""; shortText_ = ""; types_ = com.google.protobuf.LazyStringArrayList.emptyList(); languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AddressComponent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_AddressComponent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_AddressComponent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.AddressComponent.class, com.google.maps.places.v1.Place.AddressComponent.Builder.class); } public static final int LONG_TEXT_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object longText_ = ""; /** * * *
     * Output only. The full text description or name of the address component.
     * For example, an address component for the country Australia may have a
     * long_name of "Australia".
     * 
* * string long_text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The longText. */ @java.lang.Override public java.lang.String getLongText() { java.lang.Object ref = longText_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); longText_ = s; return s; } } /** * * *
     * Output only. The full text description or name of the address component.
     * For example, an address component for the country Australia may have a
     * long_name of "Australia".
     * 
* * string long_text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for longText. */ @java.lang.Override public com.google.protobuf.ByteString getLongTextBytes() { java.lang.Object ref = longText_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); longText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SHORT_TEXT_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object shortText_ = ""; /** * * *
     * Output only. An abbreviated textual name for the address component, if
     * available. For example, an address component for the country of Australia
     * may have a short_name of "AU".
     * 
* * string short_text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The shortText. */ @java.lang.Override public java.lang.String getShortText() { java.lang.Object ref = shortText_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shortText_ = s; return s; } } /** * * *
     * Output only. An abbreviated textual name for the address component, if
     * available. For example, an address component for the country of Australia
     * may have a short_name of "AU".
     * 
* * string short_text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for shortText. */ @java.lang.Override public com.google.protobuf.ByteString getShortTextBytes() { java.lang.Object ref = shortText_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shortText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList types_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
     * Output only. An array indicating the type(s) of the address component.
     * 
* * repeated string types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return A list containing the types. */ public com.google.protobuf.ProtocolStringList getTypesList() { return types_; } /** * * *
     * Output only. An array indicating the type(s) of the address component.
     * 
* * repeated string types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The count of types. */ public int getTypesCount() { return types_.size(); } /** * * *
     * Output only. An array indicating the type(s) of the address component.
     * 
* * repeated string types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the element to return. * @return The types at the given index. */ public java.lang.String getTypes(int index) { return types_.get(index); } /** * * *
     * Output only. An array indicating the type(s) of the address component.
     * 
* * repeated string types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the value to return. * @return The bytes of the types at the given index. */ public com.google.protobuf.ByteString getTypesBytes(int index) { return types_.getByteString(index); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** * * *
     * Output only. The language used to format this components, in CLDR
     * notation.
     * 
* * string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The languageCode. */ @java.lang.Override public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** * * *
     * Output only. The language used to format this components, in CLDR
     * notation.
     * 
* * string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for languageCode. */ @java.lang.Override public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(longText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, longText_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shortText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shortText_); } for (int i = 0; i < types_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, types_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, languageCode_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(longText_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, longText_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shortText_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shortText_); } { int dataSize = 0; for (int i = 0; i < types_.size(); i++) { dataSize += computeStringSizeNoTag(types_.getRaw(i)); } size += dataSize; size += 1 * getTypesList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageCode_); } size += getUnknownFields().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.maps.places.v1.Place.AddressComponent)) { return super.equals(obj); } com.google.maps.places.v1.Place.AddressComponent other = (com.google.maps.places.v1.Place.AddressComponent) obj; if (!getLongText().equals(other.getLongText())) return false; if (!getShortText().equals(other.getShortText())) return false; if (!getTypesList().equals(other.getTypesList())) return false; if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LONG_TEXT_FIELD_NUMBER; hash = (53 * hash) + getLongText().hashCode(); hash = (37 * hash) + SHORT_TEXT_FIELD_NUMBER; hash = (53 * hash) + getShortText().hashCode(); if (getTypesCount() > 0) { hash = (37 * hash) + TYPES_FIELD_NUMBER; hash = (53 * hash) + getTypesList().hashCode(); } hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.maps.places.v1.Place.AddressComponent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.AddressComponent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.AddressComponent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.AddressComponent 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.maps.places.v1.Place.AddressComponent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.AddressComponent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.AddressComponent parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.AddressComponent 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.maps.places.v1.Place.AddressComponent parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.AddressComponent 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.maps.places.v1.Place.AddressComponent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.AddressComponent 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.maps.places.v1.Place.AddressComponent 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; } /** * * *
     * The structured components that form the formatted address, if this
     * information is available.
     * 
* * Protobuf type {@code google.maps.places.v1.Place.AddressComponent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.AddressComponent) com.google.maps.places.v1.Place.AddressComponentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_AddressComponent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_AddressComponent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.AddressComponent.class, com.google.maps.places.v1.Place.AddressComponent.Builder.class); } // Construct using com.google.maps.places.v1.Place.AddressComponent.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; longText_ = ""; shortText_ = ""; types_ = com.google.protobuf.LazyStringArrayList.emptyList(); languageCode_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_AddressComponent_descriptor; } @java.lang.Override public com.google.maps.places.v1.Place.AddressComponent getDefaultInstanceForType() { return com.google.maps.places.v1.Place.AddressComponent.getDefaultInstance(); } @java.lang.Override public com.google.maps.places.v1.Place.AddressComponent build() { com.google.maps.places.v1.Place.AddressComponent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.maps.places.v1.Place.AddressComponent buildPartial() { com.google.maps.places.v1.Place.AddressComponent result = new com.google.maps.places.v1.Place.AddressComponent(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.maps.places.v1.Place.AddressComponent result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.longText_ = longText_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.shortText_ = shortText_; } if (((from_bitField0_ & 0x00000004) != 0)) { types_.makeImmutable(); result.types_ = types_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.languageCode_ = languageCode_; } } @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.maps.places.v1.Place.AddressComponent) { return mergeFrom((com.google.maps.places.v1.Place.AddressComponent) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.maps.places.v1.Place.AddressComponent other) { if (other == com.google.maps.places.v1.Place.AddressComponent.getDefaultInstance()) return this; if (!other.getLongText().isEmpty()) { longText_ = other.longText_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getShortText().isEmpty()) { shortText_ = other.shortText_; bitField0_ |= 0x00000002; onChanged(); } if (!other.types_.isEmpty()) { if (types_.isEmpty()) { types_ = other.types_; bitField0_ |= 0x00000004; } else { ensureTypesIsMutable(); types_.addAll(other.types_); } onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { longText_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { shortText_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureTypesIsMutable(); types_.add(s); break; } // case 26 case 34: { languageCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object longText_ = ""; /** * * *
       * Output only. The full text description or name of the address component.
       * For example, an address component for the country Australia may have a
       * long_name of "Australia".
       * 
* * string long_text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The longText. */ public java.lang.String getLongText() { java.lang.Object ref = longText_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); longText_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Output only. The full text description or name of the address component.
       * For example, an address component for the country Australia may have a
       * long_name of "Australia".
       * 
* * string long_text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for longText. */ public com.google.protobuf.ByteString getLongTextBytes() { java.lang.Object ref = longText_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); longText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Output only. The full text description or name of the address component.
       * For example, an address component for the country Australia may have a
       * long_name of "Australia".
       * 
* * string long_text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The longText to set. * @return This builder for chaining. */ public Builder setLongText(java.lang.String value) { if (value == null) { throw new NullPointerException(); } longText_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Output only. The full text description or name of the address component.
       * For example, an address component for the country Australia may have a
       * long_name of "Australia".
       * 
* * string long_text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearLongText() { longText_ = getDefaultInstance().getLongText(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Output only. The full text description or name of the address component.
       * For example, an address component for the country Australia may have a
       * long_name of "Australia".
       * 
* * string long_text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for longText to set. * @return This builder for chaining. */ public Builder setLongTextBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); longText_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object shortText_ = ""; /** * * *
       * Output only. An abbreviated textual name for the address component, if
       * available. For example, an address component for the country of Australia
       * may have a short_name of "AU".
       * 
* * string short_text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The shortText. */ public java.lang.String getShortText() { java.lang.Object ref = shortText_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shortText_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Output only. An abbreviated textual name for the address component, if
       * available. For example, an address component for the country of Australia
       * may have a short_name of "AU".
       * 
* * string short_text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for shortText. */ public com.google.protobuf.ByteString getShortTextBytes() { java.lang.Object ref = shortText_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shortText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Output only. An abbreviated textual name for the address component, if
       * available. For example, an address component for the country of Australia
       * may have a short_name of "AU".
       * 
* * string short_text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The shortText to set. * @return This builder for chaining. */ public Builder setShortText(java.lang.String value) { if (value == null) { throw new NullPointerException(); } shortText_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Output only. An abbreviated textual name for the address component, if
       * available. For example, an address component for the country of Australia
       * may have a short_name of "AU".
       * 
* * string short_text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearShortText() { shortText_ = getDefaultInstance().getShortText(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * Output only. An abbreviated textual name for the address component, if
       * available. For example, an address component for the country of Australia
       * may have a short_name of "AU".
       * 
* * string short_text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for shortText to set. * @return This builder for chaining. */ public Builder setShortTextBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); shortText_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList types_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureTypesIsMutable() { if (!types_.isModifiable()) { types_ = new com.google.protobuf.LazyStringArrayList(types_); } bitField0_ |= 0x00000004; } /** * * *
       * Output only. An array indicating the type(s) of the address component.
       * 
* * repeated string types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return A list containing the types. */ public com.google.protobuf.ProtocolStringList getTypesList() { types_.makeImmutable(); return types_; } /** * * *
       * Output only. An array indicating the type(s) of the address component.
       * 
* * repeated string types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The count of types. */ public int getTypesCount() { return types_.size(); } /** * * *
       * Output only. An array indicating the type(s) of the address component.
       * 
* * repeated string types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the element to return. * @return The types at the given index. */ public java.lang.String getTypes(int index) { return types_.get(index); } /** * * *
       * Output only. An array indicating the type(s) of the address component.
       * 
* * repeated string types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the value to return. * @return The bytes of the types at the given index. */ public com.google.protobuf.ByteString getTypesBytes(int index) { return types_.getByteString(index); } /** * * *
       * Output only. An array indicating the type(s) of the address component.
       * 
* * repeated string types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index to set the value at. * @param value The types to set. * @return This builder for chaining. */ public Builder setTypes(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTypesIsMutable(); types_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Output only. An array indicating the type(s) of the address component.
       * 
* * repeated string types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The types to add. * @return This builder for chaining. */ public Builder addTypes(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTypesIsMutable(); types_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Output only. An array indicating the type(s) of the address component.
       * 
* * repeated string types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param values The types to add. * @return This builder for chaining. */ public Builder addAllTypes(java.lang.Iterable values) { ensureTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, types_); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Output only. An array indicating the type(s) of the address component.
       * 
* * repeated string types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearTypes() { types_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); ; onChanged(); return this; } /** * * *
       * Output only. An array indicating the type(s) of the address component.
       * 
* * repeated string types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes of the types to add. * @return This builder for chaining. */ public Builder addTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTypesIsMutable(); types_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object languageCode_ = ""; /** * * *
       * Output only. The language used to format this components, in CLDR
       * notation.
       * 
* * string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Output only. The language used to format this components, in CLDR
       * notation.
       * 
* * string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Output only. The language used to format this components, in CLDR
       * notation.
       * 
* * string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The languageCode to set. * @return This builder for chaining. */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Output only. The language used to format this components, in CLDR
       * notation.
       * 
* * string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearLanguageCode() { languageCode_ = getDefaultInstance().getLanguageCode(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
       * Output only. The language used to format this components, in CLDR
       * notation.
       * 
* * string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } @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.maps.places.v1.Place.AddressComponent) } // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.AddressComponent) private static final com.google.maps.places.v1.Place.AddressComponent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.AddressComponent(); } public static com.google.maps.places.v1.Place.AddressComponent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AddressComponent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.maps.places.v1.Place.AddressComponent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PlusCodeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.PlusCode) com.google.protobuf.MessageOrBuilder { /** * * *
     * Output only. Place's global (full) code, such as "9FWM33GV+HQ",
     * representing an 1/8000 by 1/8000 degree area (~14 by 14 meters).
     * 
* * string global_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The globalCode. */ java.lang.String getGlobalCode(); /** * * *
     * Output only. Place's global (full) code, such as "9FWM33GV+HQ",
     * representing an 1/8000 by 1/8000 degree area (~14 by 14 meters).
     * 
* * string global_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for globalCode. */ com.google.protobuf.ByteString getGlobalCodeBytes(); /** * * *
     * Output only. Place's compound code, such as "33GV+HQ, Ramberg, Norway",
     * containing the suffix of the global code and replacing the prefix with a
     * formatted name of a reference entity.
     * 
* * string compound_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The compoundCode. */ java.lang.String getCompoundCode(); /** * * *
     * Output only. Place's compound code, such as "33GV+HQ, Ramberg, Norway",
     * containing the suffix of the global code and replacing the prefix with a
     * formatted name of a reference entity.
     * 
* * string compound_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for compoundCode. */ com.google.protobuf.ByteString getCompoundCodeBytes(); } /** * * *
   * Plus code (http://plus.codes) is a location reference with two formats:
   * global code defining a 14mx14m (1/8000th of a degree) or smaller rectangle,
   * and compound code, replacing the prefix with a reference location.
   * 
* * Protobuf type {@code google.maps.places.v1.Place.PlusCode} */ public static final class PlusCode extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.PlusCode) PlusCodeOrBuilder { private static final long serialVersionUID = 0L; // Use PlusCode.newBuilder() to construct. private PlusCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PlusCode() { globalCode_ = ""; compoundCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PlusCode(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_PlusCode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_PlusCode_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.PlusCode.class, com.google.maps.places.v1.Place.PlusCode.Builder.class); } public static final int GLOBAL_CODE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object globalCode_ = ""; /** * * *
     * Output only. Place's global (full) code, such as "9FWM33GV+HQ",
     * representing an 1/8000 by 1/8000 degree area (~14 by 14 meters).
     * 
* * string global_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The globalCode. */ @java.lang.Override public java.lang.String getGlobalCode() { java.lang.Object ref = globalCode_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); globalCode_ = s; return s; } } /** * * *
     * Output only. Place's global (full) code, such as "9FWM33GV+HQ",
     * representing an 1/8000 by 1/8000 degree area (~14 by 14 meters).
     * 
* * string global_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for globalCode. */ @java.lang.Override public com.google.protobuf.ByteString getGlobalCodeBytes() { java.lang.Object ref = globalCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); globalCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMPOUND_CODE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object compoundCode_ = ""; /** * * *
     * Output only. Place's compound code, such as "33GV+HQ, Ramberg, Norway",
     * containing the suffix of the global code and replacing the prefix with a
     * formatted name of a reference entity.
     * 
* * string compound_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The compoundCode. */ @java.lang.Override public java.lang.String getCompoundCode() { java.lang.Object ref = compoundCode_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); compoundCode_ = s; return s; } } /** * * *
     * Output only. Place's compound code, such as "33GV+HQ, Ramberg, Norway",
     * containing the suffix of the global code and replacing the prefix with a
     * formatted name of a reference entity.
     * 
* * string compound_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for compoundCode. */ @java.lang.Override public com.google.protobuf.ByteString getCompoundCodeBytes() { java.lang.Object ref = compoundCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); compoundCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(globalCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, globalCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compoundCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, compoundCode_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(globalCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, globalCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compoundCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, compoundCode_); } size += getUnknownFields().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.maps.places.v1.Place.PlusCode)) { return super.equals(obj); } com.google.maps.places.v1.Place.PlusCode other = (com.google.maps.places.v1.Place.PlusCode) obj; if (!getGlobalCode().equals(other.getGlobalCode())) return false; if (!getCompoundCode().equals(other.getCompoundCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + GLOBAL_CODE_FIELD_NUMBER; hash = (53 * hash) + getGlobalCode().hashCode(); hash = (37 * hash) + COMPOUND_CODE_FIELD_NUMBER; hash = (53 * hash) + getCompoundCode().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.maps.places.v1.Place.PlusCode parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.PlusCode parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.PlusCode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.PlusCode 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.maps.places.v1.Place.PlusCode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.PlusCode parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.PlusCode parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.PlusCode 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.maps.places.v1.Place.PlusCode parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.PlusCode 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.maps.places.v1.Place.PlusCode parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.PlusCode 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.maps.places.v1.Place.PlusCode 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; } /** * * *
     * Plus code (http://plus.codes) is a location reference with two formats:
     * global code defining a 14mx14m (1/8000th of a degree) or smaller rectangle,
     * and compound code, replacing the prefix with a reference location.
     * 
* * Protobuf type {@code google.maps.places.v1.Place.PlusCode} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.PlusCode) com.google.maps.places.v1.Place.PlusCodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_PlusCode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_PlusCode_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.PlusCode.class, com.google.maps.places.v1.Place.PlusCode.Builder.class); } // Construct using com.google.maps.places.v1.Place.PlusCode.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; globalCode_ = ""; compoundCode_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_PlusCode_descriptor; } @java.lang.Override public com.google.maps.places.v1.Place.PlusCode getDefaultInstanceForType() { return com.google.maps.places.v1.Place.PlusCode.getDefaultInstance(); } @java.lang.Override public com.google.maps.places.v1.Place.PlusCode build() { com.google.maps.places.v1.Place.PlusCode result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.maps.places.v1.Place.PlusCode buildPartial() { com.google.maps.places.v1.Place.PlusCode result = new com.google.maps.places.v1.Place.PlusCode(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.maps.places.v1.Place.PlusCode result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.globalCode_ = globalCode_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.compoundCode_ = compoundCode_; } } @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.maps.places.v1.Place.PlusCode) { return mergeFrom((com.google.maps.places.v1.Place.PlusCode) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.maps.places.v1.Place.PlusCode other) { if (other == com.google.maps.places.v1.Place.PlusCode.getDefaultInstance()) return this; if (!other.getGlobalCode().isEmpty()) { globalCode_ = other.globalCode_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getCompoundCode().isEmpty()) { compoundCode_ = other.compoundCode_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { globalCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { compoundCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object globalCode_ = ""; /** * * *
       * Output only. Place's global (full) code, such as "9FWM33GV+HQ",
       * representing an 1/8000 by 1/8000 degree area (~14 by 14 meters).
       * 
* * string global_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The globalCode. */ public java.lang.String getGlobalCode() { java.lang.Object ref = globalCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); globalCode_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Output only. Place's global (full) code, such as "9FWM33GV+HQ",
       * representing an 1/8000 by 1/8000 degree area (~14 by 14 meters).
       * 
* * string global_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for globalCode. */ public com.google.protobuf.ByteString getGlobalCodeBytes() { java.lang.Object ref = globalCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); globalCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Output only. Place's global (full) code, such as "9FWM33GV+HQ",
       * representing an 1/8000 by 1/8000 degree area (~14 by 14 meters).
       * 
* * string global_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The globalCode to set. * @return This builder for chaining. */ public Builder setGlobalCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } globalCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Output only. Place's global (full) code, such as "9FWM33GV+HQ",
       * representing an 1/8000 by 1/8000 degree area (~14 by 14 meters).
       * 
* * string global_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearGlobalCode() { globalCode_ = getDefaultInstance().getGlobalCode(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Output only. Place's global (full) code, such as "9FWM33GV+HQ",
       * representing an 1/8000 by 1/8000 degree area (~14 by 14 meters).
       * 
* * string global_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for globalCode to set. * @return This builder for chaining. */ public Builder setGlobalCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); globalCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object compoundCode_ = ""; /** * * *
       * Output only. Place's compound code, such as "33GV+HQ, Ramberg, Norway",
       * containing the suffix of the global code and replacing the prefix with a
       * formatted name of a reference entity.
       * 
* * string compound_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The compoundCode. */ public java.lang.String getCompoundCode() { java.lang.Object ref = compoundCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); compoundCode_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Output only. Place's compound code, such as "33GV+HQ, Ramberg, Norway",
       * containing the suffix of the global code and replacing the prefix with a
       * formatted name of a reference entity.
       * 
* * string compound_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for compoundCode. */ public com.google.protobuf.ByteString getCompoundCodeBytes() { java.lang.Object ref = compoundCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); compoundCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Output only. Place's compound code, such as "33GV+HQ, Ramberg, Norway",
       * containing the suffix of the global code and replacing the prefix with a
       * formatted name of a reference entity.
       * 
* * string compound_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The compoundCode to set. * @return This builder for chaining. */ public Builder setCompoundCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } compoundCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Output only. Place's compound code, such as "33GV+HQ, Ramberg, Norway",
       * containing the suffix of the global code and replacing the prefix with a
       * formatted name of a reference entity.
       * 
* * string compound_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearCompoundCode() { compoundCode_ = getDefaultInstance().getCompoundCode(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * Output only. Place's compound code, such as "33GV+HQ, Ramberg, Norway",
       * containing the suffix of the global code and replacing the prefix with a
       * formatted name of a reference entity.
       * 
* * string compound_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for compoundCode to set. * @return This builder for chaining. */ public Builder setCompoundCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); compoundCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @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.maps.places.v1.Place.PlusCode) } // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.PlusCode) private static final com.google.maps.places.v1.Place.PlusCode DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.PlusCode(); } public static com.google.maps.places.v1.Place.PlusCode getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PlusCode parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.maps.places.v1.Place.PlusCode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OpeningHoursOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.OpeningHours) com.google.protobuf.MessageOrBuilder { /** * * *
     * Output only. Is this place open right now?  Always present unless we lack
     * time-of-day or timezone data for these opening hours.
     * 
* * optional bool open_now = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the openNow field is set. */ boolean hasOpenNow(); /** * * *
     * Output only. Is this place open right now?  Always present unless we lack
     * time-of-day or timezone data for these opening hours.
     * 
* * optional bool open_now = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The openNow. */ boolean getOpenNow(); /** * * *
     * Output only. The periods that this place is open during the week. The
     * periods are in chronological order, starting with Sunday in the
     * place-local timezone. An empty (but not absent) value indicates a place
     * that is never open, e.g. because it is closed temporarily for
     * renovations.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ java.util.List getPeriodsList(); /** * * *
     * Output only. The periods that this place is open during the week. The
     * periods are in chronological order, starting with Sunday in the
     * place-local timezone. An empty (but not absent) value indicates a place
     * that is never open, e.g. because it is closed temporarily for
     * renovations.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.maps.places.v1.Place.OpeningHours.Period getPeriods(int index); /** * * *
     * Output only. The periods that this place is open during the week. The
     * periods are in chronological order, starting with Sunday in the
     * place-local timezone. An empty (but not absent) value indicates a place
     * that is never open, e.g. because it is closed temporarily for
     * renovations.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ int getPeriodsCount(); /** * * *
     * Output only. The periods that this place is open during the week. The
     * periods are in chronological order, starting with Sunday in the
     * place-local timezone. An empty (but not absent) value indicates a place
     * that is never open, e.g. because it is closed temporarily for
     * renovations.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ java.util.List getPeriodsOrBuilderList(); /** * * *
     * Output only. The periods that this place is open during the week. The
     * periods are in chronological order, starting with Sunday in the
     * place-local timezone. An empty (but not absent) value indicates a place
     * that is never open, e.g. because it is closed temporarily for
     * renovations.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.maps.places.v1.Place.OpeningHours.PeriodOrBuilder getPeriodsOrBuilder(int index); /** * * *
     * Output only. Localized strings describing the opening hours of this
     * place, one string for each day of the week.  Will be empty if the hours
     * are unknown or could not be converted to localized text. Example: "Sun:
     * 18:00–06:00"
     * 
* * repeated string weekday_descriptions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return A list containing the weekdayDescriptions. */ java.util.List getWeekdayDescriptionsList(); /** * * *
     * Output only. Localized strings describing the opening hours of this
     * place, one string for each day of the week.  Will be empty if the hours
     * are unknown or could not be converted to localized text. Example: "Sun:
     * 18:00–06:00"
     * 
* * repeated string weekday_descriptions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The count of weekdayDescriptions. */ int getWeekdayDescriptionsCount(); /** * * *
     * Output only. Localized strings describing the opening hours of this
     * place, one string for each day of the week.  Will be empty if the hours
     * are unknown or could not be converted to localized text. Example: "Sun:
     * 18:00–06:00"
     * 
* * repeated string weekday_descriptions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the element to return. * @return The weekdayDescriptions at the given index. */ java.lang.String getWeekdayDescriptions(int index); /** * * *
     * Output only. Localized strings describing the opening hours of this
     * place, one string for each day of the week.  Will be empty if the hours
     * are unknown or could not be converted to localized text. Example: "Sun:
     * 18:00–06:00"
     * 
* * repeated string weekday_descriptions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the value to return. * @return The bytes of the weekdayDescriptions at the given index. */ com.google.protobuf.ByteString getWeekdayDescriptionsBytes(int index); /** * * *
     * Output only. A type string used to identify the type of secondary hours.
     * 
* * * .google.maps.places.v1.Place.OpeningHours.SecondaryHoursType secondary_hours_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for secondaryHoursType. */ int getSecondaryHoursTypeValue(); /** * * *
     * Output only. A type string used to identify the type of secondary hours.
     * 
* * * .google.maps.places.v1.Place.OpeningHours.SecondaryHoursType secondary_hours_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The secondaryHoursType. */ com.google.maps.places.v1.Place.OpeningHours.SecondaryHoursType getSecondaryHoursType(); /** * * *
     * Output only. Structured information for special days that fall within the
     * period that the returned opening hours cover. Special days are days that
     * could impact the business hours of a place, e.g. Christmas day. Set for
     * current_opening_hours and current_secondary_opening_hours if there are
     * exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ java.util.List getSpecialDaysList(); /** * * *
     * Output only. Structured information for special days that fall within the
     * period that the returned opening hours cover. Special days are days that
     * could impact the business hours of a place, e.g. Christmas day. Set for
     * current_opening_hours and current_secondary_opening_hours if there are
     * exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.maps.places.v1.Place.OpeningHours.SpecialDay getSpecialDays(int index); /** * * *
     * Output only. Structured information for special days that fall within the
     * period that the returned opening hours cover. Special days are days that
     * could impact the business hours of a place, e.g. Christmas day. Set for
     * current_opening_hours and current_secondary_opening_hours if there are
     * exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ int getSpecialDaysCount(); /** * * *
     * Output only. Structured information for special days that fall within the
     * period that the returned opening hours cover. Special days are days that
     * could impact the business hours of a place, e.g. Christmas day. Set for
     * current_opening_hours and current_secondary_opening_hours if there are
     * exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ java.util.List getSpecialDaysOrBuilderList(); /** * * *
     * Output only. Structured information for special days that fall within the
     * period that the returned opening hours cover. Special days are days that
     * could impact the business hours of a place, e.g. Christmas day. Set for
     * current_opening_hours and current_secondary_opening_hours if there are
     * exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.maps.places.v1.Place.OpeningHours.SpecialDayOrBuilder getSpecialDaysOrBuilder( int index); } /** * * *
   * Information about business hour of the place.
   * 
* * Protobuf type {@code google.maps.places.v1.Place.OpeningHours} */ public static final class OpeningHours extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.OpeningHours) OpeningHoursOrBuilder { private static final long serialVersionUID = 0L; // Use OpeningHours.newBuilder() to construct. private OpeningHours(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OpeningHours() { periods_ = java.util.Collections.emptyList(); weekdayDescriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); secondaryHoursType_ = 0; specialDays_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OpeningHours(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.OpeningHours.class, com.google.maps.places.v1.Place.OpeningHours.Builder.class); } /** * * *
     * A type used to identify the type of secondary hours.
     * 
* * Protobuf enum {@code google.maps.places.v1.Place.OpeningHours.SecondaryHoursType} */ public enum SecondaryHoursType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
       * Default value when secondary hour type is not specified.
       * 
* * SECONDARY_HOURS_TYPE_UNSPECIFIED = 0; */ SECONDARY_HOURS_TYPE_UNSPECIFIED(0), /** * * *
       * The drive-through hour for banks, restaurants, or pharmacies.
       * 
* * DRIVE_THROUGH = 1; */ DRIVE_THROUGH(1), /** * * *
       * The happy hour.
       * 
* * HAPPY_HOUR = 2; */ HAPPY_HOUR(2), /** * * *
       * The delivery hour.
       * 
* * DELIVERY = 3; */ DELIVERY(3), /** * * *
       * The takeout hour.
       * 
* * TAKEOUT = 4; */ TAKEOUT(4), /** * * *
       * The kitchen hour.
       * 
* * KITCHEN = 5; */ KITCHEN(5), /** * * *
       * The breakfast hour.
       * 
* * BREAKFAST = 6; */ BREAKFAST(6), /** * * *
       * The lunch hour.
       * 
* * LUNCH = 7; */ LUNCH(7), /** * * *
       * The dinner hour.
       * 
* * DINNER = 8; */ DINNER(8), /** * * *
       * The brunch hour.
       * 
* * BRUNCH = 9; */ BRUNCH(9), /** * * *
       * The pickup hour.
       * 
* * PICKUP = 10; */ PICKUP(10), /** * * *
       * The access hours for storage places.
       * 
* * ACCESS = 11; */ ACCESS(11), /** * * *
       * The special hours for seniors.
       * 
* * SENIOR_HOURS = 12; */ SENIOR_HOURS(12), /** * * *
       * The online service hours.
       * 
* * ONLINE_SERVICE_HOURS = 13; */ ONLINE_SERVICE_HOURS(13), UNRECOGNIZED(-1), ; /** * * *
       * Default value when secondary hour type is not specified.
       * 
* * SECONDARY_HOURS_TYPE_UNSPECIFIED = 0; */ public static final int SECONDARY_HOURS_TYPE_UNSPECIFIED_VALUE = 0; /** * * *
       * The drive-through hour for banks, restaurants, or pharmacies.
       * 
* * DRIVE_THROUGH = 1; */ public static final int DRIVE_THROUGH_VALUE = 1; /** * * *
       * The happy hour.
       * 
* * HAPPY_HOUR = 2; */ public static final int HAPPY_HOUR_VALUE = 2; /** * * *
       * The delivery hour.
       * 
* * DELIVERY = 3; */ public static final int DELIVERY_VALUE = 3; /** * * *
       * The takeout hour.
       * 
* * TAKEOUT = 4; */ public static final int TAKEOUT_VALUE = 4; /** * * *
       * The kitchen hour.
       * 
* * KITCHEN = 5; */ public static final int KITCHEN_VALUE = 5; /** * * *
       * The breakfast hour.
       * 
* * BREAKFAST = 6; */ public static final int BREAKFAST_VALUE = 6; /** * * *
       * The lunch hour.
       * 
* * LUNCH = 7; */ public static final int LUNCH_VALUE = 7; /** * * *
       * The dinner hour.
       * 
* * DINNER = 8; */ public static final int DINNER_VALUE = 8; /** * * *
       * The brunch hour.
       * 
* * BRUNCH = 9; */ public static final int BRUNCH_VALUE = 9; /** * * *
       * The pickup hour.
       * 
* * PICKUP = 10; */ public static final int PICKUP_VALUE = 10; /** * * *
       * The access hours for storage places.
       * 
* * ACCESS = 11; */ public static final int ACCESS_VALUE = 11; /** * * *
       * The special hours for seniors.
       * 
* * SENIOR_HOURS = 12; */ public static final int SENIOR_HOURS_VALUE = 12; /** * * *
       * The online service hours.
       * 
* * ONLINE_SERVICE_HOURS = 13; */ public static final int ONLINE_SERVICE_HOURS_VALUE = 13; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SecondaryHoursType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static SecondaryHoursType forNumber(int value) { switch (value) { case 0: return SECONDARY_HOURS_TYPE_UNSPECIFIED; case 1: return DRIVE_THROUGH; case 2: return HAPPY_HOUR; case 3: return DELIVERY; case 4: return TAKEOUT; case 5: return KITCHEN; case 6: return BREAKFAST; case 7: return LUNCH; case 8: return DINNER; case 9: return BRUNCH; case 10: return PICKUP; case 11: return ACCESS; case 12: return SENIOR_HOURS; case 13: return ONLINE_SERVICE_HOURS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SecondaryHoursType findValueByNumber(int number) { return SecondaryHoursType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.maps.places.v1.Place.OpeningHours.getDescriptor().getEnumTypes().get(0); } private static final SecondaryHoursType[] VALUES = values(); public static SecondaryHoursType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private SecondaryHoursType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.maps.places.v1.Place.OpeningHours.SecondaryHoursType) } public interface PeriodOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.OpeningHours.Period) com.google.protobuf.MessageOrBuilder { /** * * *
       * Output only. The time that the place starts to be open.
       * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point open = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the open field is set. */ boolean hasOpen(); /** * * *
       * Output only. The time that the place starts to be open.
       * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point open = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The open. */ com.google.maps.places.v1.Place.OpeningHours.Period.Point getOpen(); /** * * *
       * Output only. The time that the place starts to be open.
       * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point open = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.maps.places.v1.Place.OpeningHours.Period.PointOrBuilder getOpenOrBuilder(); /** * * *
       * Output only. The time that the place starts to be closed.
       * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point close = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the close field is set. */ boolean hasClose(); /** * * *
       * Output only. The time that the place starts to be closed.
       * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point close = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The close. */ com.google.maps.places.v1.Place.OpeningHours.Period.Point getClose(); /** * * *
       * Output only. The time that the place starts to be closed.
       * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point close = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.maps.places.v1.Place.OpeningHours.Period.PointOrBuilder getCloseOrBuilder(); } /** * * *
     * A period the place remains in open_now status.
     * 
* * Protobuf type {@code google.maps.places.v1.Place.OpeningHours.Period} */ public static final class Period extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.OpeningHours.Period) PeriodOrBuilder { private static final long serialVersionUID = 0L; // Use Period.newBuilder() to construct. private Period(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Period() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Period(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_Period_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_Period_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.OpeningHours.Period.class, com.google.maps.places.v1.Place.OpeningHours.Period.Builder.class); } public interface PointOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.OpeningHours.Period.Point) com.google.protobuf.MessageOrBuilder { /** * * *
         * Output only. A day of the week, as an integer in the range 0-6.  0 is
         * Sunday, 1 is Monday, etc.
         * 
* * optional int32 day = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the day field is set. */ boolean hasDay(); /** * * *
         * Output only. A day of the week, as an integer in the range 0-6.  0 is
         * Sunday, 1 is Monday, etc.
         * 
* * optional int32 day = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The day. */ int getDay(); /** * * *
         * Output only. The hour in 2 digits. Ranges from 00 to 23.
         * 
* * optional int32 hour = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the hour field is set. */ boolean hasHour(); /** * * *
         * Output only. The hour in 2 digits. Ranges from 00 to 23.
         * 
* * optional int32 hour = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The hour. */ int getHour(); /** * * *
         * Output only. The minute in 2 digits. Ranges from 00 to 59.
         * 
* * optional int32 minute = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the minute field is set. */ boolean hasMinute(); /** * * *
         * Output only. The minute in 2 digits. Ranges from 00 to 59.
         * 
* * optional int32 minute = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The minute. */ int getMinute(); /** * * *
         * Output only. Date in the local timezone for the place.
         * 
* * .google.type.Date date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the date field is set. */ boolean hasDate(); /** * * *
         * Output only. Date in the local timezone for the place.
         * 
* * .google.type.Date date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The date. */ com.google.type.Date getDate(); /** * * *
         * Output only. Date in the local timezone for the place.
         * 
* * .google.type.Date date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.type.DateOrBuilder getDateOrBuilder(); /** * * *
         * Output only. Whether or not this endpoint was truncated. Truncation
         * occurs when the real hours are outside the times we are willing to
         * return hours between, so we truncate the hours back to these
         * boundaries. This ensures that at most 24 * 7 hours from midnight of
         * the day of the request are returned.
         * 
* * bool truncated = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The truncated. */ boolean getTruncated(); } /** * * *
       * Status changing points.
       * 
* * Protobuf type {@code google.maps.places.v1.Place.OpeningHours.Period.Point} */ public static final class Point extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.OpeningHours.Period.Point) PointOrBuilder { private static final long serialVersionUID = 0L; // Use Point.newBuilder() to construct. private Point(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Point() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Point(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_Period_Point_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_Period_Point_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.OpeningHours.Period.Point.class, com.google.maps.places.v1.Place.OpeningHours.Period.Point.Builder.class); } private int bitField0_; public static final int DAY_FIELD_NUMBER = 1; private int day_ = 0; /** * * *
         * Output only. A day of the week, as an integer in the range 0-6.  0 is
         * Sunday, 1 is Monday, etc.
         * 
* * optional int32 day = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the day field is set. */ @java.lang.Override public boolean hasDay() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
         * Output only. A day of the week, as an integer in the range 0-6.  0 is
         * Sunday, 1 is Monday, etc.
         * 
* * optional int32 day = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The day. */ @java.lang.Override public int getDay() { return day_; } public static final int HOUR_FIELD_NUMBER = 2; private int hour_ = 0; /** * * *
         * Output only. The hour in 2 digits. Ranges from 00 to 23.
         * 
* * optional int32 hour = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the hour field is set. */ @java.lang.Override public boolean hasHour() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
         * Output only. The hour in 2 digits. Ranges from 00 to 23.
         * 
* * optional int32 hour = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The hour. */ @java.lang.Override public int getHour() { return hour_; } public static final int MINUTE_FIELD_NUMBER = 3; private int minute_ = 0; /** * * *
         * Output only. The minute in 2 digits. Ranges from 00 to 59.
         * 
* * optional int32 minute = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the minute field is set. */ @java.lang.Override public boolean hasMinute() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
         * Output only. The minute in 2 digits. Ranges from 00 to 59.
         * 
* * optional int32 minute = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The minute. */ @java.lang.Override public int getMinute() { return minute_; } public static final int DATE_FIELD_NUMBER = 6; private com.google.type.Date date_; /** * * *
         * Output only. Date in the local timezone for the place.
         * 
* * .google.type.Date date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the date field is set. */ @java.lang.Override public boolean hasDate() { return date_ != null; } /** * * *
         * Output only. Date in the local timezone for the place.
         * 
* * .google.type.Date date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The date. */ @java.lang.Override public com.google.type.Date getDate() { return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; } /** * * *
         * Output only. Date in the local timezone for the place.
         * 
* * .google.type.Date date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.type.DateOrBuilder getDateOrBuilder() { return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; } public static final int TRUNCATED_FIELD_NUMBER = 5; private boolean truncated_ = false; /** * * *
         * Output only. Whether or not this endpoint was truncated. Truncation
         * occurs when the real hours are outside the times we are willing to
         * return hours between, so we truncate the hours back to these
         * boundaries. This ensures that at most 24 * 7 hours from midnight of
         * the day of the request are returned.
         * 
* * bool truncated = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The truncated. */ @java.lang.Override public boolean getTruncated() { return truncated_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, day_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, hour_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(3, minute_); } if (truncated_ != false) { output.writeBool(5, truncated_); } if (date_ != null) { output.writeMessage(6, getDate()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, day_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, hour_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, minute_); } if (truncated_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, truncated_); } if (date_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDate()); } size += getUnknownFields().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.maps.places.v1.Place.OpeningHours.Period.Point)) { return super.equals(obj); } com.google.maps.places.v1.Place.OpeningHours.Period.Point other = (com.google.maps.places.v1.Place.OpeningHours.Period.Point) obj; if (hasDay() != other.hasDay()) return false; if (hasDay()) { if (getDay() != other.getDay()) return false; } if (hasHour() != other.hasHour()) return false; if (hasHour()) { if (getHour() != other.getHour()) return false; } if (hasMinute() != other.hasMinute()) return false; if (hasMinute()) { if (getMinute() != other.getMinute()) return false; } if (hasDate() != other.hasDate()) return false; if (hasDate()) { if (!getDate().equals(other.getDate())) return false; } if (getTruncated() != other.getTruncated()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDay()) { hash = (37 * hash) + DAY_FIELD_NUMBER; hash = (53 * hash) + getDay(); } if (hasHour()) { hash = (37 * hash) + HOUR_FIELD_NUMBER; hash = (53 * hash) + getHour(); } if (hasMinute()) { hash = (37 * hash) + MINUTE_FIELD_NUMBER; hash = (53 * hash) + getMinute(); } if (hasDate()) { hash = (37 * hash) + DATE_FIELD_NUMBER; hash = (53 * hash) + getDate().hashCode(); } hash = (37 * hash) + TRUNCATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTruncated()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.maps.places.v1.Place.OpeningHours.Period.Point parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.OpeningHours.Period.Point parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.OpeningHours.Period.Point parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.OpeningHours.Period.Point 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.maps.places.v1.Place.OpeningHours.Period.Point parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.OpeningHours.Period.Point parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.OpeningHours.Period.Point parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.OpeningHours.Period.Point 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.maps.places.v1.Place.OpeningHours.Period.Point parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input); } public static com.google.maps.places.v1.Place.OpeningHours.Period.Point 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.maps.places.v1.Place.OpeningHours.Period.Point parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.OpeningHours.Period.Point 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.maps.places.v1.Place.OpeningHours.Period.Point 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; } /** * * *
         * Status changing points.
         * 
* * Protobuf type {@code google.maps.places.v1.Place.OpeningHours.Period.Point} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.OpeningHours.Period.Point) com.google.maps.places.v1.Place.OpeningHours.Period.PointOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_Period_Point_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_Period_Point_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.OpeningHours.Period.Point.class, com.google.maps.places.v1.Place.OpeningHours.Period.Point.Builder.class); } // Construct using com.google.maps.places.v1.Place.OpeningHours.Period.Point.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; day_ = 0; hour_ = 0; minute_ = 0; date_ = null; if (dateBuilder_ != null) { dateBuilder_.dispose(); dateBuilder_ = null; } truncated_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_Period_Point_descriptor; } @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.Period.Point getDefaultInstanceForType() { return com.google.maps.places.v1.Place.OpeningHours.Period.Point.getDefaultInstance(); } @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.Period.Point build() { com.google.maps.places.v1.Place.OpeningHours.Period.Point result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.Period.Point buildPartial() { com.google.maps.places.v1.Place.OpeningHours.Period.Point result = new com.google.maps.places.v1.Place.OpeningHours.Period.Point(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.maps.places.v1.Place.OpeningHours.Period.Point result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.day_ = day_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.hour_ = hour_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.minute_ = minute_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.date_ = dateBuilder_ == null ? date_ : dateBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.truncated_ = truncated_; } result.bitField0_ |= to_bitField0_; } @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.maps.places.v1.Place.OpeningHours.Period.Point) { return mergeFrom((com.google.maps.places.v1.Place.OpeningHours.Period.Point) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.maps.places.v1.Place.OpeningHours.Period.Point other) { if (other == com.google.maps.places.v1.Place.OpeningHours.Period.Point.getDefaultInstance()) return this; if (other.hasDay()) { setDay(other.getDay()); } if (other.hasHour()) { setHour(other.getHour()); } if (other.hasMinute()) { setMinute(other.getMinute()); } if (other.hasDate()) { mergeDate(other.getDate()); } if (other.getTruncated() != false) { setTruncated(other.getTruncated()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { day_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { hour_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { minute_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 40: { truncated_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { input.readMessage(getDateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int day_; /** * * *
           * Output only. A day of the week, as an integer in the range 0-6.  0 is
           * Sunday, 1 is Monday, etc.
           * 
* * optional int32 day = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the day field is set. */ @java.lang.Override public boolean hasDay() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
           * Output only. A day of the week, as an integer in the range 0-6.  0 is
           * Sunday, 1 is Monday, etc.
           * 
* * optional int32 day = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The day. */ @java.lang.Override public int getDay() { return day_; } /** * * *
           * Output only. A day of the week, as an integer in the range 0-6.  0 is
           * Sunday, 1 is Monday, etc.
           * 
* * optional int32 day = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The day to set. * @return This builder for chaining. */ public Builder setDay(int value) { day_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
           * Output only. A day of the week, as an integer in the range 0-6.  0 is
           * Sunday, 1 is Monday, etc.
           * 
* * optional int32 day = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearDay() { bitField0_ = (bitField0_ & ~0x00000001); day_ = 0; onChanged(); return this; } private int hour_; /** * * *
           * Output only. The hour in 2 digits. Ranges from 00 to 23.
           * 
* * optional int32 hour = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the hour field is set. */ @java.lang.Override public boolean hasHour() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
           * Output only. The hour in 2 digits. Ranges from 00 to 23.
           * 
* * optional int32 hour = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The hour. */ @java.lang.Override public int getHour() { return hour_; } /** * * *
           * Output only. The hour in 2 digits. Ranges from 00 to 23.
           * 
* * optional int32 hour = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The hour to set. * @return This builder for chaining. */ public Builder setHour(int value) { hour_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
           * Output only. The hour in 2 digits. Ranges from 00 to 23.
           * 
* * optional int32 hour = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearHour() { bitField0_ = (bitField0_ & ~0x00000002); hour_ = 0; onChanged(); return this; } private int minute_; /** * * *
           * Output only. The minute in 2 digits. Ranges from 00 to 59.
           * 
* * optional int32 minute = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the minute field is set. */ @java.lang.Override public boolean hasMinute() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
           * Output only. The minute in 2 digits. Ranges from 00 to 59.
           * 
* * optional int32 minute = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The minute. */ @java.lang.Override public int getMinute() { return minute_; } /** * * *
           * Output only. The minute in 2 digits. Ranges from 00 to 59.
           * 
* * optional int32 minute = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The minute to set. * @return This builder for chaining. */ public Builder setMinute(int value) { minute_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
           * Output only. The minute in 2 digits. Ranges from 00 to 59.
           * 
* * optional int32 minute = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearMinute() { bitField0_ = (bitField0_ & ~0x00000004); minute_ = 0; onChanged(); return this; } private com.google.type.Date date_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> dateBuilder_; /** * * *
           * Output only. Date in the local timezone for the place.
           * 
* * .google.type.Date date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the date field is set. */ public boolean hasDate() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
           * Output only. Date in the local timezone for the place.
           * 
* * .google.type.Date date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The date. */ public com.google.type.Date getDate() { if (dateBuilder_ == null) { return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; } else { return dateBuilder_.getMessage(); } } /** * * *
           * Output only. Date in the local timezone for the place.
           * 
* * .google.type.Date date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDate(com.google.type.Date value) { if (dateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } date_ = value; } else { dateBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
           * Output only. Date in the local timezone for the place.
           * 
* * .google.type.Date date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDate(com.google.type.Date.Builder builderForValue) { if (dateBuilder_ == null) { date_ = builderForValue.build(); } else { dateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
           * Output only. Date in the local timezone for the place.
           * 
* * .google.type.Date date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDate(com.google.type.Date value) { if (dateBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && date_ != null && date_ != com.google.type.Date.getDefaultInstance()) { getDateBuilder().mergeFrom(value); } else { date_ = value; } } else { dateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
           * Output only. Date in the local timezone for the place.
           * 
* * .google.type.Date date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDate() { bitField0_ = (bitField0_ & ~0x00000008); date_ = null; if (dateBuilder_ != null) { dateBuilder_.dispose(); dateBuilder_ = null; } onChanged(); return this; } /** * * *
           * Output only. Date in the local timezone for the place.
           * 
* * .google.type.Date date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.type.Date.Builder getDateBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDateFieldBuilder().getBuilder(); } /** * * *
           * Output only. Date in the local timezone for the place.
           * 
* * .google.type.Date date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.type.DateOrBuilder getDateOrBuilder() { if (dateBuilder_ != null) { return dateBuilder_.getMessageOrBuilder(); } else { return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; } } /** * * *
           * Output only. Date in the local timezone for the place.
           * 
* * .google.type.Date date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> getDateFieldBuilder() { if (dateBuilder_ == null) { dateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(getDate(), getParentForChildren(), isClean()); date_ = null; } return dateBuilder_; } private boolean truncated_; /** * * *
           * Output only. Whether or not this endpoint was truncated. Truncation
           * occurs when the real hours are outside the times we are willing to
           * return hours between, so we truncate the hours back to these
           * boundaries. This ensures that at most 24 * 7 hours from midnight of
           * the day of the request are returned.
           * 
* * bool truncated = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The truncated. */ @java.lang.Override public boolean getTruncated() { return truncated_; } /** * * *
           * Output only. Whether or not this endpoint was truncated. Truncation
           * occurs when the real hours are outside the times we are willing to
           * return hours between, so we truncate the hours back to these
           * boundaries. This ensures that at most 24 * 7 hours from midnight of
           * the day of the request are returned.
           * 
* * bool truncated = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The truncated to set. * @return This builder for chaining. */ public Builder setTruncated(boolean value) { truncated_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
           * Output only. Whether or not this endpoint was truncated. Truncation
           * occurs when the real hours are outside the times we are willing to
           * return hours between, so we truncate the hours back to these
           * boundaries. This ensures that at most 24 * 7 hours from midnight of
           * the day of the request are returned.
           * 
* * bool truncated = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearTruncated() { bitField0_ = (bitField0_ & ~0x00000010); truncated_ = false; onChanged(); return this; } @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.maps.places.v1.Place.OpeningHours.Period.Point) } // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.OpeningHours.Period.Point) private static final com.google.maps.places.v1.Place.OpeningHours.Period.Point DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.OpeningHours.Period.Point(); } public static com.google.maps.places.v1.Place.OpeningHours.Period.Point getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Point parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.maps.places.v1.Place.OpeningHours.Period.Point getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int OPEN_FIELD_NUMBER = 1; private com.google.maps.places.v1.Place.OpeningHours.Period.Point open_; /** * * *
       * Output only. The time that the place starts to be open.
       * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point open = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the open field is set. */ @java.lang.Override public boolean hasOpen() { return open_ != null; } /** * * *
       * Output only. The time that the place starts to be open.
       * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point open = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The open. */ @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.Period.Point getOpen() { return open_ == null ? com.google.maps.places.v1.Place.OpeningHours.Period.Point.getDefaultInstance() : open_; } /** * * *
       * Output only. The time that the place starts to be open.
       * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point open = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.Period.PointOrBuilder getOpenOrBuilder() { return open_ == null ? com.google.maps.places.v1.Place.OpeningHours.Period.Point.getDefaultInstance() : open_; } public static final int CLOSE_FIELD_NUMBER = 2; private com.google.maps.places.v1.Place.OpeningHours.Period.Point close_; /** * * *
       * Output only. The time that the place starts to be closed.
       * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point close = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the close field is set. */ @java.lang.Override public boolean hasClose() { return close_ != null; } /** * * *
       * Output only. The time that the place starts to be closed.
       * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point close = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The close. */ @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.Period.Point getClose() { return close_ == null ? com.google.maps.places.v1.Place.OpeningHours.Period.Point.getDefaultInstance() : close_; } /** * * *
       * Output only. The time that the place starts to be closed.
       * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point close = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.Period.PointOrBuilder getCloseOrBuilder() { return close_ == null ? com.google.maps.places.v1.Place.OpeningHours.Period.Point.getDefaultInstance() : close_; } 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 (open_ != null) { output.writeMessage(1, getOpen()); } if (close_ != null) { output.writeMessage(2, getClose()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (open_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOpen()); } if (close_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getClose()); } size += getUnknownFields().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.maps.places.v1.Place.OpeningHours.Period)) { return super.equals(obj); } com.google.maps.places.v1.Place.OpeningHours.Period other = (com.google.maps.places.v1.Place.OpeningHours.Period) obj; if (hasOpen() != other.hasOpen()) return false; if (hasOpen()) { if (!getOpen().equals(other.getOpen())) return false; } if (hasClose() != other.hasClose()) return false; if (hasClose()) { if (!getClose().equals(other.getClose())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOpen()) { hash = (37 * hash) + OPEN_FIELD_NUMBER; hash = (53 * hash) + getOpen().hashCode(); } if (hasClose()) { hash = (37 * hash) + CLOSE_FIELD_NUMBER; hash = (53 * hash) + getClose().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.maps.places.v1.Place.OpeningHours.Period parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.OpeningHours.Period parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.OpeningHours.Period parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.OpeningHours.Period 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.maps.places.v1.Place.OpeningHours.Period parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.OpeningHours.Period parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.OpeningHours.Period parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.OpeningHours.Period 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.maps.places.v1.Place.OpeningHours.Period parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.OpeningHours.Period 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.maps.places.v1.Place.OpeningHours.Period parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.OpeningHours.Period 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.maps.places.v1.Place.OpeningHours.Period 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; } /** * * *
       * A period the place remains in open_now status.
       * 
* * Protobuf type {@code google.maps.places.v1.Place.OpeningHours.Period} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.OpeningHours.Period) com.google.maps.places.v1.Place.OpeningHours.PeriodOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_Period_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_Period_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.OpeningHours.Period.class, com.google.maps.places.v1.Place.OpeningHours.Period.Builder.class); } // Construct using com.google.maps.places.v1.Place.OpeningHours.Period.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; open_ = null; if (openBuilder_ != null) { openBuilder_.dispose(); openBuilder_ = null; } close_ = null; if (closeBuilder_ != null) { closeBuilder_.dispose(); closeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_Period_descriptor; } @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.Period getDefaultInstanceForType() { return com.google.maps.places.v1.Place.OpeningHours.Period.getDefaultInstance(); } @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.Period build() { com.google.maps.places.v1.Place.OpeningHours.Period result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.Period buildPartial() { com.google.maps.places.v1.Place.OpeningHours.Period result = new com.google.maps.places.v1.Place.OpeningHours.Period(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.maps.places.v1.Place.OpeningHours.Period result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.open_ = openBuilder_ == null ? open_ : openBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.close_ = closeBuilder_ == null ? close_ : closeBuilder_.build(); } } @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.maps.places.v1.Place.OpeningHours.Period) { return mergeFrom((com.google.maps.places.v1.Place.OpeningHours.Period) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.maps.places.v1.Place.OpeningHours.Period other) { if (other == com.google.maps.places.v1.Place.OpeningHours.Period.getDefaultInstance()) return this; if (other.hasOpen()) { mergeOpen(other.getOpen()); } if (other.hasClose()) { mergeClose(other.getClose()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage(getOpenFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getCloseFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.maps.places.v1.Place.OpeningHours.Period.Point open_; private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours.Period.Point, com.google.maps.places.v1.Place.OpeningHours.Period.Point.Builder, com.google.maps.places.v1.Place.OpeningHours.Period.PointOrBuilder> openBuilder_; /** * * *
         * Output only. The time that the place starts to be open.
         * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point open = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the open field is set. */ public boolean hasOpen() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
         * Output only. The time that the place starts to be open.
         * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point open = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The open. */ public com.google.maps.places.v1.Place.OpeningHours.Period.Point getOpen() { if (openBuilder_ == null) { return open_ == null ? com.google.maps.places.v1.Place.OpeningHours.Period.Point.getDefaultInstance() : open_; } else { return openBuilder_.getMessage(); } } /** * * *
         * Output only. The time that the place starts to be open.
         * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point open = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setOpen(com.google.maps.places.v1.Place.OpeningHours.Period.Point value) { if (openBuilder_ == null) { if (value == null) { throw new NullPointerException(); } open_ = value; } else { openBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * Output only. The time that the place starts to be open.
         * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point open = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setOpen( com.google.maps.places.v1.Place.OpeningHours.Period.Point.Builder builderForValue) { if (openBuilder_ == null) { open_ = builderForValue.build(); } else { openBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * Output only. The time that the place starts to be open.
         * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point open = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeOpen(com.google.maps.places.v1.Place.OpeningHours.Period.Point value) { if (openBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && open_ != null && open_ != com.google.maps.places.v1.Place.OpeningHours.Period.Point .getDefaultInstance()) { getOpenBuilder().mergeFrom(value); } else { open_ = value; } } else { openBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * Output only. The time that the place starts to be open.
         * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point open = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearOpen() { bitField0_ = (bitField0_ & ~0x00000001); open_ = null; if (openBuilder_ != null) { openBuilder_.dispose(); openBuilder_ = null; } onChanged(); return this; } /** * * *
         * Output only. The time that the place starts to be open.
         * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point open = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.Period.Point.Builder getOpenBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOpenFieldBuilder().getBuilder(); } /** * * *
         * Output only. The time that the place starts to be open.
         * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point open = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.Period.PointOrBuilder getOpenOrBuilder() { if (openBuilder_ != null) { return openBuilder_.getMessageOrBuilder(); } else { return open_ == null ? com.google.maps.places.v1.Place.OpeningHours.Period.Point.getDefaultInstance() : open_; } } /** * * *
         * Output only. The time that the place starts to be open.
         * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point open = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours.Period.Point, com.google.maps.places.v1.Place.OpeningHours.Period.Point.Builder, com.google.maps.places.v1.Place.OpeningHours.Period.PointOrBuilder> getOpenFieldBuilder() { if (openBuilder_ == null) { openBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours.Period.Point, com.google.maps.places.v1.Place.OpeningHours.Period.Point.Builder, com.google.maps.places.v1.Place.OpeningHours.Period.PointOrBuilder>( getOpen(), getParentForChildren(), isClean()); open_ = null; } return openBuilder_; } private com.google.maps.places.v1.Place.OpeningHours.Period.Point close_; private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours.Period.Point, com.google.maps.places.v1.Place.OpeningHours.Period.Point.Builder, com.google.maps.places.v1.Place.OpeningHours.Period.PointOrBuilder> closeBuilder_; /** * * *
         * Output only. The time that the place starts to be closed.
         * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point close = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the close field is set. */ public boolean hasClose() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
         * Output only. The time that the place starts to be closed.
         * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point close = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The close. */ public com.google.maps.places.v1.Place.OpeningHours.Period.Point getClose() { if (closeBuilder_ == null) { return close_ == null ? com.google.maps.places.v1.Place.OpeningHours.Period.Point.getDefaultInstance() : close_; } else { return closeBuilder_.getMessage(); } } /** * * *
         * Output only. The time that the place starts to be closed.
         * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point close = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setClose(com.google.maps.places.v1.Place.OpeningHours.Period.Point value) { if (closeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } close_ = value; } else { closeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
         * Output only. The time that the place starts to be closed.
         * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point close = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setClose( com.google.maps.places.v1.Place.OpeningHours.Period.Point.Builder builderForValue) { if (closeBuilder_ == null) { close_ = builderForValue.build(); } else { closeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
         * Output only. The time that the place starts to be closed.
         * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point close = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeClose(com.google.maps.places.v1.Place.OpeningHours.Period.Point value) { if (closeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && close_ != null && close_ != com.google.maps.places.v1.Place.OpeningHours.Period.Point .getDefaultInstance()) { getCloseBuilder().mergeFrom(value); } else { close_ = value; } } else { closeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
         * Output only. The time that the place starts to be closed.
         * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point close = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearClose() { bitField0_ = (bitField0_ & ~0x00000002); close_ = null; if (closeBuilder_ != null) { closeBuilder_.dispose(); closeBuilder_ = null; } onChanged(); return this; } /** * * *
         * Output only. The time that the place starts to be closed.
         * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point close = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.Period.Point.Builder getCloseBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCloseFieldBuilder().getBuilder(); } /** * * *
         * Output only. The time that the place starts to be closed.
         * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point close = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.Period.PointOrBuilder getCloseOrBuilder() { if (closeBuilder_ != null) { return closeBuilder_.getMessageOrBuilder(); } else { return close_ == null ? com.google.maps.places.v1.Place.OpeningHours.Period.Point.getDefaultInstance() : close_; } } /** * * *
         * Output only. The time that the place starts to be closed.
         * 
* * * .google.maps.places.v1.Place.OpeningHours.Period.Point close = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours.Period.Point, com.google.maps.places.v1.Place.OpeningHours.Period.Point.Builder, com.google.maps.places.v1.Place.OpeningHours.Period.PointOrBuilder> getCloseFieldBuilder() { if (closeBuilder_ == null) { closeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours.Period.Point, com.google.maps.places.v1.Place.OpeningHours.Period.Point.Builder, com.google.maps.places.v1.Place.OpeningHours.Period.PointOrBuilder>( getClose(), getParentForChildren(), isClean()); close_ = null; } return closeBuilder_; } @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.maps.places.v1.Place.OpeningHours.Period) } // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.OpeningHours.Period) private static final com.google.maps.places.v1.Place.OpeningHours.Period DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.OpeningHours.Period(); } public static com.google.maps.places.v1.Place.OpeningHours.Period getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Period parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.maps.places.v1.Place.OpeningHours.Period getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SpecialDayOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.OpeningHours.SpecialDay) com.google.protobuf.MessageOrBuilder { /** * * *
       * Output only. The date of this special day.
       * 
* * .google.type.Date date = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the date field is set. */ boolean hasDate(); /** * * *
       * Output only. The date of this special day.
       * 
* * .google.type.Date date = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The date. */ com.google.type.Date getDate(); /** * * *
       * Output only. The date of this special day.
       * 
* * .google.type.Date date = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.type.DateOrBuilder getDateOrBuilder(); } /** * * *
     * Structured information for special days that fall within the period that
     * the returned opening hours cover. Special days are days that could impact
     * the business hours of a place, e.g. Christmas day.
     * 
* * Protobuf type {@code google.maps.places.v1.Place.OpeningHours.SpecialDay} */ public static final class SpecialDay extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.OpeningHours.SpecialDay) SpecialDayOrBuilder { private static final long serialVersionUID = 0L; // Use SpecialDay.newBuilder() to construct. private SpecialDay(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SpecialDay() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpecialDay(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_SpecialDay_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_SpecialDay_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.OpeningHours.SpecialDay.class, com.google.maps.places.v1.Place.OpeningHours.SpecialDay.Builder.class); } public static final int DATE_FIELD_NUMBER = 1; private com.google.type.Date date_; /** * * *
       * Output only. The date of this special day.
       * 
* * .google.type.Date date = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the date field is set. */ @java.lang.Override public boolean hasDate() { return date_ != null; } /** * * *
       * Output only. The date of this special day.
       * 
* * .google.type.Date date = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The date. */ @java.lang.Override public com.google.type.Date getDate() { return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; } /** * * *
       * Output only. The date of this special day.
       * 
* * .google.type.Date date = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.type.DateOrBuilder getDateOrBuilder() { return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; } 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 (date_ != null) { output.writeMessage(1, getDate()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (date_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDate()); } size += getUnknownFields().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.maps.places.v1.Place.OpeningHours.SpecialDay)) { return super.equals(obj); } com.google.maps.places.v1.Place.OpeningHours.SpecialDay other = (com.google.maps.places.v1.Place.OpeningHours.SpecialDay) obj; if (hasDate() != other.hasDate()) return false; if (hasDate()) { if (!getDate().equals(other.getDate())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDate()) { hash = (37 * hash) + DATE_FIELD_NUMBER; hash = (53 * hash) + getDate().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.maps.places.v1.Place.OpeningHours.SpecialDay parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.OpeningHours.SpecialDay parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.OpeningHours.SpecialDay parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.OpeningHours.SpecialDay 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.maps.places.v1.Place.OpeningHours.SpecialDay parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.OpeningHours.SpecialDay parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.OpeningHours.SpecialDay parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.OpeningHours.SpecialDay 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.maps.places.v1.Place.OpeningHours.SpecialDay parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.OpeningHours.SpecialDay 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.maps.places.v1.Place.OpeningHours.SpecialDay parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.OpeningHours.SpecialDay 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.maps.places.v1.Place.OpeningHours.SpecialDay 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; } /** * * *
       * Structured information for special days that fall within the period that
       * the returned opening hours cover. Special days are days that could impact
       * the business hours of a place, e.g. Christmas day.
       * 
* * Protobuf type {@code google.maps.places.v1.Place.OpeningHours.SpecialDay} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.OpeningHours.SpecialDay) com.google.maps.places.v1.Place.OpeningHours.SpecialDayOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_SpecialDay_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_SpecialDay_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.OpeningHours.SpecialDay.class, com.google.maps.places.v1.Place.OpeningHours.SpecialDay.Builder.class); } // Construct using com.google.maps.places.v1.Place.OpeningHours.SpecialDay.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; date_ = null; if (dateBuilder_ != null) { dateBuilder_.dispose(); dateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_SpecialDay_descriptor; } @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.SpecialDay getDefaultInstanceForType() { return com.google.maps.places.v1.Place.OpeningHours.SpecialDay.getDefaultInstance(); } @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.SpecialDay build() { com.google.maps.places.v1.Place.OpeningHours.SpecialDay result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.SpecialDay buildPartial() { com.google.maps.places.v1.Place.OpeningHours.SpecialDay result = new com.google.maps.places.v1.Place.OpeningHours.SpecialDay(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.maps.places.v1.Place.OpeningHours.SpecialDay result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.date_ = dateBuilder_ == null ? date_ : dateBuilder_.build(); } } @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.maps.places.v1.Place.OpeningHours.SpecialDay) { return mergeFrom((com.google.maps.places.v1.Place.OpeningHours.SpecialDay) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.maps.places.v1.Place.OpeningHours.SpecialDay other) { if (other == com.google.maps.places.v1.Place.OpeningHours.SpecialDay.getDefaultInstance()) return this; if (other.hasDate()) { mergeDate(other.getDate()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage(getDateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.type.Date date_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> dateBuilder_; /** * * *
         * Output only. The date of this special day.
         * 
* * .google.type.Date date = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the date field is set. */ public boolean hasDate() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
         * Output only. The date of this special day.
         * 
* * .google.type.Date date = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The date. */ public com.google.type.Date getDate() { if (dateBuilder_ == null) { return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; } else { return dateBuilder_.getMessage(); } } /** * * *
         * Output only. The date of this special day.
         * 
* * .google.type.Date date = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDate(com.google.type.Date value) { if (dateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } date_ = value; } else { dateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * Output only. The date of this special day.
         * 
* * .google.type.Date date = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDate(com.google.type.Date.Builder builderForValue) { if (dateBuilder_ == null) { date_ = builderForValue.build(); } else { dateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * Output only. The date of this special day.
         * 
* * .google.type.Date date = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDate(com.google.type.Date value) { if (dateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && date_ != null && date_ != com.google.type.Date.getDefaultInstance()) { getDateBuilder().mergeFrom(value); } else { date_ = value; } } else { dateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * Output only. The date of this special day.
         * 
* * .google.type.Date date = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDate() { bitField0_ = (bitField0_ & ~0x00000001); date_ = null; if (dateBuilder_ != null) { dateBuilder_.dispose(); dateBuilder_ = null; } onChanged(); return this; } /** * * *
         * Output only. The date of this special day.
         * 
* * .google.type.Date date = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.type.Date.Builder getDateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDateFieldBuilder().getBuilder(); } /** * * *
         * Output only. The date of this special day.
         * 
* * .google.type.Date date = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.type.DateOrBuilder getDateOrBuilder() { if (dateBuilder_ != null) { return dateBuilder_.getMessageOrBuilder(); } else { return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; } } /** * * *
         * Output only. The date of this special day.
         * 
* * .google.type.Date date = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> getDateFieldBuilder() { if (dateBuilder_ == null) { dateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(getDate(), getParentForChildren(), isClean()); date_ = null; } return dateBuilder_; } @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.maps.places.v1.Place.OpeningHours.SpecialDay) } // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.OpeningHours.SpecialDay) private static final com.google.maps.places.v1.Place.OpeningHours.SpecialDay DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.OpeningHours.SpecialDay(); } public static com.google.maps.places.v1.Place.OpeningHours.SpecialDay getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SpecialDay parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.maps.places.v1.Place.OpeningHours.SpecialDay getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int OPEN_NOW_FIELD_NUMBER = 1; private boolean openNow_ = false; /** * * *
     * Output only. Is this place open right now?  Always present unless we lack
     * time-of-day or timezone data for these opening hours.
     * 
* * optional bool open_now = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the openNow field is set. */ @java.lang.Override public boolean hasOpenNow() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Output only. Is this place open right now?  Always present unless we lack
     * time-of-day or timezone data for these opening hours.
     * 
* * optional bool open_now = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The openNow. */ @java.lang.Override public boolean getOpenNow() { return openNow_; } public static final int PERIODS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List periods_; /** * * *
     * Output only. The periods that this place is open during the week. The
     * periods are in chronological order, starting with Sunday in the
     * place-local timezone. An empty (but not absent) value indicates a place
     * that is never open, e.g. because it is closed temporarily for
     * renovations.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getPeriodsList() { return periods_; } /** * * *
     * Output only. The periods that this place is open during the week. The
     * periods are in chronological order, starting with Sunday in the
     * place-local timezone. An empty (but not absent) value indicates a place
     * that is never open, e.g. because it is closed temporarily for
     * renovations.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getPeriodsOrBuilderList() { return periods_; } /** * * *
     * Output only. The periods that this place is open during the week. The
     * periods are in chronological order, starting with Sunday in the
     * place-local timezone. An empty (but not absent) value indicates a place
     * that is never open, e.g. because it is closed temporarily for
     * renovations.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public int getPeriodsCount() { return periods_.size(); } /** * * *
     * Output only. The periods that this place is open during the week. The
     * periods are in chronological order, starting with Sunday in the
     * place-local timezone. An empty (but not absent) value indicates a place
     * that is never open, e.g. because it is closed temporarily for
     * renovations.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.Period getPeriods(int index) { return periods_.get(index); } /** * * *
     * Output only. The periods that this place is open during the week. The
     * periods are in chronological order, starting with Sunday in the
     * place-local timezone. An empty (but not absent) value indicates a place
     * that is never open, e.g. because it is closed temporarily for
     * renovations.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.PeriodOrBuilder getPeriodsOrBuilder( int index) { return periods_.get(index); } public static final int WEEKDAY_DESCRIPTIONS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList weekdayDescriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
     * Output only. Localized strings describing the opening hours of this
     * place, one string for each day of the week.  Will be empty if the hours
     * are unknown or could not be converted to localized text. Example: "Sun:
     * 18:00–06:00"
     * 
* * repeated string weekday_descriptions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return A list containing the weekdayDescriptions. */ public com.google.protobuf.ProtocolStringList getWeekdayDescriptionsList() { return weekdayDescriptions_; } /** * * *
     * Output only. Localized strings describing the opening hours of this
     * place, one string for each day of the week.  Will be empty if the hours
     * are unknown or could not be converted to localized text. Example: "Sun:
     * 18:00–06:00"
     * 
* * repeated string weekday_descriptions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The count of weekdayDescriptions. */ public int getWeekdayDescriptionsCount() { return weekdayDescriptions_.size(); } /** * * *
     * Output only. Localized strings describing the opening hours of this
     * place, one string for each day of the week.  Will be empty if the hours
     * are unknown or could not be converted to localized text. Example: "Sun:
     * 18:00–06:00"
     * 
* * repeated string weekday_descriptions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the element to return. * @return The weekdayDescriptions at the given index. */ public java.lang.String getWeekdayDescriptions(int index) { return weekdayDescriptions_.get(index); } /** * * *
     * Output only. Localized strings describing the opening hours of this
     * place, one string for each day of the week.  Will be empty if the hours
     * are unknown or could not be converted to localized text. Example: "Sun:
     * 18:00–06:00"
     * 
* * repeated string weekday_descriptions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the value to return. * @return The bytes of the weekdayDescriptions at the given index. */ public com.google.protobuf.ByteString getWeekdayDescriptionsBytes(int index) { return weekdayDescriptions_.getByteString(index); } public static final int SECONDARY_HOURS_TYPE_FIELD_NUMBER = 4; private int secondaryHoursType_ = 0; /** * * *
     * Output only. A type string used to identify the type of secondary hours.
     * 
* * * .google.maps.places.v1.Place.OpeningHours.SecondaryHoursType secondary_hours_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for secondaryHoursType. */ @java.lang.Override public int getSecondaryHoursTypeValue() { return secondaryHoursType_; } /** * * *
     * Output only. A type string used to identify the type of secondary hours.
     * 
* * * .google.maps.places.v1.Place.OpeningHours.SecondaryHoursType secondary_hours_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The secondaryHoursType. */ @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.SecondaryHoursType getSecondaryHoursType() { com.google.maps.places.v1.Place.OpeningHours.SecondaryHoursType result = com.google.maps.places.v1.Place.OpeningHours.SecondaryHoursType.forNumber( secondaryHoursType_); return result == null ? com.google.maps.places.v1.Place.OpeningHours.SecondaryHoursType.UNRECOGNIZED : result; } public static final int SPECIAL_DAYS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List specialDays_; /** * * *
     * Output only. Structured information for special days that fall within the
     * period that the returned opening hours cover. Special days are days that
     * could impact the business hours of a place, e.g. Christmas day. Set for
     * current_opening_hours and current_secondary_opening_hours if there are
     * exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getSpecialDaysList() { return specialDays_; } /** * * *
     * Output only. Structured information for special days that fall within the
     * period that the returned opening hours cover. Special days are days that
     * could impact the business hours of a place, e.g. Christmas day. Set for
     * current_opening_hours and current_secondary_opening_hours if there are
     * exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List< ? extends com.google.maps.places.v1.Place.OpeningHours.SpecialDayOrBuilder> getSpecialDaysOrBuilderList() { return specialDays_; } /** * * *
     * Output only. Structured information for special days that fall within the
     * period that the returned opening hours cover. Special days are days that
     * could impact the business hours of a place, e.g. Christmas day. Set for
     * current_opening_hours and current_secondary_opening_hours if there are
     * exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public int getSpecialDaysCount() { return specialDays_.size(); } /** * * *
     * Output only. Structured information for special days that fall within the
     * period that the returned opening hours cover. Special days are days that
     * could impact the business hours of a place, e.g. Christmas day. Set for
     * current_opening_hours and current_secondary_opening_hours if there are
     * exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.SpecialDay getSpecialDays(int index) { return specialDays_.get(index); } /** * * *
     * Output only. Structured information for special days that fall within the
     * period that the returned opening hours cover. Special days are days that
     * could impact the business hours of a place, e.g. Christmas day. Set for
     * current_opening_hours and current_secondary_opening_hours if there are
     * exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.SpecialDayOrBuilder getSpecialDaysOrBuilder( int index) { return specialDays_.get(index); } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, openNow_); } for (int i = 0; i < periods_.size(); i++) { output.writeMessage(2, periods_.get(i)); } for (int i = 0; i < weekdayDescriptions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 3, weekdayDescriptions_.getRaw(i)); } if (secondaryHoursType_ != com.google.maps.places.v1.Place.OpeningHours.SecondaryHoursType .SECONDARY_HOURS_TYPE_UNSPECIFIED .getNumber()) { output.writeEnum(4, secondaryHoursType_); } for (int i = 0; i < specialDays_.size(); i++) { output.writeMessage(5, specialDays_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, openNow_); } for (int i = 0; i < periods_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, periods_.get(i)); } { int dataSize = 0; for (int i = 0; i < weekdayDescriptions_.size(); i++) { dataSize += computeStringSizeNoTag(weekdayDescriptions_.getRaw(i)); } size += dataSize; size += 1 * getWeekdayDescriptionsList().size(); } if (secondaryHoursType_ != com.google.maps.places.v1.Place.OpeningHours.SecondaryHoursType .SECONDARY_HOURS_TYPE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, secondaryHoursType_); } for (int i = 0; i < specialDays_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, specialDays_.get(i)); } size += getUnknownFields().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.maps.places.v1.Place.OpeningHours)) { return super.equals(obj); } com.google.maps.places.v1.Place.OpeningHours other = (com.google.maps.places.v1.Place.OpeningHours) obj; if (hasOpenNow() != other.hasOpenNow()) return false; if (hasOpenNow()) { if (getOpenNow() != other.getOpenNow()) return false; } if (!getPeriodsList().equals(other.getPeriodsList())) return false; if (!getWeekdayDescriptionsList().equals(other.getWeekdayDescriptionsList())) return false; if (secondaryHoursType_ != other.secondaryHoursType_) return false; if (!getSpecialDaysList().equals(other.getSpecialDaysList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOpenNow()) { hash = (37 * hash) + OPEN_NOW_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOpenNow()); } if (getPeriodsCount() > 0) { hash = (37 * hash) + PERIODS_FIELD_NUMBER; hash = (53 * hash) + getPeriodsList().hashCode(); } if (getWeekdayDescriptionsCount() > 0) { hash = (37 * hash) + WEEKDAY_DESCRIPTIONS_FIELD_NUMBER; hash = (53 * hash) + getWeekdayDescriptionsList().hashCode(); } hash = (37 * hash) + SECONDARY_HOURS_TYPE_FIELD_NUMBER; hash = (53 * hash) + secondaryHoursType_; if (getSpecialDaysCount() > 0) { hash = (37 * hash) + SPECIAL_DAYS_FIELD_NUMBER; hash = (53 * hash) + getSpecialDaysList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.maps.places.v1.Place.OpeningHours parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.OpeningHours parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.OpeningHours parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.OpeningHours 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.maps.places.v1.Place.OpeningHours parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.OpeningHours parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.OpeningHours parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.OpeningHours 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.maps.places.v1.Place.OpeningHours parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.OpeningHours 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.maps.places.v1.Place.OpeningHours parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.OpeningHours 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.maps.places.v1.Place.OpeningHours 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; } /** * * *
     * Information about business hour of the place.
     * 
* * Protobuf type {@code google.maps.places.v1.Place.OpeningHours} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.OpeningHours) com.google.maps.places.v1.Place.OpeningHoursOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.OpeningHours.class, com.google.maps.places.v1.Place.OpeningHours.Builder.class); } // Construct using com.google.maps.places.v1.Place.OpeningHours.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; openNow_ = false; if (periodsBuilder_ == null) { periods_ = java.util.Collections.emptyList(); } else { periods_ = null; periodsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); weekdayDescriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); secondaryHoursType_ = 0; if (specialDaysBuilder_ == null) { specialDays_ = java.util.Collections.emptyList(); } else { specialDays_ = null; specialDaysBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_OpeningHours_descriptor; } @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours getDefaultInstanceForType() { return com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance(); } @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours build() { com.google.maps.places.v1.Place.OpeningHours result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours buildPartial() { com.google.maps.places.v1.Place.OpeningHours result = new com.google.maps.places.v1.Place.OpeningHours(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.maps.places.v1.Place.OpeningHours result) { if (periodsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { periods_ = java.util.Collections.unmodifiableList(periods_); bitField0_ = (bitField0_ & ~0x00000002); } result.periods_ = periods_; } else { result.periods_ = periodsBuilder_.build(); } if (specialDaysBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { specialDays_ = java.util.Collections.unmodifiableList(specialDays_); bitField0_ = (bitField0_ & ~0x00000010); } result.specialDays_ = specialDays_; } else { result.specialDays_ = specialDaysBuilder_.build(); } } private void buildPartial0(com.google.maps.places.v1.Place.OpeningHours result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.openNow_ = openNow_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { weekdayDescriptions_.makeImmutable(); result.weekdayDescriptions_ = weekdayDescriptions_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.secondaryHoursType_ = secondaryHoursType_; } result.bitField0_ |= to_bitField0_; } @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.maps.places.v1.Place.OpeningHours) { return mergeFrom((com.google.maps.places.v1.Place.OpeningHours) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.maps.places.v1.Place.OpeningHours other) { if (other == com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()) return this; if (other.hasOpenNow()) { setOpenNow(other.getOpenNow()); } if (periodsBuilder_ == null) { if (!other.periods_.isEmpty()) { if (periods_.isEmpty()) { periods_ = other.periods_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePeriodsIsMutable(); periods_.addAll(other.periods_); } onChanged(); } } else { if (!other.periods_.isEmpty()) { if (periodsBuilder_.isEmpty()) { periodsBuilder_.dispose(); periodsBuilder_ = null; periods_ = other.periods_; bitField0_ = (bitField0_ & ~0x00000002); periodsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPeriodsFieldBuilder() : null; } else { periodsBuilder_.addAllMessages(other.periods_); } } } if (!other.weekdayDescriptions_.isEmpty()) { if (weekdayDescriptions_.isEmpty()) { weekdayDescriptions_ = other.weekdayDescriptions_; bitField0_ |= 0x00000004; } else { ensureWeekdayDescriptionsIsMutable(); weekdayDescriptions_.addAll(other.weekdayDescriptions_); } onChanged(); } if (other.secondaryHoursType_ != 0) { setSecondaryHoursTypeValue(other.getSecondaryHoursTypeValue()); } if (specialDaysBuilder_ == null) { if (!other.specialDays_.isEmpty()) { if (specialDays_.isEmpty()) { specialDays_ = other.specialDays_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureSpecialDaysIsMutable(); specialDays_.addAll(other.specialDays_); } onChanged(); } } else { if (!other.specialDays_.isEmpty()) { if (specialDaysBuilder_.isEmpty()) { specialDaysBuilder_.dispose(); specialDaysBuilder_ = null; specialDays_ = other.specialDays_; bitField0_ = (bitField0_ & ~0x00000010); specialDaysBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSpecialDaysFieldBuilder() : null; } else { specialDaysBuilder_.addAllMessages(other.specialDays_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { openNow_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { com.google.maps.places.v1.Place.OpeningHours.Period m = input.readMessage( com.google.maps.places.v1.Place.OpeningHours.Period.parser(), extensionRegistry); if (periodsBuilder_ == null) { ensurePeriodsIsMutable(); periods_.add(m); } else { periodsBuilder_.addMessage(m); } break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureWeekdayDescriptionsIsMutable(); weekdayDescriptions_.add(s); break; } // case 26 case 32: { secondaryHoursType_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { com.google.maps.places.v1.Place.OpeningHours.SpecialDay m = input.readMessage( com.google.maps.places.v1.Place.OpeningHours.SpecialDay.parser(), extensionRegistry); if (specialDaysBuilder_ == null) { ensureSpecialDaysIsMutable(); specialDays_.add(m); } else { specialDaysBuilder_.addMessage(m); } break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private boolean openNow_; /** * * *
       * Output only. Is this place open right now?  Always present unless we lack
       * time-of-day or timezone data for these opening hours.
       * 
* * optional bool open_now = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the openNow field is set. */ @java.lang.Override public boolean hasOpenNow() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * Output only. Is this place open right now?  Always present unless we lack
       * time-of-day or timezone data for these opening hours.
       * 
* * optional bool open_now = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The openNow. */ @java.lang.Override public boolean getOpenNow() { return openNow_; } /** * * *
       * Output only. Is this place open right now?  Always present unless we lack
       * time-of-day or timezone data for these opening hours.
       * 
* * optional bool open_now = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The openNow to set. * @return This builder for chaining. */ public Builder setOpenNow(boolean value) { openNow_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Output only. Is this place open right now?  Always present unless we lack
       * time-of-day or timezone data for these opening hours.
       * 
* * optional bool open_now = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearOpenNow() { bitField0_ = (bitField0_ & ~0x00000001); openNow_ = false; onChanged(); return this; } private java.util.List periods_ = java.util.Collections.emptyList(); private void ensurePeriodsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { periods_ = new java.util.ArrayList( periods_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours.Period, com.google.maps.places.v1.Place.OpeningHours.Period.Builder, com.google.maps.places.v1.Place.OpeningHours.PeriodOrBuilder> periodsBuilder_; /** * * *
       * Output only. The periods that this place is open during the week. The
       * periods are in chronological order, starting with Sunday in the
       * place-local timezone. An empty (but not absent) value indicates a place
       * that is never open, e.g. because it is closed temporarily for
       * renovations.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getPeriodsList() { if (periodsBuilder_ == null) { return java.util.Collections.unmodifiableList(periods_); } else { return periodsBuilder_.getMessageList(); } } /** * * *
       * Output only. The periods that this place is open during the week. The
       * periods are in chronological order, starting with Sunday in the
       * place-local timezone. An empty (but not absent) value indicates a place
       * that is never open, e.g. because it is closed temporarily for
       * renovations.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public int getPeriodsCount() { if (periodsBuilder_ == null) { return periods_.size(); } else { return periodsBuilder_.getCount(); } } /** * * *
       * Output only. The periods that this place is open during the week. The
       * periods are in chronological order, starting with Sunday in the
       * place-local timezone. An empty (but not absent) value indicates a place
       * that is never open, e.g. because it is closed temporarily for
       * renovations.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.Period getPeriods(int index) { if (periodsBuilder_ == null) { return periods_.get(index); } else { return periodsBuilder_.getMessage(index); } } /** * * *
       * Output only. The periods that this place is open during the week. The
       * periods are in chronological order, starting with Sunday in the
       * place-local timezone. An empty (but not absent) value indicates a place
       * that is never open, e.g. because it is closed temporarily for
       * renovations.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setPeriods( int index, com.google.maps.places.v1.Place.OpeningHours.Period value) { if (periodsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePeriodsIsMutable(); periods_.set(index, value); onChanged(); } else { periodsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Output only. The periods that this place is open during the week. The
       * periods are in chronological order, starting with Sunday in the
       * place-local timezone. An empty (but not absent) value indicates a place
       * that is never open, e.g. because it is closed temporarily for
       * renovations.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setPeriods( int index, com.google.maps.places.v1.Place.OpeningHours.Period.Builder builderForValue) { if (periodsBuilder_ == null) { ensurePeriodsIsMutable(); periods_.set(index, builderForValue.build()); onChanged(); } else { periodsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Output only. The periods that this place is open during the week. The
       * periods are in chronological order, starting with Sunday in the
       * place-local timezone. An empty (but not absent) value indicates a place
       * that is never open, e.g. because it is closed temporarily for
       * renovations.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addPeriods(com.google.maps.places.v1.Place.OpeningHours.Period value) { if (periodsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePeriodsIsMutable(); periods_.add(value); onChanged(); } else { periodsBuilder_.addMessage(value); } return this; } /** * * *
       * Output only. The periods that this place is open during the week. The
       * periods are in chronological order, starting with Sunday in the
       * place-local timezone. An empty (but not absent) value indicates a place
       * that is never open, e.g. because it is closed temporarily for
       * renovations.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addPeriods( int index, com.google.maps.places.v1.Place.OpeningHours.Period value) { if (periodsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePeriodsIsMutable(); periods_.add(index, value); onChanged(); } else { periodsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Output only. The periods that this place is open during the week. The
       * periods are in chronological order, starting with Sunday in the
       * place-local timezone. An empty (but not absent) value indicates a place
       * that is never open, e.g. because it is closed temporarily for
       * renovations.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addPeriods( com.google.maps.places.v1.Place.OpeningHours.Period.Builder builderForValue) { if (periodsBuilder_ == null) { ensurePeriodsIsMutable(); periods_.add(builderForValue.build()); onChanged(); } else { periodsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Output only. The periods that this place is open during the week. The
       * periods are in chronological order, starting with Sunday in the
       * place-local timezone. An empty (but not absent) value indicates a place
       * that is never open, e.g. because it is closed temporarily for
       * renovations.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addPeriods( int index, com.google.maps.places.v1.Place.OpeningHours.Period.Builder builderForValue) { if (periodsBuilder_ == null) { ensurePeriodsIsMutable(); periods_.add(index, builderForValue.build()); onChanged(); } else { periodsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Output only. The periods that this place is open during the week. The
       * periods are in chronological order, starting with Sunday in the
       * place-local timezone. An empty (but not absent) value indicates a place
       * that is never open, e.g. because it is closed temporarily for
       * renovations.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAllPeriods( java.lang.Iterable values) { if (periodsBuilder_ == null) { ensurePeriodsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, periods_); onChanged(); } else { periodsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Output only. The periods that this place is open during the week. The
       * periods are in chronological order, starting with Sunday in the
       * place-local timezone. An empty (but not absent) value indicates a place
       * that is never open, e.g. because it is closed temporarily for
       * renovations.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearPeriods() { if (periodsBuilder_ == null) { periods_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { periodsBuilder_.clear(); } return this; } /** * * *
       * Output only. The periods that this place is open during the week. The
       * periods are in chronological order, starting with Sunday in the
       * place-local timezone. An empty (but not absent) value indicates a place
       * that is never open, e.g. because it is closed temporarily for
       * renovations.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removePeriods(int index) { if (periodsBuilder_ == null) { ensurePeriodsIsMutable(); periods_.remove(index); onChanged(); } else { periodsBuilder_.remove(index); } return this; } /** * * *
       * Output only. The periods that this place is open during the week. The
       * periods are in chronological order, starting with Sunday in the
       * place-local timezone. An empty (but not absent) value indicates a place
       * that is never open, e.g. because it is closed temporarily for
       * renovations.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.Period.Builder getPeriodsBuilder( int index) { return getPeriodsFieldBuilder().getBuilder(index); } /** * * *
       * Output only. The periods that this place is open during the week. The
       * periods are in chronological order, starting with Sunday in the
       * place-local timezone. An empty (but not absent) value indicates a place
       * that is never open, e.g. because it is closed temporarily for
       * renovations.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.PeriodOrBuilder getPeriodsOrBuilder( int index) { if (periodsBuilder_ == null) { return periods_.get(index); } else { return periodsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Output only. The periods that this place is open during the week. The
       * periods are in chronological order, starting with Sunday in the
       * place-local timezone. An empty (but not absent) value indicates a place
       * that is never open, e.g. because it is closed temporarily for
       * renovations.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getPeriodsOrBuilderList() { if (periodsBuilder_ != null) { return periodsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(periods_); } } /** * * *
       * Output only. The periods that this place is open during the week. The
       * periods are in chronological order, starting with Sunday in the
       * place-local timezone. An empty (but not absent) value indicates a place
       * that is never open, e.g. because it is closed temporarily for
       * renovations.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.Period.Builder addPeriodsBuilder() { return getPeriodsFieldBuilder() .addBuilder(com.google.maps.places.v1.Place.OpeningHours.Period.getDefaultInstance()); } /** * * *
       * Output only. The periods that this place is open during the week. The
       * periods are in chronological order, starting with Sunday in the
       * place-local timezone. An empty (but not absent) value indicates a place
       * that is never open, e.g. because it is closed temporarily for
       * renovations.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.Period.Builder addPeriodsBuilder( int index) { return getPeriodsFieldBuilder() .addBuilder( index, com.google.maps.places.v1.Place.OpeningHours.Period.getDefaultInstance()); } /** * * *
       * Output only. The periods that this place is open during the week. The
       * periods are in chronological order, starting with Sunday in the
       * place-local timezone. An empty (but not absent) value indicates a place
       * that is never open, e.g. because it is closed temporarily for
       * renovations.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getPeriodsBuilderList() { return getPeriodsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours.Period, com.google.maps.places.v1.Place.OpeningHours.Period.Builder, com.google.maps.places.v1.Place.OpeningHours.PeriodOrBuilder> getPeriodsFieldBuilder() { if (periodsBuilder_ == null) { periodsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours.Period, com.google.maps.places.v1.Place.OpeningHours.Period.Builder, com.google.maps.places.v1.Place.OpeningHours.PeriodOrBuilder>( periods_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); periods_ = null; } return periodsBuilder_; } private com.google.protobuf.LazyStringArrayList weekdayDescriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureWeekdayDescriptionsIsMutable() { if (!weekdayDescriptions_.isModifiable()) { weekdayDescriptions_ = new com.google.protobuf.LazyStringArrayList(weekdayDescriptions_); } bitField0_ |= 0x00000004; } /** * * *
       * Output only. Localized strings describing the opening hours of this
       * place, one string for each day of the week.  Will be empty if the hours
       * are unknown or could not be converted to localized text. Example: "Sun:
       * 18:00–06:00"
       * 
* * * repeated string weekday_descriptions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return A list containing the weekdayDescriptions. */ public com.google.protobuf.ProtocolStringList getWeekdayDescriptionsList() { weekdayDescriptions_.makeImmutable(); return weekdayDescriptions_; } /** * * *
       * Output only. Localized strings describing the opening hours of this
       * place, one string for each day of the week.  Will be empty if the hours
       * are unknown or could not be converted to localized text. Example: "Sun:
       * 18:00–06:00"
       * 
* * * repeated string weekday_descriptions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The count of weekdayDescriptions. */ public int getWeekdayDescriptionsCount() { return weekdayDescriptions_.size(); } /** * * *
       * Output only. Localized strings describing the opening hours of this
       * place, one string for each day of the week.  Will be empty if the hours
       * are unknown or could not be converted to localized text. Example: "Sun:
       * 18:00–06:00"
       * 
* * * repeated string weekday_descriptions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the element to return. * @return The weekdayDescriptions at the given index. */ public java.lang.String getWeekdayDescriptions(int index) { return weekdayDescriptions_.get(index); } /** * * *
       * Output only. Localized strings describing the opening hours of this
       * place, one string for each day of the week.  Will be empty if the hours
       * are unknown or could not be converted to localized text. Example: "Sun:
       * 18:00–06:00"
       * 
* * * repeated string weekday_descriptions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the value to return. * @return The bytes of the weekdayDescriptions at the given index. */ public com.google.protobuf.ByteString getWeekdayDescriptionsBytes(int index) { return weekdayDescriptions_.getByteString(index); } /** * * *
       * Output only. Localized strings describing the opening hours of this
       * place, one string for each day of the week.  Will be empty if the hours
       * are unknown or could not be converted to localized text. Example: "Sun:
       * 18:00–06:00"
       * 
* * * repeated string weekday_descriptions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index to set the value at. * @param value The weekdayDescriptions to set. * @return This builder for chaining. */ public Builder setWeekdayDescriptions(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureWeekdayDescriptionsIsMutable(); weekdayDescriptions_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Output only. Localized strings describing the opening hours of this
       * place, one string for each day of the week.  Will be empty if the hours
       * are unknown or could not be converted to localized text. Example: "Sun:
       * 18:00–06:00"
       * 
* * * repeated string weekday_descriptions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The weekdayDescriptions to add. * @return This builder for chaining. */ public Builder addWeekdayDescriptions(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureWeekdayDescriptionsIsMutable(); weekdayDescriptions_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Output only. Localized strings describing the opening hours of this
       * place, one string for each day of the week.  Will be empty if the hours
       * are unknown or could not be converted to localized text. Example: "Sun:
       * 18:00–06:00"
       * 
* * * repeated string weekday_descriptions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param values The weekdayDescriptions to add. * @return This builder for chaining. */ public Builder addAllWeekdayDescriptions(java.lang.Iterable values) { ensureWeekdayDescriptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, weekdayDescriptions_); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Output only. Localized strings describing the opening hours of this
       * place, one string for each day of the week.  Will be empty if the hours
       * are unknown or could not be converted to localized text. Example: "Sun:
       * 18:00–06:00"
       * 
* * * repeated string weekday_descriptions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearWeekdayDescriptions() { weekdayDescriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); ; onChanged(); return this; } /** * * *
       * Output only. Localized strings describing the opening hours of this
       * place, one string for each day of the week.  Will be empty if the hours
       * are unknown or could not be converted to localized text. Example: "Sun:
       * 18:00–06:00"
       * 
* * * repeated string weekday_descriptions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The bytes of the weekdayDescriptions to add. * @return This builder for chaining. */ public Builder addWeekdayDescriptionsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureWeekdayDescriptionsIsMutable(); weekdayDescriptions_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } private int secondaryHoursType_ = 0; /** * * *
       * Output only. A type string used to identify the type of secondary hours.
       * 
* * * .google.maps.places.v1.Place.OpeningHours.SecondaryHoursType secondary_hours_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for secondaryHoursType. */ @java.lang.Override public int getSecondaryHoursTypeValue() { return secondaryHoursType_; } /** * * *
       * Output only. A type string used to identify the type of secondary hours.
       * 
* * * .google.maps.places.v1.Place.OpeningHours.SecondaryHoursType secondary_hours_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for secondaryHoursType to set. * @return This builder for chaining. */ public Builder setSecondaryHoursTypeValue(int value) { secondaryHoursType_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Output only. A type string used to identify the type of secondary hours.
       * 
* * * .google.maps.places.v1.Place.OpeningHours.SecondaryHoursType secondary_hours_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The secondaryHoursType. */ @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours.SecondaryHoursType getSecondaryHoursType() { com.google.maps.places.v1.Place.OpeningHours.SecondaryHoursType result = com.google.maps.places.v1.Place.OpeningHours.SecondaryHoursType.forNumber( secondaryHoursType_); return result == null ? com.google.maps.places.v1.Place.OpeningHours.SecondaryHoursType.UNRECOGNIZED : result; } /** * * *
       * Output only. A type string used to identify the type of secondary hours.
       * 
* * * .google.maps.places.v1.Place.OpeningHours.SecondaryHoursType secondary_hours_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The secondaryHoursType to set. * @return This builder for chaining. */ public Builder setSecondaryHoursType( com.google.maps.places.v1.Place.OpeningHours.SecondaryHoursType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; secondaryHoursType_ = value.getNumber(); onChanged(); return this; } /** * * *
       * Output only. A type string used to identify the type of secondary hours.
       * 
* * * .google.maps.places.v1.Place.OpeningHours.SecondaryHoursType secondary_hours_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearSecondaryHoursType() { bitField0_ = (bitField0_ & ~0x00000008); secondaryHoursType_ = 0; onChanged(); return this; } private java.util.List specialDays_ = java.util.Collections.emptyList(); private void ensureSpecialDaysIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { specialDays_ = new java.util.ArrayList( specialDays_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours.SpecialDay, com.google.maps.places.v1.Place.OpeningHours.SpecialDay.Builder, com.google.maps.places.v1.Place.OpeningHours.SpecialDayOrBuilder> specialDaysBuilder_; /** * * *
       * Output only. Structured information for special days that fall within the
       * period that the returned opening hours cover. Special days are days that
       * could impact the business hours of a place, e.g. Christmas day. Set for
       * current_opening_hours and current_secondary_opening_hours if there are
       * exceptional hours.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getSpecialDaysList() { if (specialDaysBuilder_ == null) { return java.util.Collections.unmodifiableList(specialDays_); } else { return specialDaysBuilder_.getMessageList(); } } /** * * *
       * Output only. Structured information for special days that fall within the
       * period that the returned opening hours cover. Special days are days that
       * could impact the business hours of a place, e.g. Christmas day. Set for
       * current_opening_hours and current_secondary_opening_hours if there are
       * exceptional hours.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public int getSpecialDaysCount() { if (specialDaysBuilder_ == null) { return specialDays_.size(); } else { return specialDaysBuilder_.getCount(); } } /** * * *
       * Output only. Structured information for special days that fall within the
       * period that the returned opening hours cover. Special days are days that
       * could impact the business hours of a place, e.g. Christmas day. Set for
       * current_opening_hours and current_secondary_opening_hours if there are
       * exceptional hours.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.SpecialDay getSpecialDays(int index) { if (specialDaysBuilder_ == null) { return specialDays_.get(index); } else { return specialDaysBuilder_.getMessage(index); } } /** * * *
       * Output only. Structured information for special days that fall within the
       * period that the returned opening hours cover. Special days are days that
       * could impact the business hours of a place, e.g. Christmas day. Set for
       * current_opening_hours and current_secondary_opening_hours if there are
       * exceptional hours.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setSpecialDays( int index, com.google.maps.places.v1.Place.OpeningHours.SpecialDay value) { if (specialDaysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpecialDaysIsMutable(); specialDays_.set(index, value); onChanged(); } else { specialDaysBuilder_.setMessage(index, value); } return this; } /** * * *
       * Output only. Structured information for special days that fall within the
       * period that the returned opening hours cover. Special days are days that
       * could impact the business hours of a place, e.g. Christmas day. Set for
       * current_opening_hours and current_secondary_opening_hours if there are
       * exceptional hours.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setSpecialDays( int index, com.google.maps.places.v1.Place.OpeningHours.SpecialDay.Builder builderForValue) { if (specialDaysBuilder_ == null) { ensureSpecialDaysIsMutable(); specialDays_.set(index, builderForValue.build()); onChanged(); } else { specialDaysBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Output only. Structured information for special days that fall within the
       * period that the returned opening hours cover. Special days are days that
       * could impact the business hours of a place, e.g. Christmas day. Set for
       * current_opening_hours and current_secondary_opening_hours if there are
       * exceptional hours.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addSpecialDays(com.google.maps.places.v1.Place.OpeningHours.SpecialDay value) { if (specialDaysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpecialDaysIsMutable(); specialDays_.add(value); onChanged(); } else { specialDaysBuilder_.addMessage(value); } return this; } /** * * *
       * Output only. Structured information for special days that fall within the
       * period that the returned opening hours cover. Special days are days that
       * could impact the business hours of a place, e.g. Christmas day. Set for
       * current_opening_hours and current_secondary_opening_hours if there are
       * exceptional hours.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addSpecialDays( int index, com.google.maps.places.v1.Place.OpeningHours.SpecialDay value) { if (specialDaysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpecialDaysIsMutable(); specialDays_.add(index, value); onChanged(); } else { specialDaysBuilder_.addMessage(index, value); } return this; } /** * * *
       * Output only. Structured information for special days that fall within the
       * period that the returned opening hours cover. Special days are days that
       * could impact the business hours of a place, e.g. Christmas day. Set for
       * current_opening_hours and current_secondary_opening_hours if there are
       * exceptional hours.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addSpecialDays( com.google.maps.places.v1.Place.OpeningHours.SpecialDay.Builder builderForValue) { if (specialDaysBuilder_ == null) { ensureSpecialDaysIsMutable(); specialDays_.add(builderForValue.build()); onChanged(); } else { specialDaysBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Output only. Structured information for special days that fall within the
       * period that the returned opening hours cover. Special days are days that
       * could impact the business hours of a place, e.g. Christmas day. Set for
       * current_opening_hours and current_secondary_opening_hours if there are
       * exceptional hours.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addSpecialDays( int index, com.google.maps.places.v1.Place.OpeningHours.SpecialDay.Builder builderForValue) { if (specialDaysBuilder_ == null) { ensureSpecialDaysIsMutable(); specialDays_.add(index, builderForValue.build()); onChanged(); } else { specialDaysBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Output only. Structured information for special days that fall within the
       * period that the returned opening hours cover. Special days are days that
       * could impact the business hours of a place, e.g. Christmas day. Set for
       * current_opening_hours and current_secondary_opening_hours if there are
       * exceptional hours.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAllSpecialDays( java.lang.Iterable values) { if (specialDaysBuilder_ == null) { ensureSpecialDaysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, specialDays_); onChanged(); } else { specialDaysBuilder_.addAllMessages(values); } return this; } /** * * *
       * Output only. Structured information for special days that fall within the
       * period that the returned opening hours cover. Special days are days that
       * could impact the business hours of a place, e.g. Christmas day. Set for
       * current_opening_hours and current_secondary_opening_hours if there are
       * exceptional hours.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearSpecialDays() { if (specialDaysBuilder_ == null) { specialDays_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { specialDaysBuilder_.clear(); } return this; } /** * * *
       * Output only. Structured information for special days that fall within the
       * period that the returned opening hours cover. Special days are days that
       * could impact the business hours of a place, e.g. Christmas day. Set for
       * current_opening_hours and current_secondary_opening_hours if there are
       * exceptional hours.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removeSpecialDays(int index) { if (specialDaysBuilder_ == null) { ensureSpecialDaysIsMutable(); specialDays_.remove(index); onChanged(); } else { specialDaysBuilder_.remove(index); } return this; } /** * * *
       * Output only. Structured information for special days that fall within the
       * period that the returned opening hours cover. Special days are days that
       * could impact the business hours of a place, e.g. Christmas day. Set for
       * current_opening_hours and current_secondary_opening_hours if there are
       * exceptional hours.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.SpecialDay.Builder getSpecialDaysBuilder( int index) { return getSpecialDaysFieldBuilder().getBuilder(index); } /** * * *
       * Output only. Structured information for special days that fall within the
       * period that the returned opening hours cover. Special days are days that
       * could impact the business hours of a place, e.g. Christmas day. Set for
       * current_opening_hours and current_secondary_opening_hours if there are
       * exceptional hours.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.SpecialDayOrBuilder getSpecialDaysOrBuilder(int index) { if (specialDaysBuilder_ == null) { return specialDays_.get(index); } else { return specialDaysBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Output only. Structured information for special days that fall within the
       * period that the returned opening hours cover. Special days are days that
       * could impact the business hours of a place, e.g. Christmas day. Set for
       * current_opening_hours and current_secondary_opening_hours if there are
       * exceptional hours.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List< ? extends com.google.maps.places.v1.Place.OpeningHours.SpecialDayOrBuilder> getSpecialDaysOrBuilderList() { if (specialDaysBuilder_ != null) { return specialDaysBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(specialDays_); } } /** * * *
       * Output only. Structured information for special days that fall within the
       * period that the returned opening hours cover. Special days are days that
       * could impact the business hours of a place, e.g. Christmas day. Set for
       * current_opening_hours and current_secondary_opening_hours if there are
       * exceptional hours.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.SpecialDay.Builder addSpecialDaysBuilder() { return getSpecialDaysFieldBuilder() .addBuilder( com.google.maps.places.v1.Place.OpeningHours.SpecialDay.getDefaultInstance()); } /** * * *
       * Output only. Structured information for special days that fall within the
       * period that the returned opening hours cover. Special days are days that
       * could impact the business hours of a place, e.g. Christmas day. Set for
       * current_opening_hours and current_secondary_opening_hours if there are
       * exceptional hours.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.SpecialDay.Builder addSpecialDaysBuilder( int index) { return getSpecialDaysFieldBuilder() .addBuilder( index, com.google.maps.places.v1.Place.OpeningHours.SpecialDay.getDefaultInstance()); } /** * * *
       * Output only. Structured information for special days that fall within the
       * period that the returned opening hours cover. Special days are days that
       * could impact the business hours of a place, e.g. Christmas day. Set for
       * current_opening_hours and current_secondary_opening_hours if there are
       * exceptional hours.
       * 
* * * repeated .google.maps.places.v1.Place.OpeningHours.SpecialDay special_days = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getSpecialDaysBuilderList() { return getSpecialDaysFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours.SpecialDay, com.google.maps.places.v1.Place.OpeningHours.SpecialDay.Builder, com.google.maps.places.v1.Place.OpeningHours.SpecialDayOrBuilder> getSpecialDaysFieldBuilder() { if (specialDaysBuilder_ == null) { specialDaysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours.SpecialDay, com.google.maps.places.v1.Place.OpeningHours.SpecialDay.Builder, com.google.maps.places.v1.Place.OpeningHours.SpecialDayOrBuilder>( specialDays_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); specialDays_ = null; } return specialDaysBuilder_; } @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.maps.places.v1.Place.OpeningHours) } // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.OpeningHours) private static final com.google.maps.places.v1.Place.OpeningHours DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.OpeningHours(); } public static com.google.maps.places.v1.Place.OpeningHours getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OpeningHours parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.maps.places.v1.Place.OpeningHours getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttributionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.Attribution) com.google.protobuf.MessageOrBuilder { /** * * *
     * Output only. Name of the Place's data provider.
     * 
* * string provider = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The provider. */ java.lang.String getProvider(); /** * * *
     * Output only. Name of the Place's data provider.
     * 
* * string provider = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for provider. */ com.google.protobuf.ByteString getProviderBytes(); /** * * *
     * Output only. URI to the Place's data provider.
     * 
* * string provider_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The providerUri. */ java.lang.String getProviderUri(); /** * * *
     * Output only. URI to the Place's data provider.
     * 
* * string provider_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for providerUri. */ com.google.protobuf.ByteString getProviderUriBytes(); } /** * * *
   * Information about data providers of this place.
   * 
* * Protobuf type {@code google.maps.places.v1.Place.Attribution} */ public static final class Attribution extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.Attribution) AttributionOrBuilder { private static final long serialVersionUID = 0L; // Use Attribution.newBuilder() to construct. private Attribution(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Attribution() { provider_ = ""; providerUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Attribution(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_Attribution_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_Attribution_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.Attribution.class, com.google.maps.places.v1.Place.Attribution.Builder.class); } public static final int PROVIDER_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object provider_ = ""; /** * * *
     * Output only. Name of the Place's data provider.
     * 
* * string provider = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The provider. */ @java.lang.Override public java.lang.String getProvider() { java.lang.Object ref = provider_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); provider_ = s; return s; } } /** * * *
     * Output only. Name of the Place's data provider.
     * 
* * string provider = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for provider. */ @java.lang.Override public com.google.protobuf.ByteString getProviderBytes() { java.lang.Object ref = provider_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); provider_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROVIDER_URI_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object providerUri_ = ""; /** * * *
     * Output only. URI to the Place's data provider.
     * 
* * string provider_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The providerUri. */ @java.lang.Override public java.lang.String getProviderUri() { java.lang.Object ref = providerUri_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); providerUri_ = s; return s; } } /** * * *
     * Output only. URI to the Place's data provider.
     * 
* * string provider_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for providerUri. */ @java.lang.Override public com.google.protobuf.ByteString getProviderUriBytes() { java.lang.Object ref = providerUri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); providerUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provider_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, provider_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(providerUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, providerUri_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provider_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, provider_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(providerUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, providerUri_); } size += getUnknownFields().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.maps.places.v1.Place.Attribution)) { return super.equals(obj); } com.google.maps.places.v1.Place.Attribution other = (com.google.maps.places.v1.Place.Attribution) obj; if (!getProvider().equals(other.getProvider())) return false; if (!getProviderUri().equals(other.getProviderUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROVIDER_FIELD_NUMBER; hash = (53 * hash) + getProvider().hashCode(); hash = (37 * hash) + PROVIDER_URI_FIELD_NUMBER; hash = (53 * hash) + getProviderUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.maps.places.v1.Place.Attribution parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.Attribution parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.Attribution parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.Attribution 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.maps.places.v1.Place.Attribution parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.Attribution parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.Attribution parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.Attribution 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.maps.places.v1.Place.Attribution parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.Attribution 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.maps.places.v1.Place.Attribution parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.Attribution 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.maps.places.v1.Place.Attribution 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; } /** * * *
     * Information about data providers of this place.
     * 
* * Protobuf type {@code google.maps.places.v1.Place.Attribution} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.Attribution) com.google.maps.places.v1.Place.AttributionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_Attribution_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_Attribution_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.Attribution.class, com.google.maps.places.v1.Place.Attribution.Builder.class); } // Construct using com.google.maps.places.v1.Place.Attribution.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; provider_ = ""; providerUri_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_Attribution_descriptor; } @java.lang.Override public com.google.maps.places.v1.Place.Attribution getDefaultInstanceForType() { return com.google.maps.places.v1.Place.Attribution.getDefaultInstance(); } @java.lang.Override public com.google.maps.places.v1.Place.Attribution build() { com.google.maps.places.v1.Place.Attribution result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.maps.places.v1.Place.Attribution buildPartial() { com.google.maps.places.v1.Place.Attribution result = new com.google.maps.places.v1.Place.Attribution(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.maps.places.v1.Place.Attribution result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.provider_ = provider_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.providerUri_ = providerUri_; } } @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.maps.places.v1.Place.Attribution) { return mergeFrom((com.google.maps.places.v1.Place.Attribution) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.maps.places.v1.Place.Attribution other) { if (other == com.google.maps.places.v1.Place.Attribution.getDefaultInstance()) return this; if (!other.getProvider().isEmpty()) { provider_ = other.provider_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getProviderUri().isEmpty()) { providerUri_ = other.providerUri_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { provider_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { providerUri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object provider_ = ""; /** * * *
       * Output only. Name of the Place's data provider.
       * 
* * string provider = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The provider. */ public java.lang.String getProvider() { java.lang.Object ref = provider_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); provider_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Output only. Name of the Place's data provider.
       * 
* * string provider = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for provider. */ public com.google.protobuf.ByteString getProviderBytes() { java.lang.Object ref = provider_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); provider_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Output only. Name of the Place's data provider.
       * 
* * string provider = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The provider to set. * @return This builder for chaining. */ public Builder setProvider(java.lang.String value) { if (value == null) { throw new NullPointerException(); } provider_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Output only. Name of the Place's data provider.
       * 
* * string provider = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearProvider() { provider_ = getDefaultInstance().getProvider(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Output only. Name of the Place's data provider.
       * 
* * string provider = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for provider to set. * @return This builder for chaining. */ public Builder setProviderBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); provider_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object providerUri_ = ""; /** * * *
       * Output only. URI to the Place's data provider.
       * 
* * string provider_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The providerUri. */ public java.lang.String getProviderUri() { java.lang.Object ref = providerUri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); providerUri_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Output only. URI to the Place's data provider.
       * 
* * string provider_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for providerUri. */ public com.google.protobuf.ByteString getProviderUriBytes() { java.lang.Object ref = providerUri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); providerUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Output only. URI to the Place's data provider.
       * 
* * string provider_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The providerUri to set. * @return This builder for chaining. */ public Builder setProviderUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } providerUri_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Output only. URI to the Place's data provider.
       * 
* * string provider_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearProviderUri() { providerUri_ = getDefaultInstance().getProviderUri(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * Output only. URI to the Place's data provider.
       * 
* * string provider_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for providerUri to set. * @return This builder for chaining. */ public Builder setProviderUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); providerUri_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @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.maps.places.v1.Place.Attribution) } // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.Attribution) private static final com.google.maps.places.v1.Place.Attribution DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.Attribution(); } public static com.google.maps.places.v1.Place.Attribution getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Attribution parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.maps.places.v1.Place.Attribution getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PaymentOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.PaymentOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * Place accepts credit cards as payment.
     * 
* * optional bool accepts_credit_cards = 1; * * @return Whether the acceptsCreditCards field is set. */ boolean hasAcceptsCreditCards(); /** * * *
     * Place accepts credit cards as payment.
     * 
* * optional bool accepts_credit_cards = 1; * * @return The acceptsCreditCards. */ boolean getAcceptsCreditCards(); /** * * *
     * Place accepts debit cards as payment.
     * 
* * optional bool accepts_debit_cards = 2; * * @return Whether the acceptsDebitCards field is set. */ boolean hasAcceptsDebitCards(); /** * * *
     * Place accepts debit cards as payment.
     * 
* * optional bool accepts_debit_cards = 2; * * @return The acceptsDebitCards. */ boolean getAcceptsDebitCards(); /** * * *
     * Place accepts cash only as payment. Places with this attribute may still
     * accept other payment methods.
     * 
* * optional bool accepts_cash_only = 3; * * @return Whether the acceptsCashOnly field is set. */ boolean hasAcceptsCashOnly(); /** * * *
     * Place accepts cash only as payment. Places with this attribute may still
     * accept other payment methods.
     * 
* * optional bool accepts_cash_only = 3; * * @return The acceptsCashOnly. */ boolean getAcceptsCashOnly(); /** * * *
     * Place accepts NFC payments.
     * 
* * optional bool accepts_nfc = 4; * * @return Whether the acceptsNfc field is set. */ boolean hasAcceptsNfc(); /** * * *
     * Place accepts NFC payments.
     * 
* * optional bool accepts_nfc = 4; * * @return The acceptsNfc. */ boolean getAcceptsNfc(); } /** * * *
   * Payment options the place accepts.
   * 
* * Protobuf type {@code google.maps.places.v1.Place.PaymentOptions} */ public static final class PaymentOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.PaymentOptions) PaymentOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use PaymentOptions.newBuilder() to construct. private PaymentOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PaymentOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PaymentOptions(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_PaymentOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_PaymentOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.PaymentOptions.class, com.google.maps.places.v1.Place.PaymentOptions.Builder.class); } private int bitField0_; public static final int ACCEPTS_CREDIT_CARDS_FIELD_NUMBER = 1; private boolean acceptsCreditCards_ = false; /** * * *
     * Place accepts credit cards as payment.
     * 
* * optional bool accepts_credit_cards = 1; * * @return Whether the acceptsCreditCards field is set. */ @java.lang.Override public boolean hasAcceptsCreditCards() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Place accepts credit cards as payment.
     * 
* * optional bool accepts_credit_cards = 1; * * @return The acceptsCreditCards. */ @java.lang.Override public boolean getAcceptsCreditCards() { return acceptsCreditCards_; } public static final int ACCEPTS_DEBIT_CARDS_FIELD_NUMBER = 2; private boolean acceptsDebitCards_ = false; /** * * *
     * Place accepts debit cards as payment.
     * 
* * optional bool accepts_debit_cards = 2; * * @return Whether the acceptsDebitCards field is set. */ @java.lang.Override public boolean hasAcceptsDebitCards() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Place accepts debit cards as payment.
     * 
* * optional bool accepts_debit_cards = 2; * * @return The acceptsDebitCards. */ @java.lang.Override public boolean getAcceptsDebitCards() { return acceptsDebitCards_; } public static final int ACCEPTS_CASH_ONLY_FIELD_NUMBER = 3; private boolean acceptsCashOnly_ = false; /** * * *
     * Place accepts cash only as payment. Places with this attribute may still
     * accept other payment methods.
     * 
* * optional bool accepts_cash_only = 3; * * @return Whether the acceptsCashOnly field is set. */ @java.lang.Override public boolean hasAcceptsCashOnly() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Place accepts cash only as payment. Places with this attribute may still
     * accept other payment methods.
     * 
* * optional bool accepts_cash_only = 3; * * @return The acceptsCashOnly. */ @java.lang.Override public boolean getAcceptsCashOnly() { return acceptsCashOnly_; } public static final int ACCEPTS_NFC_FIELD_NUMBER = 4; private boolean acceptsNfc_ = false; /** * * *
     * Place accepts NFC payments.
     * 
* * optional bool accepts_nfc = 4; * * @return Whether the acceptsNfc field is set. */ @java.lang.Override public boolean hasAcceptsNfc() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Place accepts NFC payments.
     * 
* * optional bool accepts_nfc = 4; * * @return The acceptsNfc. */ @java.lang.Override public boolean getAcceptsNfc() { return acceptsNfc_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, acceptsCreditCards_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, acceptsDebitCards_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, acceptsCashOnly_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(4, acceptsNfc_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, acceptsCreditCards_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, acceptsDebitCards_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, acceptsCashOnly_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, acceptsNfc_); } size += getUnknownFields().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.maps.places.v1.Place.PaymentOptions)) { return super.equals(obj); } com.google.maps.places.v1.Place.PaymentOptions other = (com.google.maps.places.v1.Place.PaymentOptions) obj; if (hasAcceptsCreditCards() != other.hasAcceptsCreditCards()) return false; if (hasAcceptsCreditCards()) { if (getAcceptsCreditCards() != other.getAcceptsCreditCards()) return false; } if (hasAcceptsDebitCards() != other.hasAcceptsDebitCards()) return false; if (hasAcceptsDebitCards()) { if (getAcceptsDebitCards() != other.getAcceptsDebitCards()) return false; } if (hasAcceptsCashOnly() != other.hasAcceptsCashOnly()) return false; if (hasAcceptsCashOnly()) { if (getAcceptsCashOnly() != other.getAcceptsCashOnly()) return false; } if (hasAcceptsNfc() != other.hasAcceptsNfc()) return false; if (hasAcceptsNfc()) { if (getAcceptsNfc() != other.getAcceptsNfc()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAcceptsCreditCards()) { hash = (37 * hash) + ACCEPTS_CREDIT_CARDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAcceptsCreditCards()); } if (hasAcceptsDebitCards()) { hash = (37 * hash) + ACCEPTS_DEBIT_CARDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAcceptsDebitCards()); } if (hasAcceptsCashOnly()) { hash = (37 * hash) + ACCEPTS_CASH_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAcceptsCashOnly()); } if (hasAcceptsNfc()) { hash = (37 * hash) + ACCEPTS_NFC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAcceptsNfc()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.maps.places.v1.Place.PaymentOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.PaymentOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.PaymentOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.PaymentOptions 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.maps.places.v1.Place.PaymentOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.PaymentOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.PaymentOptions parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.PaymentOptions 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.maps.places.v1.Place.PaymentOptions parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.PaymentOptions 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.maps.places.v1.Place.PaymentOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.PaymentOptions 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.maps.places.v1.Place.PaymentOptions 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; } /** * * *
     * Payment options the place accepts.
     * 
* * Protobuf type {@code google.maps.places.v1.Place.PaymentOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.PaymentOptions) com.google.maps.places.v1.Place.PaymentOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_PaymentOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_PaymentOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.PaymentOptions.class, com.google.maps.places.v1.Place.PaymentOptions.Builder.class); } // Construct using com.google.maps.places.v1.Place.PaymentOptions.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; acceptsCreditCards_ = false; acceptsDebitCards_ = false; acceptsCashOnly_ = false; acceptsNfc_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_PaymentOptions_descriptor; } @java.lang.Override public com.google.maps.places.v1.Place.PaymentOptions getDefaultInstanceForType() { return com.google.maps.places.v1.Place.PaymentOptions.getDefaultInstance(); } @java.lang.Override public com.google.maps.places.v1.Place.PaymentOptions build() { com.google.maps.places.v1.Place.PaymentOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.maps.places.v1.Place.PaymentOptions buildPartial() { com.google.maps.places.v1.Place.PaymentOptions result = new com.google.maps.places.v1.Place.PaymentOptions(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.maps.places.v1.Place.PaymentOptions result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.acceptsCreditCards_ = acceptsCreditCards_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.acceptsDebitCards_ = acceptsDebitCards_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.acceptsCashOnly_ = acceptsCashOnly_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.acceptsNfc_ = acceptsNfc_; to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @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.maps.places.v1.Place.PaymentOptions) { return mergeFrom((com.google.maps.places.v1.Place.PaymentOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.maps.places.v1.Place.PaymentOptions other) { if (other == com.google.maps.places.v1.Place.PaymentOptions.getDefaultInstance()) return this; if (other.hasAcceptsCreditCards()) { setAcceptsCreditCards(other.getAcceptsCreditCards()); } if (other.hasAcceptsDebitCards()) { setAcceptsDebitCards(other.getAcceptsDebitCards()); } if (other.hasAcceptsCashOnly()) { setAcceptsCashOnly(other.getAcceptsCashOnly()); } if (other.hasAcceptsNfc()) { setAcceptsNfc(other.getAcceptsNfc()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { acceptsCreditCards_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { acceptsDebitCards_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { acceptsCashOnly_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { acceptsNfc_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private boolean acceptsCreditCards_; /** * * *
       * Place accepts credit cards as payment.
       * 
* * optional bool accepts_credit_cards = 1; * * @return Whether the acceptsCreditCards field is set. */ @java.lang.Override public boolean hasAcceptsCreditCards() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * Place accepts credit cards as payment.
       * 
* * optional bool accepts_credit_cards = 1; * * @return The acceptsCreditCards. */ @java.lang.Override public boolean getAcceptsCreditCards() { return acceptsCreditCards_; } /** * * *
       * Place accepts credit cards as payment.
       * 
* * optional bool accepts_credit_cards = 1; * * @param value The acceptsCreditCards to set. * @return This builder for chaining. */ public Builder setAcceptsCreditCards(boolean value) { acceptsCreditCards_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Place accepts credit cards as payment.
       * 
* * optional bool accepts_credit_cards = 1; * * @return This builder for chaining. */ public Builder clearAcceptsCreditCards() { bitField0_ = (bitField0_ & ~0x00000001); acceptsCreditCards_ = false; onChanged(); return this; } private boolean acceptsDebitCards_; /** * * *
       * Place accepts debit cards as payment.
       * 
* * optional bool accepts_debit_cards = 2; * * @return Whether the acceptsDebitCards field is set. */ @java.lang.Override public boolean hasAcceptsDebitCards() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
       * Place accepts debit cards as payment.
       * 
* * optional bool accepts_debit_cards = 2; * * @return The acceptsDebitCards. */ @java.lang.Override public boolean getAcceptsDebitCards() { return acceptsDebitCards_; } /** * * *
       * Place accepts debit cards as payment.
       * 
* * optional bool accepts_debit_cards = 2; * * @param value The acceptsDebitCards to set. * @return This builder for chaining. */ public Builder setAcceptsDebitCards(boolean value) { acceptsDebitCards_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Place accepts debit cards as payment.
       * 
* * optional bool accepts_debit_cards = 2; * * @return This builder for chaining. */ public Builder clearAcceptsDebitCards() { bitField0_ = (bitField0_ & ~0x00000002); acceptsDebitCards_ = false; onChanged(); return this; } private boolean acceptsCashOnly_; /** * * *
       * Place accepts cash only as payment. Places with this attribute may still
       * accept other payment methods.
       * 
* * optional bool accepts_cash_only = 3; * * @return Whether the acceptsCashOnly field is set. */ @java.lang.Override public boolean hasAcceptsCashOnly() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
       * Place accepts cash only as payment. Places with this attribute may still
       * accept other payment methods.
       * 
* * optional bool accepts_cash_only = 3; * * @return The acceptsCashOnly. */ @java.lang.Override public boolean getAcceptsCashOnly() { return acceptsCashOnly_; } /** * * *
       * Place accepts cash only as payment. Places with this attribute may still
       * accept other payment methods.
       * 
* * optional bool accepts_cash_only = 3; * * @param value The acceptsCashOnly to set. * @return This builder for chaining. */ public Builder setAcceptsCashOnly(boolean value) { acceptsCashOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Place accepts cash only as payment. Places with this attribute may still
       * accept other payment methods.
       * 
* * optional bool accepts_cash_only = 3; * * @return This builder for chaining. */ public Builder clearAcceptsCashOnly() { bitField0_ = (bitField0_ & ~0x00000004); acceptsCashOnly_ = false; onChanged(); return this; } private boolean acceptsNfc_; /** * * *
       * Place accepts NFC payments.
       * 
* * optional bool accepts_nfc = 4; * * @return Whether the acceptsNfc field is set. */ @java.lang.Override public boolean hasAcceptsNfc() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
       * Place accepts NFC payments.
       * 
* * optional bool accepts_nfc = 4; * * @return The acceptsNfc. */ @java.lang.Override public boolean getAcceptsNfc() { return acceptsNfc_; } /** * * *
       * Place accepts NFC payments.
       * 
* * optional bool accepts_nfc = 4; * * @param value The acceptsNfc to set. * @return This builder for chaining. */ public Builder setAcceptsNfc(boolean value) { acceptsNfc_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Place accepts NFC payments.
       * 
* * optional bool accepts_nfc = 4; * * @return This builder for chaining. */ public Builder clearAcceptsNfc() { bitField0_ = (bitField0_ & ~0x00000008); acceptsNfc_ = false; onChanged(); return this; } @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.maps.places.v1.Place.PaymentOptions) } // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.PaymentOptions) private static final com.google.maps.places.v1.Place.PaymentOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.PaymentOptions(); } public static com.google.maps.places.v1.Place.PaymentOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PaymentOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.maps.places.v1.Place.PaymentOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ParkingOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.ParkingOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * Place offers free parking lots.
     * 
* * optional bool free_parking_lot = 1; * * @return Whether the freeParkingLot field is set. */ boolean hasFreeParkingLot(); /** * * *
     * Place offers free parking lots.
     * 
* * optional bool free_parking_lot = 1; * * @return The freeParkingLot. */ boolean getFreeParkingLot(); /** * * *
     * Place offers paid parking lots.
     * 
* * optional bool paid_parking_lot = 2; * * @return Whether the paidParkingLot field is set. */ boolean hasPaidParkingLot(); /** * * *
     * Place offers paid parking lots.
     * 
* * optional bool paid_parking_lot = 2; * * @return The paidParkingLot. */ boolean getPaidParkingLot(); /** * * *
     * Place offers free street parking.
     * 
* * optional bool free_street_parking = 3; * * @return Whether the freeStreetParking field is set. */ boolean hasFreeStreetParking(); /** * * *
     * Place offers free street parking.
     * 
* * optional bool free_street_parking = 3; * * @return The freeStreetParking. */ boolean getFreeStreetParking(); /** * * *
     * Place offers paid street parking.
     * 
* * optional bool paid_street_parking = 4; * * @return Whether the paidStreetParking field is set. */ boolean hasPaidStreetParking(); /** * * *
     * Place offers paid street parking.
     * 
* * optional bool paid_street_parking = 4; * * @return The paidStreetParking. */ boolean getPaidStreetParking(); /** * * *
     * Place offers valet parking.
     * 
* * optional bool valet_parking = 5; * * @return Whether the valetParking field is set. */ boolean hasValetParking(); /** * * *
     * Place offers valet parking.
     * 
* * optional bool valet_parking = 5; * * @return The valetParking. */ boolean getValetParking(); /** * * *
     * Place offers free garage parking.
     * 
* * optional bool free_garage_parking = 6; * * @return Whether the freeGarageParking field is set. */ boolean hasFreeGarageParking(); /** * * *
     * Place offers free garage parking.
     * 
* * optional bool free_garage_parking = 6; * * @return The freeGarageParking. */ boolean getFreeGarageParking(); /** * * *
     * Place offers paid garage parking.
     * 
* * optional bool paid_garage_parking = 7; * * @return Whether the paidGarageParking field is set. */ boolean hasPaidGarageParking(); /** * * *
     * Place offers paid garage parking.
     * 
* * optional bool paid_garage_parking = 7; * * @return The paidGarageParking. */ boolean getPaidGarageParking(); } /** * * *
   * Information about parking options for the place. A parking lot could
   * support more than one option at the same time.
   * 
* * Protobuf type {@code google.maps.places.v1.Place.ParkingOptions} */ public static final class ParkingOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.ParkingOptions) ParkingOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use ParkingOptions.newBuilder() to construct. private ParkingOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ParkingOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ParkingOptions(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_ParkingOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_ParkingOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.ParkingOptions.class, com.google.maps.places.v1.Place.ParkingOptions.Builder.class); } private int bitField0_; public static final int FREE_PARKING_LOT_FIELD_NUMBER = 1; private boolean freeParkingLot_ = false; /** * * *
     * Place offers free parking lots.
     * 
* * optional bool free_parking_lot = 1; * * @return Whether the freeParkingLot field is set. */ @java.lang.Override public boolean hasFreeParkingLot() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Place offers free parking lots.
     * 
* * optional bool free_parking_lot = 1; * * @return The freeParkingLot. */ @java.lang.Override public boolean getFreeParkingLot() { return freeParkingLot_; } public static final int PAID_PARKING_LOT_FIELD_NUMBER = 2; private boolean paidParkingLot_ = false; /** * * *
     * Place offers paid parking lots.
     * 
* * optional bool paid_parking_lot = 2; * * @return Whether the paidParkingLot field is set. */ @java.lang.Override public boolean hasPaidParkingLot() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Place offers paid parking lots.
     * 
* * optional bool paid_parking_lot = 2; * * @return The paidParkingLot. */ @java.lang.Override public boolean getPaidParkingLot() { return paidParkingLot_; } public static final int FREE_STREET_PARKING_FIELD_NUMBER = 3; private boolean freeStreetParking_ = false; /** * * *
     * Place offers free street parking.
     * 
* * optional bool free_street_parking = 3; * * @return Whether the freeStreetParking field is set. */ @java.lang.Override public boolean hasFreeStreetParking() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Place offers free street parking.
     * 
* * optional bool free_street_parking = 3; * * @return The freeStreetParking. */ @java.lang.Override public boolean getFreeStreetParking() { return freeStreetParking_; } public static final int PAID_STREET_PARKING_FIELD_NUMBER = 4; private boolean paidStreetParking_ = false; /** * * *
     * Place offers paid street parking.
     * 
* * optional bool paid_street_parking = 4; * * @return Whether the paidStreetParking field is set. */ @java.lang.Override public boolean hasPaidStreetParking() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Place offers paid street parking.
     * 
* * optional bool paid_street_parking = 4; * * @return The paidStreetParking. */ @java.lang.Override public boolean getPaidStreetParking() { return paidStreetParking_; } public static final int VALET_PARKING_FIELD_NUMBER = 5; private boolean valetParking_ = false; /** * * *
     * Place offers valet parking.
     * 
* * optional bool valet_parking = 5; * * @return Whether the valetParking field is set. */ @java.lang.Override public boolean hasValetParking() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * Place offers valet parking.
     * 
* * optional bool valet_parking = 5; * * @return The valetParking. */ @java.lang.Override public boolean getValetParking() { return valetParking_; } public static final int FREE_GARAGE_PARKING_FIELD_NUMBER = 6; private boolean freeGarageParking_ = false; /** * * *
     * Place offers free garage parking.
     * 
* * optional bool free_garage_parking = 6; * * @return Whether the freeGarageParking field is set. */ @java.lang.Override public boolean hasFreeGarageParking() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
     * Place offers free garage parking.
     * 
* * optional bool free_garage_parking = 6; * * @return The freeGarageParking. */ @java.lang.Override public boolean getFreeGarageParking() { return freeGarageParking_; } public static final int PAID_GARAGE_PARKING_FIELD_NUMBER = 7; private boolean paidGarageParking_ = false; /** * * *
     * Place offers paid garage parking.
     * 
* * optional bool paid_garage_parking = 7; * * @return Whether the paidGarageParking field is set. */ @java.lang.Override public boolean hasPaidGarageParking() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
     * Place offers paid garage parking.
     * 
* * optional bool paid_garage_parking = 7; * * @return The paidGarageParking. */ @java.lang.Override public boolean getPaidGarageParking() { return paidGarageParking_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, freeParkingLot_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, paidParkingLot_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, freeStreetParking_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(4, paidStreetParking_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(5, valetParking_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(6, freeGarageParking_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(7, paidGarageParking_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, freeParkingLot_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, paidParkingLot_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, freeStreetParking_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, paidStreetParking_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, valetParking_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, freeGarageParking_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, paidGarageParking_); } size += getUnknownFields().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.maps.places.v1.Place.ParkingOptions)) { return super.equals(obj); } com.google.maps.places.v1.Place.ParkingOptions other = (com.google.maps.places.v1.Place.ParkingOptions) obj; if (hasFreeParkingLot() != other.hasFreeParkingLot()) return false; if (hasFreeParkingLot()) { if (getFreeParkingLot() != other.getFreeParkingLot()) return false; } if (hasPaidParkingLot() != other.hasPaidParkingLot()) return false; if (hasPaidParkingLot()) { if (getPaidParkingLot() != other.getPaidParkingLot()) return false; } if (hasFreeStreetParking() != other.hasFreeStreetParking()) return false; if (hasFreeStreetParking()) { if (getFreeStreetParking() != other.getFreeStreetParking()) return false; } if (hasPaidStreetParking() != other.hasPaidStreetParking()) return false; if (hasPaidStreetParking()) { if (getPaidStreetParking() != other.getPaidStreetParking()) return false; } if (hasValetParking() != other.hasValetParking()) return false; if (hasValetParking()) { if (getValetParking() != other.getValetParking()) return false; } if (hasFreeGarageParking() != other.hasFreeGarageParking()) return false; if (hasFreeGarageParking()) { if (getFreeGarageParking() != other.getFreeGarageParking()) return false; } if (hasPaidGarageParking() != other.hasPaidGarageParking()) return false; if (hasPaidGarageParking()) { if (getPaidGarageParking() != other.getPaidGarageParking()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFreeParkingLot()) { hash = (37 * hash) + FREE_PARKING_LOT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFreeParkingLot()); } if (hasPaidParkingLot()) { hash = (37 * hash) + PAID_PARKING_LOT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPaidParkingLot()); } if (hasFreeStreetParking()) { hash = (37 * hash) + FREE_STREET_PARKING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFreeStreetParking()); } if (hasPaidStreetParking()) { hash = (37 * hash) + PAID_STREET_PARKING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPaidStreetParking()); } if (hasValetParking()) { hash = (37 * hash) + VALET_PARKING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValetParking()); } if (hasFreeGarageParking()) { hash = (37 * hash) + FREE_GARAGE_PARKING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFreeGarageParking()); } if (hasPaidGarageParking()) { hash = (37 * hash) + PAID_GARAGE_PARKING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPaidGarageParking()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.maps.places.v1.Place.ParkingOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.ParkingOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.ParkingOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.ParkingOptions 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.maps.places.v1.Place.ParkingOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.ParkingOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.ParkingOptions parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.ParkingOptions 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.maps.places.v1.Place.ParkingOptions parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.ParkingOptions 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.maps.places.v1.Place.ParkingOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.ParkingOptions 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.maps.places.v1.Place.ParkingOptions 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; } /** * * *
     * Information about parking options for the place. A parking lot could
     * support more than one option at the same time.
     * 
* * Protobuf type {@code google.maps.places.v1.Place.ParkingOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.ParkingOptions) com.google.maps.places.v1.Place.ParkingOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_ParkingOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_ParkingOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.ParkingOptions.class, com.google.maps.places.v1.Place.ParkingOptions.Builder.class); } // Construct using com.google.maps.places.v1.Place.ParkingOptions.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; freeParkingLot_ = false; paidParkingLot_ = false; freeStreetParking_ = false; paidStreetParking_ = false; valetParking_ = false; freeGarageParking_ = false; paidGarageParking_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_ParkingOptions_descriptor; } @java.lang.Override public com.google.maps.places.v1.Place.ParkingOptions getDefaultInstanceForType() { return com.google.maps.places.v1.Place.ParkingOptions.getDefaultInstance(); } @java.lang.Override public com.google.maps.places.v1.Place.ParkingOptions build() { com.google.maps.places.v1.Place.ParkingOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.maps.places.v1.Place.ParkingOptions buildPartial() { com.google.maps.places.v1.Place.ParkingOptions result = new com.google.maps.places.v1.Place.ParkingOptions(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.maps.places.v1.Place.ParkingOptions result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.freeParkingLot_ = freeParkingLot_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.paidParkingLot_ = paidParkingLot_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.freeStreetParking_ = freeStreetParking_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.paidStreetParking_ = paidStreetParking_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.valetParking_ = valetParking_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.freeGarageParking_ = freeGarageParking_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.paidGarageParking_ = paidGarageParking_; to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; } @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.maps.places.v1.Place.ParkingOptions) { return mergeFrom((com.google.maps.places.v1.Place.ParkingOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.maps.places.v1.Place.ParkingOptions other) { if (other == com.google.maps.places.v1.Place.ParkingOptions.getDefaultInstance()) return this; if (other.hasFreeParkingLot()) { setFreeParkingLot(other.getFreeParkingLot()); } if (other.hasPaidParkingLot()) { setPaidParkingLot(other.getPaidParkingLot()); } if (other.hasFreeStreetParking()) { setFreeStreetParking(other.getFreeStreetParking()); } if (other.hasPaidStreetParking()) { setPaidStreetParking(other.getPaidStreetParking()); } if (other.hasValetParking()) { setValetParking(other.getValetParking()); } if (other.hasFreeGarageParking()) { setFreeGarageParking(other.getFreeGarageParking()); } if (other.hasPaidGarageParking()) { setPaidGarageParking(other.getPaidGarageParking()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { freeParkingLot_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { paidParkingLot_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { freeStreetParking_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { paidStreetParking_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { valetParking_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { freeGarageParking_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { paidGarageParking_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private boolean freeParkingLot_; /** * * *
       * Place offers free parking lots.
       * 
* * optional bool free_parking_lot = 1; * * @return Whether the freeParkingLot field is set. */ @java.lang.Override public boolean hasFreeParkingLot() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * Place offers free parking lots.
       * 
* * optional bool free_parking_lot = 1; * * @return The freeParkingLot. */ @java.lang.Override public boolean getFreeParkingLot() { return freeParkingLot_; } /** * * *
       * Place offers free parking lots.
       * 
* * optional bool free_parking_lot = 1; * * @param value The freeParkingLot to set. * @return This builder for chaining. */ public Builder setFreeParkingLot(boolean value) { freeParkingLot_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Place offers free parking lots.
       * 
* * optional bool free_parking_lot = 1; * * @return This builder for chaining. */ public Builder clearFreeParkingLot() { bitField0_ = (bitField0_ & ~0x00000001); freeParkingLot_ = false; onChanged(); return this; } private boolean paidParkingLot_; /** * * *
       * Place offers paid parking lots.
       * 
* * optional bool paid_parking_lot = 2; * * @return Whether the paidParkingLot field is set. */ @java.lang.Override public boolean hasPaidParkingLot() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
       * Place offers paid parking lots.
       * 
* * optional bool paid_parking_lot = 2; * * @return The paidParkingLot. */ @java.lang.Override public boolean getPaidParkingLot() { return paidParkingLot_; } /** * * *
       * Place offers paid parking lots.
       * 
* * optional bool paid_parking_lot = 2; * * @param value The paidParkingLot to set. * @return This builder for chaining. */ public Builder setPaidParkingLot(boolean value) { paidParkingLot_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Place offers paid parking lots.
       * 
* * optional bool paid_parking_lot = 2; * * @return This builder for chaining. */ public Builder clearPaidParkingLot() { bitField0_ = (bitField0_ & ~0x00000002); paidParkingLot_ = false; onChanged(); return this; } private boolean freeStreetParking_; /** * * *
       * Place offers free street parking.
       * 
* * optional bool free_street_parking = 3; * * @return Whether the freeStreetParking field is set. */ @java.lang.Override public boolean hasFreeStreetParking() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
       * Place offers free street parking.
       * 
* * optional bool free_street_parking = 3; * * @return The freeStreetParking. */ @java.lang.Override public boolean getFreeStreetParking() { return freeStreetParking_; } /** * * *
       * Place offers free street parking.
       * 
* * optional bool free_street_parking = 3; * * @param value The freeStreetParking to set. * @return This builder for chaining. */ public Builder setFreeStreetParking(boolean value) { freeStreetParking_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Place offers free street parking.
       * 
* * optional bool free_street_parking = 3; * * @return This builder for chaining. */ public Builder clearFreeStreetParking() { bitField0_ = (bitField0_ & ~0x00000004); freeStreetParking_ = false; onChanged(); return this; } private boolean paidStreetParking_; /** * * *
       * Place offers paid street parking.
       * 
* * optional bool paid_street_parking = 4; * * @return Whether the paidStreetParking field is set. */ @java.lang.Override public boolean hasPaidStreetParking() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
       * Place offers paid street parking.
       * 
* * optional bool paid_street_parking = 4; * * @return The paidStreetParking. */ @java.lang.Override public boolean getPaidStreetParking() { return paidStreetParking_; } /** * * *
       * Place offers paid street parking.
       * 
* * optional bool paid_street_parking = 4; * * @param value The paidStreetParking to set. * @return This builder for chaining. */ public Builder setPaidStreetParking(boolean value) { paidStreetParking_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Place offers paid street parking.
       * 
* * optional bool paid_street_parking = 4; * * @return This builder for chaining. */ public Builder clearPaidStreetParking() { bitField0_ = (bitField0_ & ~0x00000008); paidStreetParking_ = false; onChanged(); return this; } private boolean valetParking_; /** * * *
       * Place offers valet parking.
       * 
* * optional bool valet_parking = 5; * * @return Whether the valetParking field is set. */ @java.lang.Override public boolean hasValetParking() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
       * Place offers valet parking.
       * 
* * optional bool valet_parking = 5; * * @return The valetParking. */ @java.lang.Override public boolean getValetParking() { return valetParking_; } /** * * *
       * Place offers valet parking.
       * 
* * optional bool valet_parking = 5; * * @param value The valetParking to set. * @return This builder for chaining. */ public Builder setValetParking(boolean value) { valetParking_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
       * Place offers valet parking.
       * 
* * optional bool valet_parking = 5; * * @return This builder for chaining. */ public Builder clearValetParking() { bitField0_ = (bitField0_ & ~0x00000010); valetParking_ = false; onChanged(); return this; } private boolean freeGarageParking_; /** * * *
       * Place offers free garage parking.
       * 
* * optional bool free_garage_parking = 6; * * @return Whether the freeGarageParking field is set. */ @java.lang.Override public boolean hasFreeGarageParking() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
       * Place offers free garage parking.
       * 
* * optional bool free_garage_parking = 6; * * @return The freeGarageParking. */ @java.lang.Override public boolean getFreeGarageParking() { return freeGarageParking_; } /** * * *
       * Place offers free garage parking.
       * 
* * optional bool free_garage_parking = 6; * * @param value The freeGarageParking to set. * @return This builder for chaining. */ public Builder setFreeGarageParking(boolean value) { freeGarageParking_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
       * Place offers free garage parking.
       * 
* * optional bool free_garage_parking = 6; * * @return This builder for chaining. */ public Builder clearFreeGarageParking() { bitField0_ = (bitField0_ & ~0x00000020); freeGarageParking_ = false; onChanged(); return this; } private boolean paidGarageParking_; /** * * *
       * Place offers paid garage parking.
       * 
* * optional bool paid_garage_parking = 7; * * @return Whether the paidGarageParking field is set. */ @java.lang.Override public boolean hasPaidGarageParking() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
       * Place offers paid garage parking.
       * 
* * optional bool paid_garage_parking = 7; * * @return The paidGarageParking. */ @java.lang.Override public boolean getPaidGarageParking() { return paidGarageParking_; } /** * * *
       * Place offers paid garage parking.
       * 
* * optional bool paid_garage_parking = 7; * * @param value The paidGarageParking to set. * @return This builder for chaining. */ public Builder setPaidGarageParking(boolean value) { paidGarageParking_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
       * Place offers paid garage parking.
       * 
* * optional bool paid_garage_parking = 7; * * @return This builder for chaining. */ public Builder clearPaidGarageParking() { bitField0_ = (bitField0_ & ~0x00000040); paidGarageParking_ = false; onChanged(); return this; } @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.maps.places.v1.Place.ParkingOptions) } // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.ParkingOptions) private static final com.google.maps.places.v1.Place.ParkingOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.ParkingOptions(); } public static com.google.maps.places.v1.Place.ParkingOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ParkingOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.maps.places.v1.Place.ParkingOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SubDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.SubDestination) com.google.protobuf.MessageOrBuilder { /** * * *
     * The resource name of the sub destination.
     * 
* * string name = 1 [(.google.api.resource_reference) = { ... } * * @return The name. */ java.lang.String getName(); /** * * *
     * The resource name of the sub destination.
     * 
* * string name = 1 [(.google.api.resource_reference) = { ... } * * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * The place id of the sub destination.
     * 
* * string id = 2; * * @return The id. */ java.lang.String getId(); /** * * *
     * The place id of the sub destination.
     * 
* * string id = 2; * * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); } /** * * *
   * Place resource name and id of sub destinations that relate to the place.
   * For example, different terminals are different destinations of an airport.
   * 
* * Protobuf type {@code google.maps.places.v1.Place.SubDestination} */ public static final class SubDestination extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.SubDestination) SubDestinationOrBuilder { private static final long serialVersionUID = 0L; // Use SubDestination.newBuilder() to construct. private SubDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SubDestination() { name_ = ""; id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SubDestination(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_SubDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_SubDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.SubDestination.class, com.google.maps.places.v1.Place.SubDestination.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
     * The resource name of the sub destination.
     * 
* * string name = 1 [(.google.api.resource_reference) = { ... } * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * * *
     * The resource name of the sub destination.
     * 
* * string name = 1 [(.google.api.resource_reference) = { ... } * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** * * *
     * The place id of the sub destination.
     * 
* * string id = 2; * * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** * * *
     * The place id of the sub destination.
     * 
* * string id = 2; * * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } size += getUnknownFields().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.maps.places.v1.Place.SubDestination)) { return super.equals(obj); } com.google.maps.places.v1.Place.SubDestination other = (com.google.maps.places.v1.Place.SubDestination) obj; if (!getName().equals(other.getName())) return false; if (!getId().equals(other.getId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.maps.places.v1.Place.SubDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.SubDestination parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.SubDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.SubDestination 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.maps.places.v1.Place.SubDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.SubDestination parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.SubDestination parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.SubDestination 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.maps.places.v1.Place.SubDestination parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.SubDestination 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.maps.places.v1.Place.SubDestination parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.SubDestination 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.maps.places.v1.Place.SubDestination 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; } /** * * *
     * Place resource name and id of sub destinations that relate to the place.
     * For example, different terminals are different destinations of an airport.
     * 
* * Protobuf type {@code google.maps.places.v1.Place.SubDestination} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.SubDestination) com.google.maps.places.v1.Place.SubDestinationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_SubDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_SubDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.SubDestination.class, com.google.maps.places.v1.Place.SubDestination.Builder.class); } // Construct using com.google.maps.places.v1.Place.SubDestination.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; id_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_SubDestination_descriptor; } @java.lang.Override public com.google.maps.places.v1.Place.SubDestination getDefaultInstanceForType() { return com.google.maps.places.v1.Place.SubDestination.getDefaultInstance(); } @java.lang.Override public com.google.maps.places.v1.Place.SubDestination build() { com.google.maps.places.v1.Place.SubDestination result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.maps.places.v1.Place.SubDestination buildPartial() { com.google.maps.places.v1.Place.SubDestination result = new com.google.maps.places.v1.Place.SubDestination(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.maps.places.v1.Place.SubDestination result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.id_ = id_; } } @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.maps.places.v1.Place.SubDestination) { return mergeFrom((com.google.maps.places.v1.Place.SubDestination) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.maps.places.v1.Place.SubDestination other) { if (other == com.google.maps.places.v1.Place.SubDestination.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * The resource name of the sub destination.
       * 
* * string name = 1 [(.google.api.resource_reference) = { ... } * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The resource name of the sub destination.
       * 
* * string name = 1 [(.google.api.resource_reference) = { ... } * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The resource name of the sub destination.
       * 
* * string name = 1 [(.google.api.resource_reference) = { ... } * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The resource name of the sub destination.
       * 
* * string name = 1 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * The resource name of the sub destination.
       * 
* * string name = 1 [(.google.api.resource_reference) = { ... } * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object id_ = ""; /** * * *
       * The place id of the sub destination.
       * 
* * string id = 2; * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The place id of the sub destination.
       * 
* * string id = 2; * * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The place id of the sub destination.
       * 
* * string id = 2; * * @param value The id to set. * @return This builder for chaining. */ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The place id of the sub destination.
       * 
* * string id = 2; * * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * The place id of the sub destination.
       * 
* * string id = 2; * * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @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.maps.places.v1.Place.SubDestination) } // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.SubDestination) private static final com.google.maps.places.v1.Place.SubDestination DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.SubDestination(); } public static com.google.maps.places.v1.Place.SubDestination getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SubDestination parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.maps.places.v1.Place.SubDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AccessibilityOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.AccessibilityOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * Places has wheelchair accessible entrance.
     * 
* * optional bool wheelchair_accessible_entrance = 2; * * @return Whether the wheelchairAccessibleEntrance field is set. */ boolean hasWheelchairAccessibleEntrance(); /** * * *
     * Places has wheelchair accessible entrance.
     * 
* * optional bool wheelchair_accessible_entrance = 2; * * @return The wheelchairAccessibleEntrance. */ boolean getWheelchairAccessibleEntrance(); } /** * * *
   * Information about the accessibility options a place offers.
   * 
* * Protobuf type {@code google.maps.places.v1.Place.AccessibilityOptions} */ public static final class AccessibilityOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.AccessibilityOptions) AccessibilityOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use AccessibilityOptions.newBuilder() to construct. private AccessibilityOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AccessibilityOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AccessibilityOptions(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_AccessibilityOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_AccessibilityOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.AccessibilityOptions.class, com.google.maps.places.v1.Place.AccessibilityOptions.Builder.class); } private int bitField0_; public static final int WHEELCHAIR_ACCESSIBLE_ENTRANCE_FIELD_NUMBER = 2; private boolean wheelchairAccessibleEntrance_ = false; /** * * *
     * Places has wheelchair accessible entrance.
     * 
* * optional bool wheelchair_accessible_entrance = 2; * * @return Whether the wheelchairAccessibleEntrance field is set. */ @java.lang.Override public boolean hasWheelchairAccessibleEntrance() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Places has wheelchair accessible entrance.
     * 
* * optional bool wheelchair_accessible_entrance = 2; * * @return The wheelchairAccessibleEntrance. */ @java.lang.Override public boolean getWheelchairAccessibleEntrance() { return wheelchairAccessibleEntrance_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeBool(2, wheelchairAccessibleEntrance_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, wheelchairAccessibleEntrance_); } size += getUnknownFields().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.maps.places.v1.Place.AccessibilityOptions)) { return super.equals(obj); } com.google.maps.places.v1.Place.AccessibilityOptions other = (com.google.maps.places.v1.Place.AccessibilityOptions) obj; if (hasWheelchairAccessibleEntrance() != other.hasWheelchairAccessibleEntrance()) return false; if (hasWheelchairAccessibleEntrance()) { if (getWheelchairAccessibleEntrance() != other.getWheelchairAccessibleEntrance()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasWheelchairAccessibleEntrance()) { hash = (37 * hash) + WHEELCHAIR_ACCESSIBLE_ENTRANCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWheelchairAccessibleEntrance()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.maps.places.v1.Place.AccessibilityOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.AccessibilityOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.AccessibilityOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.AccessibilityOptions 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.maps.places.v1.Place.AccessibilityOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place.AccessibilityOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place.AccessibilityOptions parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.AccessibilityOptions 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.maps.places.v1.Place.AccessibilityOptions parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.AccessibilityOptions 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.maps.places.v1.Place.AccessibilityOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place.AccessibilityOptions 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.maps.places.v1.Place.AccessibilityOptions 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; } /** * * *
     * Information about the accessibility options a place offers.
     * 
* * Protobuf type {@code google.maps.places.v1.Place.AccessibilityOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.AccessibilityOptions) com.google.maps.places.v1.Place.AccessibilityOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_AccessibilityOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_AccessibilityOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.AccessibilityOptions.class, com.google.maps.places.v1.Place.AccessibilityOptions.Builder.class); } // Construct using com.google.maps.places.v1.Place.AccessibilityOptions.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; wheelchairAccessibleEntrance_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_AccessibilityOptions_descriptor; } @java.lang.Override public com.google.maps.places.v1.Place.AccessibilityOptions getDefaultInstanceForType() { return com.google.maps.places.v1.Place.AccessibilityOptions.getDefaultInstance(); } @java.lang.Override public com.google.maps.places.v1.Place.AccessibilityOptions build() { com.google.maps.places.v1.Place.AccessibilityOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.maps.places.v1.Place.AccessibilityOptions buildPartial() { com.google.maps.places.v1.Place.AccessibilityOptions result = new com.google.maps.places.v1.Place.AccessibilityOptions(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.maps.places.v1.Place.AccessibilityOptions result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.wheelchairAccessibleEntrance_ = wheelchairAccessibleEntrance_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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.maps.places.v1.Place.AccessibilityOptions) { return mergeFrom((com.google.maps.places.v1.Place.AccessibilityOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.maps.places.v1.Place.AccessibilityOptions other) { if (other == com.google.maps.places.v1.Place.AccessibilityOptions.getDefaultInstance()) return this; if (other.hasWheelchairAccessibleEntrance()) { setWheelchairAccessibleEntrance(other.getWheelchairAccessibleEntrance()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 16: { wheelchairAccessibleEntrance_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private boolean wheelchairAccessibleEntrance_; /** * * *
       * Places has wheelchair accessible entrance.
       * 
* * optional bool wheelchair_accessible_entrance = 2; * * @return Whether the wheelchairAccessibleEntrance field is set. */ @java.lang.Override public boolean hasWheelchairAccessibleEntrance() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * Places has wheelchair accessible entrance.
       * 
* * optional bool wheelchair_accessible_entrance = 2; * * @return The wheelchairAccessibleEntrance. */ @java.lang.Override public boolean getWheelchairAccessibleEntrance() { return wheelchairAccessibleEntrance_; } /** * * *
       * Places has wheelchair accessible entrance.
       * 
* * optional bool wheelchair_accessible_entrance = 2; * * @param value The wheelchairAccessibleEntrance to set. * @return This builder for chaining. */ public Builder setWheelchairAccessibleEntrance(boolean value) { wheelchairAccessibleEntrance_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Places has wheelchair accessible entrance.
       * 
* * optional bool wheelchair_accessible_entrance = 2; * * @return This builder for chaining. */ public Builder clearWheelchairAccessibleEntrance() { bitField0_ = (bitField0_ & ~0x00000001); wheelchairAccessibleEntrance_ = false; onChanged(); return this; } @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.maps.places.v1.Place.AccessibilityOptions) } // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.AccessibilityOptions) private static final com.google.maps.places.v1.Place.AccessibilityOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.AccessibilityOptions(); } public static com.google.maps.places.v1.Place.AccessibilityOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AccessibilityOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.maps.places.v1.Place.AccessibilityOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Output only. An ID representing this place which may be used to look up
   * this place again (a.k.a. the API "resource" name: places/<place_id>).
   * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * * *
   * Output only. An ID representing this place which may be used to look up
   * this place again (a.k.a. the API "resource" name: places/<place_id>).
   * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** * * *
   * Output only. The unique identifier of a place.
   * 
* * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** * * *
   * Output only. The unique identifier of a place.
   * 
* * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISPLAY_NAME_FIELD_NUMBER = 31; private com.google.type.LocalizedText displayName_; /** * * *
   * Output only. The localized name of the place, suitable as a short
   * human-readable description. For example, "Google Sydney", "Starbucks",
   * "Pyrmont", etc.
   * 
* * * .google.type.LocalizedText display_name = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the displayName field is set. */ @java.lang.Override public boolean hasDisplayName() { return displayName_ != null; } /** * * *
   * Output only. The localized name of the place, suitable as a short
   * human-readable description. For example, "Google Sydney", "Starbucks",
   * "Pyrmont", etc.
   * 
* * * .google.type.LocalizedText display_name = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The displayName. */ @java.lang.Override public com.google.type.LocalizedText getDisplayName() { return displayName_ == null ? com.google.type.LocalizedText.getDefaultInstance() : displayName_; } /** * * *
   * Output only. The localized name of the place, suitable as a short
   * human-readable description. For example, "Google Sydney", "Starbucks",
   * "Pyrmont", etc.
   * 
* * * .google.type.LocalizedText display_name = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.type.LocalizedTextOrBuilder getDisplayNameOrBuilder() { return displayName_ == null ? com.google.type.LocalizedText.getDefaultInstance() : displayName_; } public static final int TYPES_FIELD_NUMBER = 5; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList types_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
   * Output only. A set of type tags for this result. For example, "political"
   * and "locality".
   * 
* * repeated string types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return A list containing the types. */ public com.google.protobuf.ProtocolStringList getTypesList() { return types_; } /** * * *
   * Output only. A set of type tags for this result. For example, "political"
   * and "locality".
   * 
* * repeated string types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The count of types. */ public int getTypesCount() { return types_.size(); } /** * * *
   * Output only. A set of type tags for this result. For example, "political"
   * and "locality".
   * 
* * repeated string types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the element to return. * @return The types at the given index. */ public java.lang.String getTypes(int index) { return types_.get(index); } /** * * *
   * Output only. A set of type tags for this result. For example, "political"
   * and "locality".
   * 
* * repeated string types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the value to return. * @return The bytes of the types at the given index. */ public com.google.protobuf.ByteString getTypesBytes(int index) { return types_.getByteString(index); } public static final int NATIONAL_PHONE_NUMBER_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object nationalPhoneNumber_ = ""; /** * * *
   * Output only. A human-readable phone number for the place, in national
   * format.
   * 
* * string national_phone_number = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The nationalPhoneNumber. */ @java.lang.Override public java.lang.String getNationalPhoneNumber() { java.lang.Object ref = nationalPhoneNumber_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nationalPhoneNumber_ = s; return s; } } /** * * *
   * Output only. A human-readable phone number for the place, in national
   * format.
   * 
* * string national_phone_number = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for nationalPhoneNumber. */ @java.lang.Override public com.google.protobuf.ByteString getNationalPhoneNumberBytes() { java.lang.Object ref = nationalPhoneNumber_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nationalPhoneNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INTERNATIONAL_PHONE_NUMBER_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object internationalPhoneNumber_ = ""; /** * * *
   * Output only. A human-readable phone number for the place, in international
   * format.
   * 
* * string international_phone_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The internationalPhoneNumber. */ @java.lang.Override public java.lang.String getInternationalPhoneNumber() { java.lang.Object ref = internationalPhoneNumber_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); internationalPhoneNumber_ = s; return s; } } /** * * *
   * Output only. A human-readable phone number for the place, in international
   * format.
   * 
* * string international_phone_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The bytes for internationalPhoneNumber. */ @java.lang.Override public com.google.protobuf.ByteString getInternationalPhoneNumberBytes() { java.lang.Object ref = internationalPhoneNumber_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); internationalPhoneNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FORMATTED_ADDRESS_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object formattedAddress_ = ""; /** * * *
   * Output only. A full, human-readable address for this place.
   * 
* * string formatted_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The formattedAddress. */ @java.lang.Override public java.lang.String getFormattedAddress() { java.lang.Object ref = formattedAddress_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); formattedAddress_ = s; return s; } } /** * * *
   * Output only. A full, human-readable address for this place.
   * 
* * string formatted_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for formattedAddress. */ @java.lang.Override public com.google.protobuf.ByteString getFormattedAddressBytes() { java.lang.Object ref = formattedAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); formattedAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ADDRESS_COMPONENTS_FIELD_NUMBER = 10; @SuppressWarnings("serial") private java.util.List addressComponents_; /** * * *
   * Output only. Repeated components for each locality level.
   * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getAddressComponentsList() { return addressComponents_; } /** * * *
   * Output only. Repeated components for each locality level.
   * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getAddressComponentsOrBuilderList() { return addressComponents_; } /** * * *
   * Output only. Repeated components for each locality level.
   * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public int getAddressComponentsCount() { return addressComponents_.size(); } /** * * *
   * Output only. Repeated components for each locality level.
   * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.AddressComponent getAddressComponents(int index) { return addressComponents_.get(index); } /** * * *
   * Output only. Repeated components for each locality level.
   * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.AddressComponentOrBuilder getAddressComponentsOrBuilder( int index) { return addressComponents_.get(index); } public static final int PLUS_CODE_FIELD_NUMBER = 11; private com.google.maps.places.v1.Place.PlusCode plusCode_; /** * * *
   * Output only. Plus code of the place location lat/long.
   * 
* * * .google.maps.places.v1.Place.PlusCode plus_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the plusCode field is set. */ @java.lang.Override public boolean hasPlusCode() { return plusCode_ != null; } /** * * *
   * Output only. Plus code of the place location lat/long.
   * 
* * * .google.maps.places.v1.Place.PlusCode plus_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The plusCode. */ @java.lang.Override public com.google.maps.places.v1.Place.PlusCode getPlusCode() { return plusCode_ == null ? com.google.maps.places.v1.Place.PlusCode.getDefaultInstance() : plusCode_; } /** * * *
   * Output only. Plus code of the place location lat/long.
   * 
* * * .google.maps.places.v1.Place.PlusCode plus_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.PlusCodeOrBuilder getPlusCodeOrBuilder() { return plusCode_ == null ? com.google.maps.places.v1.Place.PlusCode.getDefaultInstance() : plusCode_; } public static final int LOCATION_FIELD_NUMBER = 12; private com.google.type.LatLng location_; /** * * *
   * Output only. The position of this place.
   * 
* * .google.type.LatLng location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return location_ != null; } /** * * *
   * Output only. The position of this place.
   * 
* * .google.type.LatLng location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The location. */ @java.lang.Override public com.google.type.LatLng getLocation() { return location_ == null ? com.google.type.LatLng.getDefaultInstance() : location_; } /** * * *
   * Output only. The position of this place.
   * 
* * .google.type.LatLng location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.type.LatLngOrBuilder getLocationOrBuilder() { return location_ == null ? com.google.type.LatLng.getDefaultInstance() : location_; } public static final int VIEWPORT_FIELD_NUMBER = 13; private com.google.geo.type.Viewport viewport_; /** * * *
   * Output only. A viewport suitable for displaying the place on an
   * average-sized map.
   * 
* * .google.geo.type.Viewport viewport = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the viewport field is set. */ @java.lang.Override public boolean hasViewport() { return viewport_ != null; } /** * * *
   * Output only. A viewport suitable for displaying the place on an
   * average-sized map.
   * 
* * .google.geo.type.Viewport viewport = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The viewport. */ @java.lang.Override public com.google.geo.type.Viewport getViewport() { return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; } /** * * *
   * Output only. A viewport suitable for displaying the place on an
   * average-sized map.
   * 
* * .google.geo.type.Viewport viewport = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.geo.type.ViewportOrBuilder getViewportOrBuilder() { return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; } public static final int RATING_FIELD_NUMBER = 14; private double rating_ = 0D; /** * * *
   * Output only. A rating between 1.0 and 5.0, based on user reviews of this
   * place.
   * 
* * double rating = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The rating. */ @java.lang.Override public double getRating() { return rating_; } public static final int GOOGLE_MAPS_URI_FIELD_NUMBER = 15; @SuppressWarnings("serial") private volatile java.lang.Object googleMapsUri_ = ""; /** * * *
   * Output only. A URL providing more information about this place.
   * 
* * string google_maps_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The googleMapsUri. */ @java.lang.Override public java.lang.String getGoogleMapsUri() { java.lang.Object ref = googleMapsUri_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); googleMapsUri_ = s; return s; } } /** * * *
   * Output only. A URL providing more information about this place.
   * 
* * string google_maps_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for googleMapsUri. */ @java.lang.Override public com.google.protobuf.ByteString getGoogleMapsUriBytes() { java.lang.Object ref = googleMapsUri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); googleMapsUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WEBSITE_URI_FIELD_NUMBER = 16; @SuppressWarnings("serial") private volatile java.lang.Object websiteUri_ = ""; /** * * *
   * Output only. The authoritative website for this place, e.g. a business'
   * homepage. Note that for places that are part of a chain (e.g. an IKEA
   * store), this will usually be the website for the individual store, not the
   * overall chain.
   * 
* * string website_uri = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The websiteUri. */ @java.lang.Override public java.lang.String getWebsiteUri() { java.lang.Object ref = websiteUri_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); websiteUri_ = s; return s; } } /** * * *
   * Output only. The authoritative website for this place, e.g. a business'
   * homepage. Note that for places that are part of a chain (e.g. an IKEA
   * store), this will usually be the website for the individual store, not the
   * overall chain.
   * 
* * string website_uri = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for websiteUri. */ @java.lang.Override public com.google.protobuf.ByteString getWebsiteUriBytes() { java.lang.Object ref = websiteUri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); websiteUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REVIEWS_FIELD_NUMBER = 53; @SuppressWarnings("serial") private java.util.List reviews_; /** * * *
   * Output only. List of reviews about this place.
   * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getReviewsList() { return reviews_; } /** * * *
   * Output only. List of reviews about this place.
   * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getReviewsOrBuilderList() { return reviews_; } /** * * *
   * Output only. List of reviews about this place.
   * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public int getReviewsCount() { return reviews_.size(); } /** * * *
   * Output only. List of reviews about this place.
   * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Review getReviews(int index) { return reviews_.get(index); } /** * * *
   * Output only. List of reviews about this place.
   * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.ReviewOrBuilder getReviewsOrBuilder(int index) { return reviews_.get(index); } public static final int REGULAR_OPENING_HOURS_FIELD_NUMBER = 21; private com.google.maps.places.v1.Place.OpeningHours regularOpeningHours_; /** * * *
   * Output only. The regular hours of operation.
   * 
* * * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the regularOpeningHours field is set. */ @java.lang.Override public boolean hasRegularOpeningHours() { return regularOpeningHours_ != null; } /** * * *
   * Output only. The regular hours of operation.
   * 
* * * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The regularOpeningHours. */ @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours getRegularOpeningHours() { return regularOpeningHours_ == null ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() : regularOpeningHours_; } /** * * *
   * Output only. The regular hours of operation.
   * 
* * * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularOpeningHoursOrBuilder() { return regularOpeningHours_ == null ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() : regularOpeningHours_; } public static final int UTC_OFFSET_MINUTES_FIELD_NUMBER = 22; private int utcOffsetMinutes_ = 0; /** * * *
   * Output only. Number of minutes this place's timezone is currently offset
   * from UTC. This is expressed in minutes to support timezones that are offset
   * by fractions of an hour, e.g. X hours and 15 minutes.
   * 
* * optional int32 utc_offset_minutes = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the utcOffsetMinutes field is set. */ @java.lang.Override public boolean hasUtcOffsetMinutes() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Output only. Number of minutes this place's timezone is currently offset
   * from UTC. This is expressed in minutes to support timezones that are offset
   * by fractions of an hour, e.g. X hours and 15 minutes.
   * 
* * optional int32 utc_offset_minutes = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The utcOffsetMinutes. */ @java.lang.Override public int getUtcOffsetMinutes() { return utcOffsetMinutes_; } public static final int PHOTOS_FIELD_NUMBER = 54; @SuppressWarnings("serial") private java.util.List photos_; /** * * *
   * Output only. Information (including references) about photos of this place.
   * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getPhotosList() { return photos_; } /** * * *
   * Output only. Information (including references) about photos of this place.
   * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getPhotosOrBuilderList() { return photos_; } /** * * *
   * Output only. Information (including references) about photos of this place.
   * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public int getPhotosCount() { return photos_.size(); } /** * * *
   * Output only. Information (including references) about photos of this place.
   * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Photo getPhotos(int index) { return photos_.get(index); } /** * * *
   * Output only. Information (including references) about photos of this place.
   * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.PhotoOrBuilder getPhotosOrBuilder(int index) { return photos_.get(index); } public static final int ADR_FORMAT_ADDRESS_FIELD_NUMBER = 24; @SuppressWarnings("serial") private volatile java.lang.Object adrFormatAddress_ = ""; /** * * *
   * Output only. The place's address in adr microformat:
   * http://microformats.org/wiki/adr.
   * 
* * string adr_format_address = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The adrFormatAddress. */ @java.lang.Override public java.lang.String getAdrFormatAddress() { java.lang.Object ref = adrFormatAddress_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); adrFormatAddress_ = s; return s; } } /** * * *
   * Output only. The place's address in adr microformat:
   * http://microformats.org/wiki/adr.
   * 
* * string adr_format_address = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for adrFormatAddress. */ @java.lang.Override public com.google.protobuf.ByteString getAdrFormatAddressBytes() { java.lang.Object ref = adrFormatAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); adrFormatAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUSINESS_STATUS_FIELD_NUMBER = 25; private int businessStatus_ = 0; /** * * *
   * Output only. The business status for the place.
   * 
* * * .google.maps.places.v1.Place.BusinessStatus business_status = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for businessStatus. */ @java.lang.Override public int getBusinessStatusValue() { return businessStatus_; } /** * * *
   * Output only. The business status for the place.
   * 
* * * .google.maps.places.v1.Place.BusinessStatus business_status = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The businessStatus. */ @java.lang.Override public com.google.maps.places.v1.Place.BusinessStatus getBusinessStatus() { com.google.maps.places.v1.Place.BusinessStatus result = com.google.maps.places.v1.Place.BusinessStatus.forNumber(businessStatus_); return result == null ? com.google.maps.places.v1.Place.BusinessStatus.UNRECOGNIZED : result; } public static final int PRICE_LEVEL_FIELD_NUMBER = 26; private int priceLevel_ = 0; /** * * *
   * Output only. Price level of the place.
   * 
* * * .google.maps.places.v1.PriceLevel price_level = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for priceLevel. */ @java.lang.Override public int getPriceLevelValue() { return priceLevel_; } /** * * *
   * Output only. Price level of the place.
   * 
* * * .google.maps.places.v1.PriceLevel price_level = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The priceLevel. */ @java.lang.Override public com.google.maps.places.v1.PriceLevel getPriceLevel() { com.google.maps.places.v1.PriceLevel result = com.google.maps.places.v1.PriceLevel.forNumber(priceLevel_); return result == null ? com.google.maps.places.v1.PriceLevel.UNRECOGNIZED : result; } public static final int ATTRIBUTIONS_FIELD_NUMBER = 27; @SuppressWarnings("serial") private java.util.List attributions_; /** * * *
   * Output only. A set of data provider that must be shown with this result.
   * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getAttributionsList() { return attributions_; } /** * * *
   * Output only. A set of data provider that must be shown with this result.
   * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getAttributionsOrBuilderList() { return attributions_; } /** * * *
   * Output only. A set of data provider that must be shown with this result.
   * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public int getAttributionsCount() { return attributions_.size(); } /** * * *
   * Output only. A set of data provider that must be shown with this result.
   * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.Attribution getAttributions(int index) { return attributions_.get(index); } /** * * *
   * Output only. A set of data provider that must be shown with this result.
   * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.AttributionOrBuilder getAttributionsOrBuilder(int index) { return attributions_.get(index); } public static final int USER_RATING_COUNT_FIELD_NUMBER = 28; private int userRatingCount_ = 0; /** * * *
   * Output only. The total number of reviews (with or without text) for this
   * place.
   * 
* * optional int32 user_rating_count = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the userRatingCount field is set. */ @java.lang.Override public boolean hasUserRatingCount() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Output only. The total number of reviews (with or without text) for this
   * place.
   * 
* * optional int32 user_rating_count = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The userRatingCount. */ @java.lang.Override public int getUserRatingCount() { return userRatingCount_; } public static final int ICON_MASK_BASE_URI_FIELD_NUMBER = 29; @SuppressWarnings("serial") private volatile java.lang.Object iconMaskBaseUri_ = ""; /** * * *
   * Output only. A truncated URL to an v2 icon mask. User can access different
   * icon type by appending type suffix to the end (eg, ".svg" or ".png").
   * 
* * string icon_mask_base_uri = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The iconMaskBaseUri. */ @java.lang.Override public java.lang.String getIconMaskBaseUri() { java.lang.Object ref = iconMaskBaseUri_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); iconMaskBaseUri_ = s; return s; } } /** * * *
   * Output only. A truncated URL to an v2 icon mask. User can access different
   * icon type by appending type suffix to the end (eg, ".svg" or ".png").
   * 
* * string icon_mask_base_uri = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for iconMaskBaseUri. */ @java.lang.Override public com.google.protobuf.ByteString getIconMaskBaseUriBytes() { java.lang.Object ref = iconMaskBaseUri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); iconMaskBaseUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ICON_BACKGROUND_COLOR_FIELD_NUMBER = 30; @SuppressWarnings("serial") private volatile java.lang.Object iconBackgroundColor_ = ""; /** * * *
   * Output only. Background color for icon_mask in hex format, e.g. #909CE1.
   * 
* * string icon_background_color = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The iconBackgroundColor. */ @java.lang.Override public java.lang.String getIconBackgroundColor() { java.lang.Object ref = iconBackgroundColor_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); iconBackgroundColor_ = s; return s; } } /** * * *
   * Output only. Background color for icon_mask in hex format, e.g. #909CE1.
   * 
* * string icon_background_color = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for iconBackgroundColor. */ @java.lang.Override public com.google.protobuf.ByteString getIconBackgroundColorBytes() { java.lang.Object ref = iconBackgroundColor_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); iconBackgroundColor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TAKEOUT_FIELD_NUMBER = 33; private boolean takeout_ = false; /** * * *
   * Output only. Specifies if the business supports takeout.
   * 
* * optional bool takeout = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the takeout field is set. */ @java.lang.Override public boolean hasTakeout() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Output only. Specifies if the business supports takeout.
   * 
* * optional bool takeout = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The takeout. */ @java.lang.Override public boolean getTakeout() { return takeout_; } public static final int DELIVERY_FIELD_NUMBER = 34; private boolean delivery_ = false; /** * * *
   * Output only. Specifies if the business supports delivery.
   * 
* * optional bool delivery = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the delivery field is set. */ @java.lang.Override public boolean hasDelivery() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Output only. Specifies if the business supports delivery.
   * 
* * optional bool delivery = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The delivery. */ @java.lang.Override public boolean getDelivery() { return delivery_; } public static final int DINE_IN_FIELD_NUMBER = 35; private boolean dineIn_ = false; /** * * *
   * Output only. Specifies if the business supports indoor or outdoor seating
   * options.
   * 
* * optional bool dine_in = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the dineIn field is set. */ @java.lang.Override public boolean hasDineIn() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * Output only. Specifies if the business supports indoor or outdoor seating
   * options.
   * 
* * optional bool dine_in = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The dineIn. */ @java.lang.Override public boolean getDineIn() { return dineIn_; } public static final int CURBSIDE_PICKUP_FIELD_NUMBER = 36; private boolean curbsidePickup_ = false; /** * * *
   * Output only. Specifies if the business supports curbside pickup.
   * 
* * optional bool curbside_pickup = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the curbsidePickup field is set. */ @java.lang.Override public boolean hasCurbsidePickup() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
   * Output only. Specifies if the business supports curbside pickup.
   * 
* * optional bool curbside_pickup = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The curbsidePickup. */ @java.lang.Override public boolean getCurbsidePickup() { return curbsidePickup_; } public static final int RESERVABLE_FIELD_NUMBER = 38; private boolean reservable_ = false; /** * * *
   * Output only. Specifies if the place supports reservations.
   * 
* * optional bool reservable = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the reservable field is set. */ @java.lang.Override public boolean hasReservable() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
   * Output only. Specifies if the place supports reservations.
   * 
* * optional bool reservable = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The reservable. */ @java.lang.Override public boolean getReservable() { return reservable_; } public static final int SERVES_BREAKFAST_FIELD_NUMBER = 39; private boolean servesBreakfast_ = false; /** * * *
   * Output only. Specifies if the place serves breakfast.
   * 
* * optional bool serves_breakfast = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the servesBreakfast field is set. */ @java.lang.Override public boolean hasServesBreakfast() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
   * Output only. Specifies if the place serves breakfast.
   * 
* * optional bool serves_breakfast = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servesBreakfast. */ @java.lang.Override public boolean getServesBreakfast() { return servesBreakfast_; } public static final int SERVES_LUNCH_FIELD_NUMBER = 40; private boolean servesLunch_ = false; /** * * *
   * Output only. Specifies if the place serves lunch.
   * 
* * optional bool serves_lunch = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the servesLunch field is set. */ @java.lang.Override public boolean hasServesLunch() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
   * Output only. Specifies if the place serves lunch.
   * 
* * optional bool serves_lunch = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servesLunch. */ @java.lang.Override public boolean getServesLunch() { return servesLunch_; } public static final int SERVES_DINNER_FIELD_NUMBER = 41; private boolean servesDinner_ = false; /** * * *
   * Output only. Specifies if the place serves dinner.
   * 
* * optional bool serves_dinner = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the servesDinner field is set. */ @java.lang.Override public boolean hasServesDinner() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
   * Output only. Specifies if the place serves dinner.
   * 
* * optional bool serves_dinner = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servesDinner. */ @java.lang.Override public boolean getServesDinner() { return servesDinner_; } public static final int SERVES_BEER_FIELD_NUMBER = 42; private boolean servesBeer_ = false; /** * * *
   * Output only. Specifies if the place serves beer.
   * 
* * optional bool serves_beer = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the servesBeer field is set. */ @java.lang.Override public boolean hasServesBeer() { return ((bitField0_ & 0x00000400) != 0); } /** * * *
   * Output only. Specifies if the place serves beer.
   * 
* * optional bool serves_beer = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servesBeer. */ @java.lang.Override public boolean getServesBeer() { return servesBeer_; } public static final int SERVES_WINE_FIELD_NUMBER = 43; private boolean servesWine_ = false; /** * * *
   * Output only. Specifies if the place serves wine.
   * 
* * optional bool serves_wine = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the servesWine field is set. */ @java.lang.Override public boolean hasServesWine() { return ((bitField0_ & 0x00000800) != 0); } /** * * *
   * Output only. Specifies if the place serves wine.
   * 
* * optional bool serves_wine = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servesWine. */ @java.lang.Override public boolean getServesWine() { return servesWine_; } public static final int SERVES_BRUNCH_FIELD_NUMBER = 44; private boolean servesBrunch_ = false; /** * * *
   * Output only. Specifies if the place serves brunch.
   * 
* * optional bool serves_brunch = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the servesBrunch field is set. */ @java.lang.Override public boolean hasServesBrunch() { return ((bitField0_ & 0x00001000) != 0); } /** * * *
   * Output only. Specifies if the place serves brunch.
   * 
* * optional bool serves_brunch = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servesBrunch. */ @java.lang.Override public boolean getServesBrunch() { return servesBrunch_; } public static final int SERVES_VEGETARIAN_FOOD_FIELD_NUMBER = 45; private boolean servesVegetarianFood_ = false; /** * * *
   * Output only. Specifies if the place serves vegetarian food.
   * 
* * optional bool serves_vegetarian_food = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the servesVegetarianFood field is set. */ @java.lang.Override public boolean hasServesVegetarianFood() { return ((bitField0_ & 0x00002000) != 0); } /** * * *
   * Output only. Specifies if the place serves vegetarian food.
   * 
* * optional bool serves_vegetarian_food = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The servesVegetarianFood. */ @java.lang.Override public boolean getServesVegetarianFood() { return servesVegetarianFood_; } public static final int CURRENT_OPENING_HOURS_FIELD_NUMBER = 46; private com.google.maps.places.v1.Place.OpeningHours currentOpeningHours_; /** * * *
   * Output only. The hours of operation for the next seven days (including
   * today). The time period starts at midnight on the date of the request and
   * ends at 11:59 pm six days later. This field includes the special_days
   * subfield of all hours, set for dates that have exceptional hours.
   * 
* * * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the currentOpeningHours field is set. */ @java.lang.Override public boolean hasCurrentOpeningHours() { return currentOpeningHours_ != null; } /** * * *
   * Output only. The hours of operation for the next seven days (including
   * today). The time period starts at midnight on the date of the request and
   * ends at 11:59 pm six days later. This field includes the special_days
   * subfield of all hours, set for dates that have exceptional hours.
   * 
* * * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The currentOpeningHours. */ @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours getCurrentOpeningHours() { return currentOpeningHours_ == null ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() : currentOpeningHours_; } /** * * *
   * Output only. The hours of operation for the next seven days (including
   * today). The time period starts at midnight on the date of the request and
   * ends at 11:59 pm six days later. This field includes the special_days
   * subfield of all hours, set for dates that have exceptional hours.
   * 
* * * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getCurrentOpeningHoursOrBuilder() { return currentOpeningHours_ == null ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() : currentOpeningHours_; } public static final int CURRENT_SECONDARY_OPENING_HOURS_FIELD_NUMBER = 47; @SuppressWarnings("serial") private java.util.List currentSecondaryOpeningHours_; /** * * *
   * Output only. Contains an array of entries for the next seven days including
   * information about secondary hours of a business. Secondary hours are
   * different from a business's main hours. For example, a restaurant can
   * specify drive through hours or delivery hours as its secondary hours. This
   * field populates the type subfield, which draws from a predefined list of
   * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
   * the types of the place. This field includes the special_days subfield of
   * all hours, set for dates that have exceptional hours.
   * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getCurrentSecondaryOpeningHoursList() { return currentSecondaryOpeningHours_; } /** * * *
   * Output only. Contains an array of entries for the next seven days including
   * information about secondary hours of a business. Secondary hours are
   * different from a business's main hours. For example, a restaurant can
   * specify drive through hours or delivery hours as its secondary hours. This
   * field populates the type subfield, which draws from a predefined list of
   * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
   * the types of the place. This field includes the special_days subfield of
   * all hours, set for dates that have exceptional hours.
   * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getCurrentSecondaryOpeningHoursOrBuilderList() { return currentSecondaryOpeningHours_; } /** * * *
   * Output only. Contains an array of entries for the next seven days including
   * information about secondary hours of a business. Secondary hours are
   * different from a business's main hours. For example, a restaurant can
   * specify drive through hours or delivery hours as its secondary hours. This
   * field populates the type subfield, which draws from a predefined list of
   * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
   * the types of the place. This field includes the special_days subfield of
   * all hours, set for dates that have exceptional hours.
   * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public int getCurrentSecondaryOpeningHoursCount() { return currentSecondaryOpeningHours_.size(); } /** * * *
   * Output only. Contains an array of entries for the next seven days including
   * information about secondary hours of a business. Secondary hours are
   * different from a business's main hours. For example, a restaurant can
   * specify drive through hours or delivery hours as its secondary hours. This
   * field populates the type subfield, which draws from a predefined list of
   * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
   * the types of the place. This field includes the special_days subfield of
   * all hours, set for dates that have exceptional hours.
   * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours getCurrentSecondaryOpeningHours(int index) { return currentSecondaryOpeningHours_.get(index); } /** * * *
   * Output only. Contains an array of entries for the next seven days including
   * information about secondary hours of a business. Secondary hours are
   * different from a business's main hours. For example, a restaurant can
   * specify drive through hours or delivery hours as its secondary hours. This
   * field populates the type subfield, which draws from a predefined list of
   * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
   * the types of the place. This field includes the special_days subfield of
   * all hours, set for dates that have exceptional hours.
   * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getCurrentSecondaryOpeningHoursOrBuilder(int index) { return currentSecondaryOpeningHours_.get(index); } public static final int REGULAR_SECONDARY_OPENING_HOURS_FIELD_NUMBER = 49; @SuppressWarnings("serial") private java.util.List regularSecondaryOpeningHours_; /** * * *
   * Output only. Contains an array of entries for information about regular
   * secondary hours of a business. Secondary hours are different from a
   * business's main hours. For example, a restaurant can specify drive through
   * hours or delivery hours as its secondary hours. This field populates the
   * type subfield, which draws from a predefined list of opening hours types
   * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
   * place.
   * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getRegularSecondaryOpeningHoursList() { return regularSecondaryOpeningHours_; } /** * * *
   * Output only. Contains an array of entries for information about regular
   * secondary hours of a business. Secondary hours are different from a
   * business's main hours. For example, a restaurant can specify drive through
   * hours or delivery hours as its secondary hours. This field populates the
   * type subfield, which draws from a predefined list of opening hours types
   * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
   * place.
   * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getRegularSecondaryOpeningHoursOrBuilderList() { return regularSecondaryOpeningHours_; } /** * * *
   * Output only. Contains an array of entries for information about regular
   * secondary hours of a business. Secondary hours are different from a
   * business's main hours. For example, a restaurant can specify drive through
   * hours or delivery hours as its secondary hours. This field populates the
   * type subfield, which draws from a predefined list of opening hours types
   * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
   * place.
   * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public int getRegularSecondaryOpeningHoursCount() { return regularSecondaryOpeningHours_.size(); } /** * * *
   * Output only. Contains an array of entries for information about regular
   * secondary hours of a business. Secondary hours are different from a
   * business's main hours. For example, a restaurant can specify drive through
   * hours or delivery hours as its secondary hours. This field populates the
   * type subfield, which draws from a predefined list of opening hours types
   * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
   * place.
   * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.OpeningHours getRegularSecondaryOpeningHours(int index) { return regularSecondaryOpeningHours_.get(index); } /** * * *
   * Output only. Contains an array of entries for information about regular
   * secondary hours of a business. Secondary hours are different from a
   * business's main hours. For example, a restaurant can specify drive through
   * hours or delivery hours as its secondary hours. This field populates the
   * type subfield, which draws from a predefined list of opening hours types
   * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
   * place.
   * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularSecondaryOpeningHoursOrBuilder(int index) { return regularSecondaryOpeningHours_.get(index); } public static final int EDITORIAL_SUMMARY_FIELD_NUMBER = 52; private com.google.type.LocalizedText editorialSummary_; /** * * *
   * Output only. Contains a summary of the place. A summary is comprised of a
   * textual overview, and also includes the language code for these if
   * applicable. Summary text must be presented as-is and can not be modified or
   * altered.
   * 
* * * .google.type.LocalizedText editorial_summary = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the editorialSummary field is set. */ @java.lang.Override public boolean hasEditorialSummary() { return editorialSummary_ != null; } /** * * *
   * Output only. Contains a summary of the place. A summary is comprised of a
   * textual overview, and also includes the language code for these if
   * applicable. Summary text must be presented as-is and can not be modified or
   * altered.
   * 
* * * .google.type.LocalizedText editorial_summary = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The editorialSummary. */ @java.lang.Override public com.google.type.LocalizedText getEditorialSummary() { return editorialSummary_ == null ? com.google.type.LocalizedText.getDefaultInstance() : editorialSummary_; } /** * * *
   * Output only. Contains a summary of the place. A summary is comprised of a
   * textual overview, and also includes the language code for these if
   * applicable. Summary text must be presented as-is and can not be modified or
   * altered.
   * 
* * * .google.type.LocalizedText editorial_summary = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.type.LocalizedTextOrBuilder getEditorialSummaryOrBuilder() { return editorialSummary_ == null ? com.google.type.LocalizedText.getDefaultInstance() : editorialSummary_; } public static final int OUTDOOR_SEATING_FIELD_NUMBER = 55; private boolean outdoorSeating_ = false; /** * * *
   * Output only. Place provides outdoor seating.
   * 
* * optional bool outdoor_seating = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the outdoorSeating field is set. */ @java.lang.Override public boolean hasOutdoorSeating() { return ((bitField0_ & 0x00004000) != 0); } /** * * *
   * Output only. Place provides outdoor seating.
   * 
* * optional bool outdoor_seating = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The outdoorSeating. */ @java.lang.Override public boolean getOutdoorSeating() { return outdoorSeating_; } public static final int LIVE_MUSIC_FIELD_NUMBER = 56; private boolean liveMusic_ = false; /** * * *
   * Output only. Place provides live music.
   * 
* * optional bool live_music = 56 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the liveMusic field is set. */ @java.lang.Override public boolean hasLiveMusic() { return ((bitField0_ & 0x00008000) != 0); } /** * * *
   * Output only. Place provides live music.
   * 
* * optional bool live_music = 56 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The liveMusic. */ @java.lang.Override public boolean getLiveMusic() { return liveMusic_; } public static final int MENU_FOR_CHILDREN_FIELD_NUMBER = 57; private boolean menuForChildren_ = false; /** * * *
   * Output only. Place has a children's menu.
   * 
* * optional bool menu_for_children = 57 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the menuForChildren field is set. */ @java.lang.Override public boolean hasMenuForChildren() { return ((bitField0_ & 0x00010000) != 0); } /** * * *
   * Output only. Place has a children's menu.
   * 
* * optional bool menu_for_children = 57 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The menuForChildren. */ @java.lang.Override public boolean getMenuForChildren() { return menuForChildren_; } public static final int SERVES_COCKTAILS_FIELD_NUMBER = 58; private boolean servesCocktails_ = false; /** * * *
   * Output only. Place serves cocktails.
   * 
* * optional bool serves_cocktails = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the servesCocktails field is set. */ @java.lang.Override public boolean hasServesCocktails() { return ((bitField0_ & 0x00020000) != 0); } /** * * *
   * Output only. Place serves cocktails.
   * 
* * optional bool serves_cocktails = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servesCocktails. */ @java.lang.Override public boolean getServesCocktails() { return servesCocktails_; } public static final int SERVES_DESSERT_FIELD_NUMBER = 59; private boolean servesDessert_ = false; /** * * *
   * Output only. Place serves dessert.
   * 
* * optional bool serves_dessert = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the servesDessert field is set. */ @java.lang.Override public boolean hasServesDessert() { return ((bitField0_ & 0x00040000) != 0); } /** * * *
   * Output only. Place serves dessert.
   * 
* * optional bool serves_dessert = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servesDessert. */ @java.lang.Override public boolean getServesDessert() { return servesDessert_; } public static final int SERVES_COFFEE_FIELD_NUMBER = 60; private boolean servesCoffee_ = false; /** * * *
   * Output only. Place serves coffee.
   * 
* * optional bool serves_coffee = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the servesCoffee field is set. */ @java.lang.Override public boolean hasServesCoffee() { return ((bitField0_ & 0x00080000) != 0); } /** * * *
   * Output only. Place serves coffee.
   * 
* * optional bool serves_coffee = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servesCoffee. */ @java.lang.Override public boolean getServesCoffee() { return servesCoffee_; } public static final int GOOD_FOR_CHILDREN_FIELD_NUMBER = 62; private boolean goodForChildren_ = false; /** * * *
   * Output only. Place is good for children.
   * 
* * optional bool good_for_children = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the goodForChildren field is set. */ @java.lang.Override public boolean hasGoodForChildren() { return ((bitField0_ & 0x00100000) != 0); } /** * * *
   * Output only. Place is good for children.
   * 
* * optional bool good_for_children = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The goodForChildren. */ @java.lang.Override public boolean getGoodForChildren() { return goodForChildren_; } public static final int ALLOWS_DOGS_FIELD_NUMBER = 63; private boolean allowsDogs_ = false; /** * * *
   * Output only. Place allows dogs.
   * 
* * optional bool allows_dogs = 63 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the allowsDogs field is set. */ @java.lang.Override public boolean hasAllowsDogs() { return ((bitField0_ & 0x00200000) != 0); } /** * * *
   * Output only. Place allows dogs.
   * 
* * optional bool allows_dogs = 63 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The allowsDogs. */ @java.lang.Override public boolean getAllowsDogs() { return allowsDogs_; } public static final int RESTROOM_FIELD_NUMBER = 64; private boolean restroom_ = false; /** * * *
   * Output only. Place has restroom.
   * 
* * optional bool restroom = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the restroom field is set. */ @java.lang.Override public boolean hasRestroom() { return ((bitField0_ & 0x00400000) != 0); } /** * * *
   * Output only. Place has restroom.
   * 
* * optional bool restroom = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The restroom. */ @java.lang.Override public boolean getRestroom() { return restroom_; } public static final int GOOD_FOR_GROUPS_FIELD_NUMBER = 65; private boolean goodForGroups_ = false; /** * * *
   * Output only. Place accommodates groups.
   * 
* * optional bool good_for_groups = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the goodForGroups field is set. */ @java.lang.Override public boolean hasGoodForGroups() { return ((bitField0_ & 0x00800000) != 0); } /** * * *
   * Output only. Place accommodates groups.
   * 
* * optional bool good_for_groups = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The goodForGroups. */ @java.lang.Override public boolean getGoodForGroups() { return goodForGroups_; } public static final int GOOD_FOR_WATCHING_SPORTS_FIELD_NUMBER = 66; private boolean goodForWatchingSports_ = false; /** * * *
   * Output only. Place is suitable for watching sports.
   * 
* * optional bool good_for_watching_sports = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the goodForWatchingSports field is set. */ @java.lang.Override public boolean hasGoodForWatchingSports() { return ((bitField0_ & 0x01000000) != 0); } /** * * *
   * Output only. Place is suitable for watching sports.
   * 
* * optional bool good_for_watching_sports = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The goodForWatchingSports. */ @java.lang.Override public boolean getGoodForWatchingSports() { return goodForWatchingSports_; } public static final int PAYMENT_OPTIONS_FIELD_NUMBER = 67; private com.google.maps.places.v1.Place.PaymentOptions paymentOptions_; /** * * .google.maps.places.v1.Place.PaymentOptions payment_options = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the paymentOptions field is set. */ @java.lang.Override public boolean hasPaymentOptions() { return paymentOptions_ != null; } /** * * .google.maps.places.v1.Place.PaymentOptions payment_options = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The paymentOptions. */ @java.lang.Override public com.google.maps.places.v1.Place.PaymentOptions getPaymentOptions() { return paymentOptions_ == null ? com.google.maps.places.v1.Place.PaymentOptions.getDefaultInstance() : paymentOptions_; } /** * * .google.maps.places.v1.Place.PaymentOptions payment_options = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.PaymentOptionsOrBuilder getPaymentOptionsOrBuilder() { return paymentOptions_ == null ? com.google.maps.places.v1.Place.PaymentOptions.getDefaultInstance() : paymentOptions_; } public static final int PARKING_OPTIONS_FIELD_NUMBER = 70; private com.google.maps.places.v1.Place.ParkingOptions parkingOptions_; /** * * *
   * Output only. Options of parking provided by the place.
   * 
* * * .google.maps.places.v1.Place.ParkingOptions parking_options = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the parkingOptions field is set. */ @java.lang.Override public boolean hasParkingOptions() { return parkingOptions_ != null; } /** * * *
   * Output only. Options of parking provided by the place.
   * 
* * * .google.maps.places.v1.Place.ParkingOptions parking_options = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The parkingOptions. */ @java.lang.Override public com.google.maps.places.v1.Place.ParkingOptions getParkingOptions() { return parkingOptions_ == null ? com.google.maps.places.v1.Place.ParkingOptions.getDefaultInstance() : parkingOptions_; } /** * * *
   * Output only. Options of parking provided by the place.
   * 
* * * .google.maps.places.v1.Place.ParkingOptions parking_options = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.ParkingOptionsOrBuilder getParkingOptionsOrBuilder() { return parkingOptions_ == null ? com.google.maps.places.v1.Place.ParkingOptions.getDefaultInstance() : parkingOptions_; } public static final int SUB_DESTINATIONS_FIELD_NUMBER = 71; @SuppressWarnings("serial") private java.util.List subDestinations_; /** * * *
   * Output only. A list of sub destinations related to the place.
   * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getSubDestinationsList() { return subDestinations_; } /** * * *
   * Output only. A list of sub destinations related to the place.
   * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getSubDestinationsOrBuilderList() { return subDestinations_; } /** * * *
   * Output only. A list of sub destinations related to the place.
   * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public int getSubDestinationsCount() { return subDestinations_.size(); } /** * * *
   * Output only. A list of sub destinations related to the place.
   * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.SubDestination getSubDestinations(int index) { return subDestinations_.get(index); } /** * * *
   * Output only. A list of sub destinations related to the place.
   * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.SubDestinationOrBuilder getSubDestinationsOrBuilder( int index) { return subDestinations_.get(index); } public static final int ACCESSIBILITY_OPTIONS_FIELD_NUMBER = 72; private com.google.maps.places.v1.Place.AccessibilityOptions accessibilityOptions_; /** * * *
   * Output only. Information about the accessibility options a place offers.
   * 
* * * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the accessibilityOptions field is set. */ @java.lang.Override public boolean hasAccessibilityOptions() { return ((bitField0_ & 0x02000000) != 0); } /** * * *
   * Output only. Information about the accessibility options a place offers.
   * 
* * * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The accessibilityOptions. */ @java.lang.Override public com.google.maps.places.v1.Place.AccessibilityOptions getAccessibilityOptions() { return accessibilityOptions_ == null ? com.google.maps.places.v1.Place.AccessibilityOptions.getDefaultInstance() : accessibilityOptions_; } /** * * *
   * Output only. Information about the accessibility options a place offers.
   * 
* * * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.Place.AccessibilityOptionsOrBuilder getAccessibilityOptionsOrBuilder() { return accessibilityOptions_ == null ? com.google.maps.places.v1.Place.AccessibilityOptions.getDefaultInstance() : accessibilityOptions_; } public static final int FUEL_OPTIONS_FIELD_NUMBER = 78; private com.google.maps.places.v1.FuelOptions fuelOptions_; /** * * *
   * Output only. The most recent information about fuel options in a gas
   * station. This information is updated regularly.
   * 
* * * .google.maps.places.v1.FuelOptions fuel_options = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the fuelOptions field is set. */ @java.lang.Override public boolean hasFuelOptions() { return fuelOptions_ != null; } /** * * *
   * Output only. The most recent information about fuel options in a gas
   * station. This information is updated regularly.
   * 
* * * .google.maps.places.v1.FuelOptions fuel_options = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The fuelOptions. */ @java.lang.Override public com.google.maps.places.v1.FuelOptions getFuelOptions() { return fuelOptions_ == null ? com.google.maps.places.v1.FuelOptions.getDefaultInstance() : fuelOptions_; } /** * * *
   * Output only. The most recent information about fuel options in a gas
   * station. This information is updated regularly.
   * 
* * * .google.maps.places.v1.FuelOptions fuel_options = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.FuelOptionsOrBuilder getFuelOptionsOrBuilder() { return fuelOptions_ == null ? com.google.maps.places.v1.FuelOptions.getDefaultInstance() : fuelOptions_; } public static final int EV_CHARGE_OPTIONS_FIELD_NUMBER = 79; private com.google.maps.places.v1.EVChargeOptions evChargeOptions_; /** * * *
   * Output only. Information of ev charging options.
   * 
* * * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the evChargeOptions field is set. */ @java.lang.Override public boolean hasEvChargeOptions() { return evChargeOptions_ != null; } /** * * *
   * Output only. Information of ev charging options.
   * 
* * * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The evChargeOptions. */ @java.lang.Override public com.google.maps.places.v1.EVChargeOptions getEvChargeOptions() { return evChargeOptions_ == null ? com.google.maps.places.v1.EVChargeOptions.getDefaultInstance() : evChargeOptions_; } /** * * *
   * Output only. Information of ev charging options.
   * 
* * * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.maps.places.v1.EVChargeOptionsOrBuilder getEvChargeOptionsOrBuilder() { return evChargeOptions_ == null ? com.google.maps.places.v1.EVChargeOptions.getDefaultInstance() : evChargeOptions_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } for (int i = 0; i < types_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, types_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nationalPhoneNumber_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, nationalPhoneNumber_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internationalPhoneNumber_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, internationalPhoneNumber_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, formattedAddress_); } for (int i = 0; i < addressComponents_.size(); i++) { output.writeMessage(10, addressComponents_.get(i)); } if (plusCode_ != null) { output.writeMessage(11, getPlusCode()); } if (location_ != null) { output.writeMessage(12, getLocation()); } if (viewport_ != null) { output.writeMessage(13, getViewport()); } if (java.lang.Double.doubleToRawLongBits(rating_) != 0) { output.writeDouble(14, rating_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleMapsUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, googleMapsUri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(websiteUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, websiteUri_); } if (regularOpeningHours_ != null) { output.writeMessage(21, getRegularOpeningHours()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(22, utcOffsetMinutes_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adrFormatAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 24, adrFormatAddress_); } if (businessStatus_ != com.google.maps.places.v1.Place.BusinessStatus.BUSINESS_STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(25, businessStatus_); } if (priceLevel_ != com.google.maps.places.v1.PriceLevel.PRICE_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(26, priceLevel_); } for (int i = 0; i < attributions_.size(); i++) { output.writeMessage(27, attributions_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(28, userRatingCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconMaskBaseUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 29, iconMaskBaseUri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconBackgroundColor_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 30, iconBackgroundColor_); } if (displayName_ != null) { output.writeMessage(31, getDisplayName()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(33, takeout_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(34, delivery_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(35, dineIn_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(36, curbsidePickup_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(38, reservable_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(39, servesBreakfast_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeBool(40, servesLunch_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeBool(41, servesDinner_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeBool(42, servesBeer_); } if (((bitField0_ & 0x00000800) != 0)) { output.writeBool(43, servesWine_); } if (((bitField0_ & 0x00001000) != 0)) { output.writeBool(44, servesBrunch_); } if (((bitField0_ & 0x00002000) != 0)) { output.writeBool(45, servesVegetarianFood_); } if (currentOpeningHours_ != null) { output.writeMessage(46, getCurrentOpeningHours()); } for (int i = 0; i < currentSecondaryOpeningHours_.size(); i++) { output.writeMessage(47, currentSecondaryOpeningHours_.get(i)); } for (int i = 0; i < regularSecondaryOpeningHours_.size(); i++) { output.writeMessage(49, regularSecondaryOpeningHours_.get(i)); } if (editorialSummary_ != null) { output.writeMessage(52, getEditorialSummary()); } for (int i = 0; i < reviews_.size(); i++) { output.writeMessage(53, reviews_.get(i)); } for (int i = 0; i < photos_.size(); i++) { output.writeMessage(54, photos_.get(i)); } if (((bitField0_ & 0x00004000) != 0)) { output.writeBool(55, outdoorSeating_); } if (((bitField0_ & 0x00008000) != 0)) { output.writeBool(56, liveMusic_); } if (((bitField0_ & 0x00010000) != 0)) { output.writeBool(57, menuForChildren_); } if (((bitField0_ & 0x00020000) != 0)) { output.writeBool(58, servesCocktails_); } if (((bitField0_ & 0x00040000) != 0)) { output.writeBool(59, servesDessert_); } if (((bitField0_ & 0x00080000) != 0)) { output.writeBool(60, servesCoffee_); } if (((bitField0_ & 0x00100000) != 0)) { output.writeBool(62, goodForChildren_); } if (((bitField0_ & 0x00200000) != 0)) { output.writeBool(63, allowsDogs_); } if (((bitField0_ & 0x00400000) != 0)) { output.writeBool(64, restroom_); } if (((bitField0_ & 0x00800000) != 0)) { output.writeBool(65, goodForGroups_); } if (((bitField0_ & 0x01000000) != 0)) { output.writeBool(66, goodForWatchingSports_); } if (paymentOptions_ != null) { output.writeMessage(67, getPaymentOptions()); } if (parkingOptions_ != null) { output.writeMessage(70, getParkingOptions()); } for (int i = 0; i < subDestinations_.size(); i++) { output.writeMessage(71, subDestinations_.get(i)); } if (((bitField0_ & 0x02000000) != 0)) { output.writeMessage(72, getAccessibilityOptions()); } if (fuelOptions_ != null) { output.writeMessage(78, getFuelOptions()); } if (evChargeOptions_ != null) { output.writeMessage(79, getEvChargeOptions()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } { int dataSize = 0; for (int i = 0; i < types_.size(); i++) { dataSize += computeStringSizeNoTag(types_.getRaw(i)); } size += dataSize; size += 1 * getTypesList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nationalPhoneNumber_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, nationalPhoneNumber_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internationalPhoneNumber_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, internationalPhoneNumber_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, formattedAddress_); } for (int i = 0; i < addressComponents_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, addressComponents_.get(i)); } if (plusCode_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getPlusCode()); } if (location_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getLocation()); } if (viewport_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getViewport()); } if (java.lang.Double.doubleToRawLongBits(rating_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(14, rating_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleMapsUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, googleMapsUri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(websiteUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, websiteUri_); } if (regularOpeningHours_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getRegularOpeningHours()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(22, utcOffsetMinutes_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adrFormatAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, adrFormatAddress_); } if (businessStatus_ != com.google.maps.places.v1.Place.BusinessStatus.BUSINESS_STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(25, businessStatus_); } if (priceLevel_ != com.google.maps.places.v1.PriceLevel.PRICE_LEVEL_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(26, priceLevel_); } for (int i = 0; i < attributions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, attributions_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(28, userRatingCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconMaskBaseUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, iconMaskBaseUri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconBackgroundColor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, iconBackgroundColor_); } if (displayName_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getDisplayName()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(33, takeout_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(34, delivery_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(35, dineIn_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(36, curbsidePickup_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(38, reservable_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(39, servesBreakfast_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(40, servesLunch_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(41, servesDinner_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(42, servesBeer_); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(43, servesWine_); } if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(44, servesBrunch_); } if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(45, servesVegetarianFood_); } if (currentOpeningHours_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(46, getCurrentOpeningHours()); } for (int i = 0; i < currentSecondaryOpeningHours_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 47, currentSecondaryOpeningHours_.get(i)); } for (int i = 0; i < regularSecondaryOpeningHours_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 49, regularSecondaryOpeningHours_.get(i)); } if (editorialSummary_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(52, getEditorialSummary()); } for (int i = 0; i < reviews_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(53, reviews_.get(i)); } for (int i = 0; i < photos_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(54, photos_.get(i)); } if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(55, outdoorSeating_); } if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(56, liveMusic_); } if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(57, menuForChildren_); } if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(58, servesCocktails_); } if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(59, servesDessert_); } if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(60, servesCoffee_); } if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(62, goodForChildren_); } if (((bitField0_ & 0x00200000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(63, allowsDogs_); } if (((bitField0_ & 0x00400000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(64, restroom_); } if (((bitField0_ & 0x00800000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(65, goodForGroups_); } if (((bitField0_ & 0x01000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(66, goodForWatchingSports_); } if (paymentOptions_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(67, getPaymentOptions()); } if (parkingOptions_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(70, getParkingOptions()); } for (int i = 0; i < subDestinations_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(71, subDestinations_.get(i)); } if (((bitField0_ & 0x02000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(72, getAccessibilityOptions()); } if (fuelOptions_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(78, getFuelOptions()); } if (evChargeOptions_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(79, getEvChargeOptions()); } size += getUnknownFields().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.maps.places.v1.Place)) { return super.equals(obj); } com.google.maps.places.v1.Place other = (com.google.maps.places.v1.Place) obj; if (!getName().equals(other.getName())) return false; if (!getId().equals(other.getId())) return false; if (hasDisplayName() != other.hasDisplayName()) return false; if (hasDisplayName()) { if (!getDisplayName().equals(other.getDisplayName())) return false; } if (!getTypesList().equals(other.getTypesList())) return false; if (!getNationalPhoneNumber().equals(other.getNationalPhoneNumber())) return false; if (!getInternationalPhoneNumber().equals(other.getInternationalPhoneNumber())) return false; if (!getFormattedAddress().equals(other.getFormattedAddress())) return false; if (!getAddressComponentsList().equals(other.getAddressComponentsList())) return false; if (hasPlusCode() != other.hasPlusCode()) return false; if (hasPlusCode()) { if (!getPlusCode().equals(other.getPlusCode())) return false; } if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation().equals(other.getLocation())) return false; } if (hasViewport() != other.hasViewport()) return false; if (hasViewport()) { if (!getViewport().equals(other.getViewport())) return false; } if (java.lang.Double.doubleToLongBits(getRating()) != java.lang.Double.doubleToLongBits(other.getRating())) return false; if (!getGoogleMapsUri().equals(other.getGoogleMapsUri())) return false; if (!getWebsiteUri().equals(other.getWebsiteUri())) return false; if (!getReviewsList().equals(other.getReviewsList())) return false; if (hasRegularOpeningHours() != other.hasRegularOpeningHours()) return false; if (hasRegularOpeningHours()) { if (!getRegularOpeningHours().equals(other.getRegularOpeningHours())) return false; } if (hasUtcOffsetMinutes() != other.hasUtcOffsetMinutes()) return false; if (hasUtcOffsetMinutes()) { if (getUtcOffsetMinutes() != other.getUtcOffsetMinutes()) return false; } if (!getPhotosList().equals(other.getPhotosList())) return false; if (!getAdrFormatAddress().equals(other.getAdrFormatAddress())) return false; if (businessStatus_ != other.businessStatus_) return false; if (priceLevel_ != other.priceLevel_) return false; if (!getAttributionsList().equals(other.getAttributionsList())) return false; if (hasUserRatingCount() != other.hasUserRatingCount()) return false; if (hasUserRatingCount()) { if (getUserRatingCount() != other.getUserRatingCount()) return false; } if (!getIconMaskBaseUri().equals(other.getIconMaskBaseUri())) return false; if (!getIconBackgroundColor().equals(other.getIconBackgroundColor())) return false; if (hasTakeout() != other.hasTakeout()) return false; if (hasTakeout()) { if (getTakeout() != other.getTakeout()) return false; } if (hasDelivery() != other.hasDelivery()) return false; if (hasDelivery()) { if (getDelivery() != other.getDelivery()) return false; } if (hasDineIn() != other.hasDineIn()) return false; if (hasDineIn()) { if (getDineIn() != other.getDineIn()) return false; } if (hasCurbsidePickup() != other.hasCurbsidePickup()) return false; if (hasCurbsidePickup()) { if (getCurbsidePickup() != other.getCurbsidePickup()) return false; } if (hasReservable() != other.hasReservable()) return false; if (hasReservable()) { if (getReservable() != other.getReservable()) return false; } if (hasServesBreakfast() != other.hasServesBreakfast()) return false; if (hasServesBreakfast()) { if (getServesBreakfast() != other.getServesBreakfast()) return false; } if (hasServesLunch() != other.hasServesLunch()) return false; if (hasServesLunch()) { if (getServesLunch() != other.getServesLunch()) return false; } if (hasServesDinner() != other.hasServesDinner()) return false; if (hasServesDinner()) { if (getServesDinner() != other.getServesDinner()) return false; } if (hasServesBeer() != other.hasServesBeer()) return false; if (hasServesBeer()) { if (getServesBeer() != other.getServesBeer()) return false; } if (hasServesWine() != other.hasServesWine()) return false; if (hasServesWine()) { if (getServesWine() != other.getServesWine()) return false; } if (hasServesBrunch() != other.hasServesBrunch()) return false; if (hasServesBrunch()) { if (getServesBrunch() != other.getServesBrunch()) return false; } if (hasServesVegetarianFood() != other.hasServesVegetarianFood()) return false; if (hasServesVegetarianFood()) { if (getServesVegetarianFood() != other.getServesVegetarianFood()) return false; } if (hasCurrentOpeningHours() != other.hasCurrentOpeningHours()) return false; if (hasCurrentOpeningHours()) { if (!getCurrentOpeningHours().equals(other.getCurrentOpeningHours())) return false; } if (!getCurrentSecondaryOpeningHoursList().equals(other.getCurrentSecondaryOpeningHoursList())) return false; if (!getRegularSecondaryOpeningHoursList().equals(other.getRegularSecondaryOpeningHoursList())) return false; if (hasEditorialSummary() != other.hasEditorialSummary()) return false; if (hasEditorialSummary()) { if (!getEditorialSummary().equals(other.getEditorialSummary())) return false; } if (hasOutdoorSeating() != other.hasOutdoorSeating()) return false; if (hasOutdoorSeating()) { if (getOutdoorSeating() != other.getOutdoorSeating()) return false; } if (hasLiveMusic() != other.hasLiveMusic()) return false; if (hasLiveMusic()) { if (getLiveMusic() != other.getLiveMusic()) return false; } if (hasMenuForChildren() != other.hasMenuForChildren()) return false; if (hasMenuForChildren()) { if (getMenuForChildren() != other.getMenuForChildren()) return false; } if (hasServesCocktails() != other.hasServesCocktails()) return false; if (hasServesCocktails()) { if (getServesCocktails() != other.getServesCocktails()) return false; } if (hasServesDessert() != other.hasServesDessert()) return false; if (hasServesDessert()) { if (getServesDessert() != other.getServesDessert()) return false; } if (hasServesCoffee() != other.hasServesCoffee()) return false; if (hasServesCoffee()) { if (getServesCoffee() != other.getServesCoffee()) return false; } if (hasGoodForChildren() != other.hasGoodForChildren()) return false; if (hasGoodForChildren()) { if (getGoodForChildren() != other.getGoodForChildren()) return false; } if (hasAllowsDogs() != other.hasAllowsDogs()) return false; if (hasAllowsDogs()) { if (getAllowsDogs() != other.getAllowsDogs()) return false; } if (hasRestroom() != other.hasRestroom()) return false; if (hasRestroom()) { if (getRestroom() != other.getRestroom()) return false; } if (hasGoodForGroups() != other.hasGoodForGroups()) return false; if (hasGoodForGroups()) { if (getGoodForGroups() != other.getGoodForGroups()) return false; } if (hasGoodForWatchingSports() != other.hasGoodForWatchingSports()) return false; if (hasGoodForWatchingSports()) { if (getGoodForWatchingSports() != other.getGoodForWatchingSports()) return false; } if (hasPaymentOptions() != other.hasPaymentOptions()) return false; if (hasPaymentOptions()) { if (!getPaymentOptions().equals(other.getPaymentOptions())) return false; } if (hasParkingOptions() != other.hasParkingOptions()) return false; if (hasParkingOptions()) { if (!getParkingOptions().equals(other.getParkingOptions())) return false; } if (!getSubDestinationsList().equals(other.getSubDestinationsList())) return false; if (hasAccessibilityOptions() != other.hasAccessibilityOptions()) return false; if (hasAccessibilityOptions()) { if (!getAccessibilityOptions().equals(other.getAccessibilityOptions())) return false; } if (hasFuelOptions() != other.hasFuelOptions()) return false; if (hasFuelOptions()) { if (!getFuelOptions().equals(other.getFuelOptions())) return false; } if (hasEvChargeOptions() != other.hasEvChargeOptions()) return false; if (hasEvChargeOptions()) { if (!getEvChargeOptions().equals(other.getEvChargeOptions())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); if (hasDisplayName()) { hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); } if (getTypesCount() > 0) { hash = (37 * hash) + TYPES_FIELD_NUMBER; hash = (53 * hash) + getTypesList().hashCode(); } hash = (37 * hash) + NATIONAL_PHONE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getNationalPhoneNumber().hashCode(); hash = (37 * hash) + INTERNATIONAL_PHONE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getInternationalPhoneNumber().hashCode(); hash = (37 * hash) + FORMATTED_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getFormattedAddress().hashCode(); if (getAddressComponentsCount() > 0) { hash = (37 * hash) + ADDRESS_COMPONENTS_FIELD_NUMBER; hash = (53 * hash) + getAddressComponentsList().hashCode(); } if (hasPlusCode()) { hash = (37 * hash) + PLUS_CODE_FIELD_NUMBER; hash = (53 * hash) + getPlusCode().hashCode(); } if (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } if (hasViewport()) { hash = (37 * hash) + VIEWPORT_FIELD_NUMBER; hash = (53 * hash) + getViewport().hashCode(); } hash = (37 * hash) + RATING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getRating())); hash = (37 * hash) + GOOGLE_MAPS_URI_FIELD_NUMBER; hash = (53 * hash) + getGoogleMapsUri().hashCode(); hash = (37 * hash) + WEBSITE_URI_FIELD_NUMBER; hash = (53 * hash) + getWebsiteUri().hashCode(); if (getReviewsCount() > 0) { hash = (37 * hash) + REVIEWS_FIELD_NUMBER; hash = (53 * hash) + getReviewsList().hashCode(); } if (hasRegularOpeningHours()) { hash = (37 * hash) + REGULAR_OPENING_HOURS_FIELD_NUMBER; hash = (53 * hash) + getRegularOpeningHours().hashCode(); } if (hasUtcOffsetMinutes()) { hash = (37 * hash) + UTC_OFFSET_MINUTES_FIELD_NUMBER; hash = (53 * hash) + getUtcOffsetMinutes(); } if (getPhotosCount() > 0) { hash = (37 * hash) + PHOTOS_FIELD_NUMBER; hash = (53 * hash) + getPhotosList().hashCode(); } hash = (37 * hash) + ADR_FORMAT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAdrFormatAddress().hashCode(); hash = (37 * hash) + BUSINESS_STATUS_FIELD_NUMBER; hash = (53 * hash) + businessStatus_; hash = (37 * hash) + PRICE_LEVEL_FIELD_NUMBER; hash = (53 * hash) + priceLevel_; if (getAttributionsCount() > 0) { hash = (37 * hash) + ATTRIBUTIONS_FIELD_NUMBER; hash = (53 * hash) + getAttributionsList().hashCode(); } if (hasUserRatingCount()) { hash = (37 * hash) + USER_RATING_COUNT_FIELD_NUMBER; hash = (53 * hash) + getUserRatingCount(); } hash = (37 * hash) + ICON_MASK_BASE_URI_FIELD_NUMBER; hash = (53 * hash) + getIconMaskBaseUri().hashCode(); hash = (37 * hash) + ICON_BACKGROUND_COLOR_FIELD_NUMBER; hash = (53 * hash) + getIconBackgroundColor().hashCode(); if (hasTakeout()) { hash = (37 * hash) + TAKEOUT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTakeout()); } if (hasDelivery()) { hash = (37 * hash) + DELIVERY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDelivery()); } if (hasDineIn()) { hash = (37 * hash) + DINE_IN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDineIn()); } if (hasCurbsidePickup()) { hash = (37 * hash) + CURBSIDE_PICKUP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCurbsidePickup()); } if (hasReservable()) { hash = (37 * hash) + RESERVABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReservable()); } if (hasServesBreakfast()) { hash = (37 * hash) + SERVES_BREAKFAST_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesBreakfast()); } if (hasServesLunch()) { hash = (37 * hash) + SERVES_LUNCH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesLunch()); } if (hasServesDinner()) { hash = (37 * hash) + SERVES_DINNER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesDinner()); } if (hasServesBeer()) { hash = (37 * hash) + SERVES_BEER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesBeer()); } if (hasServesWine()) { hash = (37 * hash) + SERVES_WINE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesWine()); } if (hasServesBrunch()) { hash = (37 * hash) + SERVES_BRUNCH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesBrunch()); } if (hasServesVegetarianFood()) { hash = (37 * hash) + SERVES_VEGETARIAN_FOOD_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesVegetarianFood()); } if (hasCurrentOpeningHours()) { hash = (37 * hash) + CURRENT_OPENING_HOURS_FIELD_NUMBER; hash = (53 * hash) + getCurrentOpeningHours().hashCode(); } if (getCurrentSecondaryOpeningHoursCount() > 0) { hash = (37 * hash) + CURRENT_SECONDARY_OPENING_HOURS_FIELD_NUMBER; hash = (53 * hash) + getCurrentSecondaryOpeningHoursList().hashCode(); } if (getRegularSecondaryOpeningHoursCount() > 0) { hash = (37 * hash) + REGULAR_SECONDARY_OPENING_HOURS_FIELD_NUMBER; hash = (53 * hash) + getRegularSecondaryOpeningHoursList().hashCode(); } if (hasEditorialSummary()) { hash = (37 * hash) + EDITORIAL_SUMMARY_FIELD_NUMBER; hash = (53 * hash) + getEditorialSummary().hashCode(); } if (hasOutdoorSeating()) { hash = (37 * hash) + OUTDOOR_SEATING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOutdoorSeating()); } if (hasLiveMusic()) { hash = (37 * hash) + LIVE_MUSIC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLiveMusic()); } if (hasMenuForChildren()) { hash = (37 * hash) + MENU_FOR_CHILDREN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMenuForChildren()); } if (hasServesCocktails()) { hash = (37 * hash) + SERVES_COCKTAILS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesCocktails()); } if (hasServesDessert()) { hash = (37 * hash) + SERVES_DESSERT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesDessert()); } if (hasServesCoffee()) { hash = (37 * hash) + SERVES_COFFEE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesCoffee()); } if (hasGoodForChildren()) { hash = (37 * hash) + GOOD_FOR_CHILDREN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGoodForChildren()); } if (hasAllowsDogs()) { hash = (37 * hash) + ALLOWS_DOGS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowsDogs()); } if (hasRestroom()) { hash = (37 * hash) + RESTROOM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRestroom()); } if (hasGoodForGroups()) { hash = (37 * hash) + GOOD_FOR_GROUPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGoodForGroups()); } if (hasGoodForWatchingSports()) { hash = (37 * hash) + GOOD_FOR_WATCHING_SPORTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGoodForWatchingSports()); } if (hasPaymentOptions()) { hash = (37 * hash) + PAYMENT_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getPaymentOptions().hashCode(); } if (hasParkingOptions()) { hash = (37 * hash) + PARKING_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getParkingOptions().hashCode(); } if (getSubDestinationsCount() > 0) { hash = (37 * hash) + SUB_DESTINATIONS_FIELD_NUMBER; hash = (53 * hash) + getSubDestinationsList().hashCode(); } if (hasAccessibilityOptions()) { hash = (37 * hash) + ACCESSIBILITY_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getAccessibilityOptions().hashCode(); } if (hasFuelOptions()) { hash = (37 * hash) + FUEL_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getFuelOptions().hashCode(); } if (hasEvChargeOptions()) { hash = (37 * hash) + EV_CHARGE_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getEvChargeOptions().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.maps.places.v1.Place parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place 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.maps.places.v1.Place parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.maps.places.v1.Place parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.maps.places.v1.Place parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place 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.maps.places.v1.Place parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place 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.maps.places.v1.Place parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.maps.places.v1.Place 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.maps.places.v1.Place 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; } /** * * *
   * All the information representing a Place.
   * 
* * Protobuf type {@code google.maps.places.v1.Place} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place) com.google.maps.places.v1.PlaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.maps.places.v1.Place.class, com.google.maps.places.v1.Place.Builder.class); } // Construct using com.google.maps.places.v1.Place.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDisplayNameFieldBuilder(); getAddressComponentsFieldBuilder(); getPlusCodeFieldBuilder(); getLocationFieldBuilder(); getViewportFieldBuilder(); getReviewsFieldBuilder(); getRegularOpeningHoursFieldBuilder(); getPhotosFieldBuilder(); getAttributionsFieldBuilder(); getCurrentOpeningHoursFieldBuilder(); getCurrentSecondaryOpeningHoursFieldBuilder(); getRegularSecondaryOpeningHoursFieldBuilder(); getEditorialSummaryFieldBuilder(); getPaymentOptionsFieldBuilder(); getParkingOptionsFieldBuilder(); getSubDestinationsFieldBuilder(); getAccessibilityOptionsFieldBuilder(); getFuelOptionsFieldBuilder(); getEvChargeOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; bitField1_ = 0; name_ = ""; id_ = ""; displayName_ = null; if (displayNameBuilder_ != null) { displayNameBuilder_.dispose(); displayNameBuilder_ = null; } types_ = com.google.protobuf.LazyStringArrayList.emptyList(); nationalPhoneNumber_ = ""; internationalPhoneNumber_ = ""; formattedAddress_ = ""; if (addressComponentsBuilder_ == null) { addressComponents_ = java.util.Collections.emptyList(); } else { addressComponents_ = null; addressComponentsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); plusCode_ = null; if (plusCodeBuilder_ != null) { plusCodeBuilder_.dispose(); plusCodeBuilder_ = null; } location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } viewport_ = null; if (viewportBuilder_ != null) { viewportBuilder_.dispose(); viewportBuilder_ = null; } rating_ = 0D; googleMapsUri_ = ""; websiteUri_ = ""; if (reviewsBuilder_ == null) { reviews_ = java.util.Collections.emptyList(); } else { reviews_ = null; reviewsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); regularOpeningHours_ = null; if (regularOpeningHoursBuilder_ != null) { regularOpeningHoursBuilder_.dispose(); regularOpeningHoursBuilder_ = null; } utcOffsetMinutes_ = 0; if (photosBuilder_ == null) { photos_ = java.util.Collections.emptyList(); } else { photos_ = null; photosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00020000); adrFormatAddress_ = ""; businessStatus_ = 0; priceLevel_ = 0; if (attributionsBuilder_ == null) { attributions_ = java.util.Collections.emptyList(); } else { attributions_ = null; attributionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00200000); userRatingCount_ = 0; iconMaskBaseUri_ = ""; iconBackgroundColor_ = ""; takeout_ = false; delivery_ = false; dineIn_ = false; curbsidePickup_ = false; reservable_ = false; servesBreakfast_ = false; servesLunch_ = false; servesDinner_ = false; servesBeer_ = false; servesWine_ = false; servesBrunch_ = false; servesVegetarianFood_ = false; currentOpeningHours_ = null; if (currentOpeningHoursBuilder_ != null) { currentOpeningHoursBuilder_.dispose(); currentOpeningHoursBuilder_ = null; } if (currentSecondaryOpeningHoursBuilder_ == null) { currentSecondaryOpeningHours_ = java.util.Collections.emptyList(); } else { currentSecondaryOpeningHours_ = null; currentSecondaryOpeningHoursBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000040); if (regularSecondaryOpeningHoursBuilder_ == null) { regularSecondaryOpeningHours_ = java.util.Collections.emptyList(); } else { regularSecondaryOpeningHours_ = null; regularSecondaryOpeningHoursBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000080); editorialSummary_ = null; if (editorialSummaryBuilder_ != null) { editorialSummaryBuilder_.dispose(); editorialSummaryBuilder_ = null; } outdoorSeating_ = false; liveMusic_ = false; menuForChildren_ = false; servesCocktails_ = false; servesDessert_ = false; servesCoffee_ = false; goodForChildren_ = false; allowsDogs_ = false; restroom_ = false; goodForGroups_ = false; goodForWatchingSports_ = false; paymentOptions_ = null; if (paymentOptionsBuilder_ != null) { paymentOptionsBuilder_.dispose(); paymentOptionsBuilder_ = null; } parkingOptions_ = null; if (parkingOptionsBuilder_ != null) { parkingOptionsBuilder_.dispose(); parkingOptionsBuilder_ = null; } if (subDestinationsBuilder_ == null) { subDestinations_ = java.util.Collections.emptyList(); } else { subDestinations_ = null; subDestinationsBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00400000); accessibilityOptions_ = null; if (accessibilityOptionsBuilder_ != null) { accessibilityOptionsBuilder_.dispose(); accessibilityOptionsBuilder_ = null; } fuelOptions_ = null; if (fuelOptionsBuilder_ != null) { fuelOptionsBuilder_.dispose(); fuelOptionsBuilder_ = null; } evChargeOptions_ = null; if (evChargeOptionsBuilder_ != null) { evChargeOptionsBuilder_.dispose(); evChargeOptionsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.maps.places.v1.PlaceProto .internal_static_google_maps_places_v1_Place_descriptor; } @java.lang.Override public com.google.maps.places.v1.Place getDefaultInstanceForType() { return com.google.maps.places.v1.Place.getDefaultInstance(); } @java.lang.Override public com.google.maps.places.v1.Place build() { com.google.maps.places.v1.Place result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.maps.places.v1.Place buildPartial() { com.google.maps.places.v1.Place result = new com.google.maps.places.v1.Place(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } if (bitField1_ != 0) { buildPartial1(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.maps.places.v1.Place result) { if (addressComponentsBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { addressComponents_ = java.util.Collections.unmodifiableList(addressComponents_); bitField0_ = (bitField0_ & ~0x00000080); } result.addressComponents_ = addressComponents_; } else { result.addressComponents_ = addressComponentsBuilder_.build(); } if (reviewsBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0)) { reviews_ = java.util.Collections.unmodifiableList(reviews_); bitField0_ = (bitField0_ & ~0x00004000); } result.reviews_ = reviews_; } else { result.reviews_ = reviewsBuilder_.build(); } if (photosBuilder_ == null) { if (((bitField0_ & 0x00020000) != 0)) { photos_ = java.util.Collections.unmodifiableList(photos_); bitField0_ = (bitField0_ & ~0x00020000); } result.photos_ = photos_; } else { result.photos_ = photosBuilder_.build(); } if (attributionsBuilder_ == null) { if (((bitField0_ & 0x00200000) != 0)) { attributions_ = java.util.Collections.unmodifiableList(attributions_); bitField0_ = (bitField0_ & ~0x00200000); } result.attributions_ = attributions_; } else { result.attributions_ = attributionsBuilder_.build(); } if (currentSecondaryOpeningHoursBuilder_ == null) { if (((bitField1_ & 0x00000040) != 0)) { currentSecondaryOpeningHours_ = java.util.Collections.unmodifiableList(currentSecondaryOpeningHours_); bitField1_ = (bitField1_ & ~0x00000040); } result.currentSecondaryOpeningHours_ = currentSecondaryOpeningHours_; } else { result.currentSecondaryOpeningHours_ = currentSecondaryOpeningHoursBuilder_.build(); } if (regularSecondaryOpeningHoursBuilder_ == null) { if (((bitField1_ & 0x00000080) != 0)) { regularSecondaryOpeningHours_ = java.util.Collections.unmodifiableList(regularSecondaryOpeningHours_); bitField1_ = (bitField1_ & ~0x00000080); } result.regularSecondaryOpeningHours_ = regularSecondaryOpeningHours_; } else { result.regularSecondaryOpeningHours_ = regularSecondaryOpeningHoursBuilder_.build(); } if (subDestinationsBuilder_ == null) { if (((bitField1_ & 0x00400000) != 0)) { subDestinations_ = java.util.Collections.unmodifiableList(subDestinations_); bitField1_ = (bitField1_ & ~0x00400000); } result.subDestinations_ = subDestinations_; } else { result.subDestinations_ = subDestinationsBuilder_.build(); } } private void buildPartial0(com.google.maps.places.v1.Place result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.displayName_ = displayNameBuilder_ == null ? displayName_ : displayNameBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { types_.makeImmutable(); result.types_ = types_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.nationalPhoneNumber_ = nationalPhoneNumber_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.internationalPhoneNumber_ = internationalPhoneNumber_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.formattedAddress_ = formattedAddress_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.plusCode_ = plusCodeBuilder_ == null ? plusCode_ : plusCodeBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.viewport_ = viewportBuilder_ == null ? viewport_ : viewportBuilder_.build(); } if (((from_bitField0_ & 0x00000800) != 0)) { result.rating_ = rating_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.googleMapsUri_ = googleMapsUri_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.websiteUri_ = websiteUri_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.regularOpeningHours_ = regularOpeningHoursBuilder_ == null ? regularOpeningHours_ : regularOpeningHoursBuilder_.build(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00010000) != 0)) { result.utcOffsetMinutes_ = utcOffsetMinutes_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00040000) != 0)) { result.adrFormatAddress_ = adrFormatAddress_; } if (((from_bitField0_ & 0x00080000) != 0)) { result.businessStatus_ = businessStatus_; } if (((from_bitField0_ & 0x00100000) != 0)) { result.priceLevel_ = priceLevel_; } if (((from_bitField0_ & 0x00400000) != 0)) { result.userRatingCount_ = userRatingCount_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00800000) != 0)) { result.iconMaskBaseUri_ = iconMaskBaseUri_; } if (((from_bitField0_ & 0x01000000) != 0)) { result.iconBackgroundColor_ = iconBackgroundColor_; } if (((from_bitField0_ & 0x02000000) != 0)) { result.takeout_ = takeout_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x04000000) != 0)) { result.delivery_ = delivery_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x08000000) != 0)) { result.dineIn_ = dineIn_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x10000000) != 0)) { result.curbsidePickup_ = curbsidePickup_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x20000000) != 0)) { result.reservable_ = reservable_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x40000000) != 0)) { result.servesBreakfast_ = servesBreakfast_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x80000000) != 0)) { result.servesLunch_ = servesLunch_; to_bitField0_ |= 0x00000100; } result.bitField0_ |= to_bitField0_; } private void buildPartial1(com.google.maps.places.v1.Place result) { int from_bitField1_ = bitField1_; int to_bitField0_ = 0; if (((from_bitField1_ & 0x00000001) != 0)) { result.servesDinner_ = servesDinner_; to_bitField0_ |= 0x00000200; } if (((from_bitField1_ & 0x00000002) != 0)) { result.servesBeer_ = servesBeer_; to_bitField0_ |= 0x00000400; } if (((from_bitField1_ & 0x00000004) != 0)) { result.servesWine_ = servesWine_; to_bitField0_ |= 0x00000800; } if (((from_bitField1_ & 0x00000008) != 0)) { result.servesBrunch_ = servesBrunch_; to_bitField0_ |= 0x00001000; } if (((from_bitField1_ & 0x00000010) != 0)) { result.servesVegetarianFood_ = servesVegetarianFood_; to_bitField0_ |= 0x00002000; } if (((from_bitField1_ & 0x00000020) != 0)) { result.currentOpeningHours_ = currentOpeningHoursBuilder_ == null ? currentOpeningHours_ : currentOpeningHoursBuilder_.build(); } if (((from_bitField1_ & 0x00000100) != 0)) { result.editorialSummary_ = editorialSummaryBuilder_ == null ? editorialSummary_ : editorialSummaryBuilder_.build(); } if (((from_bitField1_ & 0x00000200) != 0)) { result.outdoorSeating_ = outdoorSeating_; to_bitField0_ |= 0x00004000; } if (((from_bitField1_ & 0x00000400) != 0)) { result.liveMusic_ = liveMusic_; to_bitField0_ |= 0x00008000; } if (((from_bitField1_ & 0x00000800) != 0)) { result.menuForChildren_ = menuForChildren_; to_bitField0_ |= 0x00010000; } if (((from_bitField1_ & 0x00001000) != 0)) { result.servesCocktails_ = servesCocktails_; to_bitField0_ |= 0x00020000; } if (((from_bitField1_ & 0x00002000) != 0)) { result.servesDessert_ = servesDessert_; to_bitField0_ |= 0x00040000; } if (((from_bitField1_ & 0x00004000) != 0)) { result.servesCoffee_ = servesCoffee_; to_bitField0_ |= 0x00080000; } if (((from_bitField1_ & 0x00008000) != 0)) { result.goodForChildren_ = goodForChildren_; to_bitField0_ |= 0x00100000; } if (((from_bitField1_ & 0x00010000) != 0)) { result.allowsDogs_ = allowsDogs_; to_bitField0_ |= 0x00200000; } if (((from_bitField1_ & 0x00020000) != 0)) { result.restroom_ = restroom_; to_bitField0_ |= 0x00400000; } if (((from_bitField1_ & 0x00040000) != 0)) { result.goodForGroups_ = goodForGroups_; to_bitField0_ |= 0x00800000; } if (((from_bitField1_ & 0x00080000) != 0)) { result.goodForWatchingSports_ = goodForWatchingSports_; to_bitField0_ |= 0x01000000; } if (((from_bitField1_ & 0x00100000) != 0)) { result.paymentOptions_ = paymentOptionsBuilder_ == null ? paymentOptions_ : paymentOptionsBuilder_.build(); } if (((from_bitField1_ & 0x00200000) != 0)) { result.parkingOptions_ = parkingOptionsBuilder_ == null ? parkingOptions_ : parkingOptionsBuilder_.build(); } if (((from_bitField1_ & 0x00800000) != 0)) { result.accessibilityOptions_ = accessibilityOptionsBuilder_ == null ? accessibilityOptions_ : accessibilityOptionsBuilder_.build(); to_bitField0_ |= 0x02000000; } if (((from_bitField1_ & 0x01000000) != 0)) { result.fuelOptions_ = fuelOptionsBuilder_ == null ? fuelOptions_ : fuelOptionsBuilder_.build(); } if (((from_bitField1_ & 0x02000000) != 0)) { result.evChargeOptions_ = evChargeOptionsBuilder_ == null ? evChargeOptions_ : evChargeOptionsBuilder_.build(); } result.bitField0_ |= to_bitField0_; } @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.maps.places.v1.Place) { return mergeFrom((com.google.maps.places.v1.Place) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.maps.places.v1.Place other) { if (other == com.google.maps.places.v1.Place.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasDisplayName()) { mergeDisplayName(other.getDisplayName()); } if (!other.types_.isEmpty()) { if (types_.isEmpty()) { types_ = other.types_; bitField0_ |= 0x00000008; } else { ensureTypesIsMutable(); types_.addAll(other.types_); } onChanged(); } if (!other.getNationalPhoneNumber().isEmpty()) { nationalPhoneNumber_ = other.nationalPhoneNumber_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getInternationalPhoneNumber().isEmpty()) { internationalPhoneNumber_ = other.internationalPhoneNumber_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getFormattedAddress().isEmpty()) { formattedAddress_ = other.formattedAddress_; bitField0_ |= 0x00000040; onChanged(); } if (addressComponentsBuilder_ == null) { if (!other.addressComponents_.isEmpty()) { if (addressComponents_.isEmpty()) { addressComponents_ = other.addressComponents_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureAddressComponentsIsMutable(); addressComponents_.addAll(other.addressComponents_); } onChanged(); } } else { if (!other.addressComponents_.isEmpty()) { if (addressComponentsBuilder_.isEmpty()) { addressComponentsBuilder_.dispose(); addressComponentsBuilder_ = null; addressComponents_ = other.addressComponents_; bitField0_ = (bitField0_ & ~0x00000080); addressComponentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAddressComponentsFieldBuilder() : null; } else { addressComponentsBuilder_.addAllMessages(other.addressComponents_); } } } if (other.hasPlusCode()) { mergePlusCode(other.getPlusCode()); } if (other.hasLocation()) { mergeLocation(other.getLocation()); } if (other.hasViewport()) { mergeViewport(other.getViewport()); } if (other.getRating() != 0D) { setRating(other.getRating()); } if (!other.getGoogleMapsUri().isEmpty()) { googleMapsUri_ = other.googleMapsUri_; bitField0_ |= 0x00001000; onChanged(); } if (!other.getWebsiteUri().isEmpty()) { websiteUri_ = other.websiteUri_; bitField0_ |= 0x00002000; onChanged(); } if (reviewsBuilder_ == null) { if (!other.reviews_.isEmpty()) { if (reviews_.isEmpty()) { reviews_ = other.reviews_; bitField0_ = (bitField0_ & ~0x00004000); } else { ensureReviewsIsMutable(); reviews_.addAll(other.reviews_); } onChanged(); } } else { if (!other.reviews_.isEmpty()) { if (reviewsBuilder_.isEmpty()) { reviewsBuilder_.dispose(); reviewsBuilder_ = null; reviews_ = other.reviews_; bitField0_ = (bitField0_ & ~0x00004000); reviewsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getReviewsFieldBuilder() : null; } else { reviewsBuilder_.addAllMessages(other.reviews_); } } } if (other.hasRegularOpeningHours()) { mergeRegularOpeningHours(other.getRegularOpeningHours()); } if (other.hasUtcOffsetMinutes()) { setUtcOffsetMinutes(other.getUtcOffsetMinutes()); } if (photosBuilder_ == null) { if (!other.photos_.isEmpty()) { if (photos_.isEmpty()) { photos_ = other.photos_; bitField0_ = (bitField0_ & ~0x00020000); } else { ensurePhotosIsMutable(); photos_.addAll(other.photos_); } onChanged(); } } else { if (!other.photos_.isEmpty()) { if (photosBuilder_.isEmpty()) { photosBuilder_.dispose(); photosBuilder_ = null; photos_ = other.photos_; bitField0_ = (bitField0_ & ~0x00020000); photosBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPhotosFieldBuilder() : null; } else { photosBuilder_.addAllMessages(other.photos_); } } } if (!other.getAdrFormatAddress().isEmpty()) { adrFormatAddress_ = other.adrFormatAddress_; bitField0_ |= 0x00040000; onChanged(); } if (other.businessStatus_ != 0) { setBusinessStatusValue(other.getBusinessStatusValue()); } if (other.priceLevel_ != 0) { setPriceLevelValue(other.getPriceLevelValue()); } if (attributionsBuilder_ == null) { if (!other.attributions_.isEmpty()) { if (attributions_.isEmpty()) { attributions_ = other.attributions_; bitField0_ = (bitField0_ & ~0x00200000); } else { ensureAttributionsIsMutable(); attributions_.addAll(other.attributions_); } onChanged(); } } else { if (!other.attributions_.isEmpty()) { if (attributionsBuilder_.isEmpty()) { attributionsBuilder_.dispose(); attributionsBuilder_ = null; attributions_ = other.attributions_; bitField0_ = (bitField0_ & ~0x00200000); attributionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttributionsFieldBuilder() : null; } else { attributionsBuilder_.addAllMessages(other.attributions_); } } } if (other.hasUserRatingCount()) { setUserRatingCount(other.getUserRatingCount()); } if (!other.getIconMaskBaseUri().isEmpty()) { iconMaskBaseUri_ = other.iconMaskBaseUri_; bitField0_ |= 0x00800000; onChanged(); } if (!other.getIconBackgroundColor().isEmpty()) { iconBackgroundColor_ = other.iconBackgroundColor_; bitField0_ |= 0x01000000; onChanged(); } if (other.hasTakeout()) { setTakeout(other.getTakeout()); } if (other.hasDelivery()) { setDelivery(other.getDelivery()); } if (other.hasDineIn()) { setDineIn(other.getDineIn()); } if (other.hasCurbsidePickup()) { setCurbsidePickup(other.getCurbsidePickup()); } if (other.hasReservable()) { setReservable(other.getReservable()); } if (other.hasServesBreakfast()) { setServesBreakfast(other.getServesBreakfast()); } if (other.hasServesLunch()) { setServesLunch(other.getServesLunch()); } if (other.hasServesDinner()) { setServesDinner(other.getServesDinner()); } if (other.hasServesBeer()) { setServesBeer(other.getServesBeer()); } if (other.hasServesWine()) { setServesWine(other.getServesWine()); } if (other.hasServesBrunch()) { setServesBrunch(other.getServesBrunch()); } if (other.hasServesVegetarianFood()) { setServesVegetarianFood(other.getServesVegetarianFood()); } if (other.hasCurrentOpeningHours()) { mergeCurrentOpeningHours(other.getCurrentOpeningHours()); } if (currentSecondaryOpeningHoursBuilder_ == null) { if (!other.currentSecondaryOpeningHours_.isEmpty()) { if (currentSecondaryOpeningHours_.isEmpty()) { currentSecondaryOpeningHours_ = other.currentSecondaryOpeningHours_; bitField1_ = (bitField1_ & ~0x00000040); } else { ensureCurrentSecondaryOpeningHoursIsMutable(); currentSecondaryOpeningHours_.addAll(other.currentSecondaryOpeningHours_); } onChanged(); } } else { if (!other.currentSecondaryOpeningHours_.isEmpty()) { if (currentSecondaryOpeningHoursBuilder_.isEmpty()) { currentSecondaryOpeningHoursBuilder_.dispose(); currentSecondaryOpeningHoursBuilder_ = null; currentSecondaryOpeningHours_ = other.currentSecondaryOpeningHours_; bitField1_ = (bitField1_ & ~0x00000040); currentSecondaryOpeningHoursBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCurrentSecondaryOpeningHoursFieldBuilder() : null; } else { currentSecondaryOpeningHoursBuilder_.addAllMessages( other.currentSecondaryOpeningHours_); } } } if (regularSecondaryOpeningHoursBuilder_ == null) { if (!other.regularSecondaryOpeningHours_.isEmpty()) { if (regularSecondaryOpeningHours_.isEmpty()) { regularSecondaryOpeningHours_ = other.regularSecondaryOpeningHours_; bitField1_ = (bitField1_ & ~0x00000080); } else { ensureRegularSecondaryOpeningHoursIsMutable(); regularSecondaryOpeningHours_.addAll(other.regularSecondaryOpeningHours_); } onChanged(); } } else { if (!other.regularSecondaryOpeningHours_.isEmpty()) { if (regularSecondaryOpeningHoursBuilder_.isEmpty()) { regularSecondaryOpeningHoursBuilder_.dispose(); regularSecondaryOpeningHoursBuilder_ = null; regularSecondaryOpeningHours_ = other.regularSecondaryOpeningHours_; bitField1_ = (bitField1_ & ~0x00000080); regularSecondaryOpeningHoursBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRegularSecondaryOpeningHoursFieldBuilder() : null; } else { regularSecondaryOpeningHoursBuilder_.addAllMessages( other.regularSecondaryOpeningHours_); } } } if (other.hasEditorialSummary()) { mergeEditorialSummary(other.getEditorialSummary()); } if (other.hasOutdoorSeating()) { setOutdoorSeating(other.getOutdoorSeating()); } if (other.hasLiveMusic()) { setLiveMusic(other.getLiveMusic()); } if (other.hasMenuForChildren()) { setMenuForChildren(other.getMenuForChildren()); } if (other.hasServesCocktails()) { setServesCocktails(other.getServesCocktails()); } if (other.hasServesDessert()) { setServesDessert(other.getServesDessert()); } if (other.hasServesCoffee()) { setServesCoffee(other.getServesCoffee()); } if (other.hasGoodForChildren()) { setGoodForChildren(other.getGoodForChildren()); } if (other.hasAllowsDogs()) { setAllowsDogs(other.getAllowsDogs()); } if (other.hasRestroom()) { setRestroom(other.getRestroom()); } if (other.hasGoodForGroups()) { setGoodForGroups(other.getGoodForGroups()); } if (other.hasGoodForWatchingSports()) { setGoodForWatchingSports(other.getGoodForWatchingSports()); } if (other.hasPaymentOptions()) { mergePaymentOptions(other.getPaymentOptions()); } if (other.hasParkingOptions()) { mergeParkingOptions(other.getParkingOptions()); } if (subDestinationsBuilder_ == null) { if (!other.subDestinations_.isEmpty()) { if (subDestinations_.isEmpty()) { subDestinations_ = other.subDestinations_; bitField1_ = (bitField1_ & ~0x00400000); } else { ensureSubDestinationsIsMutable(); subDestinations_.addAll(other.subDestinations_); } onChanged(); } } else { if (!other.subDestinations_.isEmpty()) { if (subDestinationsBuilder_.isEmpty()) { subDestinationsBuilder_.dispose(); subDestinationsBuilder_ = null; subDestinations_ = other.subDestinations_; bitField1_ = (bitField1_ & ~0x00400000); subDestinationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSubDestinationsFieldBuilder() : null; } else { subDestinationsBuilder_.addAllMessages(other.subDestinations_); } } } if (other.hasAccessibilityOptions()) { mergeAccessibilityOptions(other.getAccessibilityOptions()); } if (other.hasFuelOptions()) { mergeFuelOptions(other.getFuelOptions()); } if (other.hasEvChargeOptions()) { mergeEvChargeOptions(other.getEvChargeOptions()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 42: { java.lang.String s = input.readStringRequireUtf8(); ensureTypesIsMutable(); types_.add(s); break; } // case 42 case 58: { nationalPhoneNumber_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 58 case 66: { internationalPhoneNumber_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 66 case 74: { formattedAddress_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 74 case 82: { com.google.maps.places.v1.Place.AddressComponent m = input.readMessage( com.google.maps.places.v1.Place.AddressComponent.parser(), extensionRegistry); if (addressComponentsBuilder_ == null) { ensureAddressComponentsIsMutable(); addressComponents_.add(m); } else { addressComponentsBuilder_.addMessage(m); } break; } // case 82 case 90: { input.readMessage(getPlusCodeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 90 case 98: { input.readMessage(getLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 98 case 106: { input.readMessage(getViewportFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 106 case 113: { rating_ = input.readDouble(); bitField0_ |= 0x00000800; break; } // case 113 case 122: { googleMapsUri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00001000; break; } // case 122 case 130: { websiteUri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00002000; break; } // case 130 case 170: { input.readMessage( getRegularOpeningHoursFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00008000; break; } // case 170 case 176: { utcOffsetMinutes_ = input.readInt32(); bitField0_ |= 0x00010000; break; } // case 176 case 194: { adrFormatAddress_ = input.readStringRequireUtf8(); bitField0_ |= 0x00040000; break; } // case 194 case 200: { businessStatus_ = input.readEnum(); bitField0_ |= 0x00080000; break; } // case 200 case 208: { priceLevel_ = input.readEnum(); bitField0_ |= 0x00100000; break; } // case 208 case 218: { com.google.maps.places.v1.Place.Attribution m = input.readMessage( com.google.maps.places.v1.Place.Attribution.parser(), extensionRegistry); if (attributionsBuilder_ == null) { ensureAttributionsIsMutable(); attributions_.add(m); } else { attributionsBuilder_.addMessage(m); } break; } // case 218 case 224: { userRatingCount_ = input.readInt32(); bitField0_ |= 0x00400000; break; } // case 224 case 234: { iconMaskBaseUri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00800000; break; } // case 234 case 242: { iconBackgroundColor_ = input.readStringRequireUtf8(); bitField0_ |= 0x01000000; break; } // case 242 case 250: { input.readMessage(getDisplayNameFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 250 case 264: { takeout_ = input.readBool(); bitField0_ |= 0x02000000; break; } // case 264 case 272: { delivery_ = input.readBool(); bitField0_ |= 0x04000000; break; } // case 272 case 280: { dineIn_ = input.readBool(); bitField0_ |= 0x08000000; break; } // case 280 case 288: { curbsidePickup_ = input.readBool(); bitField0_ |= 0x10000000; break; } // case 288 case 304: { reservable_ = input.readBool(); bitField0_ |= 0x20000000; break; } // case 304 case 312: { servesBreakfast_ = input.readBool(); bitField0_ |= 0x40000000; break; } // case 312 case 320: { servesLunch_ = input.readBool(); bitField0_ |= 0x80000000; break; } // case 320 case 328: { servesDinner_ = input.readBool(); bitField1_ |= 0x00000001; break; } // case 328 case 336: { servesBeer_ = input.readBool(); bitField1_ |= 0x00000002; break; } // case 336 case 344: { servesWine_ = input.readBool(); bitField1_ |= 0x00000004; break; } // case 344 case 352: { servesBrunch_ = input.readBool(); bitField1_ |= 0x00000008; break; } // case 352 case 360: { servesVegetarianFood_ = input.readBool(); bitField1_ |= 0x00000010; break; } // case 360 case 370: { input.readMessage( getCurrentOpeningHoursFieldBuilder().getBuilder(), extensionRegistry); bitField1_ |= 0x00000020; break; } // case 370 case 378: { com.google.maps.places.v1.Place.OpeningHours m = input.readMessage( com.google.maps.places.v1.Place.OpeningHours.parser(), extensionRegistry); if (currentSecondaryOpeningHoursBuilder_ == null) { ensureCurrentSecondaryOpeningHoursIsMutable(); currentSecondaryOpeningHours_.add(m); } else { currentSecondaryOpeningHoursBuilder_.addMessage(m); } break; } // case 378 case 394: { com.google.maps.places.v1.Place.OpeningHours m = input.readMessage( com.google.maps.places.v1.Place.OpeningHours.parser(), extensionRegistry); if (regularSecondaryOpeningHoursBuilder_ == null) { ensureRegularSecondaryOpeningHoursIsMutable(); regularSecondaryOpeningHours_.add(m); } else { regularSecondaryOpeningHoursBuilder_.addMessage(m); } break; } // case 394 case 418: { input.readMessage( getEditorialSummaryFieldBuilder().getBuilder(), extensionRegistry); bitField1_ |= 0x00000100; break; } // case 418 case 426: { com.google.maps.places.v1.Review m = input.readMessage(com.google.maps.places.v1.Review.parser(), extensionRegistry); if (reviewsBuilder_ == null) { ensureReviewsIsMutable(); reviews_.add(m); } else { reviewsBuilder_.addMessage(m); } break; } // case 426 case 434: { com.google.maps.places.v1.Photo m = input.readMessage(com.google.maps.places.v1.Photo.parser(), extensionRegistry); if (photosBuilder_ == null) { ensurePhotosIsMutable(); photos_.add(m); } else { photosBuilder_.addMessage(m); } break; } // case 434 case 440: { outdoorSeating_ = input.readBool(); bitField1_ |= 0x00000200; break; } // case 440 case 448: { liveMusic_ = input.readBool(); bitField1_ |= 0x00000400; break; } // case 448 case 456: { menuForChildren_ = input.readBool(); bitField1_ |= 0x00000800; break; } // case 456 case 464: { servesCocktails_ = input.readBool(); bitField1_ |= 0x00001000; break; } // case 464 case 472: { servesDessert_ = input.readBool(); bitField1_ |= 0x00002000; break; } // case 472 case 480: { servesCoffee_ = input.readBool(); bitField1_ |= 0x00004000; break; } // case 480 case 496: { goodForChildren_ = input.readBool(); bitField1_ |= 0x00008000; break; } // case 496 case 504: { allowsDogs_ = input.readBool(); bitField1_ |= 0x00010000; break; } // case 504 case 512: { restroom_ = input.readBool(); bitField1_ |= 0x00020000; break; } // case 512 case 520: { goodForGroups_ = input.readBool(); bitField1_ |= 0x00040000; break; } // case 520 case 528: { goodForWatchingSports_ = input.readBool(); bitField1_ |= 0x00080000; break; } // case 528 case 538: { input.readMessage(getPaymentOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField1_ |= 0x00100000; break; } // case 538 case 562: { input.readMessage(getParkingOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField1_ |= 0x00200000; break; } // case 562 case 570: { com.google.maps.places.v1.Place.SubDestination m = input.readMessage( com.google.maps.places.v1.Place.SubDestination.parser(), extensionRegistry); if (subDestinationsBuilder_ == null) { ensureSubDestinationsIsMutable(); subDestinations_.add(m); } else { subDestinationsBuilder_.addMessage(m); } break; } // case 570 case 578: { input.readMessage( getAccessibilityOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField1_ |= 0x00800000; break; } // case 578 case 626: { input.readMessage(getFuelOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField1_ |= 0x01000000; break; } // case 626 case 634: { input.readMessage(getEvChargeOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField1_ |= 0x02000000; break; } // case 634 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int bitField1_; private java.lang.Object name_ = ""; /** * * *
     * Output only. An ID representing this place which may be used to look up
     * this place again (a.k.a. the API "resource" name: places/<place_id>).
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. An ID representing this place which may be used to look up
     * this place again (a.k.a. the API "resource" name: places/<place_id>).
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. An ID representing this place which may be used to look up
     * this place again (a.k.a. the API "resource" name: places/<place_id>).
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Output only. An ID representing this place which may be used to look up
     * this place again (a.k.a. the API "resource" name: places/<place_id>).
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Output only. An ID representing this place which may be used to look up
     * this place again (a.k.a. the API "resource" name: places/<place_id>).
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object id_ = ""; /** * * *
     * Output only. The unique identifier of a place.
     * 
* * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. The unique identifier of a place.
     * 
* * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. The unique identifier of a place.
     * 
* * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The id to set. * @return This builder for chaining. */ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. The unique identifier of a place.
     * 
* * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * Output only. The unique identifier of a place.
     * 
* * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.type.LocalizedText displayName_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> displayNameBuilder_; /** * * *
     * Output only. The localized name of the place, suitable as a short
     * human-readable description. For example, "Google Sydney", "Starbucks",
     * "Pyrmont", etc.
     * 
* * * .google.type.LocalizedText display_name = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the displayName field is set. */ public boolean hasDisplayName() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Output only. The localized name of the place, suitable as a short
     * human-readable description. For example, "Google Sydney", "Starbucks",
     * "Pyrmont", etc.
     * 
* * * .google.type.LocalizedText display_name = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The displayName. */ public com.google.type.LocalizedText getDisplayName() { if (displayNameBuilder_ == null) { return displayName_ == null ? com.google.type.LocalizedText.getDefaultInstance() : displayName_; } else { return displayNameBuilder_.getMessage(); } } /** * * *
     * Output only. The localized name of the place, suitable as a short
     * human-readable description. For example, "Google Sydney", "Starbucks",
     * "Pyrmont", etc.
     * 
* * * .google.type.LocalizedText display_name = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setDisplayName(com.google.type.LocalizedText value) { if (displayNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } displayName_ = value; } else { displayNameBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The localized name of the place, suitable as a short
     * human-readable description. For example, "Google Sydney", "Starbucks",
     * "Pyrmont", etc.
     * 
* * * .google.type.LocalizedText display_name = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setDisplayName(com.google.type.LocalizedText.Builder builderForValue) { if (displayNameBuilder_ == null) { displayName_ = builderForValue.build(); } else { displayNameBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The localized name of the place, suitable as a short
     * human-readable description. For example, "Google Sydney", "Starbucks",
     * "Pyrmont", etc.
     * 
* * * .google.type.LocalizedText display_name = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeDisplayName(com.google.type.LocalizedText value) { if (displayNameBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && displayName_ != null && displayName_ != com.google.type.LocalizedText.getDefaultInstance()) { getDisplayNameBuilder().mergeFrom(value); } else { displayName_ = value; } } else { displayNameBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The localized name of the place, suitable as a short
     * human-readable description. For example, "Google Sydney", "Starbucks",
     * "Pyrmont", etc.
     * 
* * * .google.type.LocalizedText display_name = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearDisplayName() { bitField0_ = (bitField0_ & ~0x00000004); displayName_ = null; if (displayNameBuilder_ != null) { displayNameBuilder_.dispose(); displayNameBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The localized name of the place, suitable as a short
     * human-readable description. For example, "Google Sydney", "Starbucks",
     * "Pyrmont", etc.
     * 
* * * .google.type.LocalizedText display_name = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.type.LocalizedText.Builder getDisplayNameBuilder() { bitField0_ |= 0x00000004; onChanged(); return getDisplayNameFieldBuilder().getBuilder(); } /** * * *
     * Output only. The localized name of the place, suitable as a short
     * human-readable description. For example, "Google Sydney", "Starbucks",
     * "Pyrmont", etc.
     * 
* * * .google.type.LocalizedText display_name = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.type.LocalizedTextOrBuilder getDisplayNameOrBuilder() { if (displayNameBuilder_ != null) { return displayNameBuilder_.getMessageOrBuilder(); } else { return displayName_ == null ? com.google.type.LocalizedText.getDefaultInstance() : displayName_; } } /** * * *
     * Output only. The localized name of the place, suitable as a short
     * human-readable description. For example, "Google Sydney", "Starbucks",
     * "Pyrmont", etc.
     * 
* * * .google.type.LocalizedText display_name = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> getDisplayNameFieldBuilder() { if (displayNameBuilder_ == null) { displayNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( getDisplayName(), getParentForChildren(), isClean()); displayName_ = null; } return displayNameBuilder_; } private com.google.protobuf.LazyStringArrayList types_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureTypesIsMutable() { if (!types_.isModifiable()) { types_ = new com.google.protobuf.LazyStringArrayList(types_); } bitField0_ |= 0x00000008; } /** * * *
     * Output only. A set of type tags for this result. For example, "political"
     * and "locality".
     * 
* * repeated string types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return A list containing the types. */ public com.google.protobuf.ProtocolStringList getTypesList() { types_.makeImmutable(); return types_; } /** * * *
     * Output only. A set of type tags for this result. For example, "political"
     * and "locality".
     * 
* * repeated string types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The count of types. */ public int getTypesCount() { return types_.size(); } /** * * *
     * Output only. A set of type tags for this result. For example, "political"
     * and "locality".
     * 
* * repeated string types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the element to return. * @return The types at the given index. */ public java.lang.String getTypes(int index) { return types_.get(index); } /** * * *
     * Output only. A set of type tags for this result. For example, "political"
     * and "locality".
     * 
* * repeated string types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the value to return. * @return The bytes of the types at the given index. */ public com.google.protobuf.ByteString getTypesBytes(int index) { return types_.getByteString(index); } /** * * *
     * Output only. A set of type tags for this result. For example, "political"
     * and "locality".
     * 
* * repeated string types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index to set the value at. * @param value The types to set. * @return This builder for chaining. */ public Builder setTypes(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTypesIsMutable(); types_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. A set of type tags for this result. For example, "political"
     * and "locality".
     * 
* * repeated string types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The types to add. * @return This builder for chaining. */ public Builder addTypes(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTypesIsMutable(); types_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. A set of type tags for this result. For example, "political"
     * and "locality".
     * 
* * repeated string types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param values The types to add. * @return This builder for chaining. */ public Builder addAllTypes(java.lang.Iterable values) { ensureTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, types_); bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. A set of type tags for this result. For example, "political"
     * and "locality".
     * 
* * repeated string types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearTypes() { types_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); ; onChanged(); return this; } /** * * *
     * Output only. A set of type tags for this result. For example, "political"
     * and "locality".
     * 
* * repeated string types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes of the types to add. * @return This builder for chaining. */ public Builder addTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTypesIsMutable(); types_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object nationalPhoneNumber_ = ""; /** * * *
     * Output only. A human-readable phone number for the place, in national
     * format.
     * 
* * string national_phone_number = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The nationalPhoneNumber. */ public java.lang.String getNationalPhoneNumber() { java.lang.Object ref = nationalPhoneNumber_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nationalPhoneNumber_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. A human-readable phone number for the place, in national
     * format.
     * 
* * string national_phone_number = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for nationalPhoneNumber. */ public com.google.protobuf.ByteString getNationalPhoneNumberBytes() { java.lang.Object ref = nationalPhoneNumber_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nationalPhoneNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. A human-readable phone number for the place, in national
     * format.
     * 
* * string national_phone_number = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The nationalPhoneNumber to set. * @return This builder for chaining. */ public Builder setNationalPhoneNumber(java.lang.String value) { if (value == null) { throw new NullPointerException(); } nationalPhoneNumber_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Output only. A human-readable phone number for the place, in national
     * format.
     * 
* * string national_phone_number = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearNationalPhoneNumber() { nationalPhoneNumber_ = getDefaultInstance().getNationalPhoneNumber(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
     * Output only. A human-readable phone number for the place, in national
     * format.
     * 
* * string national_phone_number = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for nationalPhoneNumber to set. * @return This builder for chaining. */ public Builder setNationalPhoneNumberBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nationalPhoneNumber_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object internationalPhoneNumber_ = ""; /** * * *
     * Output only. A human-readable phone number for the place, in international
     * format.
     * 
* * string international_phone_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The internationalPhoneNumber. */ public java.lang.String getInternationalPhoneNumber() { java.lang.Object ref = internationalPhoneNumber_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); internationalPhoneNumber_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. A human-readable phone number for the place, in international
     * format.
     * 
* * string international_phone_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The bytes for internationalPhoneNumber. */ public com.google.protobuf.ByteString getInternationalPhoneNumberBytes() { java.lang.Object ref = internationalPhoneNumber_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); internationalPhoneNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. A human-readable phone number for the place, in international
     * format.
     * 
* * string international_phone_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The internationalPhoneNumber to set. * @return This builder for chaining. */ public Builder setInternationalPhoneNumber(java.lang.String value) { if (value == null) { throw new NullPointerException(); } internationalPhoneNumber_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Output only. A human-readable phone number for the place, in international
     * format.
     * 
* * string international_phone_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearInternationalPhoneNumber() { internationalPhoneNumber_ = getDefaultInstance().getInternationalPhoneNumber(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
     * Output only. A human-readable phone number for the place, in international
     * format.
     * 
* * string international_phone_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The bytes for internationalPhoneNumber to set. * @return This builder for chaining. */ public Builder setInternationalPhoneNumberBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); internationalPhoneNumber_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object formattedAddress_ = ""; /** * * *
     * Output only. A full, human-readable address for this place.
     * 
* * string formatted_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The formattedAddress. */ public java.lang.String getFormattedAddress() { java.lang.Object ref = formattedAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); formattedAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. A full, human-readable address for this place.
     * 
* * string formatted_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for formattedAddress. */ public com.google.protobuf.ByteString getFormattedAddressBytes() { java.lang.Object ref = formattedAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); formattedAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. A full, human-readable address for this place.
     * 
* * string formatted_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The formattedAddress to set. * @return This builder for chaining. */ public Builder setFormattedAddress(java.lang.String value) { if (value == null) { throw new NullPointerException(); } formattedAddress_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Output only. A full, human-readable address for this place.
     * 
* * string formatted_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearFormattedAddress() { formattedAddress_ = getDefaultInstance().getFormattedAddress(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * Output only. A full, human-readable address for this place.
     * 
* * string formatted_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for formattedAddress to set. * @return This builder for chaining. */ public Builder setFormattedAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); formattedAddress_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private java.util.List addressComponents_ = java.util.Collections.emptyList(); private void ensureAddressComponentsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { addressComponents_ = new java.util.ArrayList( addressComponents_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.AddressComponent, com.google.maps.places.v1.Place.AddressComponent.Builder, com.google.maps.places.v1.Place.AddressComponentOrBuilder> addressComponentsBuilder_; /** * * *
     * Output only. Repeated components for each locality level.
     * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getAddressComponentsList() { if (addressComponentsBuilder_ == null) { return java.util.Collections.unmodifiableList(addressComponents_); } else { return addressComponentsBuilder_.getMessageList(); } } /** * * *
     * Output only. Repeated components for each locality level.
     * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public int getAddressComponentsCount() { if (addressComponentsBuilder_ == null) { return addressComponents_.size(); } else { return addressComponentsBuilder_.getCount(); } } /** * * *
     * Output only. Repeated components for each locality level.
     * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.AddressComponent getAddressComponents(int index) { if (addressComponentsBuilder_ == null) { return addressComponents_.get(index); } else { return addressComponentsBuilder_.getMessage(index); } } /** * * *
     * Output only. Repeated components for each locality level.
     * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setAddressComponents( int index, com.google.maps.places.v1.Place.AddressComponent value) { if (addressComponentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressComponentsIsMutable(); addressComponents_.set(index, value); onChanged(); } else { addressComponentsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Output only. Repeated components for each locality level.
     * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setAddressComponents( int index, com.google.maps.places.v1.Place.AddressComponent.Builder builderForValue) { if (addressComponentsBuilder_ == null) { ensureAddressComponentsIsMutable(); addressComponents_.set(index, builderForValue.build()); onChanged(); } else { addressComponentsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. Repeated components for each locality level.
     * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAddressComponents(com.google.maps.places.v1.Place.AddressComponent value) { if (addressComponentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressComponentsIsMutable(); addressComponents_.add(value); onChanged(); } else { addressComponentsBuilder_.addMessage(value); } return this; } /** * * *
     * Output only. Repeated components for each locality level.
     * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAddressComponents( int index, com.google.maps.places.v1.Place.AddressComponent value) { if (addressComponentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressComponentsIsMutable(); addressComponents_.add(index, value); onChanged(); } else { addressComponentsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Output only. Repeated components for each locality level.
     * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAddressComponents( com.google.maps.places.v1.Place.AddressComponent.Builder builderForValue) { if (addressComponentsBuilder_ == null) { ensureAddressComponentsIsMutable(); addressComponents_.add(builderForValue.build()); onChanged(); } else { addressComponentsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Output only. Repeated components for each locality level.
     * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAddressComponents( int index, com.google.maps.places.v1.Place.AddressComponent.Builder builderForValue) { if (addressComponentsBuilder_ == null) { ensureAddressComponentsIsMutable(); addressComponents_.add(index, builderForValue.build()); onChanged(); } else { addressComponentsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. Repeated components for each locality level.
     * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAllAddressComponents( java.lang.Iterable values) { if (addressComponentsBuilder_ == null) { ensureAddressComponentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addressComponents_); onChanged(); } else { addressComponentsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Output only. Repeated components for each locality level.
     * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearAddressComponents() { if (addressComponentsBuilder_ == null) { addressComponents_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { addressComponentsBuilder_.clear(); } return this; } /** * * *
     * Output only. Repeated components for each locality level.
     * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removeAddressComponents(int index) { if (addressComponentsBuilder_ == null) { ensureAddressComponentsIsMutable(); addressComponents_.remove(index); onChanged(); } else { addressComponentsBuilder_.remove(index); } return this; } /** * * *
     * Output only. Repeated components for each locality level.
     * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.AddressComponent.Builder getAddressComponentsBuilder( int index) { return getAddressComponentsFieldBuilder().getBuilder(index); } /** * * *
     * Output only. Repeated components for each locality level.
     * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.AddressComponentOrBuilder getAddressComponentsOrBuilder( int index) { if (addressComponentsBuilder_ == null) { return addressComponents_.get(index); } else { return addressComponentsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Output only. Repeated components for each locality level.
     * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getAddressComponentsOrBuilderList() { if (addressComponentsBuilder_ != null) { return addressComponentsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(addressComponents_); } } /** * * *
     * Output only. Repeated components for each locality level.
     * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.AddressComponent.Builder addAddressComponentsBuilder() { return getAddressComponentsFieldBuilder() .addBuilder(com.google.maps.places.v1.Place.AddressComponent.getDefaultInstance()); } /** * * *
     * Output only. Repeated components for each locality level.
     * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.AddressComponent.Builder addAddressComponentsBuilder( int index) { return getAddressComponentsFieldBuilder() .addBuilder(index, com.google.maps.places.v1.Place.AddressComponent.getDefaultInstance()); } /** * * *
     * Output only. Repeated components for each locality level.
     * 
* * * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getAddressComponentsBuilderList() { return getAddressComponentsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.AddressComponent, com.google.maps.places.v1.Place.AddressComponent.Builder, com.google.maps.places.v1.Place.AddressComponentOrBuilder> getAddressComponentsFieldBuilder() { if (addressComponentsBuilder_ == null) { addressComponentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.AddressComponent, com.google.maps.places.v1.Place.AddressComponent.Builder, com.google.maps.places.v1.Place.AddressComponentOrBuilder>( addressComponents_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); addressComponents_ = null; } return addressComponentsBuilder_; } private com.google.maps.places.v1.Place.PlusCode plusCode_; private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.PlusCode, com.google.maps.places.v1.Place.PlusCode.Builder, com.google.maps.places.v1.Place.PlusCodeOrBuilder> plusCodeBuilder_; /** * * *
     * Output only. Plus code of the place location lat/long.
     * 
* * * .google.maps.places.v1.Place.PlusCode plus_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the plusCode field is set. */ public boolean hasPlusCode() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
     * Output only. Plus code of the place location lat/long.
     * 
* * * .google.maps.places.v1.Place.PlusCode plus_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The plusCode. */ public com.google.maps.places.v1.Place.PlusCode getPlusCode() { if (plusCodeBuilder_ == null) { return plusCode_ == null ? com.google.maps.places.v1.Place.PlusCode.getDefaultInstance() : plusCode_; } else { return plusCodeBuilder_.getMessage(); } } /** * * *
     * Output only. Plus code of the place location lat/long.
     * 
* * * .google.maps.places.v1.Place.PlusCode plus_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setPlusCode(com.google.maps.places.v1.Place.PlusCode value) { if (plusCodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } plusCode_ = value; } else { plusCodeBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Output only. Plus code of the place location lat/long.
     * 
* * * .google.maps.places.v1.Place.PlusCode plus_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setPlusCode(com.google.maps.places.v1.Place.PlusCode.Builder builderForValue) { if (plusCodeBuilder_ == null) { plusCode_ = builderForValue.build(); } else { plusCodeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Output only. Plus code of the place location lat/long.
     * 
* * * .google.maps.places.v1.Place.PlusCode plus_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergePlusCode(com.google.maps.places.v1.Place.PlusCode value) { if (plusCodeBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && plusCode_ != null && plusCode_ != com.google.maps.places.v1.Place.PlusCode.getDefaultInstance()) { getPlusCodeBuilder().mergeFrom(value); } else { plusCode_ = value; } } else { plusCodeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Output only. Plus code of the place location lat/long.
     * 
* * * .google.maps.places.v1.Place.PlusCode plus_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearPlusCode() { bitField0_ = (bitField0_ & ~0x00000100); plusCode_ = null; if (plusCodeBuilder_ != null) { plusCodeBuilder_.dispose(); plusCodeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Plus code of the place location lat/long.
     * 
* * * .google.maps.places.v1.Place.PlusCode plus_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.PlusCode.Builder getPlusCodeBuilder() { bitField0_ |= 0x00000100; onChanged(); return getPlusCodeFieldBuilder().getBuilder(); } /** * * *
     * Output only. Plus code of the place location lat/long.
     * 
* * * .google.maps.places.v1.Place.PlusCode plus_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.PlusCodeOrBuilder getPlusCodeOrBuilder() { if (plusCodeBuilder_ != null) { return plusCodeBuilder_.getMessageOrBuilder(); } else { return plusCode_ == null ? com.google.maps.places.v1.Place.PlusCode.getDefaultInstance() : plusCode_; } } /** * * *
     * Output only. Plus code of the place location lat/long.
     * 
* * * .google.maps.places.v1.Place.PlusCode plus_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.PlusCode, com.google.maps.places.v1.Place.PlusCode.Builder, com.google.maps.places.v1.Place.PlusCodeOrBuilder> getPlusCodeFieldBuilder() { if (plusCodeBuilder_ == null) { plusCodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.PlusCode, com.google.maps.places.v1.Place.PlusCode.Builder, com.google.maps.places.v1.Place.PlusCodeOrBuilder>( getPlusCode(), getParentForChildren(), isClean()); plusCode_ = null; } return plusCodeBuilder_; } private com.google.type.LatLng location_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> locationBuilder_; /** * * *
     * Output only. The position of this place.
     * 
* * .google.type.LatLng location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
     * Output only. The position of this place.
     * 
* * .google.type.LatLng location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The location. */ public com.google.type.LatLng getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.google.type.LatLng.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * * *
     * Output only. The position of this place.
     * 
* * .google.type.LatLng location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setLocation(com.google.type.LatLng value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Output only. The position of this place.
     * 
* * .google.type.LatLng location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setLocation(com.google.type.LatLng.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Output only. The position of this place.
     * 
* * .google.type.LatLng location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeLocation(com.google.type.LatLng value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && location_ != null && location_ != com.google.type.LatLng.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Output only. The position of this place.
     * 
* * .google.type.LatLng location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000200); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The position of this place.
     * 
* * .google.type.LatLng location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.type.LatLng.Builder getLocationBuilder() { bitField0_ |= 0x00000200; onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * * *
     * Output only. The position of this place.
     * 
* * .google.type.LatLng location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.type.LatLngOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.google.type.LatLng.getDefaultInstance() : location_; } } /** * * *
     * Output only. The position of this place.
     * 
* * .google.type.LatLng location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>(getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private com.google.geo.type.Viewport viewport_; private com.google.protobuf.SingleFieldBuilderV3< com.google.geo.type.Viewport, com.google.geo.type.Viewport.Builder, com.google.geo.type.ViewportOrBuilder> viewportBuilder_; /** * * *
     * Output only. A viewport suitable for displaying the place on an
     * average-sized map.
     * 
* * .google.geo.type.Viewport viewport = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the viewport field is set. */ public boolean hasViewport() { return ((bitField0_ & 0x00000400) != 0); } /** * * *
     * Output only. A viewport suitable for displaying the place on an
     * average-sized map.
     * 
* * .google.geo.type.Viewport viewport = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The viewport. */ public com.google.geo.type.Viewport getViewport() { if (viewportBuilder_ == null) { return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; } else { return viewportBuilder_.getMessage(); } } /** * * *
     * Output only. A viewport suitable for displaying the place on an
     * average-sized map.
     * 
* * .google.geo.type.Viewport viewport = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setViewport(com.google.geo.type.Viewport value) { if (viewportBuilder_ == null) { if (value == null) { throw new NullPointerException(); } viewport_ = value; } else { viewportBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Output only. A viewport suitable for displaying the place on an
     * average-sized map.
     * 
* * .google.geo.type.Viewport viewport = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setViewport(com.google.geo.type.Viewport.Builder builderForValue) { if (viewportBuilder_ == null) { viewport_ = builderForValue.build(); } else { viewportBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Output only. A viewport suitable for displaying the place on an
     * average-sized map.
     * 
* * .google.geo.type.Viewport viewport = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeViewport(com.google.geo.type.Viewport value) { if (viewportBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && viewport_ != null && viewport_ != com.google.geo.type.Viewport.getDefaultInstance()) { getViewportBuilder().mergeFrom(value); } else { viewport_ = value; } } else { viewportBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Output only. A viewport suitable for displaying the place on an
     * average-sized map.
     * 
* * .google.geo.type.Viewport viewport = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearViewport() { bitField0_ = (bitField0_ & ~0x00000400); viewport_ = null; if (viewportBuilder_ != null) { viewportBuilder_.dispose(); viewportBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. A viewport suitable for displaying the place on an
     * average-sized map.
     * 
* * .google.geo.type.Viewport viewport = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.geo.type.Viewport.Builder getViewportBuilder() { bitField0_ |= 0x00000400; onChanged(); return getViewportFieldBuilder().getBuilder(); } /** * * *
     * Output only. A viewport suitable for displaying the place on an
     * average-sized map.
     * 
* * .google.geo.type.Viewport viewport = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.geo.type.ViewportOrBuilder getViewportOrBuilder() { if (viewportBuilder_ != null) { return viewportBuilder_.getMessageOrBuilder(); } else { return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; } } /** * * *
     * Output only. A viewport suitable for displaying the place on an
     * average-sized map.
     * 
* * .google.geo.type.Viewport viewport = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.geo.type.Viewport, com.google.geo.type.Viewport.Builder, com.google.geo.type.ViewportOrBuilder> getViewportFieldBuilder() { if (viewportBuilder_ == null) { viewportBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.geo.type.Viewport, com.google.geo.type.Viewport.Builder, com.google.geo.type.ViewportOrBuilder>( getViewport(), getParentForChildren(), isClean()); viewport_ = null; } return viewportBuilder_; } private double rating_; /** * * *
     * Output only. A rating between 1.0 and 5.0, based on user reviews of this
     * place.
     * 
* * double rating = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The rating. */ @java.lang.Override public double getRating() { return rating_; } /** * * *
     * Output only. A rating between 1.0 and 5.0, based on user reviews of this
     * place.
     * 
* * double rating = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The rating to set. * @return This builder for chaining. */ public Builder setRating(double value) { rating_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * Output only. A rating between 1.0 and 5.0, based on user reviews of this
     * place.
     * 
* * double rating = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearRating() { bitField0_ = (bitField0_ & ~0x00000800); rating_ = 0D; onChanged(); return this; } private java.lang.Object googleMapsUri_ = ""; /** * * *
     * Output only. A URL providing more information about this place.
     * 
* * string google_maps_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The googleMapsUri. */ public java.lang.String getGoogleMapsUri() { java.lang.Object ref = googleMapsUri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); googleMapsUri_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. A URL providing more information about this place.
     * 
* * string google_maps_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for googleMapsUri. */ public com.google.protobuf.ByteString getGoogleMapsUriBytes() { java.lang.Object ref = googleMapsUri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); googleMapsUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. A URL providing more information about this place.
     * 
* * string google_maps_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The googleMapsUri to set. * @return This builder for chaining. */ public Builder setGoogleMapsUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } googleMapsUri_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * Output only. A URL providing more information about this place.
     * 
* * string google_maps_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearGoogleMapsUri() { googleMapsUri_ = getDefaultInstance().getGoogleMapsUri(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** * * *
     * Output only. A URL providing more information about this place.
     * 
* * string google_maps_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for googleMapsUri to set. * @return This builder for chaining. */ public Builder setGoogleMapsUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); googleMapsUri_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } private java.lang.Object websiteUri_ = ""; /** * * *
     * Output only. The authoritative website for this place, e.g. a business'
     * homepage. Note that for places that are part of a chain (e.g. an IKEA
     * store), this will usually be the website for the individual store, not the
     * overall chain.
     * 
* * string website_uri = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The websiteUri. */ public java.lang.String getWebsiteUri() { java.lang.Object ref = websiteUri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); websiteUri_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. The authoritative website for this place, e.g. a business'
     * homepage. Note that for places that are part of a chain (e.g. an IKEA
     * store), this will usually be the website for the individual store, not the
     * overall chain.
     * 
* * string website_uri = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for websiteUri. */ public com.google.protobuf.ByteString getWebsiteUriBytes() { java.lang.Object ref = websiteUri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); websiteUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. The authoritative website for this place, e.g. a business'
     * homepage. Note that for places that are part of a chain (e.g. an IKEA
     * store), this will usually be the website for the individual store, not the
     * overall chain.
     * 
* * string website_uri = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The websiteUri to set. * @return This builder for chaining. */ public Builder setWebsiteUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } websiteUri_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * Output only. The authoritative website for this place, e.g. a business'
     * homepage. Note that for places that are part of a chain (e.g. an IKEA
     * store), this will usually be the website for the individual store, not the
     * overall chain.
     * 
* * string website_uri = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearWebsiteUri() { websiteUri_ = getDefaultInstance().getWebsiteUri(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } /** * * *
     * Output only. The authoritative website for this place, e.g. a business'
     * homepage. Note that for places that are part of a chain (e.g. an IKEA
     * store), this will usually be the website for the individual store, not the
     * overall chain.
     * 
* * string website_uri = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for websiteUri to set. * @return This builder for chaining. */ public Builder setWebsiteUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); websiteUri_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } private java.util.List reviews_ = java.util.Collections.emptyList(); private void ensureReviewsIsMutable() { if (!((bitField0_ & 0x00004000) != 0)) { reviews_ = new java.util.ArrayList(reviews_); bitField0_ |= 0x00004000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Review, com.google.maps.places.v1.Review.Builder, com.google.maps.places.v1.ReviewOrBuilder> reviewsBuilder_; /** * * *
     * Output only. List of reviews about this place.
     * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getReviewsList() { if (reviewsBuilder_ == null) { return java.util.Collections.unmodifiableList(reviews_); } else { return reviewsBuilder_.getMessageList(); } } /** * * *
     * Output only. List of reviews about this place.
     * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public int getReviewsCount() { if (reviewsBuilder_ == null) { return reviews_.size(); } else { return reviewsBuilder_.getCount(); } } /** * * *
     * Output only. List of reviews about this place.
     * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Review getReviews(int index) { if (reviewsBuilder_ == null) { return reviews_.get(index); } else { return reviewsBuilder_.getMessage(index); } } /** * * *
     * Output only. List of reviews about this place.
     * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setReviews(int index, com.google.maps.places.v1.Review value) { if (reviewsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReviewsIsMutable(); reviews_.set(index, value); onChanged(); } else { reviewsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Output only. List of reviews about this place.
     * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setReviews(int index, com.google.maps.places.v1.Review.Builder builderForValue) { if (reviewsBuilder_ == null) { ensureReviewsIsMutable(); reviews_.set(index, builderForValue.build()); onChanged(); } else { reviewsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. List of reviews about this place.
     * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addReviews(com.google.maps.places.v1.Review value) { if (reviewsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReviewsIsMutable(); reviews_.add(value); onChanged(); } else { reviewsBuilder_.addMessage(value); } return this; } /** * * *
     * Output only. List of reviews about this place.
     * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addReviews(int index, com.google.maps.places.v1.Review value) { if (reviewsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReviewsIsMutable(); reviews_.add(index, value); onChanged(); } else { reviewsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Output only. List of reviews about this place.
     * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addReviews(com.google.maps.places.v1.Review.Builder builderForValue) { if (reviewsBuilder_ == null) { ensureReviewsIsMutable(); reviews_.add(builderForValue.build()); onChanged(); } else { reviewsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Output only. List of reviews about this place.
     * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addReviews(int index, com.google.maps.places.v1.Review.Builder builderForValue) { if (reviewsBuilder_ == null) { ensureReviewsIsMutable(); reviews_.add(index, builderForValue.build()); onChanged(); } else { reviewsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. List of reviews about this place.
     * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAllReviews( java.lang.Iterable values) { if (reviewsBuilder_ == null) { ensureReviewsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reviews_); onChanged(); } else { reviewsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Output only. List of reviews about this place.
     * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearReviews() { if (reviewsBuilder_ == null) { reviews_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); } else { reviewsBuilder_.clear(); } return this; } /** * * *
     * Output only. List of reviews about this place.
     * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removeReviews(int index) { if (reviewsBuilder_ == null) { ensureReviewsIsMutable(); reviews_.remove(index); onChanged(); } else { reviewsBuilder_.remove(index); } return this; } /** * * *
     * Output only. List of reviews about this place.
     * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Review.Builder getReviewsBuilder(int index) { return getReviewsFieldBuilder().getBuilder(index); } /** * * *
     * Output only. List of reviews about this place.
     * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.ReviewOrBuilder getReviewsOrBuilder(int index) { if (reviewsBuilder_ == null) { return reviews_.get(index); } else { return reviewsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Output only. List of reviews about this place.
     * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getReviewsOrBuilderList() { if (reviewsBuilder_ != null) { return reviewsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(reviews_); } } /** * * *
     * Output only. List of reviews about this place.
     * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Review.Builder addReviewsBuilder() { return getReviewsFieldBuilder() .addBuilder(com.google.maps.places.v1.Review.getDefaultInstance()); } /** * * *
     * Output only. List of reviews about this place.
     * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Review.Builder addReviewsBuilder(int index) { return getReviewsFieldBuilder() .addBuilder(index, com.google.maps.places.v1.Review.getDefaultInstance()); } /** * * *
     * Output only. List of reviews about this place.
     * 
* * * repeated .google.maps.places.v1.Review reviews = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getReviewsBuilderList() { return getReviewsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Review, com.google.maps.places.v1.Review.Builder, com.google.maps.places.v1.ReviewOrBuilder> getReviewsFieldBuilder() { if (reviewsBuilder_ == null) { reviewsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Review, com.google.maps.places.v1.Review.Builder, com.google.maps.places.v1.ReviewOrBuilder>( reviews_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); reviews_ = null; } return reviewsBuilder_; } private com.google.maps.places.v1.Place.OpeningHours regularOpeningHours_; private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours, com.google.maps.places.v1.Place.OpeningHours.Builder, com.google.maps.places.v1.Place.OpeningHoursOrBuilder> regularOpeningHoursBuilder_; /** * * *
     * Output only. The regular hours of operation.
     * 
* * * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the regularOpeningHours field is set. */ public boolean hasRegularOpeningHours() { return ((bitField0_ & 0x00008000) != 0); } /** * * *
     * Output only. The regular hours of operation.
     * 
* * * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The regularOpeningHours. */ public com.google.maps.places.v1.Place.OpeningHours getRegularOpeningHours() { if (regularOpeningHoursBuilder_ == null) { return regularOpeningHours_ == null ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() : regularOpeningHours_; } else { return regularOpeningHoursBuilder_.getMessage(); } } /** * * *
     * Output only. The regular hours of operation.
     * 
* * * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setRegularOpeningHours(com.google.maps.places.v1.Place.OpeningHours value) { if (regularOpeningHoursBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regularOpeningHours_ = value; } else { regularOpeningHoursBuilder_.setMessage(value); } bitField0_ |= 0x00008000; onChanged(); return this; } /** * * *
     * Output only. The regular hours of operation.
     * 
* * * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setRegularOpeningHours( com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { if (regularOpeningHoursBuilder_ == null) { regularOpeningHours_ = builderForValue.build(); } else { regularOpeningHoursBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; onChanged(); return this; } /** * * *
     * Output only. The regular hours of operation.
     * 
* * * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeRegularOpeningHours(com.google.maps.places.v1.Place.OpeningHours value) { if (regularOpeningHoursBuilder_ == null) { if (((bitField0_ & 0x00008000) != 0) && regularOpeningHours_ != null && regularOpeningHours_ != com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()) { getRegularOpeningHoursBuilder().mergeFrom(value); } else { regularOpeningHours_ = value; } } else { regularOpeningHoursBuilder_.mergeFrom(value); } bitField0_ |= 0x00008000; onChanged(); return this; } /** * * *
     * Output only. The regular hours of operation.
     * 
* * * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearRegularOpeningHours() { bitField0_ = (bitField0_ & ~0x00008000); regularOpeningHours_ = null; if (regularOpeningHoursBuilder_ != null) { regularOpeningHoursBuilder_.dispose(); regularOpeningHoursBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The regular hours of operation.
     * 
* * * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.Builder getRegularOpeningHoursBuilder() { bitField0_ |= 0x00008000; onChanged(); return getRegularOpeningHoursFieldBuilder().getBuilder(); } /** * * *
     * Output only. The regular hours of operation.
     * 
* * * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularOpeningHoursOrBuilder() { if (regularOpeningHoursBuilder_ != null) { return regularOpeningHoursBuilder_.getMessageOrBuilder(); } else { return regularOpeningHours_ == null ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() : regularOpeningHours_; } } /** * * *
     * Output only. The regular hours of operation.
     * 
* * * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours, com.google.maps.places.v1.Place.OpeningHours.Builder, com.google.maps.places.v1.Place.OpeningHoursOrBuilder> getRegularOpeningHoursFieldBuilder() { if (regularOpeningHoursBuilder_ == null) { regularOpeningHoursBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours, com.google.maps.places.v1.Place.OpeningHours.Builder, com.google.maps.places.v1.Place.OpeningHoursOrBuilder>( getRegularOpeningHours(), getParentForChildren(), isClean()); regularOpeningHours_ = null; } return regularOpeningHoursBuilder_; } private int utcOffsetMinutes_; /** * * *
     * Output only. Number of minutes this place's timezone is currently offset
     * from UTC. This is expressed in minutes to support timezones that are offset
     * by fractions of an hour, e.g. X hours and 15 minutes.
     * 
* * optional int32 utc_offset_minutes = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the utcOffsetMinutes field is set. */ @java.lang.Override public boolean hasUtcOffsetMinutes() { return ((bitField0_ & 0x00010000) != 0); } /** * * *
     * Output only. Number of minutes this place's timezone is currently offset
     * from UTC. This is expressed in minutes to support timezones that are offset
     * by fractions of an hour, e.g. X hours and 15 minutes.
     * 
* * optional int32 utc_offset_minutes = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The utcOffsetMinutes. */ @java.lang.Override public int getUtcOffsetMinutes() { return utcOffsetMinutes_; } /** * * *
     * Output only. Number of minutes this place's timezone is currently offset
     * from UTC. This is expressed in minutes to support timezones that are offset
     * by fractions of an hour, e.g. X hours and 15 minutes.
     * 
* * optional int32 utc_offset_minutes = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The utcOffsetMinutes to set. * @return This builder for chaining. */ public Builder setUtcOffsetMinutes(int value) { utcOffsetMinutes_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** * * *
     * Output only. Number of minutes this place's timezone is currently offset
     * from UTC. This is expressed in minutes to support timezones that are offset
     * by fractions of an hour, e.g. X hours and 15 minutes.
     * 
* * optional int32 utc_offset_minutes = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearUtcOffsetMinutes() { bitField0_ = (bitField0_ & ~0x00010000); utcOffsetMinutes_ = 0; onChanged(); return this; } private java.util.List photos_ = java.util.Collections.emptyList(); private void ensurePhotosIsMutable() { if (!((bitField0_ & 0x00020000) != 0)) { photos_ = new java.util.ArrayList(photos_); bitField0_ |= 0x00020000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Photo, com.google.maps.places.v1.Photo.Builder, com.google.maps.places.v1.PhotoOrBuilder> photosBuilder_; /** * * *
     * Output only. Information (including references) about photos of this place.
     * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getPhotosList() { if (photosBuilder_ == null) { return java.util.Collections.unmodifiableList(photos_); } else { return photosBuilder_.getMessageList(); } } /** * * *
     * Output only. Information (including references) about photos of this place.
     * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public int getPhotosCount() { if (photosBuilder_ == null) { return photos_.size(); } else { return photosBuilder_.getCount(); } } /** * * *
     * Output only. Information (including references) about photos of this place.
     * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Photo getPhotos(int index) { if (photosBuilder_ == null) { return photos_.get(index); } else { return photosBuilder_.getMessage(index); } } /** * * *
     * Output only. Information (including references) about photos of this place.
     * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setPhotos(int index, com.google.maps.places.v1.Photo value) { if (photosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePhotosIsMutable(); photos_.set(index, value); onChanged(); } else { photosBuilder_.setMessage(index, value); } return this; } /** * * *
     * Output only. Information (including references) about photos of this place.
     * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setPhotos(int index, com.google.maps.places.v1.Photo.Builder builderForValue) { if (photosBuilder_ == null) { ensurePhotosIsMutable(); photos_.set(index, builderForValue.build()); onChanged(); } else { photosBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. Information (including references) about photos of this place.
     * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addPhotos(com.google.maps.places.v1.Photo value) { if (photosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePhotosIsMutable(); photos_.add(value); onChanged(); } else { photosBuilder_.addMessage(value); } return this; } /** * * *
     * Output only. Information (including references) about photos of this place.
     * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addPhotos(int index, com.google.maps.places.v1.Photo value) { if (photosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePhotosIsMutable(); photos_.add(index, value); onChanged(); } else { photosBuilder_.addMessage(index, value); } return this; } /** * * *
     * Output only. Information (including references) about photos of this place.
     * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addPhotos(com.google.maps.places.v1.Photo.Builder builderForValue) { if (photosBuilder_ == null) { ensurePhotosIsMutable(); photos_.add(builderForValue.build()); onChanged(); } else { photosBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Output only. Information (including references) about photos of this place.
     * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addPhotos(int index, com.google.maps.places.v1.Photo.Builder builderForValue) { if (photosBuilder_ == null) { ensurePhotosIsMutable(); photos_.add(index, builderForValue.build()); onChanged(); } else { photosBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. Information (including references) about photos of this place.
     * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAllPhotos( java.lang.Iterable values) { if (photosBuilder_ == null) { ensurePhotosIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, photos_); onChanged(); } else { photosBuilder_.addAllMessages(values); } return this; } /** * * *
     * Output only. Information (including references) about photos of this place.
     * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearPhotos() { if (photosBuilder_ == null) { photos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00020000); onChanged(); } else { photosBuilder_.clear(); } return this; } /** * * *
     * Output only. Information (including references) about photos of this place.
     * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removePhotos(int index) { if (photosBuilder_ == null) { ensurePhotosIsMutable(); photos_.remove(index); onChanged(); } else { photosBuilder_.remove(index); } return this; } /** * * *
     * Output only. Information (including references) about photos of this place.
     * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Photo.Builder getPhotosBuilder(int index) { return getPhotosFieldBuilder().getBuilder(index); } /** * * *
     * Output only. Information (including references) about photos of this place.
     * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.PhotoOrBuilder getPhotosOrBuilder(int index) { if (photosBuilder_ == null) { return photos_.get(index); } else { return photosBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Output only. Information (including references) about photos of this place.
     * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getPhotosOrBuilderList() { if (photosBuilder_ != null) { return photosBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(photos_); } } /** * * *
     * Output only. Information (including references) about photos of this place.
     * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Photo.Builder addPhotosBuilder() { return getPhotosFieldBuilder() .addBuilder(com.google.maps.places.v1.Photo.getDefaultInstance()); } /** * * *
     * Output only. Information (including references) about photos of this place.
     * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Photo.Builder addPhotosBuilder(int index) { return getPhotosFieldBuilder() .addBuilder(index, com.google.maps.places.v1.Photo.getDefaultInstance()); } /** * * *
     * Output only. Information (including references) about photos of this place.
     * 
* * * repeated .google.maps.places.v1.Photo photos = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getPhotosBuilderList() { return getPhotosFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Photo, com.google.maps.places.v1.Photo.Builder, com.google.maps.places.v1.PhotoOrBuilder> getPhotosFieldBuilder() { if (photosBuilder_ == null) { photosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Photo, com.google.maps.places.v1.Photo.Builder, com.google.maps.places.v1.PhotoOrBuilder>( photos_, ((bitField0_ & 0x00020000) != 0), getParentForChildren(), isClean()); photos_ = null; } return photosBuilder_; } private java.lang.Object adrFormatAddress_ = ""; /** * * *
     * Output only. The place's address in adr microformat:
     * http://microformats.org/wiki/adr.
     * 
* * string adr_format_address = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The adrFormatAddress. */ public java.lang.String getAdrFormatAddress() { java.lang.Object ref = adrFormatAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); adrFormatAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. The place's address in adr microformat:
     * http://microformats.org/wiki/adr.
     * 
* * string adr_format_address = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for adrFormatAddress. */ public com.google.protobuf.ByteString getAdrFormatAddressBytes() { java.lang.Object ref = adrFormatAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); adrFormatAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. The place's address in adr microformat:
     * http://microformats.org/wiki/adr.
     * 
* * string adr_format_address = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The adrFormatAddress to set. * @return This builder for chaining. */ public Builder setAdrFormatAddress(java.lang.String value) { if (value == null) { throw new NullPointerException(); } adrFormatAddress_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } /** * * *
     * Output only. The place's address in adr microformat:
     * http://microformats.org/wiki/adr.
     * 
* * string adr_format_address = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearAdrFormatAddress() { adrFormatAddress_ = getDefaultInstance().getAdrFormatAddress(); bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } /** * * *
     * Output only. The place's address in adr microformat:
     * http://microformats.org/wiki/adr.
     * 
* * string adr_format_address = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for adrFormatAddress to set. * @return This builder for chaining. */ public Builder setAdrFormatAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); adrFormatAddress_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } private int businessStatus_ = 0; /** * * *
     * Output only. The business status for the place.
     * 
* * * .google.maps.places.v1.Place.BusinessStatus business_status = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for businessStatus. */ @java.lang.Override public int getBusinessStatusValue() { return businessStatus_; } /** * * *
     * Output only. The business status for the place.
     * 
* * * .google.maps.places.v1.Place.BusinessStatus business_status = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for businessStatus to set. * @return This builder for chaining. */ public Builder setBusinessStatusValue(int value) { businessStatus_ = value; bitField0_ |= 0x00080000; onChanged(); return this; } /** * * *
     * Output only. The business status for the place.
     * 
* * * .google.maps.places.v1.Place.BusinessStatus business_status = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The businessStatus. */ @java.lang.Override public com.google.maps.places.v1.Place.BusinessStatus getBusinessStatus() { com.google.maps.places.v1.Place.BusinessStatus result = com.google.maps.places.v1.Place.BusinessStatus.forNumber(businessStatus_); return result == null ? com.google.maps.places.v1.Place.BusinessStatus.UNRECOGNIZED : result; } /** * * *
     * Output only. The business status for the place.
     * 
* * * .google.maps.places.v1.Place.BusinessStatus business_status = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The businessStatus to set. * @return This builder for chaining. */ public Builder setBusinessStatus(com.google.maps.places.v1.Place.BusinessStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00080000; businessStatus_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. The business status for the place.
     * 
* * * .google.maps.places.v1.Place.BusinessStatus business_status = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearBusinessStatus() { bitField0_ = (bitField0_ & ~0x00080000); businessStatus_ = 0; onChanged(); return this; } private int priceLevel_ = 0; /** * * *
     * Output only. Price level of the place.
     * 
* * * .google.maps.places.v1.PriceLevel price_level = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for priceLevel. */ @java.lang.Override public int getPriceLevelValue() { return priceLevel_; } /** * * *
     * Output only. Price level of the place.
     * 
* * * .google.maps.places.v1.PriceLevel price_level = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for priceLevel to set. * @return This builder for chaining. */ public Builder setPriceLevelValue(int value) { priceLevel_ = value; bitField0_ |= 0x00100000; onChanged(); return this; } /** * * *
     * Output only. Price level of the place.
     * 
* * * .google.maps.places.v1.PriceLevel price_level = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The priceLevel. */ @java.lang.Override public com.google.maps.places.v1.PriceLevel getPriceLevel() { com.google.maps.places.v1.PriceLevel result = com.google.maps.places.v1.PriceLevel.forNumber(priceLevel_); return result == null ? com.google.maps.places.v1.PriceLevel.UNRECOGNIZED : result; } /** * * *
     * Output only. Price level of the place.
     * 
* * * .google.maps.places.v1.PriceLevel price_level = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The priceLevel to set. * @return This builder for chaining. */ public Builder setPriceLevel(com.google.maps.places.v1.PriceLevel value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00100000; priceLevel_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. Price level of the place.
     * 
* * * .google.maps.places.v1.PriceLevel price_level = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearPriceLevel() { bitField0_ = (bitField0_ & ~0x00100000); priceLevel_ = 0; onChanged(); return this; } private java.util.List attributions_ = java.util.Collections.emptyList(); private void ensureAttributionsIsMutable() { if (!((bitField0_ & 0x00200000) != 0)) { attributions_ = new java.util.ArrayList(attributions_); bitField0_ |= 0x00200000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.Attribution, com.google.maps.places.v1.Place.Attribution.Builder, com.google.maps.places.v1.Place.AttributionOrBuilder> attributionsBuilder_; /** * * *
     * Output only. A set of data provider that must be shown with this result.
     * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getAttributionsList() { if (attributionsBuilder_ == null) { return java.util.Collections.unmodifiableList(attributions_); } else { return attributionsBuilder_.getMessageList(); } } /** * * *
     * Output only. A set of data provider that must be shown with this result.
     * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public int getAttributionsCount() { if (attributionsBuilder_ == null) { return attributions_.size(); } else { return attributionsBuilder_.getCount(); } } /** * * *
     * Output only. A set of data provider that must be shown with this result.
     * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.Attribution getAttributions(int index) { if (attributionsBuilder_ == null) { return attributions_.get(index); } else { return attributionsBuilder_.getMessage(index); } } /** * * *
     * Output only. A set of data provider that must be shown with this result.
     * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setAttributions(int index, com.google.maps.places.v1.Place.Attribution value) { if (attributionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributionsIsMutable(); attributions_.set(index, value); onChanged(); } else { attributionsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Output only. A set of data provider that must be shown with this result.
     * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setAttributions( int index, com.google.maps.places.v1.Place.Attribution.Builder builderForValue) { if (attributionsBuilder_ == null) { ensureAttributionsIsMutable(); attributions_.set(index, builderForValue.build()); onChanged(); } else { attributionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. A set of data provider that must be shown with this result.
     * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAttributions(com.google.maps.places.v1.Place.Attribution value) { if (attributionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributionsIsMutable(); attributions_.add(value); onChanged(); } else { attributionsBuilder_.addMessage(value); } return this; } /** * * *
     * Output only. A set of data provider that must be shown with this result.
     * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAttributions(int index, com.google.maps.places.v1.Place.Attribution value) { if (attributionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributionsIsMutable(); attributions_.add(index, value); onChanged(); } else { attributionsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Output only. A set of data provider that must be shown with this result.
     * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAttributions( com.google.maps.places.v1.Place.Attribution.Builder builderForValue) { if (attributionsBuilder_ == null) { ensureAttributionsIsMutable(); attributions_.add(builderForValue.build()); onChanged(); } else { attributionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Output only. A set of data provider that must be shown with this result.
     * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAttributions( int index, com.google.maps.places.v1.Place.Attribution.Builder builderForValue) { if (attributionsBuilder_ == null) { ensureAttributionsIsMutable(); attributions_.add(index, builderForValue.build()); onChanged(); } else { attributionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. A set of data provider that must be shown with this result.
     * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAllAttributions( java.lang.Iterable values) { if (attributionsBuilder_ == null) { ensureAttributionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attributions_); onChanged(); } else { attributionsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Output only. A set of data provider that must be shown with this result.
     * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearAttributions() { if (attributionsBuilder_ == null) { attributions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00200000); onChanged(); } else { attributionsBuilder_.clear(); } return this; } /** * * *
     * Output only. A set of data provider that must be shown with this result.
     * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removeAttributions(int index) { if (attributionsBuilder_ == null) { ensureAttributionsIsMutable(); attributions_.remove(index); onChanged(); } else { attributionsBuilder_.remove(index); } return this; } /** * * *
     * Output only. A set of data provider that must be shown with this result.
     * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.Attribution.Builder getAttributionsBuilder(int index) { return getAttributionsFieldBuilder().getBuilder(index); } /** * * *
     * Output only. A set of data provider that must be shown with this result.
     * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.AttributionOrBuilder getAttributionsOrBuilder( int index) { if (attributionsBuilder_ == null) { return attributions_.get(index); } else { return attributionsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Output only. A set of data provider that must be shown with this result.
     * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getAttributionsOrBuilderList() { if (attributionsBuilder_ != null) { return attributionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attributions_); } } /** * * *
     * Output only. A set of data provider that must be shown with this result.
     * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.Attribution.Builder addAttributionsBuilder() { return getAttributionsFieldBuilder() .addBuilder(com.google.maps.places.v1.Place.Attribution.getDefaultInstance()); } /** * * *
     * Output only. A set of data provider that must be shown with this result.
     * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.Attribution.Builder addAttributionsBuilder(int index) { return getAttributionsFieldBuilder() .addBuilder(index, com.google.maps.places.v1.Place.Attribution.getDefaultInstance()); } /** * * *
     * Output only. A set of data provider that must be shown with this result.
     * 
* * * repeated .google.maps.places.v1.Place.Attribution attributions = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getAttributionsBuilderList() { return getAttributionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.Attribution, com.google.maps.places.v1.Place.Attribution.Builder, com.google.maps.places.v1.Place.AttributionOrBuilder> getAttributionsFieldBuilder() { if (attributionsBuilder_ == null) { attributionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.Attribution, com.google.maps.places.v1.Place.Attribution.Builder, com.google.maps.places.v1.Place.AttributionOrBuilder>( attributions_, ((bitField0_ & 0x00200000) != 0), getParentForChildren(), isClean()); attributions_ = null; } return attributionsBuilder_; } private int userRatingCount_; /** * * *
     * Output only. The total number of reviews (with or without text) for this
     * place.
     * 
* * optional int32 user_rating_count = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the userRatingCount field is set. */ @java.lang.Override public boolean hasUserRatingCount() { return ((bitField0_ & 0x00400000) != 0); } /** * * *
     * Output only. The total number of reviews (with or without text) for this
     * place.
     * 
* * optional int32 user_rating_count = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The userRatingCount. */ @java.lang.Override public int getUserRatingCount() { return userRatingCount_; } /** * * *
     * Output only. The total number of reviews (with or without text) for this
     * place.
     * 
* * optional int32 user_rating_count = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The userRatingCount to set. * @return This builder for chaining. */ public Builder setUserRatingCount(int value) { userRatingCount_ = value; bitField0_ |= 0x00400000; onChanged(); return this; } /** * * *
     * Output only. The total number of reviews (with or without text) for this
     * place.
     * 
* * optional int32 user_rating_count = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearUserRatingCount() { bitField0_ = (bitField0_ & ~0x00400000); userRatingCount_ = 0; onChanged(); return this; } private java.lang.Object iconMaskBaseUri_ = ""; /** * * *
     * Output only. A truncated URL to an v2 icon mask. User can access different
     * icon type by appending type suffix to the end (eg, ".svg" or ".png").
     * 
* * string icon_mask_base_uri = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The iconMaskBaseUri. */ public java.lang.String getIconMaskBaseUri() { java.lang.Object ref = iconMaskBaseUri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); iconMaskBaseUri_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. A truncated URL to an v2 icon mask. User can access different
     * icon type by appending type suffix to the end (eg, ".svg" or ".png").
     * 
* * string icon_mask_base_uri = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for iconMaskBaseUri. */ public com.google.protobuf.ByteString getIconMaskBaseUriBytes() { java.lang.Object ref = iconMaskBaseUri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); iconMaskBaseUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. A truncated URL to an v2 icon mask. User can access different
     * icon type by appending type suffix to the end (eg, ".svg" or ".png").
     * 
* * string icon_mask_base_uri = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The iconMaskBaseUri to set. * @return This builder for chaining. */ public Builder setIconMaskBaseUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } iconMaskBaseUri_ = value; bitField0_ |= 0x00800000; onChanged(); return this; } /** * * *
     * Output only. A truncated URL to an v2 icon mask. User can access different
     * icon type by appending type suffix to the end (eg, ".svg" or ".png").
     * 
* * string icon_mask_base_uri = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearIconMaskBaseUri() { iconMaskBaseUri_ = getDefaultInstance().getIconMaskBaseUri(); bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } /** * * *
     * Output only. A truncated URL to an v2 icon mask. User can access different
     * icon type by appending type suffix to the end (eg, ".svg" or ".png").
     * 
* * string icon_mask_base_uri = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for iconMaskBaseUri to set. * @return This builder for chaining. */ public Builder setIconMaskBaseUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); iconMaskBaseUri_ = value; bitField0_ |= 0x00800000; onChanged(); return this; } private java.lang.Object iconBackgroundColor_ = ""; /** * * *
     * Output only. Background color for icon_mask in hex format, e.g. #909CE1.
     * 
* * string icon_background_color = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The iconBackgroundColor. */ public java.lang.String getIconBackgroundColor() { java.lang.Object ref = iconBackgroundColor_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); iconBackgroundColor_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. Background color for icon_mask in hex format, e.g. #909CE1.
     * 
* * string icon_background_color = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for iconBackgroundColor. */ public com.google.protobuf.ByteString getIconBackgroundColorBytes() { java.lang.Object ref = iconBackgroundColor_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); iconBackgroundColor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. Background color for icon_mask in hex format, e.g. #909CE1.
     * 
* * string icon_background_color = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The iconBackgroundColor to set. * @return This builder for chaining. */ public Builder setIconBackgroundColor(java.lang.String value) { if (value == null) { throw new NullPointerException(); } iconBackgroundColor_ = value; bitField0_ |= 0x01000000; onChanged(); return this; } /** * * *
     * Output only. Background color for icon_mask in hex format, e.g. #909CE1.
     * 
* * string icon_background_color = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearIconBackgroundColor() { iconBackgroundColor_ = getDefaultInstance().getIconBackgroundColor(); bitField0_ = (bitField0_ & ~0x01000000); onChanged(); return this; } /** * * *
     * Output only. Background color for icon_mask in hex format, e.g. #909CE1.
     * 
* * string icon_background_color = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for iconBackgroundColor to set. * @return This builder for chaining. */ public Builder setIconBackgroundColorBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); iconBackgroundColor_ = value; bitField0_ |= 0x01000000; onChanged(); return this; } private boolean takeout_; /** * * *
     * Output only. Specifies if the business supports takeout.
     * 
* * optional bool takeout = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the takeout field is set. */ @java.lang.Override public boolean hasTakeout() { return ((bitField0_ & 0x02000000) != 0); } /** * * *
     * Output only. Specifies if the business supports takeout.
     * 
* * optional bool takeout = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The takeout. */ @java.lang.Override public boolean getTakeout() { return takeout_; } /** * * *
     * Output only. Specifies if the business supports takeout.
     * 
* * optional bool takeout = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The takeout to set. * @return This builder for chaining. */ public Builder setTakeout(boolean value) { takeout_ = value; bitField0_ |= 0x02000000; onChanged(); return this; } /** * * *
     * Output only. Specifies if the business supports takeout.
     * 
* * optional bool takeout = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearTakeout() { bitField0_ = (bitField0_ & ~0x02000000); takeout_ = false; onChanged(); return this; } private boolean delivery_; /** * * *
     * Output only. Specifies if the business supports delivery.
     * 
* * optional bool delivery = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the delivery field is set. */ @java.lang.Override public boolean hasDelivery() { return ((bitField0_ & 0x04000000) != 0); } /** * * *
     * Output only. Specifies if the business supports delivery.
     * 
* * optional bool delivery = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The delivery. */ @java.lang.Override public boolean getDelivery() { return delivery_; } /** * * *
     * Output only. Specifies if the business supports delivery.
     * 
* * optional bool delivery = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The delivery to set. * @return This builder for chaining. */ public Builder setDelivery(boolean value) { delivery_ = value; bitField0_ |= 0x04000000; onChanged(); return this; } /** * * *
     * Output only. Specifies if the business supports delivery.
     * 
* * optional bool delivery = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearDelivery() { bitField0_ = (bitField0_ & ~0x04000000); delivery_ = false; onChanged(); return this; } private boolean dineIn_; /** * * *
     * Output only. Specifies if the business supports indoor or outdoor seating
     * options.
     * 
* * optional bool dine_in = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the dineIn field is set. */ @java.lang.Override public boolean hasDineIn() { return ((bitField0_ & 0x08000000) != 0); } /** * * *
     * Output only. Specifies if the business supports indoor or outdoor seating
     * options.
     * 
* * optional bool dine_in = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The dineIn. */ @java.lang.Override public boolean getDineIn() { return dineIn_; } /** * * *
     * Output only. Specifies if the business supports indoor or outdoor seating
     * options.
     * 
* * optional bool dine_in = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The dineIn to set. * @return This builder for chaining. */ public Builder setDineIn(boolean value) { dineIn_ = value; bitField0_ |= 0x08000000; onChanged(); return this; } /** * * *
     * Output only. Specifies if the business supports indoor or outdoor seating
     * options.
     * 
* * optional bool dine_in = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearDineIn() { bitField0_ = (bitField0_ & ~0x08000000); dineIn_ = false; onChanged(); return this; } private boolean curbsidePickup_; /** * * *
     * Output only. Specifies if the business supports curbside pickup.
     * 
* * optional bool curbside_pickup = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the curbsidePickup field is set. */ @java.lang.Override public boolean hasCurbsidePickup() { return ((bitField0_ & 0x10000000) != 0); } /** * * *
     * Output only. Specifies if the business supports curbside pickup.
     * 
* * optional bool curbside_pickup = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The curbsidePickup. */ @java.lang.Override public boolean getCurbsidePickup() { return curbsidePickup_; } /** * * *
     * Output only. Specifies if the business supports curbside pickup.
     * 
* * optional bool curbside_pickup = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The curbsidePickup to set. * @return This builder for chaining. */ public Builder setCurbsidePickup(boolean value) { curbsidePickup_ = value; bitField0_ |= 0x10000000; onChanged(); return this; } /** * * *
     * Output only. Specifies if the business supports curbside pickup.
     * 
* * optional bool curbside_pickup = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearCurbsidePickup() { bitField0_ = (bitField0_ & ~0x10000000); curbsidePickup_ = false; onChanged(); return this; } private boolean reservable_; /** * * *
     * Output only. Specifies if the place supports reservations.
     * 
* * optional bool reservable = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the reservable field is set. */ @java.lang.Override public boolean hasReservable() { return ((bitField0_ & 0x20000000) != 0); } /** * * *
     * Output only. Specifies if the place supports reservations.
     * 
* * optional bool reservable = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The reservable. */ @java.lang.Override public boolean getReservable() { return reservable_; } /** * * *
     * Output only. Specifies if the place supports reservations.
     * 
* * optional bool reservable = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The reservable to set. * @return This builder for chaining. */ public Builder setReservable(boolean value) { reservable_ = value; bitField0_ |= 0x20000000; onChanged(); return this; } /** * * *
     * Output only. Specifies if the place supports reservations.
     * 
* * optional bool reservable = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearReservable() { bitField0_ = (bitField0_ & ~0x20000000); reservable_ = false; onChanged(); return this; } private boolean servesBreakfast_; /** * * *
     * Output only. Specifies if the place serves breakfast.
     * 
* * optional bool serves_breakfast = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the servesBreakfast field is set. */ @java.lang.Override public boolean hasServesBreakfast() { return ((bitField0_ & 0x40000000) != 0); } /** * * *
     * Output only. Specifies if the place serves breakfast.
     * 
* * optional bool serves_breakfast = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The servesBreakfast. */ @java.lang.Override public boolean getServesBreakfast() { return servesBreakfast_; } /** * * *
     * Output only. Specifies if the place serves breakfast.
     * 
* * optional bool serves_breakfast = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The servesBreakfast to set. * @return This builder for chaining. */ public Builder setServesBreakfast(boolean value) { servesBreakfast_ = value; bitField0_ |= 0x40000000; onChanged(); return this; } /** * * *
     * Output only. Specifies if the place serves breakfast.
     * 
* * optional bool serves_breakfast = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearServesBreakfast() { bitField0_ = (bitField0_ & ~0x40000000); servesBreakfast_ = false; onChanged(); return this; } private boolean servesLunch_; /** * * *
     * Output only. Specifies if the place serves lunch.
     * 
* * optional bool serves_lunch = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the servesLunch field is set. */ @java.lang.Override public boolean hasServesLunch() { return ((bitField0_ & 0x80000000) != 0); } /** * * *
     * Output only. Specifies if the place serves lunch.
     * 
* * optional bool serves_lunch = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servesLunch. */ @java.lang.Override public boolean getServesLunch() { return servesLunch_; } /** * * *
     * Output only. Specifies if the place serves lunch.
     * 
* * optional bool serves_lunch = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The servesLunch to set. * @return This builder for chaining. */ public Builder setServesLunch(boolean value) { servesLunch_ = value; bitField0_ |= 0x80000000; onChanged(); return this; } /** * * *
     * Output only. Specifies if the place serves lunch.
     * 
* * optional bool serves_lunch = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearServesLunch() { bitField0_ = (bitField0_ & ~0x80000000); servesLunch_ = false; onChanged(); return this; } private boolean servesDinner_; /** * * *
     * Output only. Specifies if the place serves dinner.
     * 
* * optional bool serves_dinner = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the servesDinner field is set. */ @java.lang.Override public boolean hasServesDinner() { return ((bitField1_ & 0x00000001) != 0); } /** * * *
     * Output only. Specifies if the place serves dinner.
     * 
* * optional bool serves_dinner = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servesDinner. */ @java.lang.Override public boolean getServesDinner() { return servesDinner_; } /** * * *
     * Output only. Specifies if the place serves dinner.
     * 
* * optional bool serves_dinner = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The servesDinner to set. * @return This builder for chaining. */ public Builder setServesDinner(boolean value) { servesDinner_ = value; bitField1_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Output only. Specifies if the place serves dinner.
     * 
* * optional bool serves_dinner = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearServesDinner() { bitField1_ = (bitField1_ & ~0x00000001); servesDinner_ = false; onChanged(); return this; } private boolean servesBeer_; /** * * *
     * Output only. Specifies if the place serves beer.
     * 
* * optional bool serves_beer = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the servesBeer field is set. */ @java.lang.Override public boolean hasServesBeer() { return ((bitField1_ & 0x00000002) != 0); } /** * * *
     * Output only. Specifies if the place serves beer.
     * 
* * optional bool serves_beer = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servesBeer. */ @java.lang.Override public boolean getServesBeer() { return servesBeer_; } /** * * *
     * Output only. Specifies if the place serves beer.
     * 
* * optional bool serves_beer = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The servesBeer to set. * @return This builder for chaining. */ public Builder setServesBeer(boolean value) { servesBeer_ = value; bitField1_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. Specifies if the place serves beer.
     * 
* * optional bool serves_beer = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearServesBeer() { bitField1_ = (bitField1_ & ~0x00000002); servesBeer_ = false; onChanged(); return this; } private boolean servesWine_; /** * * *
     * Output only. Specifies if the place serves wine.
     * 
* * optional bool serves_wine = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the servesWine field is set. */ @java.lang.Override public boolean hasServesWine() { return ((bitField1_ & 0x00000004) != 0); } /** * * *
     * Output only. Specifies if the place serves wine.
     * 
* * optional bool serves_wine = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servesWine. */ @java.lang.Override public boolean getServesWine() { return servesWine_; } /** * * *
     * Output only. Specifies if the place serves wine.
     * 
* * optional bool serves_wine = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The servesWine to set. * @return This builder for chaining. */ public Builder setServesWine(boolean value) { servesWine_ = value; bitField1_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. Specifies if the place serves wine.
     * 
* * optional bool serves_wine = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearServesWine() { bitField1_ = (bitField1_ & ~0x00000004); servesWine_ = false; onChanged(); return this; } private boolean servesBrunch_; /** * * *
     * Output only. Specifies if the place serves brunch.
     * 
* * optional bool serves_brunch = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the servesBrunch field is set. */ @java.lang.Override public boolean hasServesBrunch() { return ((bitField1_ & 0x00000008) != 0); } /** * * *
     * Output only. Specifies if the place serves brunch.
     * 
* * optional bool serves_brunch = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servesBrunch. */ @java.lang.Override public boolean getServesBrunch() { return servesBrunch_; } /** * * *
     * Output only. Specifies if the place serves brunch.
     * 
* * optional bool serves_brunch = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The servesBrunch to set. * @return This builder for chaining. */ public Builder setServesBrunch(boolean value) { servesBrunch_ = value; bitField1_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. Specifies if the place serves brunch.
     * 
* * optional bool serves_brunch = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearServesBrunch() { bitField1_ = (bitField1_ & ~0x00000008); servesBrunch_ = false; onChanged(); return this; } private boolean servesVegetarianFood_; /** * * *
     * Output only. Specifies if the place serves vegetarian food.
     * 
* * optional bool serves_vegetarian_food = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the servesVegetarianFood field is set. */ @java.lang.Override public boolean hasServesVegetarianFood() { return ((bitField1_ & 0x00000010) != 0); } /** * * *
     * Output only. Specifies if the place serves vegetarian food.
     * 
* * optional bool serves_vegetarian_food = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The servesVegetarianFood. */ @java.lang.Override public boolean getServesVegetarianFood() { return servesVegetarianFood_; } /** * * *
     * Output only. Specifies if the place serves vegetarian food.
     * 
* * optional bool serves_vegetarian_food = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The servesVegetarianFood to set. * @return This builder for chaining. */ public Builder setServesVegetarianFood(boolean value) { servesVegetarianFood_ = value; bitField1_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Output only. Specifies if the place serves vegetarian food.
     * 
* * optional bool serves_vegetarian_food = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearServesVegetarianFood() { bitField1_ = (bitField1_ & ~0x00000010); servesVegetarianFood_ = false; onChanged(); return this; } private com.google.maps.places.v1.Place.OpeningHours currentOpeningHours_; private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours, com.google.maps.places.v1.Place.OpeningHours.Builder, com.google.maps.places.v1.Place.OpeningHoursOrBuilder> currentOpeningHoursBuilder_; /** * * *
     * Output only. The hours of operation for the next seven days (including
     * today). The time period starts at midnight on the date of the request and
     * ends at 11:59 pm six days later. This field includes the special_days
     * subfield of all hours, set for dates that have exceptional hours.
     * 
* * * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the currentOpeningHours field is set. */ public boolean hasCurrentOpeningHours() { return ((bitField1_ & 0x00000020) != 0); } /** * * *
     * Output only. The hours of operation for the next seven days (including
     * today). The time period starts at midnight on the date of the request and
     * ends at 11:59 pm six days later. This field includes the special_days
     * subfield of all hours, set for dates that have exceptional hours.
     * 
* * * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The currentOpeningHours. */ public com.google.maps.places.v1.Place.OpeningHours getCurrentOpeningHours() { if (currentOpeningHoursBuilder_ == null) { return currentOpeningHours_ == null ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() : currentOpeningHours_; } else { return currentOpeningHoursBuilder_.getMessage(); } } /** * * *
     * Output only. The hours of operation for the next seven days (including
     * today). The time period starts at midnight on the date of the request and
     * ends at 11:59 pm six days later. This field includes the special_days
     * subfield of all hours, set for dates that have exceptional hours.
     * 
* * * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCurrentOpeningHours(com.google.maps.places.v1.Place.OpeningHours value) { if (currentOpeningHoursBuilder_ == null) { if (value == null) { throw new NullPointerException(); } currentOpeningHours_ = value; } else { currentOpeningHoursBuilder_.setMessage(value); } bitField1_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Output only. The hours of operation for the next seven days (including
     * today). The time period starts at midnight on the date of the request and
     * ends at 11:59 pm six days later. This field includes the special_days
     * subfield of all hours, set for dates that have exceptional hours.
     * 
* * * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCurrentOpeningHours( com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { if (currentOpeningHoursBuilder_ == null) { currentOpeningHours_ = builderForValue.build(); } else { currentOpeningHoursBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Output only. The hours of operation for the next seven days (including
     * today). The time period starts at midnight on the date of the request and
     * ends at 11:59 pm six days later. This field includes the special_days
     * subfield of all hours, set for dates that have exceptional hours.
     * 
* * * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeCurrentOpeningHours(com.google.maps.places.v1.Place.OpeningHours value) { if (currentOpeningHoursBuilder_ == null) { if (((bitField1_ & 0x00000020) != 0) && currentOpeningHours_ != null && currentOpeningHours_ != com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()) { getCurrentOpeningHoursBuilder().mergeFrom(value); } else { currentOpeningHours_ = value; } } else { currentOpeningHoursBuilder_.mergeFrom(value); } bitField1_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Output only. The hours of operation for the next seven days (including
     * today). The time period starts at midnight on the date of the request and
     * ends at 11:59 pm six days later. This field includes the special_days
     * subfield of all hours, set for dates that have exceptional hours.
     * 
* * * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCurrentOpeningHours() { bitField1_ = (bitField1_ & ~0x00000020); currentOpeningHours_ = null; if (currentOpeningHoursBuilder_ != null) { currentOpeningHoursBuilder_.dispose(); currentOpeningHoursBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The hours of operation for the next seven days (including
     * today). The time period starts at midnight on the date of the request and
     * ends at 11:59 pm six days later. This field includes the special_days
     * subfield of all hours, set for dates that have exceptional hours.
     * 
* * * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.Builder getCurrentOpeningHoursBuilder() { bitField1_ |= 0x00000020; onChanged(); return getCurrentOpeningHoursFieldBuilder().getBuilder(); } /** * * *
     * Output only. The hours of operation for the next seven days (including
     * today). The time period starts at midnight on the date of the request and
     * ends at 11:59 pm six days later. This field includes the special_days
     * subfield of all hours, set for dates that have exceptional hours.
     * 
* * * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getCurrentOpeningHoursOrBuilder() { if (currentOpeningHoursBuilder_ != null) { return currentOpeningHoursBuilder_.getMessageOrBuilder(); } else { return currentOpeningHours_ == null ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() : currentOpeningHours_; } } /** * * *
     * Output only. The hours of operation for the next seven days (including
     * today). The time period starts at midnight on the date of the request and
     * ends at 11:59 pm six days later. This field includes the special_days
     * subfield of all hours, set for dates that have exceptional hours.
     * 
* * * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours, com.google.maps.places.v1.Place.OpeningHours.Builder, com.google.maps.places.v1.Place.OpeningHoursOrBuilder> getCurrentOpeningHoursFieldBuilder() { if (currentOpeningHoursBuilder_ == null) { currentOpeningHoursBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours, com.google.maps.places.v1.Place.OpeningHours.Builder, com.google.maps.places.v1.Place.OpeningHoursOrBuilder>( getCurrentOpeningHours(), getParentForChildren(), isClean()); currentOpeningHours_ = null; } return currentOpeningHoursBuilder_; } private java.util.List currentSecondaryOpeningHours_ = java.util.Collections.emptyList(); private void ensureCurrentSecondaryOpeningHoursIsMutable() { if (!((bitField1_ & 0x00000040) != 0)) { currentSecondaryOpeningHours_ = new java.util.ArrayList( currentSecondaryOpeningHours_); bitField1_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours, com.google.maps.places.v1.Place.OpeningHours.Builder, com.google.maps.places.v1.Place.OpeningHoursOrBuilder> currentSecondaryOpeningHoursBuilder_; /** * * *
     * Output only. Contains an array of entries for the next seven days including
     * information about secondary hours of a business. Secondary hours are
     * different from a business's main hours. For example, a restaurant can
     * specify drive through hours or delivery hours as its secondary hours. This
     * field populates the type subfield, which draws from a predefined list of
     * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
     * the types of the place. This field includes the special_days subfield of
     * all hours, set for dates that have exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getCurrentSecondaryOpeningHoursList() { if (currentSecondaryOpeningHoursBuilder_ == null) { return java.util.Collections.unmodifiableList(currentSecondaryOpeningHours_); } else { return currentSecondaryOpeningHoursBuilder_.getMessageList(); } } /** * * *
     * Output only. Contains an array of entries for the next seven days including
     * information about secondary hours of a business. Secondary hours are
     * different from a business's main hours. For example, a restaurant can
     * specify drive through hours or delivery hours as its secondary hours. This
     * field populates the type subfield, which draws from a predefined list of
     * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
     * the types of the place. This field includes the special_days subfield of
     * all hours, set for dates that have exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public int getCurrentSecondaryOpeningHoursCount() { if (currentSecondaryOpeningHoursBuilder_ == null) { return currentSecondaryOpeningHours_.size(); } else { return currentSecondaryOpeningHoursBuilder_.getCount(); } } /** * * *
     * Output only. Contains an array of entries for the next seven days including
     * information about secondary hours of a business. Secondary hours are
     * different from a business's main hours. For example, a restaurant can
     * specify drive through hours or delivery hours as its secondary hours. This
     * field populates the type subfield, which draws from a predefined list of
     * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
     * the types of the place. This field includes the special_days subfield of
     * all hours, set for dates that have exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours getCurrentSecondaryOpeningHours(int index) { if (currentSecondaryOpeningHoursBuilder_ == null) { return currentSecondaryOpeningHours_.get(index); } else { return currentSecondaryOpeningHoursBuilder_.getMessage(index); } } /** * * *
     * Output only. Contains an array of entries for the next seven days including
     * information about secondary hours of a business. Secondary hours are
     * different from a business's main hours. For example, a restaurant can
     * specify drive through hours or delivery hours as its secondary hours. This
     * field populates the type subfield, which draws from a predefined list of
     * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
     * the types of the place. This field includes the special_days subfield of
     * all hours, set for dates that have exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCurrentSecondaryOpeningHours( int index, com.google.maps.places.v1.Place.OpeningHours value) { if (currentSecondaryOpeningHoursBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCurrentSecondaryOpeningHoursIsMutable(); currentSecondaryOpeningHours_.set(index, value); onChanged(); } else { currentSecondaryOpeningHoursBuilder_.setMessage(index, value); } return this; } /** * * *
     * Output only. Contains an array of entries for the next seven days including
     * information about secondary hours of a business. Secondary hours are
     * different from a business's main hours. For example, a restaurant can
     * specify drive through hours or delivery hours as its secondary hours. This
     * field populates the type subfield, which draws from a predefined list of
     * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
     * the types of the place. This field includes the special_days subfield of
     * all hours, set for dates that have exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCurrentSecondaryOpeningHours( int index, com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { if (currentSecondaryOpeningHoursBuilder_ == null) { ensureCurrentSecondaryOpeningHoursIsMutable(); currentSecondaryOpeningHours_.set(index, builderForValue.build()); onChanged(); } else { currentSecondaryOpeningHoursBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. Contains an array of entries for the next seven days including
     * information about secondary hours of a business. Secondary hours are
     * different from a business's main hours. For example, a restaurant can
     * specify drive through hours or delivery hours as its secondary hours. This
     * field populates the type subfield, which draws from a predefined list of
     * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
     * the types of the place. This field includes the special_days subfield of
     * all hours, set for dates that have exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addCurrentSecondaryOpeningHours( com.google.maps.places.v1.Place.OpeningHours value) { if (currentSecondaryOpeningHoursBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCurrentSecondaryOpeningHoursIsMutable(); currentSecondaryOpeningHours_.add(value); onChanged(); } else { currentSecondaryOpeningHoursBuilder_.addMessage(value); } return this; } /** * * *
     * Output only. Contains an array of entries for the next seven days including
     * information about secondary hours of a business. Secondary hours are
     * different from a business's main hours. For example, a restaurant can
     * specify drive through hours or delivery hours as its secondary hours. This
     * field populates the type subfield, which draws from a predefined list of
     * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
     * the types of the place. This field includes the special_days subfield of
     * all hours, set for dates that have exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addCurrentSecondaryOpeningHours( int index, com.google.maps.places.v1.Place.OpeningHours value) { if (currentSecondaryOpeningHoursBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCurrentSecondaryOpeningHoursIsMutable(); currentSecondaryOpeningHours_.add(index, value); onChanged(); } else { currentSecondaryOpeningHoursBuilder_.addMessage(index, value); } return this; } /** * * *
     * Output only. Contains an array of entries for the next seven days including
     * information about secondary hours of a business. Secondary hours are
     * different from a business's main hours. For example, a restaurant can
     * specify drive through hours or delivery hours as its secondary hours. This
     * field populates the type subfield, which draws from a predefined list of
     * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
     * the types of the place. This field includes the special_days subfield of
     * all hours, set for dates that have exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addCurrentSecondaryOpeningHours( com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { if (currentSecondaryOpeningHoursBuilder_ == null) { ensureCurrentSecondaryOpeningHoursIsMutable(); currentSecondaryOpeningHours_.add(builderForValue.build()); onChanged(); } else { currentSecondaryOpeningHoursBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Output only. Contains an array of entries for the next seven days including
     * information about secondary hours of a business. Secondary hours are
     * different from a business's main hours. For example, a restaurant can
     * specify drive through hours or delivery hours as its secondary hours. This
     * field populates the type subfield, which draws from a predefined list of
     * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
     * the types of the place. This field includes the special_days subfield of
     * all hours, set for dates that have exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addCurrentSecondaryOpeningHours( int index, com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { if (currentSecondaryOpeningHoursBuilder_ == null) { ensureCurrentSecondaryOpeningHoursIsMutable(); currentSecondaryOpeningHours_.add(index, builderForValue.build()); onChanged(); } else { currentSecondaryOpeningHoursBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. Contains an array of entries for the next seven days including
     * information about secondary hours of a business. Secondary hours are
     * different from a business's main hours. For example, a restaurant can
     * specify drive through hours or delivery hours as its secondary hours. This
     * field populates the type subfield, which draws from a predefined list of
     * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
     * the types of the place. This field includes the special_days subfield of
     * all hours, set for dates that have exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAllCurrentSecondaryOpeningHours( java.lang.Iterable values) { if (currentSecondaryOpeningHoursBuilder_ == null) { ensureCurrentSecondaryOpeningHoursIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, currentSecondaryOpeningHours_); onChanged(); } else { currentSecondaryOpeningHoursBuilder_.addAllMessages(values); } return this; } /** * * *
     * Output only. Contains an array of entries for the next seven days including
     * information about secondary hours of a business. Secondary hours are
     * different from a business's main hours. For example, a restaurant can
     * specify drive through hours or delivery hours as its secondary hours. This
     * field populates the type subfield, which draws from a predefined list of
     * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
     * the types of the place. This field includes the special_days subfield of
     * all hours, set for dates that have exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCurrentSecondaryOpeningHours() { if (currentSecondaryOpeningHoursBuilder_ == null) { currentSecondaryOpeningHours_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000040); onChanged(); } else { currentSecondaryOpeningHoursBuilder_.clear(); } return this; } /** * * *
     * Output only. Contains an array of entries for the next seven days including
     * information about secondary hours of a business. Secondary hours are
     * different from a business's main hours. For example, a restaurant can
     * specify drive through hours or delivery hours as its secondary hours. This
     * field populates the type subfield, which draws from a predefined list of
     * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
     * the types of the place. This field includes the special_days subfield of
     * all hours, set for dates that have exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removeCurrentSecondaryOpeningHours(int index) { if (currentSecondaryOpeningHoursBuilder_ == null) { ensureCurrentSecondaryOpeningHoursIsMutable(); currentSecondaryOpeningHours_.remove(index); onChanged(); } else { currentSecondaryOpeningHoursBuilder_.remove(index); } return this; } /** * * *
     * Output only. Contains an array of entries for the next seven days including
     * information about secondary hours of a business. Secondary hours are
     * different from a business's main hours. For example, a restaurant can
     * specify drive through hours or delivery hours as its secondary hours. This
     * field populates the type subfield, which draws from a predefined list of
     * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
     * the types of the place. This field includes the special_days subfield of
     * all hours, set for dates that have exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.Builder getCurrentSecondaryOpeningHoursBuilder(int index) { return getCurrentSecondaryOpeningHoursFieldBuilder().getBuilder(index); } /** * * *
     * Output only. Contains an array of entries for the next seven days including
     * information about secondary hours of a business. Secondary hours are
     * different from a business's main hours. For example, a restaurant can
     * specify drive through hours or delivery hours as its secondary hours. This
     * field populates the type subfield, which draws from a predefined list of
     * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
     * the types of the place. This field includes the special_days subfield of
     * all hours, set for dates that have exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getCurrentSecondaryOpeningHoursOrBuilder(int index) { if (currentSecondaryOpeningHoursBuilder_ == null) { return currentSecondaryOpeningHours_.get(index); } else { return currentSecondaryOpeningHoursBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Output only. Contains an array of entries for the next seven days including
     * information about secondary hours of a business. Secondary hours are
     * different from a business's main hours. For example, a restaurant can
     * specify drive through hours or delivery hours as its secondary hours. This
     * field populates the type subfield, which draws from a predefined list of
     * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
     * the types of the place. This field includes the special_days subfield of
     * all hours, set for dates that have exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getCurrentSecondaryOpeningHoursOrBuilderList() { if (currentSecondaryOpeningHoursBuilder_ != null) { return currentSecondaryOpeningHoursBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(currentSecondaryOpeningHours_); } } /** * * *
     * Output only. Contains an array of entries for the next seven days including
     * information about secondary hours of a business. Secondary hours are
     * different from a business's main hours. For example, a restaurant can
     * specify drive through hours or delivery hours as its secondary hours. This
     * field populates the type subfield, which draws from a predefined list of
     * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
     * the types of the place. This field includes the special_days subfield of
     * all hours, set for dates that have exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.Builder addCurrentSecondaryOpeningHoursBuilder() { return getCurrentSecondaryOpeningHoursFieldBuilder() .addBuilder(com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()); } /** * * *
     * Output only. Contains an array of entries for the next seven days including
     * information about secondary hours of a business. Secondary hours are
     * different from a business's main hours. For example, a restaurant can
     * specify drive through hours or delivery hours as its secondary hours. This
     * field populates the type subfield, which draws from a predefined list of
     * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
     * the types of the place. This field includes the special_days subfield of
     * all hours, set for dates that have exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.Builder addCurrentSecondaryOpeningHoursBuilder(int index) { return getCurrentSecondaryOpeningHoursFieldBuilder() .addBuilder(index, com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()); } /** * * *
     * Output only. Contains an array of entries for the next seven days including
     * information about secondary hours of a business. Secondary hours are
     * different from a business's main hours. For example, a restaurant can
     * specify drive through hours or delivery hours as its secondary hours. This
     * field populates the type subfield, which draws from a predefined list of
     * opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on
     * the types of the place. This field includes the special_days subfield of
     * all hours, set for dates that have exceptional hours.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getCurrentSecondaryOpeningHoursBuilderList() { return getCurrentSecondaryOpeningHoursFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours, com.google.maps.places.v1.Place.OpeningHours.Builder, com.google.maps.places.v1.Place.OpeningHoursOrBuilder> getCurrentSecondaryOpeningHoursFieldBuilder() { if (currentSecondaryOpeningHoursBuilder_ == null) { currentSecondaryOpeningHoursBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours, com.google.maps.places.v1.Place.OpeningHours.Builder, com.google.maps.places.v1.Place.OpeningHoursOrBuilder>( currentSecondaryOpeningHours_, ((bitField1_ & 0x00000040) != 0), getParentForChildren(), isClean()); currentSecondaryOpeningHours_ = null; } return currentSecondaryOpeningHoursBuilder_; } private java.util.List regularSecondaryOpeningHours_ = java.util.Collections.emptyList(); private void ensureRegularSecondaryOpeningHoursIsMutable() { if (!((bitField1_ & 0x00000080) != 0)) { regularSecondaryOpeningHours_ = new java.util.ArrayList( regularSecondaryOpeningHours_); bitField1_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours, com.google.maps.places.v1.Place.OpeningHours.Builder, com.google.maps.places.v1.Place.OpeningHoursOrBuilder> regularSecondaryOpeningHoursBuilder_; /** * * *
     * Output only. Contains an array of entries for information about regular
     * secondary hours of a business. Secondary hours are different from a
     * business's main hours. For example, a restaurant can specify drive through
     * hours or delivery hours as its secondary hours. This field populates the
     * type subfield, which draws from a predefined list of opening hours types
     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
     * place.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getRegularSecondaryOpeningHoursList() { if (regularSecondaryOpeningHoursBuilder_ == null) { return java.util.Collections.unmodifiableList(regularSecondaryOpeningHours_); } else { return regularSecondaryOpeningHoursBuilder_.getMessageList(); } } /** * * *
     * Output only. Contains an array of entries for information about regular
     * secondary hours of a business. Secondary hours are different from a
     * business's main hours. For example, a restaurant can specify drive through
     * hours or delivery hours as its secondary hours. This field populates the
     * type subfield, which draws from a predefined list of opening hours types
     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
     * place.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public int getRegularSecondaryOpeningHoursCount() { if (regularSecondaryOpeningHoursBuilder_ == null) { return regularSecondaryOpeningHours_.size(); } else { return regularSecondaryOpeningHoursBuilder_.getCount(); } } /** * * *
     * Output only. Contains an array of entries for information about regular
     * secondary hours of a business. Secondary hours are different from a
     * business's main hours. For example, a restaurant can specify drive through
     * hours or delivery hours as its secondary hours. This field populates the
     * type subfield, which draws from a predefined list of opening hours types
     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
     * place.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours getRegularSecondaryOpeningHours(int index) { if (regularSecondaryOpeningHoursBuilder_ == null) { return regularSecondaryOpeningHours_.get(index); } else { return regularSecondaryOpeningHoursBuilder_.getMessage(index); } } /** * * *
     * Output only. Contains an array of entries for information about regular
     * secondary hours of a business. Secondary hours are different from a
     * business's main hours. For example, a restaurant can specify drive through
     * hours or delivery hours as its secondary hours. This field populates the
     * type subfield, which draws from a predefined list of opening hours types
     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
     * place.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setRegularSecondaryOpeningHours( int index, com.google.maps.places.v1.Place.OpeningHours value) { if (regularSecondaryOpeningHoursBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegularSecondaryOpeningHoursIsMutable(); regularSecondaryOpeningHours_.set(index, value); onChanged(); } else { regularSecondaryOpeningHoursBuilder_.setMessage(index, value); } return this; } /** * * *
     * Output only. Contains an array of entries for information about regular
     * secondary hours of a business. Secondary hours are different from a
     * business's main hours. For example, a restaurant can specify drive through
     * hours or delivery hours as its secondary hours. This field populates the
     * type subfield, which draws from a predefined list of opening hours types
     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
     * place.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setRegularSecondaryOpeningHours( int index, com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { if (regularSecondaryOpeningHoursBuilder_ == null) { ensureRegularSecondaryOpeningHoursIsMutable(); regularSecondaryOpeningHours_.set(index, builderForValue.build()); onChanged(); } else { regularSecondaryOpeningHoursBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. Contains an array of entries for information about regular
     * secondary hours of a business. Secondary hours are different from a
     * business's main hours. For example, a restaurant can specify drive through
     * hours or delivery hours as its secondary hours. This field populates the
     * type subfield, which draws from a predefined list of opening hours types
     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
     * place.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addRegularSecondaryOpeningHours( com.google.maps.places.v1.Place.OpeningHours value) { if (regularSecondaryOpeningHoursBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegularSecondaryOpeningHoursIsMutable(); regularSecondaryOpeningHours_.add(value); onChanged(); } else { regularSecondaryOpeningHoursBuilder_.addMessage(value); } return this; } /** * * *
     * Output only. Contains an array of entries for information about regular
     * secondary hours of a business. Secondary hours are different from a
     * business's main hours. For example, a restaurant can specify drive through
     * hours or delivery hours as its secondary hours. This field populates the
     * type subfield, which draws from a predefined list of opening hours types
     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
     * place.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addRegularSecondaryOpeningHours( int index, com.google.maps.places.v1.Place.OpeningHours value) { if (regularSecondaryOpeningHoursBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegularSecondaryOpeningHoursIsMutable(); regularSecondaryOpeningHours_.add(index, value); onChanged(); } else { regularSecondaryOpeningHoursBuilder_.addMessage(index, value); } return this; } /** * * *
     * Output only. Contains an array of entries for information about regular
     * secondary hours of a business. Secondary hours are different from a
     * business's main hours. For example, a restaurant can specify drive through
     * hours or delivery hours as its secondary hours. This field populates the
     * type subfield, which draws from a predefined list of opening hours types
     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
     * place.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addRegularSecondaryOpeningHours( com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { if (regularSecondaryOpeningHoursBuilder_ == null) { ensureRegularSecondaryOpeningHoursIsMutable(); regularSecondaryOpeningHours_.add(builderForValue.build()); onChanged(); } else { regularSecondaryOpeningHoursBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Output only. Contains an array of entries for information about regular
     * secondary hours of a business. Secondary hours are different from a
     * business's main hours. For example, a restaurant can specify drive through
     * hours or delivery hours as its secondary hours. This field populates the
     * type subfield, which draws from a predefined list of opening hours types
     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
     * place.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addRegularSecondaryOpeningHours( int index, com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { if (regularSecondaryOpeningHoursBuilder_ == null) { ensureRegularSecondaryOpeningHoursIsMutable(); regularSecondaryOpeningHours_.add(index, builderForValue.build()); onChanged(); } else { regularSecondaryOpeningHoursBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. Contains an array of entries for information about regular
     * secondary hours of a business. Secondary hours are different from a
     * business's main hours. For example, a restaurant can specify drive through
     * hours or delivery hours as its secondary hours. This field populates the
     * type subfield, which draws from a predefined list of opening hours types
     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
     * place.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAllRegularSecondaryOpeningHours( java.lang.Iterable values) { if (regularSecondaryOpeningHoursBuilder_ == null) { ensureRegularSecondaryOpeningHoursIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, regularSecondaryOpeningHours_); onChanged(); } else { regularSecondaryOpeningHoursBuilder_.addAllMessages(values); } return this; } /** * * *
     * Output only. Contains an array of entries for information about regular
     * secondary hours of a business. Secondary hours are different from a
     * business's main hours. For example, a restaurant can specify drive through
     * hours or delivery hours as its secondary hours. This field populates the
     * type subfield, which draws from a predefined list of opening hours types
     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
     * place.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearRegularSecondaryOpeningHours() { if (regularSecondaryOpeningHoursBuilder_ == null) { regularSecondaryOpeningHours_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000080); onChanged(); } else { regularSecondaryOpeningHoursBuilder_.clear(); } return this; } /** * * *
     * Output only. Contains an array of entries for information about regular
     * secondary hours of a business. Secondary hours are different from a
     * business's main hours. For example, a restaurant can specify drive through
     * hours or delivery hours as its secondary hours. This field populates the
     * type subfield, which draws from a predefined list of opening hours types
     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
     * place.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removeRegularSecondaryOpeningHours(int index) { if (regularSecondaryOpeningHoursBuilder_ == null) { ensureRegularSecondaryOpeningHoursIsMutable(); regularSecondaryOpeningHours_.remove(index); onChanged(); } else { regularSecondaryOpeningHoursBuilder_.remove(index); } return this; } /** * * *
     * Output only. Contains an array of entries for information about regular
     * secondary hours of a business. Secondary hours are different from a
     * business's main hours. For example, a restaurant can specify drive through
     * hours or delivery hours as its secondary hours. This field populates the
     * type subfield, which draws from a predefined list of opening hours types
     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
     * place.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.Builder getRegularSecondaryOpeningHoursBuilder(int index) { return getRegularSecondaryOpeningHoursFieldBuilder().getBuilder(index); } /** * * *
     * Output only. Contains an array of entries for information about regular
     * secondary hours of a business. Secondary hours are different from a
     * business's main hours. For example, a restaurant can specify drive through
     * hours or delivery hours as its secondary hours. This field populates the
     * type subfield, which draws from a predefined list of opening hours types
     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
     * place.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularSecondaryOpeningHoursOrBuilder(int index) { if (regularSecondaryOpeningHoursBuilder_ == null) { return regularSecondaryOpeningHours_.get(index); } else { return regularSecondaryOpeningHoursBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Output only. Contains an array of entries for information about regular
     * secondary hours of a business. Secondary hours are different from a
     * business's main hours. For example, a restaurant can specify drive through
     * hours or delivery hours as its secondary hours. This field populates the
     * type subfield, which draws from a predefined list of opening hours types
     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
     * place.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getRegularSecondaryOpeningHoursOrBuilderList() { if (regularSecondaryOpeningHoursBuilder_ != null) { return regularSecondaryOpeningHoursBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(regularSecondaryOpeningHours_); } } /** * * *
     * Output only. Contains an array of entries for information about regular
     * secondary hours of a business. Secondary hours are different from a
     * business's main hours. For example, a restaurant can specify drive through
     * hours or delivery hours as its secondary hours. This field populates the
     * type subfield, which draws from a predefined list of opening hours types
     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
     * place.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.Builder addRegularSecondaryOpeningHoursBuilder() { return getRegularSecondaryOpeningHoursFieldBuilder() .addBuilder(com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()); } /** * * *
     * Output only. Contains an array of entries for information about regular
     * secondary hours of a business. Secondary hours are different from a
     * business's main hours. For example, a restaurant can specify drive through
     * hours or delivery hours as its secondary hours. This field populates the
     * type subfield, which draws from a predefined list of opening hours types
     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
     * place.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.OpeningHours.Builder addRegularSecondaryOpeningHoursBuilder(int index) { return getRegularSecondaryOpeningHoursFieldBuilder() .addBuilder(index, com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()); } /** * * *
     * Output only. Contains an array of entries for information about regular
     * secondary hours of a business. Secondary hours are different from a
     * business's main hours. For example, a restaurant can specify drive through
     * hours or delivery hours as its secondary hours. This field populates the
     * type subfield, which draws from a predefined list of opening hours types
     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
     * place.
     * 
* * * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getRegularSecondaryOpeningHoursBuilderList() { return getRegularSecondaryOpeningHoursFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours, com.google.maps.places.v1.Place.OpeningHours.Builder, com.google.maps.places.v1.Place.OpeningHoursOrBuilder> getRegularSecondaryOpeningHoursFieldBuilder() { if (regularSecondaryOpeningHoursBuilder_ == null) { regularSecondaryOpeningHoursBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours, com.google.maps.places.v1.Place.OpeningHours.Builder, com.google.maps.places.v1.Place.OpeningHoursOrBuilder>( regularSecondaryOpeningHours_, ((bitField1_ & 0x00000080) != 0), getParentForChildren(), isClean()); regularSecondaryOpeningHours_ = null; } return regularSecondaryOpeningHoursBuilder_; } private com.google.type.LocalizedText editorialSummary_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> editorialSummaryBuilder_; /** * * *
     * Output only. Contains a summary of the place. A summary is comprised of a
     * textual overview, and also includes the language code for these if
     * applicable. Summary text must be presented as-is and can not be modified or
     * altered.
     * 
* * * .google.type.LocalizedText editorial_summary = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the editorialSummary field is set. */ public boolean hasEditorialSummary() { return ((bitField1_ & 0x00000100) != 0); } /** * * *
     * Output only. Contains a summary of the place. A summary is comprised of a
     * textual overview, and also includes the language code for these if
     * applicable. Summary text must be presented as-is and can not be modified or
     * altered.
     * 
* * * .google.type.LocalizedText editorial_summary = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The editorialSummary. */ public com.google.type.LocalizedText getEditorialSummary() { if (editorialSummaryBuilder_ == null) { return editorialSummary_ == null ? com.google.type.LocalizedText.getDefaultInstance() : editorialSummary_; } else { return editorialSummaryBuilder_.getMessage(); } } /** * * *
     * Output only. Contains a summary of the place. A summary is comprised of a
     * textual overview, and also includes the language code for these if
     * applicable. Summary text must be presented as-is and can not be modified or
     * altered.
     * 
* * * .google.type.LocalizedText editorial_summary = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setEditorialSummary(com.google.type.LocalizedText value) { if (editorialSummaryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } editorialSummary_ = value; } else { editorialSummaryBuilder_.setMessage(value); } bitField1_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Output only. Contains a summary of the place. A summary is comprised of a
     * textual overview, and also includes the language code for these if
     * applicable. Summary text must be presented as-is and can not be modified or
     * altered.
     * 
* * * .google.type.LocalizedText editorial_summary = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setEditorialSummary(com.google.type.LocalizedText.Builder builderForValue) { if (editorialSummaryBuilder_ == null) { editorialSummary_ = builderForValue.build(); } else { editorialSummaryBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Output only. Contains a summary of the place. A summary is comprised of a
     * textual overview, and also includes the language code for these if
     * applicable. Summary text must be presented as-is and can not be modified or
     * altered.
     * 
* * * .google.type.LocalizedText editorial_summary = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeEditorialSummary(com.google.type.LocalizedText value) { if (editorialSummaryBuilder_ == null) { if (((bitField1_ & 0x00000100) != 0) && editorialSummary_ != null && editorialSummary_ != com.google.type.LocalizedText.getDefaultInstance()) { getEditorialSummaryBuilder().mergeFrom(value); } else { editorialSummary_ = value; } } else { editorialSummaryBuilder_.mergeFrom(value); } bitField1_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Output only. Contains a summary of the place. A summary is comprised of a
     * textual overview, and also includes the language code for these if
     * applicable. Summary text must be presented as-is and can not be modified or
     * altered.
     * 
* * * .google.type.LocalizedText editorial_summary = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearEditorialSummary() { bitField1_ = (bitField1_ & ~0x00000100); editorialSummary_ = null; if (editorialSummaryBuilder_ != null) { editorialSummaryBuilder_.dispose(); editorialSummaryBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Contains a summary of the place. A summary is comprised of a
     * textual overview, and also includes the language code for these if
     * applicable. Summary text must be presented as-is and can not be modified or
     * altered.
     * 
* * * .google.type.LocalizedText editorial_summary = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.type.LocalizedText.Builder getEditorialSummaryBuilder() { bitField1_ |= 0x00000100; onChanged(); return getEditorialSummaryFieldBuilder().getBuilder(); } /** * * *
     * Output only. Contains a summary of the place. A summary is comprised of a
     * textual overview, and also includes the language code for these if
     * applicable. Summary text must be presented as-is and can not be modified or
     * altered.
     * 
* * * .google.type.LocalizedText editorial_summary = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.type.LocalizedTextOrBuilder getEditorialSummaryOrBuilder() { if (editorialSummaryBuilder_ != null) { return editorialSummaryBuilder_.getMessageOrBuilder(); } else { return editorialSummary_ == null ? com.google.type.LocalizedText.getDefaultInstance() : editorialSummary_; } } /** * * *
     * Output only. Contains a summary of the place. A summary is comprised of a
     * textual overview, and also includes the language code for these if
     * applicable. Summary text must be presented as-is and can not be modified or
     * altered.
     * 
* * * .google.type.LocalizedText editorial_summary = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> getEditorialSummaryFieldBuilder() { if (editorialSummaryBuilder_ == null) { editorialSummaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( getEditorialSummary(), getParentForChildren(), isClean()); editorialSummary_ = null; } return editorialSummaryBuilder_; } private boolean outdoorSeating_; /** * * *
     * Output only. Place provides outdoor seating.
     * 
* * optional bool outdoor_seating = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the outdoorSeating field is set. */ @java.lang.Override public boolean hasOutdoorSeating() { return ((bitField1_ & 0x00000200) != 0); } /** * * *
     * Output only. Place provides outdoor seating.
     * 
* * optional bool outdoor_seating = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The outdoorSeating. */ @java.lang.Override public boolean getOutdoorSeating() { return outdoorSeating_; } /** * * *
     * Output only. Place provides outdoor seating.
     * 
* * optional bool outdoor_seating = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The outdoorSeating to set. * @return This builder for chaining. */ public Builder setOutdoorSeating(boolean value) { outdoorSeating_ = value; bitField1_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Output only. Place provides outdoor seating.
     * 
* * optional bool outdoor_seating = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearOutdoorSeating() { bitField1_ = (bitField1_ & ~0x00000200); outdoorSeating_ = false; onChanged(); return this; } private boolean liveMusic_; /** * * *
     * Output only. Place provides live music.
     * 
* * optional bool live_music = 56 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the liveMusic field is set. */ @java.lang.Override public boolean hasLiveMusic() { return ((bitField1_ & 0x00000400) != 0); } /** * * *
     * Output only. Place provides live music.
     * 
* * optional bool live_music = 56 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The liveMusic. */ @java.lang.Override public boolean getLiveMusic() { return liveMusic_; } /** * * *
     * Output only. Place provides live music.
     * 
* * optional bool live_music = 56 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The liveMusic to set. * @return This builder for chaining. */ public Builder setLiveMusic(boolean value) { liveMusic_ = value; bitField1_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Output only. Place provides live music.
     * 
* * optional bool live_music = 56 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearLiveMusic() { bitField1_ = (bitField1_ & ~0x00000400); liveMusic_ = false; onChanged(); return this; } private boolean menuForChildren_; /** * * *
     * Output only. Place has a children's menu.
     * 
* * optional bool menu_for_children = 57 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the menuForChildren field is set. */ @java.lang.Override public boolean hasMenuForChildren() { return ((bitField1_ & 0x00000800) != 0); } /** * * *
     * Output only. Place has a children's menu.
     * 
* * optional bool menu_for_children = 57 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The menuForChildren. */ @java.lang.Override public boolean getMenuForChildren() { return menuForChildren_; } /** * * *
     * Output only. Place has a children's menu.
     * 
* * optional bool menu_for_children = 57 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The menuForChildren to set. * @return This builder for chaining. */ public Builder setMenuForChildren(boolean value) { menuForChildren_ = value; bitField1_ |= 0x00000800; onChanged(); return this; } /** * * *
     * Output only. Place has a children's menu.
     * 
* * optional bool menu_for_children = 57 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearMenuForChildren() { bitField1_ = (bitField1_ & ~0x00000800); menuForChildren_ = false; onChanged(); return this; } private boolean servesCocktails_; /** * * *
     * Output only. Place serves cocktails.
     * 
* * optional bool serves_cocktails = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the servesCocktails field is set. */ @java.lang.Override public boolean hasServesCocktails() { return ((bitField1_ & 0x00001000) != 0); } /** * * *
     * Output only. Place serves cocktails.
     * 
* * optional bool serves_cocktails = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The servesCocktails. */ @java.lang.Override public boolean getServesCocktails() { return servesCocktails_; } /** * * *
     * Output only. Place serves cocktails.
     * 
* * optional bool serves_cocktails = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The servesCocktails to set. * @return This builder for chaining. */ public Builder setServesCocktails(boolean value) { servesCocktails_ = value; bitField1_ |= 0x00001000; onChanged(); return this; } /** * * *
     * Output only. Place serves cocktails.
     * 
* * optional bool serves_cocktails = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearServesCocktails() { bitField1_ = (bitField1_ & ~0x00001000); servesCocktails_ = false; onChanged(); return this; } private boolean servesDessert_; /** * * *
     * Output only. Place serves dessert.
     * 
* * optional bool serves_dessert = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the servesDessert field is set. */ @java.lang.Override public boolean hasServesDessert() { return ((bitField1_ & 0x00002000) != 0); } /** * * *
     * Output only. Place serves dessert.
     * 
* * optional bool serves_dessert = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servesDessert. */ @java.lang.Override public boolean getServesDessert() { return servesDessert_; } /** * * *
     * Output only. Place serves dessert.
     * 
* * optional bool serves_dessert = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The servesDessert to set. * @return This builder for chaining. */ public Builder setServesDessert(boolean value) { servesDessert_ = value; bitField1_ |= 0x00002000; onChanged(); return this; } /** * * *
     * Output only. Place serves dessert.
     * 
* * optional bool serves_dessert = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearServesDessert() { bitField1_ = (bitField1_ & ~0x00002000); servesDessert_ = false; onChanged(); return this; } private boolean servesCoffee_; /** * * *
     * Output only. Place serves coffee.
     * 
* * optional bool serves_coffee = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the servesCoffee field is set. */ @java.lang.Override public boolean hasServesCoffee() { return ((bitField1_ & 0x00004000) != 0); } /** * * *
     * Output only. Place serves coffee.
     * 
* * optional bool serves_coffee = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servesCoffee. */ @java.lang.Override public boolean getServesCoffee() { return servesCoffee_; } /** * * *
     * Output only. Place serves coffee.
     * 
* * optional bool serves_coffee = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The servesCoffee to set. * @return This builder for chaining. */ public Builder setServesCoffee(boolean value) { servesCoffee_ = value; bitField1_ |= 0x00004000; onChanged(); return this; } /** * * *
     * Output only. Place serves coffee.
     * 
* * optional bool serves_coffee = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearServesCoffee() { bitField1_ = (bitField1_ & ~0x00004000); servesCoffee_ = false; onChanged(); return this; } private boolean goodForChildren_; /** * * *
     * Output only. Place is good for children.
     * 
* * optional bool good_for_children = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the goodForChildren field is set. */ @java.lang.Override public boolean hasGoodForChildren() { return ((bitField1_ & 0x00008000) != 0); } /** * * *
     * Output only. Place is good for children.
     * 
* * optional bool good_for_children = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The goodForChildren. */ @java.lang.Override public boolean getGoodForChildren() { return goodForChildren_; } /** * * *
     * Output only. Place is good for children.
     * 
* * optional bool good_for_children = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The goodForChildren to set. * @return This builder for chaining. */ public Builder setGoodForChildren(boolean value) { goodForChildren_ = value; bitField1_ |= 0x00008000; onChanged(); return this; } /** * * *
     * Output only. Place is good for children.
     * 
* * optional bool good_for_children = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearGoodForChildren() { bitField1_ = (bitField1_ & ~0x00008000); goodForChildren_ = false; onChanged(); return this; } private boolean allowsDogs_; /** * * *
     * Output only. Place allows dogs.
     * 
* * optional bool allows_dogs = 63 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the allowsDogs field is set. */ @java.lang.Override public boolean hasAllowsDogs() { return ((bitField1_ & 0x00010000) != 0); } /** * * *
     * Output only. Place allows dogs.
     * 
* * optional bool allows_dogs = 63 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The allowsDogs. */ @java.lang.Override public boolean getAllowsDogs() { return allowsDogs_; } /** * * *
     * Output only. Place allows dogs.
     * 
* * optional bool allows_dogs = 63 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The allowsDogs to set. * @return This builder for chaining. */ public Builder setAllowsDogs(boolean value) { allowsDogs_ = value; bitField1_ |= 0x00010000; onChanged(); return this; } /** * * *
     * Output only. Place allows dogs.
     * 
* * optional bool allows_dogs = 63 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearAllowsDogs() { bitField1_ = (bitField1_ & ~0x00010000); allowsDogs_ = false; onChanged(); return this; } private boolean restroom_; /** * * *
     * Output only. Place has restroom.
     * 
* * optional bool restroom = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the restroom field is set. */ @java.lang.Override public boolean hasRestroom() { return ((bitField1_ & 0x00020000) != 0); } /** * * *
     * Output only. Place has restroom.
     * 
* * optional bool restroom = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The restroom. */ @java.lang.Override public boolean getRestroom() { return restroom_; } /** * * *
     * Output only. Place has restroom.
     * 
* * optional bool restroom = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The restroom to set. * @return This builder for chaining. */ public Builder setRestroom(boolean value) { restroom_ = value; bitField1_ |= 0x00020000; onChanged(); return this; } /** * * *
     * Output only. Place has restroom.
     * 
* * optional bool restroom = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearRestroom() { bitField1_ = (bitField1_ & ~0x00020000); restroom_ = false; onChanged(); return this; } private boolean goodForGroups_; /** * * *
     * Output only. Place accommodates groups.
     * 
* * optional bool good_for_groups = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the goodForGroups field is set. */ @java.lang.Override public boolean hasGoodForGroups() { return ((bitField1_ & 0x00040000) != 0); } /** * * *
     * Output only. Place accommodates groups.
     * 
* * optional bool good_for_groups = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The goodForGroups. */ @java.lang.Override public boolean getGoodForGroups() { return goodForGroups_; } /** * * *
     * Output only. Place accommodates groups.
     * 
* * optional bool good_for_groups = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The goodForGroups to set. * @return This builder for chaining. */ public Builder setGoodForGroups(boolean value) { goodForGroups_ = value; bitField1_ |= 0x00040000; onChanged(); return this; } /** * * *
     * Output only. Place accommodates groups.
     * 
* * optional bool good_for_groups = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearGoodForGroups() { bitField1_ = (bitField1_ & ~0x00040000); goodForGroups_ = false; onChanged(); return this; } private boolean goodForWatchingSports_; /** * * *
     * Output only. Place is suitable for watching sports.
     * 
* * * optional bool good_for_watching_sports = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the goodForWatchingSports field is set. */ @java.lang.Override public boolean hasGoodForWatchingSports() { return ((bitField1_ & 0x00080000) != 0); } /** * * *
     * Output only. Place is suitable for watching sports.
     * 
* * * optional bool good_for_watching_sports = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The goodForWatchingSports. */ @java.lang.Override public boolean getGoodForWatchingSports() { return goodForWatchingSports_; } /** * * *
     * Output only. Place is suitable for watching sports.
     * 
* * * optional bool good_for_watching_sports = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The goodForWatchingSports to set. * @return This builder for chaining. */ public Builder setGoodForWatchingSports(boolean value) { goodForWatchingSports_ = value; bitField1_ |= 0x00080000; onChanged(); return this; } /** * * *
     * Output only. Place is suitable for watching sports.
     * 
* * * optional bool good_for_watching_sports = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearGoodForWatchingSports() { bitField1_ = (bitField1_ & ~0x00080000); goodForWatchingSports_ = false; onChanged(); return this; } private com.google.maps.places.v1.Place.PaymentOptions paymentOptions_; private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.PaymentOptions, com.google.maps.places.v1.Place.PaymentOptions.Builder, com.google.maps.places.v1.Place.PaymentOptionsOrBuilder> paymentOptionsBuilder_; /** * * .google.maps.places.v1.Place.PaymentOptions payment_options = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the paymentOptions field is set. */ public boolean hasPaymentOptions() { return ((bitField1_ & 0x00100000) != 0); } /** * * .google.maps.places.v1.Place.PaymentOptions payment_options = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The paymentOptions. */ public com.google.maps.places.v1.Place.PaymentOptions getPaymentOptions() { if (paymentOptionsBuilder_ == null) { return paymentOptions_ == null ? com.google.maps.places.v1.Place.PaymentOptions.getDefaultInstance() : paymentOptions_; } else { return paymentOptionsBuilder_.getMessage(); } } /** * * .google.maps.places.v1.Place.PaymentOptions payment_options = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setPaymentOptions(com.google.maps.places.v1.Place.PaymentOptions value) { if (paymentOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } paymentOptions_ = value; } else { paymentOptionsBuilder_.setMessage(value); } bitField1_ |= 0x00100000; onChanged(); return this; } /** * * .google.maps.places.v1.Place.PaymentOptions payment_options = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setPaymentOptions( com.google.maps.places.v1.Place.PaymentOptions.Builder builderForValue) { if (paymentOptionsBuilder_ == null) { paymentOptions_ = builderForValue.build(); } else { paymentOptionsBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00100000; onChanged(); return this; } /** * * .google.maps.places.v1.Place.PaymentOptions payment_options = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergePaymentOptions(com.google.maps.places.v1.Place.PaymentOptions value) { if (paymentOptionsBuilder_ == null) { if (((bitField1_ & 0x00100000) != 0) && paymentOptions_ != null && paymentOptions_ != com.google.maps.places.v1.Place.PaymentOptions.getDefaultInstance()) { getPaymentOptionsBuilder().mergeFrom(value); } else { paymentOptions_ = value; } } else { paymentOptionsBuilder_.mergeFrom(value); } bitField1_ |= 0x00100000; onChanged(); return this; } /** * * .google.maps.places.v1.Place.PaymentOptions payment_options = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearPaymentOptions() { bitField1_ = (bitField1_ & ~0x00100000); paymentOptions_ = null; if (paymentOptionsBuilder_ != null) { paymentOptionsBuilder_.dispose(); paymentOptionsBuilder_ = null; } onChanged(); return this; } /** * * .google.maps.places.v1.Place.PaymentOptions payment_options = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.PaymentOptions.Builder getPaymentOptionsBuilder() { bitField1_ |= 0x00100000; onChanged(); return getPaymentOptionsFieldBuilder().getBuilder(); } /** * * .google.maps.places.v1.Place.PaymentOptions payment_options = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.PaymentOptionsOrBuilder getPaymentOptionsOrBuilder() { if (paymentOptionsBuilder_ != null) { return paymentOptionsBuilder_.getMessageOrBuilder(); } else { return paymentOptions_ == null ? com.google.maps.places.v1.Place.PaymentOptions.getDefaultInstance() : paymentOptions_; } } /** * * .google.maps.places.v1.Place.PaymentOptions payment_options = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.PaymentOptions, com.google.maps.places.v1.Place.PaymentOptions.Builder, com.google.maps.places.v1.Place.PaymentOptionsOrBuilder> getPaymentOptionsFieldBuilder() { if (paymentOptionsBuilder_ == null) { paymentOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.PaymentOptions, com.google.maps.places.v1.Place.PaymentOptions.Builder, com.google.maps.places.v1.Place.PaymentOptionsOrBuilder>( getPaymentOptions(), getParentForChildren(), isClean()); paymentOptions_ = null; } return paymentOptionsBuilder_; } private com.google.maps.places.v1.Place.ParkingOptions parkingOptions_; private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.ParkingOptions, com.google.maps.places.v1.Place.ParkingOptions.Builder, com.google.maps.places.v1.Place.ParkingOptionsOrBuilder> parkingOptionsBuilder_; /** * * *
     * Output only. Options of parking provided by the place.
     * 
* * * .google.maps.places.v1.Place.ParkingOptions parking_options = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the parkingOptions field is set. */ public boolean hasParkingOptions() { return ((bitField1_ & 0x00200000) != 0); } /** * * *
     * Output only. Options of parking provided by the place.
     * 
* * * .google.maps.places.v1.Place.ParkingOptions parking_options = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The parkingOptions. */ public com.google.maps.places.v1.Place.ParkingOptions getParkingOptions() { if (parkingOptionsBuilder_ == null) { return parkingOptions_ == null ? com.google.maps.places.v1.Place.ParkingOptions.getDefaultInstance() : parkingOptions_; } else { return parkingOptionsBuilder_.getMessage(); } } /** * * *
     * Output only. Options of parking provided by the place.
     * 
* * * .google.maps.places.v1.Place.ParkingOptions parking_options = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setParkingOptions(com.google.maps.places.v1.Place.ParkingOptions value) { if (parkingOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } parkingOptions_ = value; } else { parkingOptionsBuilder_.setMessage(value); } bitField1_ |= 0x00200000; onChanged(); return this; } /** * * *
     * Output only. Options of parking provided by the place.
     * 
* * * .google.maps.places.v1.Place.ParkingOptions parking_options = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setParkingOptions( com.google.maps.places.v1.Place.ParkingOptions.Builder builderForValue) { if (parkingOptionsBuilder_ == null) { parkingOptions_ = builderForValue.build(); } else { parkingOptionsBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00200000; onChanged(); return this; } /** * * *
     * Output only. Options of parking provided by the place.
     * 
* * * .google.maps.places.v1.Place.ParkingOptions parking_options = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeParkingOptions(com.google.maps.places.v1.Place.ParkingOptions value) { if (parkingOptionsBuilder_ == null) { if (((bitField1_ & 0x00200000) != 0) && parkingOptions_ != null && parkingOptions_ != com.google.maps.places.v1.Place.ParkingOptions.getDefaultInstance()) { getParkingOptionsBuilder().mergeFrom(value); } else { parkingOptions_ = value; } } else { parkingOptionsBuilder_.mergeFrom(value); } bitField1_ |= 0x00200000; onChanged(); return this; } /** * * *
     * Output only. Options of parking provided by the place.
     * 
* * * .google.maps.places.v1.Place.ParkingOptions parking_options = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearParkingOptions() { bitField1_ = (bitField1_ & ~0x00200000); parkingOptions_ = null; if (parkingOptionsBuilder_ != null) { parkingOptionsBuilder_.dispose(); parkingOptionsBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Options of parking provided by the place.
     * 
* * * .google.maps.places.v1.Place.ParkingOptions parking_options = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.ParkingOptions.Builder getParkingOptionsBuilder() { bitField1_ |= 0x00200000; onChanged(); return getParkingOptionsFieldBuilder().getBuilder(); } /** * * *
     * Output only. Options of parking provided by the place.
     * 
* * * .google.maps.places.v1.Place.ParkingOptions parking_options = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.ParkingOptionsOrBuilder getParkingOptionsOrBuilder() { if (parkingOptionsBuilder_ != null) { return parkingOptionsBuilder_.getMessageOrBuilder(); } else { return parkingOptions_ == null ? com.google.maps.places.v1.Place.ParkingOptions.getDefaultInstance() : parkingOptions_; } } /** * * *
     * Output only. Options of parking provided by the place.
     * 
* * * .google.maps.places.v1.Place.ParkingOptions parking_options = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.ParkingOptions, com.google.maps.places.v1.Place.ParkingOptions.Builder, com.google.maps.places.v1.Place.ParkingOptionsOrBuilder> getParkingOptionsFieldBuilder() { if (parkingOptionsBuilder_ == null) { parkingOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.ParkingOptions, com.google.maps.places.v1.Place.ParkingOptions.Builder, com.google.maps.places.v1.Place.ParkingOptionsOrBuilder>( getParkingOptions(), getParentForChildren(), isClean()); parkingOptions_ = null; } return parkingOptionsBuilder_; } private java.util.List subDestinations_ = java.util.Collections.emptyList(); private void ensureSubDestinationsIsMutable() { if (!((bitField1_ & 0x00400000) != 0)) { subDestinations_ = new java.util.ArrayList( subDestinations_); bitField1_ |= 0x00400000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.SubDestination, com.google.maps.places.v1.Place.SubDestination.Builder, com.google.maps.places.v1.Place.SubDestinationOrBuilder> subDestinationsBuilder_; /** * * *
     * Output only. A list of sub destinations related to the place.
     * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getSubDestinationsList() { if (subDestinationsBuilder_ == null) { return java.util.Collections.unmodifiableList(subDestinations_); } else { return subDestinationsBuilder_.getMessageList(); } } /** * * *
     * Output only. A list of sub destinations related to the place.
     * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public int getSubDestinationsCount() { if (subDestinationsBuilder_ == null) { return subDestinations_.size(); } else { return subDestinationsBuilder_.getCount(); } } /** * * *
     * Output only. A list of sub destinations related to the place.
     * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.SubDestination getSubDestinations(int index) { if (subDestinationsBuilder_ == null) { return subDestinations_.get(index); } else { return subDestinationsBuilder_.getMessage(index); } } /** * * *
     * Output only. A list of sub destinations related to the place.
     * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setSubDestinations( int index, com.google.maps.places.v1.Place.SubDestination value) { if (subDestinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubDestinationsIsMutable(); subDestinations_.set(index, value); onChanged(); } else { subDestinationsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Output only. A list of sub destinations related to the place.
     * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setSubDestinations( int index, com.google.maps.places.v1.Place.SubDestination.Builder builderForValue) { if (subDestinationsBuilder_ == null) { ensureSubDestinationsIsMutable(); subDestinations_.set(index, builderForValue.build()); onChanged(); } else { subDestinationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. A list of sub destinations related to the place.
     * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addSubDestinations(com.google.maps.places.v1.Place.SubDestination value) { if (subDestinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubDestinationsIsMutable(); subDestinations_.add(value); onChanged(); } else { subDestinationsBuilder_.addMessage(value); } return this; } /** * * *
     * Output only. A list of sub destinations related to the place.
     * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addSubDestinations( int index, com.google.maps.places.v1.Place.SubDestination value) { if (subDestinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubDestinationsIsMutable(); subDestinations_.add(index, value); onChanged(); } else { subDestinationsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Output only. A list of sub destinations related to the place.
     * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addSubDestinations( com.google.maps.places.v1.Place.SubDestination.Builder builderForValue) { if (subDestinationsBuilder_ == null) { ensureSubDestinationsIsMutable(); subDestinations_.add(builderForValue.build()); onChanged(); } else { subDestinationsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Output only. A list of sub destinations related to the place.
     * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addSubDestinations( int index, com.google.maps.places.v1.Place.SubDestination.Builder builderForValue) { if (subDestinationsBuilder_ == null) { ensureSubDestinationsIsMutable(); subDestinations_.add(index, builderForValue.build()); onChanged(); } else { subDestinationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. A list of sub destinations related to the place.
     * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAllSubDestinations( java.lang.Iterable values) { if (subDestinationsBuilder_ == null) { ensureSubDestinationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subDestinations_); onChanged(); } else { subDestinationsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Output only. A list of sub destinations related to the place.
     * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearSubDestinations() { if (subDestinationsBuilder_ == null) { subDestinations_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00400000); onChanged(); } else { subDestinationsBuilder_.clear(); } return this; } /** * * *
     * Output only. A list of sub destinations related to the place.
     * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removeSubDestinations(int index) { if (subDestinationsBuilder_ == null) { ensureSubDestinationsIsMutable(); subDestinations_.remove(index); onChanged(); } else { subDestinationsBuilder_.remove(index); } return this; } /** * * *
     * Output only. A list of sub destinations related to the place.
     * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.SubDestination.Builder getSubDestinationsBuilder( int index) { return getSubDestinationsFieldBuilder().getBuilder(index); } /** * * *
     * Output only. A list of sub destinations related to the place.
     * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.SubDestinationOrBuilder getSubDestinationsOrBuilder( int index) { if (subDestinationsBuilder_ == null) { return subDestinations_.get(index); } else { return subDestinationsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Output only. A list of sub destinations related to the place.
     * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getSubDestinationsOrBuilderList() { if (subDestinationsBuilder_ != null) { return subDestinationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(subDestinations_); } } /** * * *
     * Output only. A list of sub destinations related to the place.
     * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.SubDestination.Builder addSubDestinationsBuilder() { return getSubDestinationsFieldBuilder() .addBuilder(com.google.maps.places.v1.Place.SubDestination.getDefaultInstance()); } /** * * *
     * Output only. A list of sub destinations related to the place.
     * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.SubDestination.Builder addSubDestinationsBuilder( int index) { return getSubDestinationsFieldBuilder() .addBuilder(index, com.google.maps.places.v1.Place.SubDestination.getDefaultInstance()); } /** * * *
     * Output only. A list of sub destinations related to the place.
     * 
* * * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getSubDestinationsBuilderList() { return getSubDestinationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.SubDestination, com.google.maps.places.v1.Place.SubDestination.Builder, com.google.maps.places.v1.Place.SubDestinationOrBuilder> getSubDestinationsFieldBuilder() { if (subDestinationsBuilder_ == null) { subDestinationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.SubDestination, com.google.maps.places.v1.Place.SubDestination.Builder, com.google.maps.places.v1.Place.SubDestinationOrBuilder>( subDestinations_, ((bitField1_ & 0x00400000) != 0), getParentForChildren(), isClean()); subDestinations_ = null; } return subDestinationsBuilder_; } private com.google.maps.places.v1.Place.AccessibilityOptions accessibilityOptions_; private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.AccessibilityOptions, com.google.maps.places.v1.Place.AccessibilityOptions.Builder, com.google.maps.places.v1.Place.AccessibilityOptionsOrBuilder> accessibilityOptionsBuilder_; /** * * *
     * Output only. Information about the accessibility options a place offers.
     * 
* * * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the accessibilityOptions field is set. */ public boolean hasAccessibilityOptions() { return ((bitField1_ & 0x00800000) != 0); } /** * * *
     * Output only. Information about the accessibility options a place offers.
     * 
* * * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The accessibilityOptions. */ public com.google.maps.places.v1.Place.AccessibilityOptions getAccessibilityOptions() { if (accessibilityOptionsBuilder_ == null) { return accessibilityOptions_ == null ? com.google.maps.places.v1.Place.AccessibilityOptions.getDefaultInstance() : accessibilityOptions_; } else { return accessibilityOptionsBuilder_.getMessage(); } } /** * * *
     * Output only. Information about the accessibility options a place offers.
     * 
* * * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setAccessibilityOptions( com.google.maps.places.v1.Place.AccessibilityOptions value) { if (accessibilityOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } accessibilityOptions_ = value; } else { accessibilityOptionsBuilder_.setMessage(value); } bitField1_ |= 0x00800000; onChanged(); return this; } /** * * *
     * Output only. Information about the accessibility options a place offers.
     * 
* * * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setAccessibilityOptions( com.google.maps.places.v1.Place.AccessibilityOptions.Builder builderForValue) { if (accessibilityOptionsBuilder_ == null) { accessibilityOptions_ = builderForValue.build(); } else { accessibilityOptionsBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00800000; onChanged(); return this; } /** * * *
     * Output only. Information about the accessibility options a place offers.
     * 
* * * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeAccessibilityOptions( com.google.maps.places.v1.Place.AccessibilityOptions value) { if (accessibilityOptionsBuilder_ == null) { if (((bitField1_ & 0x00800000) != 0) && accessibilityOptions_ != null && accessibilityOptions_ != com.google.maps.places.v1.Place.AccessibilityOptions.getDefaultInstance()) { getAccessibilityOptionsBuilder().mergeFrom(value); } else { accessibilityOptions_ = value; } } else { accessibilityOptionsBuilder_.mergeFrom(value); } bitField1_ |= 0x00800000; onChanged(); return this; } /** * * *
     * Output only. Information about the accessibility options a place offers.
     * 
* * * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearAccessibilityOptions() { bitField1_ = (bitField1_ & ~0x00800000); accessibilityOptions_ = null; if (accessibilityOptionsBuilder_ != null) { accessibilityOptionsBuilder_.dispose(); accessibilityOptionsBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Information about the accessibility options a place offers.
     * 
* * * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.AccessibilityOptions.Builder getAccessibilityOptionsBuilder() { bitField1_ |= 0x00800000; onChanged(); return getAccessibilityOptionsFieldBuilder().getBuilder(); } /** * * *
     * Output only. Information about the accessibility options a place offers.
     * 
* * * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.Place.AccessibilityOptionsOrBuilder getAccessibilityOptionsOrBuilder() { if (accessibilityOptionsBuilder_ != null) { return accessibilityOptionsBuilder_.getMessageOrBuilder(); } else { return accessibilityOptions_ == null ? com.google.maps.places.v1.Place.AccessibilityOptions.getDefaultInstance() : accessibilityOptions_; } } /** * * *
     * Output only. Information about the accessibility options a place offers.
     * 
* * * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.AccessibilityOptions, com.google.maps.places.v1.Place.AccessibilityOptions.Builder, com.google.maps.places.v1.Place.AccessibilityOptionsOrBuilder> getAccessibilityOptionsFieldBuilder() { if (accessibilityOptionsBuilder_ == null) { accessibilityOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.Place.AccessibilityOptions, com.google.maps.places.v1.Place.AccessibilityOptions.Builder, com.google.maps.places.v1.Place.AccessibilityOptionsOrBuilder>( getAccessibilityOptions(), getParentForChildren(), isClean()); accessibilityOptions_ = null; } return accessibilityOptionsBuilder_; } private com.google.maps.places.v1.FuelOptions fuelOptions_; private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.FuelOptions, com.google.maps.places.v1.FuelOptions.Builder, com.google.maps.places.v1.FuelOptionsOrBuilder> fuelOptionsBuilder_; /** * * *
     * Output only. The most recent information about fuel options in a gas
     * station. This information is updated regularly.
     * 
* * * .google.maps.places.v1.FuelOptions fuel_options = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the fuelOptions field is set. */ public boolean hasFuelOptions() { return ((bitField1_ & 0x01000000) != 0); } /** * * *
     * Output only. The most recent information about fuel options in a gas
     * station. This information is updated regularly.
     * 
* * * .google.maps.places.v1.FuelOptions fuel_options = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The fuelOptions. */ public com.google.maps.places.v1.FuelOptions getFuelOptions() { if (fuelOptionsBuilder_ == null) { return fuelOptions_ == null ? com.google.maps.places.v1.FuelOptions.getDefaultInstance() : fuelOptions_; } else { return fuelOptionsBuilder_.getMessage(); } } /** * * *
     * Output only. The most recent information about fuel options in a gas
     * station. This information is updated regularly.
     * 
* * * .google.maps.places.v1.FuelOptions fuel_options = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setFuelOptions(com.google.maps.places.v1.FuelOptions value) { if (fuelOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fuelOptions_ = value; } else { fuelOptionsBuilder_.setMessage(value); } bitField1_ |= 0x01000000; onChanged(); return this; } /** * * *
     * Output only. The most recent information about fuel options in a gas
     * station. This information is updated regularly.
     * 
* * * .google.maps.places.v1.FuelOptions fuel_options = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setFuelOptions(com.google.maps.places.v1.FuelOptions.Builder builderForValue) { if (fuelOptionsBuilder_ == null) { fuelOptions_ = builderForValue.build(); } else { fuelOptionsBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x01000000; onChanged(); return this; } /** * * *
     * Output only. The most recent information about fuel options in a gas
     * station. This information is updated regularly.
     * 
* * * .google.maps.places.v1.FuelOptions fuel_options = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeFuelOptions(com.google.maps.places.v1.FuelOptions value) { if (fuelOptionsBuilder_ == null) { if (((bitField1_ & 0x01000000) != 0) && fuelOptions_ != null && fuelOptions_ != com.google.maps.places.v1.FuelOptions.getDefaultInstance()) { getFuelOptionsBuilder().mergeFrom(value); } else { fuelOptions_ = value; } } else { fuelOptionsBuilder_.mergeFrom(value); } bitField1_ |= 0x01000000; onChanged(); return this; } /** * * *
     * Output only. The most recent information about fuel options in a gas
     * station. This information is updated regularly.
     * 
* * * .google.maps.places.v1.FuelOptions fuel_options = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearFuelOptions() { bitField1_ = (bitField1_ & ~0x01000000); fuelOptions_ = null; if (fuelOptionsBuilder_ != null) { fuelOptionsBuilder_.dispose(); fuelOptionsBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The most recent information about fuel options in a gas
     * station. This information is updated regularly.
     * 
* * * .google.maps.places.v1.FuelOptions fuel_options = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.FuelOptions.Builder getFuelOptionsBuilder() { bitField1_ |= 0x01000000; onChanged(); return getFuelOptionsFieldBuilder().getBuilder(); } /** * * *
     * Output only. The most recent information about fuel options in a gas
     * station. This information is updated regularly.
     * 
* * * .google.maps.places.v1.FuelOptions fuel_options = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.FuelOptionsOrBuilder getFuelOptionsOrBuilder() { if (fuelOptionsBuilder_ != null) { return fuelOptionsBuilder_.getMessageOrBuilder(); } else { return fuelOptions_ == null ? com.google.maps.places.v1.FuelOptions.getDefaultInstance() : fuelOptions_; } } /** * * *
     * Output only. The most recent information about fuel options in a gas
     * station. This information is updated regularly.
     * 
* * * .google.maps.places.v1.FuelOptions fuel_options = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.FuelOptions, com.google.maps.places.v1.FuelOptions.Builder, com.google.maps.places.v1.FuelOptionsOrBuilder> getFuelOptionsFieldBuilder() { if (fuelOptionsBuilder_ == null) { fuelOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.FuelOptions, com.google.maps.places.v1.FuelOptions.Builder, com.google.maps.places.v1.FuelOptionsOrBuilder>( getFuelOptions(), getParentForChildren(), isClean()); fuelOptions_ = null; } return fuelOptionsBuilder_; } private com.google.maps.places.v1.EVChargeOptions evChargeOptions_; private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.EVChargeOptions, com.google.maps.places.v1.EVChargeOptions.Builder, com.google.maps.places.v1.EVChargeOptionsOrBuilder> evChargeOptionsBuilder_; /** * * *
     * Output only. Information of ev charging options.
     * 
* * * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the evChargeOptions field is set. */ public boolean hasEvChargeOptions() { return ((bitField1_ & 0x02000000) != 0); } /** * * *
     * Output only. Information of ev charging options.
     * 
* * * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The evChargeOptions. */ public com.google.maps.places.v1.EVChargeOptions getEvChargeOptions() { if (evChargeOptionsBuilder_ == null) { return evChargeOptions_ == null ? com.google.maps.places.v1.EVChargeOptions.getDefaultInstance() : evChargeOptions_; } else { return evChargeOptionsBuilder_.getMessage(); } } /** * * *
     * Output only. Information of ev charging options.
     * 
* * * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setEvChargeOptions(com.google.maps.places.v1.EVChargeOptions value) { if (evChargeOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } evChargeOptions_ = value; } else { evChargeOptionsBuilder_.setMessage(value); } bitField1_ |= 0x02000000; onChanged(); return this; } /** * * *
     * Output only. Information of ev charging options.
     * 
* * * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setEvChargeOptions( com.google.maps.places.v1.EVChargeOptions.Builder builderForValue) { if (evChargeOptionsBuilder_ == null) { evChargeOptions_ = builderForValue.build(); } else { evChargeOptionsBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x02000000; onChanged(); return this; } /** * * *
     * Output only. Information of ev charging options.
     * 
* * * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeEvChargeOptions(com.google.maps.places.v1.EVChargeOptions value) { if (evChargeOptionsBuilder_ == null) { if (((bitField1_ & 0x02000000) != 0) && evChargeOptions_ != null && evChargeOptions_ != com.google.maps.places.v1.EVChargeOptions.getDefaultInstance()) { getEvChargeOptionsBuilder().mergeFrom(value); } else { evChargeOptions_ = value; } } else { evChargeOptionsBuilder_.mergeFrom(value); } bitField1_ |= 0x02000000; onChanged(); return this; } /** * * *
     * Output only. Information of ev charging options.
     * 
* * * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearEvChargeOptions() { bitField1_ = (bitField1_ & ~0x02000000); evChargeOptions_ = null; if (evChargeOptionsBuilder_ != null) { evChargeOptionsBuilder_.dispose(); evChargeOptionsBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Information of ev charging options.
     * 
* * * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.EVChargeOptions.Builder getEvChargeOptionsBuilder() { bitField1_ |= 0x02000000; onChanged(); return getEvChargeOptionsFieldBuilder().getBuilder(); } /** * * *
     * Output only. Information of ev charging options.
     * 
* * * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.maps.places.v1.EVChargeOptionsOrBuilder getEvChargeOptionsOrBuilder() { if (evChargeOptionsBuilder_ != null) { return evChargeOptionsBuilder_.getMessageOrBuilder(); } else { return evChargeOptions_ == null ? com.google.maps.places.v1.EVChargeOptions.getDefaultInstance() : evChargeOptions_; } } /** * * *
     * Output only. Information of ev charging options.
     * 
* * * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.EVChargeOptions, com.google.maps.places.v1.EVChargeOptions.Builder, com.google.maps.places.v1.EVChargeOptionsOrBuilder> getEvChargeOptionsFieldBuilder() { if (evChargeOptionsBuilder_ == null) { evChargeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.maps.places.v1.EVChargeOptions, com.google.maps.places.v1.EVChargeOptions.Builder, com.google.maps.places.v1.EVChargeOptionsOrBuilder>( getEvChargeOptions(), getParentForChildren(), isClean()); evChargeOptions_ = null; } return evChargeOptionsBuilder_; } @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.maps.places.v1.Place) } // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place) private static final com.google.maps.places.v1.Place DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.maps.places.v1.Place(); } public static com.google.maps.places.v1.Place getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Place parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.maps.places.v1.Place getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy