Class InsertLocalInventoryRequest (0.6.0)

public final class InsertLocalInventoryRequest extends GeneratedMessageV3 implements InsertLocalInventoryRequestOrBuilder

Request message for the InsertLocalInventory method.

Protobuf type google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest

Static Fields

LOCAL_INVENTORY_FIELD_NUMBER

public static final int LOCAL_INVENTORY_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static InsertLocalInventoryRequest getDefaultInstance()
Returns
TypeDescription
InsertLocalInventoryRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static InsertLocalInventoryRequest.Builder newBuilder()
Returns
TypeDescription
InsertLocalInventoryRequest.Builder

newBuilder(InsertLocalInventoryRequest prototype)

public static InsertLocalInventoryRequest.Builder newBuilder(InsertLocalInventoryRequest prototype)
Parameter
NameDescription
prototypeInsertLocalInventoryRequest
Returns
TypeDescription
InsertLocalInventoryRequest.Builder

parseDelimitedFrom(InputStream input)

public static InsertLocalInventoryRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
InsertLocalInventoryRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InsertLocalInventoryRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InsertLocalInventoryRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static InsertLocalInventoryRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
InsertLocalInventoryRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InsertLocalInventoryRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InsertLocalInventoryRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InsertLocalInventoryRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
InsertLocalInventoryRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InsertLocalInventoryRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InsertLocalInventoryRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InsertLocalInventoryRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
InsertLocalInventoryRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InsertLocalInventoryRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InsertLocalInventoryRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static InsertLocalInventoryRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
InsertLocalInventoryRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InsertLocalInventoryRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InsertLocalInventoryRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static InsertLocalInventoryRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
InsertLocalInventoryRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InsertLocalInventoryRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InsertLocalInventoryRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<InsertLocalInventoryRequest> parser()
Returns
TypeDescription
Parser<InsertLocalInventoryRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public InsertLocalInventoryRequest getDefaultInstanceForType()
Returns
TypeDescription
InsertLocalInventoryRequest

getLocalInventory()

public LocalInventory getLocalInventory()

Required. Local inventory information of the product. If the product already has a LocalInventory resource for the same storeCode, full replacement of the LocalInventory resource is performed.

.google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LocalInventory

The localInventory.

getLocalInventoryOrBuilder()

public LocalInventoryOrBuilder getLocalInventoryOrBuilder()

Required. Local inventory information of the product. If the product already has a LocalInventory resource for the same storeCode, full replacement of the LocalInventory resource is performed.

.google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LocalInventoryOrBuilder

getParent()

public String getParent()

Required. The account and product where this inventory will be inserted. Format: accounts/{account}/products/{product}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The account and product where this inventory will be inserted. Format: accounts/{account}/products/{product}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<InsertLocalInventoryRequest> getParserForType()
Returns
TypeDescription
Parser<InsertLocalInventoryRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasLocalInventory()

public boolean hasLocalInventory()

Required. Local inventory information of the product. If the product already has a LocalInventory resource for the same storeCode, full replacement of the LocalInventory resource is performed.

.google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the localInventory field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public InsertLocalInventoryRequest.Builder newBuilderForType()
Returns
TypeDescription
InsertLocalInventoryRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected InsertLocalInventoryRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
InsertLocalInventoryRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public InsertLocalInventoryRequest.Builder toBuilder()
Returns
TypeDescription
InsertLocalInventoryRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException