Class ThirdPartyDataDeclaration (0.58.0)

public final class ThirdPartyDataDeclaration extends GeneratedMessage implements ThirdPartyDataDeclarationOrBuilder

Represents a set of declarations about what (if any) third party companies are associated with a given creative. This can also be set on the Network to serve as a default for those creatives that don't have such field set.

Protobuf type google.ads.admanager.v1.ThirdPartyDataDeclaration

Static Fields

DECLARATION_TYPE_FIELD_NUMBER

public static final int DECLARATION_TYPE_FIELD_NUMBER
Field Value
Type Description
int

THIRD_PARTY_COMPANIES_FIELD_NUMBER

public static final int THIRD_PARTY_COMPANIES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ThirdPartyDataDeclaration getDefaultInstance()
Returns
Type Description
ThirdPartyDataDeclaration

getDescriptor()

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

newBuilder()

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

newBuilder(ThirdPartyDataDeclaration prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDeclarationType()

public ThirdPartyDataDeclarationTypeEnum.ThirdPartyDataDeclarationType getDeclarationType()

Optional. The declaration about third party data usage on the associated entity.

.google.ads.admanager.v1.ThirdPartyDataDeclarationTypeEnum.ThirdPartyDataDeclarationType declaration_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ThirdPartyDataDeclarationTypeEnum.ThirdPartyDataDeclarationType

The declarationType.

getDeclarationTypeValue()

public int getDeclarationTypeValue()

Optional. The declaration about third party data usage on the associated entity.

.google.ads.admanager.v1.ThirdPartyDataDeclarationTypeEnum.ThirdPartyDataDeclarationType declaration_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for declarationType.

getDefaultInstanceForType()

public ThirdPartyDataDeclaration getDefaultInstanceForType()
Returns
Type Description
ThirdPartyDataDeclaration

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getThirdPartyCompanies(int index)

public String getThirdPartyCompanies(int index)

Optional. A list of ThirdPartyCompanies associated with this entity. Format: "networks/{network_code}/thirdPartyCompanies/{third_party_company}"

repeated string third_party_companies = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The thirdPartyCompanies at the given index.

getThirdPartyCompaniesBytes(int index)

public ByteString getThirdPartyCompaniesBytes(int index)

Optional. A list of ThirdPartyCompanies associated with this entity. Format: "networks/{network_code}/thirdPartyCompanies/{third_party_company}"

repeated string third_party_companies = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the thirdPartyCompanies at the given index.

getThirdPartyCompaniesCount()

public int getThirdPartyCompaniesCount()

Optional. A list of ThirdPartyCompanies associated with this entity. Format: "networks/{network_code}/thirdPartyCompanies/{third_party_company}"

repeated string third_party_companies = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of thirdPartyCompanies.

getThirdPartyCompaniesList()

public ProtocolStringList getThirdPartyCompaniesList()

Optional. A list of ThirdPartyCompanies associated with this entity. Format: "networks/{network_code}/thirdPartyCompanies/{third_party_company}"

repeated string third_party_companies = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the thirdPartyCompanies.

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 ThirdPartyDataDeclaration.Builder newBuilderForType()
Returns
Type Description
ThirdPartyDataDeclaration.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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