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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static 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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static AdPartnerDeclaration.Builder newBuilder()
newBuilder(AdPartnerDeclaration prototype)
public static AdPartnerDeclaration.Builder newBuilder(AdPartnerDeclaration prototype)
public static AdPartnerDeclaration parseDelimitedFrom(InputStream input)
public static AdPartnerDeclaration parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static AdPartnerDeclaration parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AdPartnerDeclaration parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static AdPartnerDeclaration parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AdPartnerDeclaration parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AdPartnerDeclaration parseFrom(CodedInputStream input)
public static AdPartnerDeclaration parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AdPartnerDeclaration parseFrom(InputStream input)
public static AdPartnerDeclaration parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static AdPartnerDeclaration parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AdPartnerDeclaration parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<AdPartnerDeclaration> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
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) = { ... }
getDefaultInstanceForType()
public AdPartnerDeclaration getDefaultInstanceForType()
getParserForType()
public Parser<AdPartnerDeclaration> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getType()
public DeclarationTypeEnum.DeclarationType getType()
They type of declaration.
.google.ads.admanager.v1.DeclarationTypeEnum.DeclarationType type = 1;
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()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public AdPartnerDeclaration.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AdPartnerDeclaration.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public AdPartnerDeclaration.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides