Class AudienceSegment.ThirdPartyAudienceSegment.Builder (0.58.0)

public static final class AudienceSegment.ThirdPartyAudienceSegment.Builder extends GeneratedMessage.Builder<AudienceSegment.ThirdPartyAudienceSegment.Builder> implements AudienceSegment.ThirdPartyAudienceSegmentOrBuilder

An AudienceSegment owned by a data provider and licensed to the Ad Manager publisher network.

Protobuf type google.ads.admanager.v1.AudienceSegment.ThirdPartyAudienceSegment

Static Methods

getDescriptor()

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

Methods

build()

public AudienceSegment.ThirdPartyAudienceSegment build()
Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment

buildPartial()

public AudienceSegment.ThirdPartyAudienceSegment buildPartial()
Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment

clear()

public AudienceSegment.ThirdPartyAudienceSegment.Builder clear()
Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder
Overrides

clearApprovalStatus()

public AudienceSegment.ThirdPartyAudienceSegment.Builder clearApprovalStatus()

Output only. Whether the publisher has approved or rejected the segment.

optional .google.ads.admanager.v1.AudienceSegmentApprovalStatusEnum.AudienceSegmentApprovalStatus approval_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder

This builder for chaining.

clearCost()

public AudienceSegment.ThirdPartyAudienceSegment.Builder clearCost()

Output only. The CPM cost for the given segment. This is assigned by the data provider. The CPM cost comes from the active pricing if it exists, otherwise it comes from the latest pricing.

.google.type.Money cost = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder

clearEndTime()

public AudienceSegment.ThirdPartyAudienceSegment.Builder clearEndTime()

Output only. Time which this segment ceases to be available. It is assigned by the data provider.

.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder

clearLicenseType()

public AudienceSegment.ThirdPartyAudienceSegment.Builder clearLicenseType()

Output only. The license type of the external segment.

optional .google.ads.admanager.v1.AudienceSegmentLicenseTypeEnum.AudienceSegmentLicenseType license_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder

This builder for chaining.

clearStartTime()

public AudienceSegment.ThirdPartyAudienceSegment.Builder clearStartTime()

Output only. Time which this segment becomes available for use. It is assigned by the data provider.

.google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder

getApprovalStatus()

public AudienceSegmentApprovalStatusEnum.AudienceSegmentApprovalStatus getApprovalStatus()

Output only. Whether the publisher has approved or rejected the segment.

optional .google.ads.admanager.v1.AudienceSegmentApprovalStatusEnum.AudienceSegmentApprovalStatus approval_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AudienceSegmentApprovalStatusEnum.AudienceSegmentApprovalStatus

The approvalStatus.

getApprovalStatusValue()

public int getApprovalStatusValue()

Output only. Whether the publisher has approved or rejected the segment.

optional .google.ads.admanager.v1.AudienceSegmentApprovalStatusEnum.AudienceSegmentApprovalStatus approval_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for approvalStatus.

getCost()

public Money getCost()

Output only. The CPM cost for the given segment. This is assigned by the data provider. The CPM cost comes from the active pricing if it exists, otherwise it comes from the latest pricing.

.google.type.Money cost = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Money

The cost.

getCostBuilder()

public Money.Builder getCostBuilder()

Output only. The CPM cost for the given segment. This is assigned by the data provider. The CPM cost comes from the active pricing if it exists, otherwise it comes from the latest pricing.

.google.type.Money cost = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Money.Builder

getCostOrBuilder()

public MoneyOrBuilder getCostOrBuilder()

Output only. The CPM cost for the given segment. This is assigned by the data provider. The CPM cost comes from the active pricing if it exists, otherwise it comes from the latest pricing.

.google.type.Money cost = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.MoneyOrBuilder

getDefaultInstanceForType()

public AudienceSegment.ThirdPartyAudienceSegment getDefaultInstanceForType()
Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

Output only. Time which this segment ceases to be available. It is assigned by the data provider.

.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. Time which this segment ceases to be available. It is assigned by the data provider.

.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. Time which this segment ceases to be available. It is assigned by the data provider.

.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getLicenseType()

public AudienceSegmentLicenseTypeEnum.AudienceSegmentLicenseType getLicenseType()

Output only. The license type of the external segment.

optional .google.ads.admanager.v1.AudienceSegmentLicenseTypeEnum.AudienceSegmentLicenseType license_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AudienceSegmentLicenseTypeEnum.AudienceSegmentLicenseType

The licenseType.

getLicenseTypeValue()

public int getLicenseTypeValue()

Output only. The license type of the external segment.

optional .google.ads.admanager.v1.AudienceSegmentLicenseTypeEnum.AudienceSegmentLicenseType license_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for licenseType.

getStartTime()

public Timestamp getStartTime()

Output only. Time which this segment becomes available for use. It is assigned by the data provider.

.google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Output only. Time which this segment becomes available for use. It is assigned by the data provider.

.google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. Time which this segment becomes available for use. It is assigned by the data provider.

.google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasApprovalStatus()

public boolean hasApprovalStatus()

Output only. Whether the publisher has approved or rejected the segment.

optional .google.ads.admanager.v1.AudienceSegmentApprovalStatusEnum.AudienceSegmentApprovalStatus approval_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the approvalStatus field is set.

hasCost()

public boolean hasCost()

Output only. The CPM cost for the given segment. This is assigned by the data provider. The CPM cost comes from the active pricing if it exists, otherwise it comes from the latest pricing.

.google.type.Money cost = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the cost field is set.

hasEndTime()

public boolean hasEndTime()

Output only. Time which this segment ceases to be available. It is assigned by the data provider.

.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the endTime field is set.

hasLicenseType()

public boolean hasLicenseType()

Output only. The license type of the external segment.

optional .google.ads.admanager.v1.AudienceSegmentLicenseTypeEnum.AudienceSegmentLicenseType license_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the licenseType field is set.

hasStartTime()

public boolean hasStartTime()

Output only. Time which this segment becomes available for use. It is assigned by the data provider.

.google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCost(Money value)

public AudienceSegment.ThirdPartyAudienceSegment.Builder mergeCost(Money value)

Output only. The CPM cost for the given segment. This is assigned by the data provider. The CPM cost comes from the active pricing if it exists, otherwise it comes from the latest pricing.

.google.type.Money cost = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder

mergeEndTime(Timestamp value)

public AudienceSegment.ThirdPartyAudienceSegment.Builder mergeEndTime(Timestamp value)

Output only. Time which this segment ceases to be available. It is assigned by the data provider.

.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder

mergeFrom(AudienceSegment.ThirdPartyAudienceSegment other)

public AudienceSegment.ThirdPartyAudienceSegment.Builder mergeFrom(AudienceSegment.ThirdPartyAudienceSegment other)
Parameter
Name Description
other AudienceSegment.ThirdPartyAudienceSegment
Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AudienceSegment.ThirdPartyAudienceSegment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AudienceSegment.ThirdPartyAudienceSegment.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder
Overrides

mergeStartTime(Timestamp value)

public AudienceSegment.ThirdPartyAudienceSegment.Builder mergeStartTime(Timestamp value)

Output only. Time which this segment becomes available for use. It is assigned by the data provider.

.google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder

setApprovalStatus(AudienceSegmentApprovalStatusEnum.AudienceSegmentApprovalStatus value)

public AudienceSegment.ThirdPartyAudienceSegment.Builder setApprovalStatus(AudienceSegmentApprovalStatusEnum.AudienceSegmentApprovalStatus value)

Output only. Whether the publisher has approved or rejected the segment.

optional .google.ads.admanager.v1.AudienceSegmentApprovalStatusEnum.AudienceSegmentApprovalStatus approval_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AudienceSegmentApprovalStatusEnum.AudienceSegmentApprovalStatus

The approvalStatus to set.

Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder

This builder for chaining.

setApprovalStatusValue(int value)

public AudienceSegment.ThirdPartyAudienceSegment.Builder setApprovalStatusValue(int value)

Output only. Whether the publisher has approved or rejected the segment.

optional .google.ads.admanager.v1.AudienceSegmentApprovalStatusEnum.AudienceSegmentApprovalStatus approval_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for approvalStatus to set.

Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder

This builder for chaining.

setCost(Money value)

public AudienceSegment.ThirdPartyAudienceSegment.Builder setCost(Money value)

Output only. The CPM cost for the given segment. This is assigned by the data provider. The CPM cost comes from the active pricing if it exists, otherwise it comes from the latest pricing.

.google.type.Money cost = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder

setCost(Money.Builder builderForValue)

public AudienceSegment.ThirdPartyAudienceSegment.Builder setCost(Money.Builder builderForValue)

Output only. The CPM cost for the given segment. This is assigned by the data provider. The CPM cost comes from the active pricing if it exists, otherwise it comes from the latest pricing.

.google.type.Money cost = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue com.google.type.Money.Builder
Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder

setEndTime(Timestamp value)

public AudienceSegment.ThirdPartyAudienceSegment.Builder setEndTime(Timestamp value)

Output only. Time which this segment ceases to be available. It is assigned by the data provider.

.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder

setEndTime(Timestamp.Builder builderForValue)

public AudienceSegment.ThirdPartyAudienceSegment.Builder setEndTime(Timestamp.Builder builderForValue)

Output only. Time which this segment ceases to be available. It is assigned by the data provider.

.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder

setLicenseType(AudienceSegmentLicenseTypeEnum.AudienceSegmentLicenseType value)

public AudienceSegment.ThirdPartyAudienceSegment.Builder setLicenseType(AudienceSegmentLicenseTypeEnum.AudienceSegmentLicenseType value)

Output only. The license type of the external segment.

optional .google.ads.admanager.v1.AudienceSegmentLicenseTypeEnum.AudienceSegmentLicenseType license_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AudienceSegmentLicenseTypeEnum.AudienceSegmentLicenseType

The licenseType to set.

Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder

This builder for chaining.

setLicenseTypeValue(int value)

public AudienceSegment.ThirdPartyAudienceSegment.Builder setLicenseTypeValue(int value)

Output only. The license type of the external segment.

optional .google.ads.admanager.v1.AudienceSegmentLicenseTypeEnum.AudienceSegmentLicenseType license_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for licenseType to set.

Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder

This builder for chaining.

setStartTime(Timestamp value)

public AudienceSegment.ThirdPartyAudienceSegment.Builder setStartTime(Timestamp value)

Output only. Time which this segment becomes available for use. It is assigned by the data provider.

.google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder

setStartTime(Timestamp.Builder builderForValue)

public AudienceSegment.ThirdPartyAudienceSegment.Builder setStartTime(Timestamp.Builder builderForValue)

Output only. Time which this segment becomes available for use. It is assigned by the data provider.

.google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AudienceSegment.ThirdPartyAudienceSegment.Builder