Class InsertRegionalInventoryRequest (0.15.0)

public final class InsertRegionalInventoryRequest extends GeneratedMessageV3 implements InsertRegionalInventoryRequestOrBuilder

Request message for the InsertRegionalInventory method.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > InsertRegionalInventoryRequest

Static Fields

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

REGIONAL_INVENTORY_FIELD_NUMBER

public static final int REGIONAL_INVENTORY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static InsertRegionalInventoryRequest getDefaultInstance()
Returns
TypeDescription
InsertRegionalInventoryRequest

getDescriptor()

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

newBuilder()

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

newBuilder(InsertRegionalInventoryRequest prototype)

public static InsertRegionalInventoryRequest.Builder newBuilder(InsertRegionalInventoryRequest prototype)
Parameter
NameDescription
prototypeInsertRegionalInventoryRequest
Returns
TypeDescription
InsertRegionalInventoryRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public InsertRegionalInventoryRequest getDefaultInstanceForType()
Returns
TypeDescription
InsertRegionalInventoryRequest

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<InsertRegionalInventoryRequest> getParserForType()
Returns
TypeDescription
Parser<InsertRegionalInventoryRequest>
Overrides

getRegionalInventory()

public RegionalInventory getRegionalInventory()

Required. Regional inventory information to add to the product. If the product already has a RegionalInventory resource for the same region, full replacement of the RegionalInventory resource is performed.

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

Returns
TypeDescription
RegionalInventory

The regionalInventory.

getRegionalInventoryOrBuilder()

public RegionalInventoryOrBuilder getRegionalInventoryOrBuilder()

Required. Regional inventory information to add to the product. If the product already has a RegionalInventory resource for the same region, full replacement of the RegionalInventory resource is performed.

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

Returns
TypeDescription
RegionalInventoryOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasRegionalInventory()

public boolean hasRegionalInventory()

Required. Regional inventory information to add to the product. If the product already has a RegionalInventory resource for the same region, full replacement of the RegionalInventory resource is performed.

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

Returns
TypeDescription
boolean

Whether the regionalInventory 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 InsertRegionalInventoryRequest.Builder newBuilderForType()
Returns
TypeDescription
InsertRegionalInventoryRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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