Send feedback
Class OrderTrackingSignal.ShipmentLineItemMapping.Builder (0.2.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class OrderTrackingSignal . ShipmentLineItemMapping . Builder extends GeneratedMessageV3 . Builder<OrderTrackingSignal . ShipmentLineItemMapping . Builder > implements OrderTrackingSignal . ShipmentLineItemMappingOrBuilder
Represents how many items are in the shipment for the given shipment_id
and line_item_id.
Protobuf type
google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShipmentLineItemMapping
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Methods
public OrderTrackingSignal . ShipmentLineItemMapping . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public OrderTrackingSignal . ShipmentLineItemMapping build ()
public OrderTrackingSignal . ShipmentLineItemMapping buildPartial ()
public OrderTrackingSignal . ShipmentLineItemMapping . Builder clear ()
Overrides
public OrderTrackingSignal . ShipmentLineItemMapping . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
public OrderTrackingSignal . ShipmentLineItemMapping . Builder clearLineItemId ()
Required. The line item ID.
string line_item_id = 2 [(.google.api.field_behavior) = REQUIRED];
public OrderTrackingSignal . ShipmentLineItemMapping . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
public OrderTrackingSignal . ShipmentLineItemMapping . Builder clearQuantity ()
Required. The line item quantity in the shipment.
int64 quantity = 3 [(.google.api.field_behavior) = REQUIRED];
public OrderTrackingSignal . ShipmentLineItemMapping . Builder clearShipmentId ()
Required. The shipment ID. This field will be hashed in returned
OrderTrackingSignal creation response.
string shipment_id = 1 [(.google.api.field_behavior) = REQUIRED];
public OrderTrackingSignal . ShipmentLineItemMapping . Builder clone ()
Overrides
public OrderTrackingSignal . ShipmentLineItemMapping getDefaultInstanceForType ()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
public String getLineItemId ()
Required. The line item ID.
string line_item_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The lineItemId.
public ByteString getLineItemIdBytes ()
Required. The line item ID.
string line_item_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for lineItemId.
public long getQuantity ()
Required. The line item quantity in the shipment.
int64 quantity = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
long
The quantity.
public String getShipmentId ()
Required. The shipment ID. This field will be hashed in returned
OrderTrackingSignal creation response.
string shipment_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The shipmentId.
public ByteString getShipmentIdBytes ()
Required. The shipment ID. This field will be hashed in returned
OrderTrackingSignal creation response.
string shipment_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for shipmentId.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public OrderTrackingSignal . ShipmentLineItemMapping . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
public OrderTrackingSignal . ShipmentLineItemMapping . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
public OrderTrackingSignal . ShipmentLineItemMapping . Builder mergeFrom ( OrderTrackingSignal . ShipmentLineItemMapping other )
public final OrderTrackingSignal . ShipmentLineItemMapping . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public OrderTrackingSignal . ShipmentLineItemMapping . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public OrderTrackingSignal . ShipmentLineItemMapping . Builder setLineItemId ( String value )
Required. The line item ID.
string line_item_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
String
The lineItemId to set.
public OrderTrackingSignal . ShipmentLineItemMapping . Builder setLineItemIdBytes ( ByteString value )
Required. The line item ID.
string line_item_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
ByteString
The bytes for lineItemId to set.
public OrderTrackingSignal . ShipmentLineItemMapping . Builder setQuantity ( long value )
Required. The line item quantity in the shipment.
int64 quantity = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
long
The quantity to set.
public OrderTrackingSignal . ShipmentLineItemMapping . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
public OrderTrackingSignal . ShipmentLineItemMapping . Builder setShipmentId ( String value )
Required. The shipment ID. This field will be hashed in returned
OrderTrackingSignal creation response.
string shipment_id = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
String
The shipmentId to set.
public OrderTrackingSignal . ShipmentLineItemMapping . Builder setShipmentIdBytes ( ByteString value )
Required. The shipment ID. This field will be hashed in returned
OrderTrackingSignal creation response.
string shipment_id = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
ByteString
The bytes for shipmentId to set.
public final OrderTrackingSignal . ShipmentLineItemMapping . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-10 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-10 UTC."],[],[]]