public static final class ResolveAmendmentTargetResponse.OptionalOffers.Builder extends GeneratedMessage.Builder<ResolveAmendmentTargetResponse.OptionalOffers.Builder> implements ResolveAmendmentTargetResponse.OptionalOffersOrBuilderA wrapper message containing offers that can optionally be amended.
Protobuf type
google.cloud.commerceproducer.v1beta.ResolveAmendmentTargetResponse.OptionalOffers
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ResolveAmendmentTargetResponse.OptionalOffers.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllPrivateOffers(Iterable<String> values)
public ResolveAmendmentTargetResponse.OptionalOffers.Builder addAllPrivateOffers(Iterable<String> values)A list of existing private offers that are eligible to be amended.
When creating a new private offer, the client may choose to populate the
single_product_offer.amended_private_offer field with one of these
resource names. Alternatively, the client may leave the field unset to
create a brand new offer.
repeated string private_offers = 1 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The privateOffers to add. |
| Returns | |
|---|---|
| Type | Description |
ResolveAmendmentTargetResponse.OptionalOffers.Builder |
This builder for chaining. |
addPrivateOffers(String value)
public ResolveAmendmentTargetResponse.OptionalOffers.Builder addPrivateOffers(String value)A list of existing private offers that are eligible to be amended.
When creating a new private offer, the client may choose to populate the
single_product_offer.amended_private_offer field with one of these
resource names. Alternatively, the client may leave the field unset to
create a brand new offer.
repeated string private_offers = 1 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe privateOffers to add. |
| Returns | |
|---|---|
| Type | Description |
ResolveAmendmentTargetResponse.OptionalOffers.Builder |
This builder for chaining. |
addPrivateOffersBytes(ByteString value)
public ResolveAmendmentTargetResponse.OptionalOffers.Builder addPrivateOffersBytes(ByteString value)A list of existing private offers that are eligible to be amended.
When creating a new private offer, the client may choose to populate the
single_product_offer.amended_private_offer field with one of these
resource names. Alternatively, the client may leave the field unset to
create a brand new offer.
repeated string private_offers = 1 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the privateOffers to add. |
| Returns | |
|---|---|
| Type | Description |
ResolveAmendmentTargetResponse.OptionalOffers.Builder |
This builder for chaining. |
build()
public ResolveAmendmentTargetResponse.OptionalOffers build()| Returns | |
|---|---|
| Type | Description |
ResolveAmendmentTargetResponse.OptionalOffers |
|
buildPartial()
public ResolveAmendmentTargetResponse.OptionalOffers buildPartial()| Returns | |
|---|---|
| Type | Description |
ResolveAmendmentTargetResponse.OptionalOffers |
|
clear()
public ResolveAmendmentTargetResponse.OptionalOffers.Builder clear()| Returns | |
|---|---|
| Type | Description |
ResolveAmendmentTargetResponse.OptionalOffers.Builder |
|
clearPrivateOffers()
public ResolveAmendmentTargetResponse.OptionalOffers.Builder clearPrivateOffers()A list of existing private offers that are eligible to be amended.
When creating a new private offer, the client may choose to populate the
single_product_offer.amended_private_offer field with one of these
resource names. Alternatively, the client may leave the field unset to
create a brand new offer.
repeated string private_offers = 1 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ResolveAmendmentTargetResponse.OptionalOffers.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ResolveAmendmentTargetResponse.OptionalOffers getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ResolveAmendmentTargetResponse.OptionalOffers |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPrivateOffers(int index)
public String getPrivateOffers(int index)A list of existing private offers that are eligible to be amended.
When creating a new private offer, the client may choose to populate the
single_product_offer.amended_private_offer field with one of these
resource names. Alternatively, the client may leave the field unset to
create a brand new offer.
repeated string private_offers = 1 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The privateOffers at the given index. |
getPrivateOffersBytes(int index)
public ByteString getPrivateOffersBytes(int index)A list of existing private offers that are eligible to be amended.
When creating a new private offer, the client may choose to populate the
single_product_offer.amended_private_offer field with one of these
resource names. Alternatively, the client may leave the field unset to
create a brand new offer.
repeated string private_offers = 1 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the privateOffers at the given index. |
getPrivateOffersCount()
public int getPrivateOffersCount()A list of existing private offers that are eligible to be amended.
When creating a new private offer, the client may choose to populate the
single_product_offer.amended_private_offer field with one of these
resource names. Alternatively, the client may leave the field unset to
create a brand new offer.
repeated string private_offers = 1 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
int |
The count of privateOffers. |
getPrivateOffersList()
public ProtocolStringList getPrivateOffersList()A list of existing private offers that are eligible to be amended.
When creating a new private offer, the client may choose to populate the
single_product_offer.amended_private_offer field with one of these
resource names. Alternatively, the client may leave the field unset to
create a brand new offer.
repeated string private_offers = 1 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the privateOffers. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ResolveAmendmentTargetResponse.OptionalOffers other)
public ResolveAmendmentTargetResponse.OptionalOffers.Builder mergeFrom(ResolveAmendmentTargetResponse.OptionalOffers other)| Parameter | |
|---|---|
| Name | Description |
other |
ResolveAmendmentTargetResponse.OptionalOffers |
| Returns | |
|---|---|
| Type | Description |
ResolveAmendmentTargetResponse.OptionalOffers.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ResolveAmendmentTargetResponse.OptionalOffers.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ResolveAmendmentTargetResponse.OptionalOffers.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ResolveAmendmentTargetResponse.OptionalOffers.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ResolveAmendmentTargetResponse.OptionalOffers.Builder |
|
setPrivateOffers(int index, String value)
public ResolveAmendmentTargetResponse.OptionalOffers.Builder setPrivateOffers(int index, String value)A list of existing private offers that are eligible to be amended.
When creating a new private offer, the client may choose to populate the
single_product_offer.amended_private_offer field with one of these
resource names. Alternatively, the client may leave the field unset to
create a brand new offer.
repeated string private_offers = 1 [(.google.api.resource_reference) = { ... }
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe privateOffers to set. |
| Returns | |
|---|---|
| Type | Description |
ResolveAmendmentTargetResponse.OptionalOffers.Builder |
This builder for chaining. |