Class YieldPartner (0.62.0)

public final class YieldPartner extends GeneratedMessage implements YieldPartnerOrBuilder

Represents a third-party ad network or exchange, configured within the context of a Company, that publishers partner with to monetize their ad inventory.

Protobuf type google.ads.admanager.v1.YieldPartner

Static Fields

COMPANY_FIELD_NUMBER

public static final int COMPANY_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

SETTINGS_FIELD_NUMBER

public static final int SETTINGS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static YieldPartner getDefaultInstance()
Returns
Type Description
YieldPartner

getDescriptor()

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

newBuilder()

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

newBuilder(YieldPartner prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCompany()

public String getCompany()

Output only. The company associated with this yield partner.

optional string company = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The company.

getCompanyBytes()

public ByteString getCompanyBytes()

Output only. The company associated with this yield partner.

optional string company = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for company.

getDefaultInstanceForType()

public YieldPartner getDefaultInstanceForType()
Returns
Type Description
YieldPartner

getDisplayName()

public String getDisplayName()

Optional. The name of the yield partner. This refers to the name of the company associated with the partner, if there is one.

optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. The name of the yield partner. This refers to the name of the company associated with the partner, if there is one.

optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

Identifier. The resource name of the YieldPartner. Format: networks/{network_code}/yieldPartners/{yieldPartnerId}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the YieldPartner. Format: networks/{network_code}/yieldPartners/{yieldPartnerId}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSettings(int index)

public YieldPartnerSettings getSettings(int index)

Optional. The settings of the partner, representing its capabilities.

repeated .google.ads.admanager.v1.YieldPartnerSettings settings = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
YieldPartnerSettings

getSettingsCount()

public int getSettingsCount()

Optional. The settings of the partner, representing its capabilities.

repeated .google.ads.admanager.v1.YieldPartnerSettings settings = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getSettingsList()

public List<YieldPartnerSettings> getSettingsList()

Optional. The settings of the partner, representing its capabilities.

repeated .google.ads.admanager.v1.YieldPartnerSettings settings = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<YieldPartnerSettings>

getSettingsOrBuilder(int index)

public YieldPartnerSettingsOrBuilder getSettingsOrBuilder(int index)

Optional. The settings of the partner, representing its capabilities.

repeated .google.ads.admanager.v1.YieldPartnerSettings settings = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
YieldPartnerSettingsOrBuilder

getSettingsOrBuilderList()

public List<? extends YieldPartnerSettingsOrBuilder> getSettingsOrBuilderList()

Optional. The settings of the partner, representing its capabilities.

repeated .google.ads.admanager.v1.YieldPartnerSettings settings = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.ads.admanager.v1.YieldPartnerSettingsOrBuilder>

hasCompany()

public boolean hasCompany()

Output only. The company associated with this yield partner.

optional string company = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the company field is set.

hasDisplayName()

public boolean hasDisplayName()

Optional. The name of the yield partner. This refers to the name of the company associated with the partner, if there is one.

optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the displayName 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 YieldPartner.Builder newBuilderForType()
Returns
Type Description
YieldPartner.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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