public final class AdPartnerDeclaration extends GeneratedMessageV3 implements AdPartnerDeclarationOrBuilder
Represents a set of declarations about what (if any) ad partners are associated with a given creative. This can be set at the network level, as a default for all creatives, or overridden for a particular creative.
Protobuf type google.ads.admanager.v1.AdPartnerDeclaration
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AdPartnerDeclarationImplements
AdPartnerDeclarationOrBuilderStatic Fields
AD_PARTNERS_FIELD_NUMBER
public static final int AD_PARTNERS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static AdPartnerDeclaration getDefaultInstance()
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static AdPartnerDeclaration.Builder newBuilder()
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration.Builder |
newBuilder(AdPartnerDeclaration prototype)
public static AdPartnerDeclaration.Builder newBuilder(AdPartnerDeclaration prototype)
Parameter | |
---|---|
Name | Description |
prototype |
AdPartnerDeclaration |
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration.Builder |
parseDelimitedFrom(InputStream input)
public static AdPartnerDeclaration parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AdPartnerDeclaration parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static AdPartnerDeclaration parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AdPartnerDeclaration parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static AdPartnerDeclaration parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AdPartnerDeclaration parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static AdPartnerDeclaration parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AdPartnerDeclaration parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static AdPartnerDeclaration parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AdPartnerDeclaration parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static AdPartnerDeclaration parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AdPartnerDeclaration parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<AdPartnerDeclaration> parser()
Returns | |
---|---|
Type | Description |
Parser<AdPartnerDeclaration> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getAdPartners(int index)
public String getAdPartners(int index)
The resource names of AdPartners being declared. Format: "networks/{network_code}/adPartners/{ad_partner_id}"
repeated string ad_partners = 2 [(.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The adPartners at the given index. |
getAdPartnersBytes(int index)
public ByteString getAdPartnersBytes(int index)
The resource names of AdPartners being declared. Format: "networks/{network_code}/adPartners/{ad_partner_id}"
repeated string ad_partners = 2 [(.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the adPartners at the given index. |
getAdPartnersCount()
public int getAdPartnersCount()
The resource names of AdPartners being declared. Format: "networks/{network_code}/adPartners/{ad_partner_id}"
repeated string ad_partners = 2 [(.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
int |
The count of adPartners. |
getAdPartnersList()
public ProtocolStringList getAdPartnersList()
The resource names of AdPartners being declared. Format: "networks/{network_code}/adPartners/{ad_partner_id}"
repeated string ad_partners = 2 [(.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ProtocolStringList |
A list containing the adPartners. |
getDefaultInstanceForType()
public AdPartnerDeclaration getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration |
getParserForType()
public Parser<AdPartnerDeclaration> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<AdPartnerDeclaration> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
getType()
public DeclarationTypeEnum.DeclarationType getType()
They type of declaration.
.google.ads.admanager.v1.DeclarationTypeEnum.DeclarationType type = 1;
Returns | |
---|---|
Type | Description |
DeclarationTypeEnum.DeclarationType |
The type. |
getTypeValue()
public int getTypeValue()
They type of declaration.
.google.ads.admanager.v1.DeclarationTypeEnum.DeclarationType type = 1;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for type. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public AdPartnerDeclaration.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AdPartnerDeclaration.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public AdPartnerDeclaration.Builder toBuilder()
Returns | |
---|---|
Type | Description |
AdPartnerDeclaration.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |