Class ProposalMarketplaceInfo (0.62.0)

public final class ProposalMarketplaceInfo extends GeneratedMessage implements ProposalMarketplaceInfoOrBuilder

Marketplace info for a Proposal with a corresponding order in Marketplace.

Protobuf type google.ads.admanager.v1.ProposalMarketplaceInfo

Static Fields

BUYER_ACCOUNT_ID_FIELD_NUMBER

public static final int BUYER_ACCOUNT_ID_FIELD_NUMBER
Field Value
Type Description
int

DRAFT_PROPOSAL_FIELD_NUMBER

public static final int DRAFT_PROPOSAL_FIELD_NUMBER
Field Value
Type Description
int

MARKETPLACE_COMMENT_FIELD_NUMBER

public static final int MARKETPLACE_COMMENT_FIELD_NUMBER
Field Value
Type Description
int

MARKETPLACE_ORDER_ID_FIELD_NUMBER

public static final int MARKETPLACE_ORDER_ID_FIELD_NUMBER
Field Value
Type Description
int

NEGOTIATION_STATUS_FIELD_NUMBER

public static final int NEGOTIATION_STATUS_FIELD_NUMBER
Field Value
Type Description
int

NEW_VERSION_FROM_BUYER_FIELD_NUMBER

public static final int NEW_VERSION_FROM_BUYER_FIELD_NUMBER
Field Value
Type Description
int

PARTNER_CLIENT_ID_FIELD_NUMBER

public static final int PARTNER_CLIENT_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProposalMarketplaceInfo getDefaultInstance()
Returns
Type Description
ProposalMarketplaceInfo

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ProposalMarketplaceInfo.Builder newBuilder()
Returns
Type Description
ProposalMarketplaceInfo.Builder

newBuilder(ProposalMarketplaceInfo prototype)

public static ProposalMarketplaceInfo.Builder newBuilder(ProposalMarketplaceInfo prototype)
Parameter
Name Description
prototype ProposalMarketplaceInfo
Returns
Type Description
ProposalMarketplaceInfo.Builder

parseDelimitedFrom(InputStream input)

public static ProposalMarketplaceInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProposalMarketplaceInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProposalMarketplaceInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProposalMarketplaceInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ProposalMarketplaceInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ProposalMarketplaceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ProposalMarketplaceInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProposalMarketplaceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ProposalMarketplaceInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ProposalMarketplaceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ProposalMarketplaceInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProposalMarketplaceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ProposalMarketplaceInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ProposalMarketplaceInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ProposalMarketplaceInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProposalMarketplaceInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ProposalMarketplaceInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProposalMarketplaceInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProposalMarketplaceInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProposalMarketplaceInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ProposalMarketplaceInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ProposalMarketplaceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ProposalMarketplaceInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProposalMarketplaceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ProposalMarketplaceInfo> parser()
Returns
Type Description
Parser<ProposalMarketplaceInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBuyerAccountId()

public long getBuyerAccountId()

Required. The account ID of the buyer that this Proposal is being negotiated with.

optional int64 buyer_account_id = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The buyerAccountId.

getDefaultInstanceForType()

public ProposalMarketplaceInfo getDefaultInstanceForType()
Returns
Type Description
ProposalMarketplaceInfo

getDraftProposal()

public boolean getDraftProposal()

Output only. Whether the non-free-editable fields of a Proposal are opened for edit. A Proposal that is open for edit will not receive buyer updates from Marketplace. If the buyer updates the Proposal while this is open for local editing, Google will set newVersionFromBuyer to true. You will then need to call ProposalService.BatchDiscardDraftProposals to revert your edits to get the buyer's latest changes.

optional bool draft_proposal = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The draftProposal.

getMarketplaceComment()

public String getMarketplaceComment()

Optional. The comment on the Proposal to be sent to the buyer.

optional string marketplace_comment = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The marketplaceComment.

getMarketplaceCommentBytes()

public ByteString getMarketplaceCommentBytes()

Optional. The comment on the Proposal to be sent to the buyer.

optional string marketplace_comment = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for marketplaceComment.

getMarketplaceOrderId()

public String getMarketplaceOrderId()

Output only. The marketplace ID of this Proposal. This is a shared ID between Ad Manager and the buy-side platform. This value is null if the Proposal has not been sent to the buyer.

optional string marketplace_order_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The marketplaceOrderId.

getMarketplaceOrderIdBytes()

public ByteString getMarketplaceOrderIdBytes()

Output only. The marketplace ID of this Proposal. This is a shared ID between Ad Manager and the buy-side platform. This value is null if the Proposal has not been sent to the buyer.

optional string marketplace_order_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for marketplaceOrderId.

getNegotiationStatus()

public ProposalNegotiationStatusEnum.ProposalNegotiationStatus getNegotiationStatus()

Output only. The negotiation status of the Proposal.

optional .google.ads.admanager.v1.ProposalNegotiationStatusEnum.ProposalNegotiationStatus negotiation_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProposalNegotiationStatusEnum.ProposalNegotiationStatus

The negotiationStatus.

getNegotiationStatusValue()

public int getNegotiationStatusValue()

Output only. The negotiation status of the Proposal.

optional .google.ads.admanager.v1.ProposalNegotiationStatusEnum.ProposalNegotiationStatus negotiation_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for negotiationStatus.

getNewVersionFromBuyer()

public boolean getNewVersionFromBuyer()

Output only. Indicates that the buyer has made updates to the Proposal on Marketplace. This attribute is only meaningful if the Proposal is open for edit (i.e., draftProposal is true).

optional bool new_version_from_buyer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The newVersionFromBuyer.

getParserForType()

public Parser<ProposalMarketplaceInfo> getParserForType()
Returns
Type Description
Parser<ProposalMarketplaceInfo>
Overrides

getPartnerClientId()

public String getPartnerClientId()

Output only. The ID used to represent the Display & Video 360 client buyer partner ID (if Display & Video 360) or the Authorized Buyers client buyer account ID.

optional string partner_client_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The partnerClientId.

getPartnerClientIdBytes()

public ByteString getPartnerClientIdBytes()

Output only. The ID used to represent the Display & Video 360 client buyer partner ID (if Display & Video 360) or the Authorized Buyers client buyer account ID.

optional string partner_client_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for partnerClientId.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasBuyerAccountId()

public boolean hasBuyerAccountId()

Required. The account ID of the buyer that this Proposal is being negotiated with.

optional int64 buyer_account_id = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the buyerAccountId field is set.

hasDraftProposal()

public boolean hasDraftProposal()

Output only. Whether the non-free-editable fields of a Proposal are opened for edit. A Proposal that is open for edit will not receive buyer updates from Marketplace. If the buyer updates the Proposal while this is open for local editing, Google will set newVersionFromBuyer to true. You will then need to call ProposalService.BatchDiscardDraftProposals to revert your edits to get the buyer's latest changes.

optional bool draft_proposal = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the draftProposal field is set.

hasMarketplaceComment()

public boolean hasMarketplaceComment()

Optional. The comment on the Proposal to be sent to the buyer.

optional string marketplace_comment = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the marketplaceComment field is set.

hasMarketplaceOrderId()

public boolean hasMarketplaceOrderId()

Output only. The marketplace ID of this Proposal. This is a shared ID between Ad Manager and the buy-side platform. This value is null if the Proposal has not been sent to the buyer.

optional string marketplace_order_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the marketplaceOrderId field is set.

hasNegotiationStatus()

public boolean hasNegotiationStatus()

Output only. The negotiation status of the Proposal.

optional .google.ads.admanager.v1.ProposalNegotiationStatusEnum.ProposalNegotiationStatus negotiation_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the negotiationStatus field is set.

hasNewVersionFromBuyer()

public boolean hasNewVersionFromBuyer()

Output only. Indicates that the buyer has made updates to the Proposal on Marketplace. This attribute is only meaningful if the Proposal is open for edit (i.e., draftProposal is true).

optional bool new_version_from_buyer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the newVersionFromBuyer field is set.

hasPartnerClientId()

public boolean hasPartnerClientId()

Output only. The ID used to represent the Display & Video 360 client buyer partner ID (if Display & Video 360) or the Authorized Buyers client buyer account ID.

optional string partner_client_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the partnerClientId field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ProposalMarketplaceInfo.Builder newBuilderForType()
Returns
Type Description
ProposalMarketplaceInfo.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ProposalMarketplaceInfo.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ProposalMarketplaceInfo.Builder
Overrides

toBuilder()

public ProposalMarketplaceInfo.Builder toBuilder()
Returns
Type Description
ProposalMarketplaceInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException