Class HotelReconciliation

  • All Implemented Interfaces:
    HotelReconciliationOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable

    public final class HotelReconciliation
    extends com.google.protobuf.GeneratedMessageV3
    implements HotelReconciliationOrBuilder
     A hotel reconciliation. It contains conversion information from Hotel
     bookings to reconcile with advertiser records. These rows may be updated
     or canceled before billing via Bulk Uploads.
     
    Protobuf type google.ads.googleads.v10.resources.HotelReconciliation
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getResourceName

        public java.lang.String getResourceName()
         Immutable. The resource name of the hotel reconciliation.
         Hotel reconciliation resource names have the form:
         `customers/{customer_id}/hotelReconciliations/{commission_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface HotelReconciliationOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Immutable. The resource name of the hotel reconciliation.
         Hotel reconciliation resource names have the form:
         `customers/{customer_id}/hotelReconciliations/{commission_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceNameBytes in interface HotelReconciliationOrBuilder
        Returns:
        The bytes for resourceName.
      • getCommissionId

        public java.lang.String getCommissionId()
         Required. Output only. The commission ID is Google's ID for this booking. Every booking event is
         assigned a Commission ID to help you match it to a guest stay.
         
        string commission_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCommissionId in interface HotelReconciliationOrBuilder
        Returns:
        The commissionId.
      • getCommissionIdBytes

        public com.google.protobuf.ByteString getCommissionIdBytes()
         Required. Output only. The commission ID is Google's ID for this booking. Every booking event is
         assigned a Commission ID to help you match it to a guest stay.
         
        string commission_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCommissionIdBytes in interface HotelReconciliationOrBuilder
        Returns:
        The bytes for commissionId.
      • getOrderId

        public java.lang.String getOrderId()
         Output only. The order ID is the identifier for this booking as provided in the
         'transaction_id' parameter of the conversion tracking tag.
         
        string order_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getOrderId in interface HotelReconciliationOrBuilder
        Returns:
        The orderId.
      • getOrderIdBytes

        public com.google.protobuf.ByteString getOrderIdBytes()
         Output only. The order ID is the identifier for this booking as provided in the
         'transaction_id' parameter of the conversion tracking tag.
         
        string order_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getOrderIdBytes in interface HotelReconciliationOrBuilder
        Returns:
        The bytes for orderId.
      • getCampaign

        public java.lang.String getCampaign()
         Output only. The resource name for the Campaign associated with the conversion.
         
        string campaign = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getCampaign in interface HotelReconciliationOrBuilder
        Returns:
        The campaign.
      • getCampaignBytes

        public com.google.protobuf.ByteString getCampaignBytes()
         Output only. The resource name for the Campaign associated with the conversion.
         
        string campaign = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getCampaignBytes in interface HotelReconciliationOrBuilder
        Returns:
        The bytes for campaign.
      • getHotelCenterId

        public long getHotelCenterId()
         Output only. Identifier for the Hotel Center account which provides the rates for the
         Hotel campaign.
         
        int64 hotel_center_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getHotelCenterId in interface HotelReconciliationOrBuilder
        Returns:
        The hotelCenterId.
      • getHotelId

        public java.lang.String getHotelId()
         Output only. Unique identifier for the booked property, as provided in the Hotel Center
         feed. The hotel ID comes from the 'ID' parameter of the conversion tracking
         tag.
         
        string hotel_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getHotelId in interface HotelReconciliationOrBuilder
        Returns:
        The hotelId.
      • getHotelIdBytes

        public com.google.protobuf.ByteString getHotelIdBytes()
         Output only. Unique identifier for the booked property, as provided in the Hotel Center
         feed. The hotel ID comes from the 'ID' parameter of the conversion tracking
         tag.
         
        string hotel_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getHotelIdBytes in interface HotelReconciliationOrBuilder
        Returns:
        The bytes for hotelId.
      • getCheckInDate

        public java.lang.String getCheckInDate()
         Output only. Check-in date recorded when the booking is made. If the check-in date is
         modified at reconciliation, the revised date will then take the place of
         the original date in this column. Format is YYYY-MM-DD.
         
        string check_in_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCheckInDate in interface HotelReconciliationOrBuilder
        Returns:
        The checkInDate.
      • getCheckInDateBytes

        public com.google.protobuf.ByteString getCheckInDateBytes()
         Output only. Check-in date recorded when the booking is made. If the check-in date is
         modified at reconciliation, the revised date will then take the place of
         the original date in this column. Format is YYYY-MM-DD.
         
        string check_in_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCheckInDateBytes in interface HotelReconciliationOrBuilder
        Returns:
        The bytes for checkInDate.
      • getCheckOutDate

        public java.lang.String getCheckOutDate()
         Output only. Check-out date recorded when the booking is made. If the check-in date is
         modified at reconciliation, the revised date will then take the place of
         the original date in this column. Format is YYYY-MM-DD.
         
        string check_out_date = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCheckOutDate in interface HotelReconciliationOrBuilder
        Returns:
        The checkOutDate.
      • getCheckOutDateBytes

        public com.google.protobuf.ByteString getCheckOutDateBytes()
         Output only. Check-out date recorded when the booking is made. If the check-in date is
         modified at reconciliation, the revised date will then take the place of
         the original date in this column. Format is YYYY-MM-DD.
         
        string check_out_date = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCheckOutDateBytes in interface HotelReconciliationOrBuilder
        Returns:
        The bytes for checkOutDate.
      • getReconciledValueMicros

        public long getReconciledValueMicros()
         Required. Output only. Reconciled value is the final value of a booking as paid by the guest. If
         original booking value changes for any reason, such as itinerary changes or
         room upsells, the reconciled value should be the full final amount
         collected. If a booking is canceled, the reconciled value should include
         the value of any cancellation fees or non-refundable nights charged. Value
         is in millionths of the base unit currency. For example, $12.35 would be
         represented as 12350000. Currency unit is in the default customer currency.
         
        int64 reconciled_value_micros = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getReconciledValueMicros in interface HotelReconciliationOrBuilder
        Returns:
        The reconciledValueMicros.
      • getBilled

        public boolean getBilled()
         Output only. Whether a given booking has been billed. Once billed, a booking can't be
         modified.
         
        bool billed = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getBilled in interface HotelReconciliationOrBuilder
        Returns:
        The billed.
      • getStatusValue

        public int getStatusValue()
         Required. Output only. Current status of a booking with regards to reconciliation and billing.
         Bookings should be reconciled within 45 days after the check-out date.
         Any booking not reconciled within 45 days will be billed at its original
         value.
         
        .google.ads.googleads.v10.enums.HotelReconciliationStatusEnum.HotelReconciliationStatus status = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatusValue in interface HotelReconciliationOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • getStatus

        public HotelReconciliationStatusEnum.HotelReconciliationStatus getStatus()
         Required. Output only. Current status of a booking with regards to reconciliation and billing.
         Bookings should be reconciled within 45 days after the check-out date.
         Any booking not reconciled within 45 days will be billed at its original
         value.
         
        .google.ads.googleads.v10.enums.HotelReconciliationStatusEnum.HotelReconciliationStatus status = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatus in interface HotelReconciliationOrBuilder
        Returns:
        The status.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static HotelReconciliation parseFrom​(java.nio.ByteBuffer data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static HotelReconciliation parseFrom​(java.nio.ByteBuffer data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static HotelReconciliation parseFrom​(com.google.protobuf.ByteString data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static HotelReconciliation parseFrom​(com.google.protobuf.ByteString data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static HotelReconciliation parseFrom​(byte[] data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static HotelReconciliation parseFrom​(byte[] data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static HotelReconciliation parseFrom​(java.io.InputStream input)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static HotelReconciliation parseFrom​(java.io.InputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static HotelReconciliation parseDelimitedFrom​(java.io.InputStream input)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static HotelReconciliation parseDelimitedFrom​(java.io.InputStream input,
                                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static HotelReconciliation parseFrom​(com.google.protobuf.CodedInputStream input)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static HotelReconciliation parseFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public HotelReconciliation.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public HotelReconciliation.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected HotelReconciliation.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<HotelReconciliation> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public HotelReconciliation getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder