Class AccountLink.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
-
- com.google.ads.googleads.v9.resources.AccountLink.Builder
-
- All Implemented Interfaces:
AccountLinkOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- AccountLink
public static final class AccountLink.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder> implements AccountLinkOrBuilder
Represents the data sharing connection between a Google Ads account and another account
Protobuf typegoogle.ads.googleads.v9.resources.AccountLink
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
-
clear
public AccountLink.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
-
getDefaultInstanceForType
public AccountLink getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AccountLink build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AccountLink buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AccountLink.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
-
setField
public AccountLink.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
-
clearField
public AccountLink.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
-
clearOneof
public AccountLink.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
-
setRepeatedField
public AccountLink.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
-
addRepeatedField
public AccountLink.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
-
mergeFrom
public AccountLink.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AccountLink.Builder>
-
mergeFrom
public AccountLink.Builder mergeFrom(AccountLink other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
-
mergeFrom
public AccountLink.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AccountLink.Builder>
- Throws:
java.io.IOException
-
getLinkedAccountCase
public AccountLink.LinkedAccountCase getLinkedAccountCase()
- Specified by:
getLinkedAccountCase
in interfaceAccountLinkOrBuilder
-
clearLinkedAccount
public AccountLink.Builder clearLinkedAccount()
-
getResourceName
public java.lang.String getResourceName()
Immutable. Resource name of the account link. AccountLink resource names have the form: `customers/{customer_id}/accountLinks/{account_link_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getResourceName
in interfaceAccountLinkOrBuilder
- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Immutable. Resource name of the account link. AccountLink resource names have the form: `customers/{customer_id}/accountLinks/{account_link_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getResourceNameBytes
in interfaceAccountLinkOrBuilder
- Returns:
- The bytes for resourceName.
-
setResourceName
public AccountLink.Builder setResourceName(java.lang.String value)
Immutable. Resource name of the account link. AccountLink resource names have the form: `customers/{customer_id}/accountLinks/{account_link_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The resourceName to set.- Returns:
- This builder for chaining.
-
clearResourceName
public AccountLink.Builder clearResourceName()
Immutable. Resource name of the account link. AccountLink resource names have the form: `customers/{customer_id}/accountLinks/{account_link_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setResourceNameBytes
public AccountLink.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
Immutable. Resource name of the account link. AccountLink resource names have the form: `customers/{customer_id}/accountLinks/{account_link_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for resourceName to set.- Returns:
- This builder for chaining.
-
hasAccountLinkId
public boolean hasAccountLinkId()
Output only. The ID of the link. This field is read only.
optional int64 account_link_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasAccountLinkId
in interfaceAccountLinkOrBuilder
- Returns:
- Whether the accountLinkId field is set.
-
getAccountLinkId
public long getAccountLinkId()
Output only. The ID of the link. This field is read only.
optional int64 account_link_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getAccountLinkId
in interfaceAccountLinkOrBuilder
- Returns:
- The accountLinkId.
-
setAccountLinkId
public AccountLink.Builder setAccountLinkId(long value)
Output only. The ID of the link. This field is read only.
optional int64 account_link_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The accountLinkId to set.- Returns:
- This builder for chaining.
-
clearAccountLinkId
public AccountLink.Builder clearAccountLinkId()
Output only. The ID of the link. This field is read only.
optional int64 account_link_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getStatusValue
public int getStatusValue()
The status of the link.
.google.ads.googleads.v9.enums.AccountLinkStatusEnum.AccountLinkStatus status = 3;
- Specified by:
getStatusValue
in interfaceAccountLinkOrBuilder
- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
public AccountLink.Builder setStatusValue(int value)
The status of the link.
.google.ads.googleads.v9.enums.AccountLinkStatusEnum.AccountLinkStatus status = 3;
- Parameters:
value
- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
public AccountLinkStatusEnum.AccountLinkStatus getStatus()
The status of the link.
.google.ads.googleads.v9.enums.AccountLinkStatusEnum.AccountLinkStatus status = 3;
- Specified by:
getStatus
in interfaceAccountLinkOrBuilder
- Returns:
- The status.
-
setStatus
public AccountLink.Builder setStatus(AccountLinkStatusEnum.AccountLinkStatus value)
The status of the link.
.google.ads.googleads.v9.enums.AccountLinkStatusEnum.AccountLinkStatus status = 3;
- Parameters:
value
- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public AccountLink.Builder clearStatus()
The status of the link.
.google.ads.googleads.v9.enums.AccountLinkStatusEnum.AccountLinkStatus status = 3;
- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()
Output only. The type of the linked account.
.google.ads.googleads.v9.enums.LinkedAccountTypeEnum.LinkedAccountType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getTypeValue
in interfaceAccountLinkOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public AccountLink.Builder setTypeValue(int value)
Output only. The type of the linked account.
.google.ads.googleads.v9.enums.LinkedAccountTypeEnum.LinkedAccountType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public LinkedAccountTypeEnum.LinkedAccountType getType()
Output only. The type of the linked account.
.google.ads.googleads.v9.enums.LinkedAccountTypeEnum.LinkedAccountType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getType
in interfaceAccountLinkOrBuilder
- Returns:
- The type.
-
setType
public AccountLink.Builder setType(LinkedAccountTypeEnum.LinkedAccountType value)
Output only. The type of the linked account.
.google.ads.googleads.v9.enums.LinkedAccountTypeEnum.LinkedAccountType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
public AccountLink.Builder clearType()
Output only. The type of the linked account.
.google.ads.googleads.v9.enums.LinkedAccountTypeEnum.LinkedAccountType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
hasThirdPartyAppAnalytics
public boolean hasThirdPartyAppAnalytics()
Immutable. A third party app analytics link.
.google.ads.googleads.v9.resources.ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
hasThirdPartyAppAnalytics
in interfaceAccountLinkOrBuilder
- Returns:
- Whether the thirdPartyAppAnalytics field is set.
-
getThirdPartyAppAnalytics
public ThirdPartyAppAnalyticsLinkIdentifier getThirdPartyAppAnalytics()
Immutable. A third party app analytics link.
.google.ads.googleads.v9.resources.ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getThirdPartyAppAnalytics
in interfaceAccountLinkOrBuilder
- Returns:
- The thirdPartyAppAnalytics.
-
setThirdPartyAppAnalytics
public AccountLink.Builder setThirdPartyAppAnalytics(ThirdPartyAppAnalyticsLinkIdentifier value)
Immutable. A third party app analytics link.
.google.ads.googleads.v9.resources.ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(.google.api.field_behavior) = IMMUTABLE];
-
setThirdPartyAppAnalytics
public AccountLink.Builder setThirdPartyAppAnalytics(ThirdPartyAppAnalyticsLinkIdentifier.Builder builderForValue)
Immutable. A third party app analytics link.
.google.ads.googleads.v9.resources.ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(.google.api.field_behavior) = IMMUTABLE];
-
mergeThirdPartyAppAnalytics
public AccountLink.Builder mergeThirdPartyAppAnalytics(ThirdPartyAppAnalyticsLinkIdentifier value)
Immutable. A third party app analytics link.
.google.ads.googleads.v9.resources.ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(.google.api.field_behavior) = IMMUTABLE];
-
clearThirdPartyAppAnalytics
public AccountLink.Builder clearThirdPartyAppAnalytics()
Immutable. A third party app analytics link.
.google.ads.googleads.v9.resources.ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(.google.api.field_behavior) = IMMUTABLE];
-
getThirdPartyAppAnalyticsBuilder
public ThirdPartyAppAnalyticsLinkIdentifier.Builder getThirdPartyAppAnalyticsBuilder()
Immutable. A third party app analytics link.
.google.ads.googleads.v9.resources.ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(.google.api.field_behavior) = IMMUTABLE];
-
getThirdPartyAppAnalyticsOrBuilder
public ThirdPartyAppAnalyticsLinkIdentifierOrBuilder getThirdPartyAppAnalyticsOrBuilder()
Immutable. A third party app analytics link.
.google.ads.googleads.v9.resources.ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getThirdPartyAppAnalyticsOrBuilder
in interfaceAccountLinkOrBuilder
-
hasDataPartner
public boolean hasDataPartner()
Output only. Data partner link.
.google.ads.googleads.v9.resources.DataPartnerLinkIdentifier data_partner = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasDataPartner
in interfaceAccountLinkOrBuilder
- Returns:
- Whether the dataPartner field is set.
-
getDataPartner
public DataPartnerLinkIdentifier getDataPartner()
Output only. Data partner link.
.google.ads.googleads.v9.resources.DataPartnerLinkIdentifier data_partner = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDataPartner
in interfaceAccountLinkOrBuilder
- Returns:
- The dataPartner.
-
setDataPartner
public AccountLink.Builder setDataPartner(DataPartnerLinkIdentifier value)
Output only. Data partner link.
.google.ads.googleads.v9.resources.DataPartnerLinkIdentifier data_partner = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setDataPartner
public AccountLink.Builder setDataPartner(DataPartnerLinkIdentifier.Builder builderForValue)
Output only. Data partner link.
.google.ads.googleads.v9.resources.DataPartnerLinkIdentifier data_partner = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeDataPartner
public AccountLink.Builder mergeDataPartner(DataPartnerLinkIdentifier value)
Output only. Data partner link.
.google.ads.googleads.v9.resources.DataPartnerLinkIdentifier data_partner = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearDataPartner
public AccountLink.Builder clearDataPartner()
Output only. Data partner link.
.google.ads.googleads.v9.resources.DataPartnerLinkIdentifier data_partner = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getDataPartnerBuilder
public DataPartnerLinkIdentifier.Builder getDataPartnerBuilder()
Output only. Data partner link.
.google.ads.googleads.v9.resources.DataPartnerLinkIdentifier data_partner = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getDataPartnerOrBuilder
public DataPartnerLinkIdentifierOrBuilder getDataPartnerOrBuilder()
Output only. Data partner link.
.google.ads.googleads.v9.resources.DataPartnerLinkIdentifier data_partner = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDataPartnerOrBuilder
in interfaceAccountLinkOrBuilder
-
hasGoogleAds
public boolean hasGoogleAds()
Output only. Google Ads link.
.google.ads.googleads.v9.resources.GoogleAdsLinkIdentifier google_ads = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasGoogleAds
in interfaceAccountLinkOrBuilder
- Returns:
- Whether the googleAds field is set.
-
getGoogleAds
public GoogleAdsLinkIdentifier getGoogleAds()
Output only. Google Ads link.
.google.ads.googleads.v9.resources.GoogleAdsLinkIdentifier google_ads = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getGoogleAds
in interfaceAccountLinkOrBuilder
- Returns:
- The googleAds.
-
setGoogleAds
public AccountLink.Builder setGoogleAds(GoogleAdsLinkIdentifier value)
Output only. Google Ads link.
.google.ads.googleads.v9.resources.GoogleAdsLinkIdentifier google_ads = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setGoogleAds
public AccountLink.Builder setGoogleAds(GoogleAdsLinkIdentifier.Builder builderForValue)
Output only. Google Ads link.
.google.ads.googleads.v9.resources.GoogleAdsLinkIdentifier google_ads = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeGoogleAds
public AccountLink.Builder mergeGoogleAds(GoogleAdsLinkIdentifier value)
Output only. Google Ads link.
.google.ads.googleads.v9.resources.GoogleAdsLinkIdentifier google_ads = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearGoogleAds
public AccountLink.Builder clearGoogleAds()
Output only. Google Ads link.
.google.ads.googleads.v9.resources.GoogleAdsLinkIdentifier google_ads = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getGoogleAdsBuilder
public GoogleAdsLinkIdentifier.Builder getGoogleAdsBuilder()
Output only. Google Ads link.
.google.ads.googleads.v9.resources.GoogleAdsLinkIdentifier google_ads = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getGoogleAdsOrBuilder
public GoogleAdsLinkIdentifierOrBuilder getGoogleAdsOrBuilder()
Output only. Google Ads link.
.google.ads.googleads.v9.resources.GoogleAdsLinkIdentifier google_ads = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getGoogleAdsOrBuilder
in interfaceAccountLinkOrBuilder
-
setUnknownFields
public final AccountLink.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
-
mergeUnknownFields
public final AccountLink.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
-
-