public static final class ThirdPartyDataDeclaration.Builder extends GeneratedMessage.Builder<ThirdPartyDataDeclaration.Builder> implements ThirdPartyDataDeclarationOrBuilderRepresents 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ThirdPartyDataDeclaration.BuilderImplements
ThirdPartyDataDeclarationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllThirdPartyCompanies(Iterable<String> values)
public ThirdPartyDataDeclaration.Builder addAllThirdPartyCompanies(Iterable<String> values)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 |
values |
Iterable<String>The thirdPartyCompanies to add. |
| Returns | |
|---|---|
| Type | Description |
ThirdPartyDataDeclaration.Builder |
This builder for chaining. |
addThirdPartyCompanies(String value)
public ThirdPartyDataDeclaration.Builder addThirdPartyCompanies(String value)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 |
value |
StringThe thirdPartyCompanies to add. |
| Returns | |
|---|---|
| Type | Description |
ThirdPartyDataDeclaration.Builder |
This builder for chaining. |
addThirdPartyCompaniesBytes(ByteString value)
public ThirdPartyDataDeclaration.Builder addThirdPartyCompaniesBytes(ByteString value)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 |
value |
ByteStringThe bytes of the thirdPartyCompanies to add. |
| Returns | |
|---|---|
| Type | Description |
ThirdPartyDataDeclaration.Builder |
This builder for chaining. |
build()
public ThirdPartyDataDeclaration build()| Returns | |
|---|---|
| Type | Description |
ThirdPartyDataDeclaration |
|
buildPartial()
public ThirdPartyDataDeclaration buildPartial()| Returns | |
|---|---|
| Type | Description |
ThirdPartyDataDeclaration |
|
clear()
public ThirdPartyDataDeclaration.Builder clear()| Returns | |
|---|---|
| Type | Description |
ThirdPartyDataDeclaration.Builder |
|
clearDeclarationType()
public ThirdPartyDataDeclaration.Builder clearDeclarationType()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 |
ThirdPartyDataDeclaration.Builder |
This builder for chaining. |
clearThirdPartyCompanies()
public ThirdPartyDataDeclaration.Builder clearThirdPartyCompanies()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 |
ThirdPartyDataDeclaration.Builder |
This builder for chaining. |
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
intThe 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 |
intThe 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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ThirdPartyDataDeclaration other)
public ThirdPartyDataDeclaration.Builder mergeFrom(ThirdPartyDataDeclaration other)| Parameter | |
|---|---|
| Name | Description |
other |
ThirdPartyDataDeclaration |
| Returns | |
|---|---|
| Type | Description |
ThirdPartyDataDeclaration.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ThirdPartyDataDeclaration.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ThirdPartyDataDeclaration.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ThirdPartyDataDeclaration.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ThirdPartyDataDeclaration.Builder |
|
setDeclarationType(ThirdPartyDataDeclarationTypeEnum.ThirdPartyDataDeclarationType value)
public ThirdPartyDataDeclaration.Builder setDeclarationType(ThirdPartyDataDeclarationTypeEnum.ThirdPartyDataDeclarationType value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ThirdPartyDataDeclarationTypeEnum.ThirdPartyDataDeclarationTypeThe declarationType to set. |
| Returns | |
|---|---|
| Type | Description |
ThirdPartyDataDeclaration.Builder |
This builder for chaining. |
setDeclarationTypeValue(int value)
public ThirdPartyDataDeclaration.Builder setDeclarationTypeValue(int value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for declarationType to set. |
| Returns | |
|---|---|
| Type | Description |
ThirdPartyDataDeclaration.Builder |
This builder for chaining. |
setThirdPartyCompanies(int index, String value)
public ThirdPartyDataDeclaration.Builder setThirdPartyCompanies(int index, String value)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) = { ... }
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe thirdPartyCompanies to set. |
| Returns | |
|---|---|
| Type | Description |
ThirdPartyDataDeclaration.Builder |
This builder for chaining. |