public static final class ContendingLineItem.Builder extends GeneratedMessage.Builder<ContendingLineItem.Builder> implements ContendingLineItemOrBuilderDescribes contending line items for a forecast.
Protobuf type google.ads.admanager.v1.ContendingLineItem
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ContendingLineItem.BuilderImplements
ContendingLineItemOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ContendingLineItem build()| Returns | |
|---|---|
| Type | Description |
ContendingLineItem |
|
buildPartial()
public ContendingLineItem buildPartial()| Returns | |
|---|---|
| Type | Description |
ContendingLineItem |
|
clear()
public ContendingLineItem.Builder clear()| Returns | |
|---|---|
| Type | Description |
ContendingLineItem.Builder |
|
clearContendingUnits()
public ContendingLineItem.Builder clearContendingUnits()The number of impressions contended for by both the forecasted line item and this line item.
optional int64 contending_units = 2;
| Returns | |
|---|---|
| Type | Description |
ContendingLineItem.Builder |
This builder for chaining. |
clearLineItem()
public ContendingLineItem.Builder clearLineItem() The resource name of the contending line item.
Format:
networks/{network_code}/lineItems/{line_item_id}
optional string line_item = 1 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ContendingLineItem.Builder |
This builder for chaining. |
getContendingUnits()
public long getContendingUnits()The number of impressions contended for by both the forecasted line item and this line item.
optional int64 contending_units = 2;
| Returns | |
|---|---|
| Type | Description |
long |
The contendingUnits. |
getDefaultInstanceForType()
public ContendingLineItem getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ContendingLineItem |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLineItem()
public String getLineItem() The resource name of the contending line item.
Format:
networks/{network_code}/lineItems/{line_item_id}
optional string line_item = 1 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The lineItem. |
getLineItemBytes()
public ByteString getLineItemBytes() The resource name of the contending line item.
Format:
networks/{network_code}/lineItems/{line_item_id}
optional string line_item = 1 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for lineItem. |
hasContendingUnits()
public boolean hasContendingUnits()The number of impressions contended for by both the forecasted line item and this line item.
optional int64 contending_units = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the contendingUnits field is set. |
hasLineItem()
public boolean hasLineItem() The resource name of the contending line item.
Format:
networks/{network_code}/lineItems/{line_item_id}
optional string line_item = 1 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the lineItem field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ContendingLineItem other)
public ContendingLineItem.Builder mergeFrom(ContendingLineItem other)| Parameter | |
|---|---|
| Name | Description |
other |
ContendingLineItem |
| Returns | |
|---|---|
| Type | Description |
ContendingLineItem.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ContendingLineItem.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ContendingLineItem.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ContendingLineItem.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ContendingLineItem.Builder |
|
setContendingUnits(long value)
public ContendingLineItem.Builder setContendingUnits(long value)The number of impressions contended for by both the forecasted line item and this line item.
optional int64 contending_units = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe contendingUnits to set. |
| Returns | |
|---|---|
| Type | Description |
ContendingLineItem.Builder |
This builder for chaining. |
setLineItem(String value)
public ContendingLineItem.Builder setLineItem(String value) The resource name of the contending line item.
Format:
networks/{network_code}/lineItems/{line_item_id}
optional string line_item = 1 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe lineItem to set. |
| Returns | |
|---|---|
| Type | Description |
ContendingLineItem.Builder |
This builder for chaining. |
setLineItemBytes(ByteString value)
public ContendingLineItem.Builder setLineItemBytes(ByteString value) The resource name of the contending line item.
Format:
networks/{network_code}/lineItems/{line_item_id}
optional string line_item = 1 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for lineItem to set. |
| Returns | |
|---|---|
| Type | Description |
ContendingLineItem.Builder |
This builder for chaining. |