Class ProductLink.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ProductLink.Builder>
com.google.ads.googleads.v18.resources.ProductLink.Builder
- All Implemented Interfaces:
ProductLinkOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ProductLink
public static final class ProductLink.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ProductLink.Builder>
implements ProductLinkOrBuilder
Represents the data sharing connection between a Google Ads customer and another product.Protobuf type
google.ads.googleads.v18.resources.ProductLink-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Output only.Immutable.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Immutable.Immutable.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Output only.Immutable.Output only.clone()Output only.Output only.Output only.Immutable.Immutable.Immutable.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorImmutable.Immutable.Immutable.Immutable.Immutable.Immutable.longOutput only.Immutable.com.google.protobuf.ByteStringImmutable.getType()Output only.intOutput only.booleanOutput only.booleanImmutable.booleanImmutable.booleanImmutable.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanOutput only.Immutable.mergeFrom(ProductLink other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Immutable.Immutable.final ProductLink.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Output only.setAdvertisingPartner(AdvertisingPartnerIdentifier.Builder builderForValue) Output only.Immutable.setDataPartner(DataPartnerIdentifier.Builder builderForValue) Immutable.setGoogleAds(GoogleAdsIdentifier value) Immutable.setGoogleAds(GoogleAdsIdentifier.Builder builderForValue) Immutable.Immutable.setMerchantCenter(MerchantCenterIdentifier.Builder builderForValue) Immutable.setProductLinkId(long value) Output only.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResourceName(String value) Immutable.setResourceNameBytes(com.google.protobuf.ByteString value) Immutable.Output only.setTypeValue(int value) Output only.final ProductLink.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ProductLink.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductLink.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ProductLink.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ProductLink.Builder>
-
setField
public ProductLink.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductLink.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductLink.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductLink.Builder>
-
setRepeatedField
public ProductLink.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductLink.Builder>
-
addRepeatedField
public ProductLink.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductLink.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProductLink.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductLink.Builder>
-
mergeFrom
public ProductLink.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProductLink.Builder>- Throws:
IOException
-
getLinkedProductCase
- Specified by:
getLinkedProductCasein interfaceProductLinkOrBuilder
-
clearLinkedProduct
-
getResourceName
Immutable. Resource name of the product link. ProductLink resource names have the form: `customers/{customer_id}/productLinks/{product_link_id} `string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceProductLinkOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()Immutable. Resource name of the product link. ProductLink resource names have the form: `customers/{customer_id}/productLinks/{product_link_id} `string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceProductLinkOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
Immutable. Resource name of the product link. ProductLink resource names have the form: `customers/{customer_id}/productLinks/{product_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
Immutable. Resource name of the product link. ProductLink resource names have the form: `customers/{customer_id}/productLinks/{product_link_id} `string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setResourceNameBytes
Immutable. Resource name of the product link. ProductLink resource names have the form: `customers/{customer_id}/productLinks/{product_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.
-
hasProductLinkId
public boolean hasProductLinkId()Output only. The ID of the link. This field is read only.
optional int64 product_link_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasProductLinkIdin interfaceProductLinkOrBuilder- Returns:
- Whether the productLinkId field is set.
-
getProductLinkId
public long getProductLinkId()Output only. The ID of the link. This field is read only.
optional int64 product_link_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getProductLinkIdin interfaceProductLinkOrBuilder- Returns:
- The productLinkId.
-
setProductLinkId
Output only. The ID of the link. This field is read only.
optional int64 product_link_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The productLinkId to set.- Returns:
- This builder for chaining.
-
clearProductLinkId
Output only. The ID of the link. This field is read only.
optional int64 product_link_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()Output only. The type of the linked product.
.google.ads.googleads.v18.enums.LinkedProductTypeEnum.LinkedProductType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTypeValuein interfaceProductLinkOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
Output only. The type of the linked product.
.google.ads.googleads.v18.enums.LinkedProductTypeEnum.LinkedProductType type = 3 [(.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
Output only. The type of the linked product.
.google.ads.googleads.v18.enums.LinkedProductTypeEnum.LinkedProductType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTypein interfaceProductLinkOrBuilder- Returns:
- The type.
-
setType
Output only. The type of the linked product.
.google.ads.googleads.v18.enums.LinkedProductTypeEnum.LinkedProductType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Output only. The type of the linked product.
.google.ads.googleads.v18.enums.LinkedProductTypeEnum.LinkedProductType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasDataPartner
public boolean hasDataPartner()Immutable. Data partner link.
.google.ads.googleads.v18.resources.DataPartnerIdentifier data_partner = 4 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasDataPartnerin interfaceProductLinkOrBuilder- Returns:
- Whether the dataPartner field is set.
-
getDataPartner
Immutable. Data partner link.
.google.ads.googleads.v18.resources.DataPartnerIdentifier data_partner = 4 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getDataPartnerin interfaceProductLinkOrBuilder- Returns:
- The dataPartner.
-
setDataPartner
Immutable. Data partner link.
.google.ads.googleads.v18.resources.DataPartnerIdentifier data_partner = 4 [(.google.api.field_behavior) = IMMUTABLE]; -
setDataPartner
Immutable. Data partner link.
.google.ads.googleads.v18.resources.DataPartnerIdentifier data_partner = 4 [(.google.api.field_behavior) = IMMUTABLE]; -
mergeDataPartner
Immutable. Data partner link.
.google.ads.googleads.v18.resources.DataPartnerIdentifier data_partner = 4 [(.google.api.field_behavior) = IMMUTABLE]; -
clearDataPartner
Immutable. Data partner link.
.google.ads.googleads.v18.resources.DataPartnerIdentifier data_partner = 4 [(.google.api.field_behavior) = IMMUTABLE]; -
getDataPartnerBuilder
Immutable. Data partner link.
.google.ads.googleads.v18.resources.DataPartnerIdentifier data_partner = 4 [(.google.api.field_behavior) = IMMUTABLE]; -
getDataPartnerOrBuilder
Immutable. Data partner link.
.google.ads.googleads.v18.resources.DataPartnerIdentifier data_partner = 4 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getDataPartnerOrBuilderin interfaceProductLinkOrBuilder
-
hasGoogleAds
public boolean hasGoogleAds()Immutable. Google Ads link.
.google.ads.googleads.v18.resources.GoogleAdsIdentifier google_ads = 5 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasGoogleAdsin interfaceProductLinkOrBuilder- Returns:
- Whether the googleAds field is set.
-
getGoogleAds
Immutable. Google Ads link.
.google.ads.googleads.v18.resources.GoogleAdsIdentifier google_ads = 5 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getGoogleAdsin interfaceProductLinkOrBuilder- Returns:
- The googleAds.
-
setGoogleAds
Immutable. Google Ads link.
.google.ads.googleads.v18.resources.GoogleAdsIdentifier google_ads = 5 [(.google.api.field_behavior) = IMMUTABLE]; -
setGoogleAds
Immutable. Google Ads link.
.google.ads.googleads.v18.resources.GoogleAdsIdentifier google_ads = 5 [(.google.api.field_behavior) = IMMUTABLE]; -
mergeGoogleAds
Immutable. Google Ads link.
.google.ads.googleads.v18.resources.GoogleAdsIdentifier google_ads = 5 [(.google.api.field_behavior) = IMMUTABLE]; -
clearGoogleAds
Immutable. Google Ads link.
.google.ads.googleads.v18.resources.GoogleAdsIdentifier google_ads = 5 [(.google.api.field_behavior) = IMMUTABLE]; -
getGoogleAdsBuilder
Immutable. Google Ads link.
.google.ads.googleads.v18.resources.GoogleAdsIdentifier google_ads = 5 [(.google.api.field_behavior) = IMMUTABLE]; -
getGoogleAdsOrBuilder
Immutable. Google Ads link.
.google.ads.googleads.v18.resources.GoogleAdsIdentifier google_ads = 5 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getGoogleAdsOrBuilderin interfaceProductLinkOrBuilder
-
hasMerchantCenter
public boolean hasMerchantCenter()Immutable. Google Merchant Center link.
.google.ads.googleads.v18.resources.MerchantCenterIdentifier merchant_center = 12 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasMerchantCenterin interfaceProductLinkOrBuilder- Returns:
- Whether the merchantCenter field is set.
-
getMerchantCenter
Immutable. Google Merchant Center link.
.google.ads.googleads.v18.resources.MerchantCenterIdentifier merchant_center = 12 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getMerchantCenterin interfaceProductLinkOrBuilder- Returns:
- The merchantCenter.
-
setMerchantCenter
Immutable. Google Merchant Center link.
.google.ads.googleads.v18.resources.MerchantCenterIdentifier merchant_center = 12 [(.google.api.field_behavior) = IMMUTABLE]; -
setMerchantCenter
Immutable. Google Merchant Center link.
.google.ads.googleads.v18.resources.MerchantCenterIdentifier merchant_center = 12 [(.google.api.field_behavior) = IMMUTABLE]; -
mergeMerchantCenter
Immutable. Google Merchant Center link.
.google.ads.googleads.v18.resources.MerchantCenterIdentifier merchant_center = 12 [(.google.api.field_behavior) = IMMUTABLE]; -
clearMerchantCenter
Immutable. Google Merchant Center link.
.google.ads.googleads.v18.resources.MerchantCenterIdentifier merchant_center = 12 [(.google.api.field_behavior) = IMMUTABLE]; -
getMerchantCenterBuilder
Immutable. Google Merchant Center link.
.google.ads.googleads.v18.resources.MerchantCenterIdentifier merchant_center = 12 [(.google.api.field_behavior) = IMMUTABLE]; -
getMerchantCenterOrBuilder
Immutable. Google Merchant Center link.
.google.ads.googleads.v18.resources.MerchantCenterIdentifier merchant_center = 12 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getMerchantCenterOrBuilderin interfaceProductLinkOrBuilder
-
hasAdvertisingPartner
public boolean hasAdvertisingPartner()Output only. Advertising Partner link.
.google.ads.googleads.v18.resources.AdvertisingPartnerIdentifier advertising_partner = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasAdvertisingPartnerin interfaceProductLinkOrBuilder- Returns:
- Whether the advertisingPartner field is set.
-
getAdvertisingPartner
Output only. Advertising Partner link.
.google.ads.googleads.v18.resources.AdvertisingPartnerIdentifier advertising_partner = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAdvertisingPartnerin interfaceProductLinkOrBuilder- Returns:
- The advertisingPartner.
-
setAdvertisingPartner
Output only. Advertising Partner link.
.google.ads.googleads.v18.resources.AdvertisingPartnerIdentifier advertising_partner = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setAdvertisingPartner
public ProductLink.Builder setAdvertisingPartner(AdvertisingPartnerIdentifier.Builder builderForValue) Output only. Advertising Partner link.
.google.ads.googleads.v18.resources.AdvertisingPartnerIdentifier advertising_partner = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeAdvertisingPartner
Output only. Advertising Partner link.
.google.ads.googleads.v18.resources.AdvertisingPartnerIdentifier advertising_partner = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearAdvertisingPartner
Output only. Advertising Partner link.
.google.ads.googleads.v18.resources.AdvertisingPartnerIdentifier advertising_partner = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getAdvertisingPartnerBuilder
Output only. Advertising Partner link.
.google.ads.googleads.v18.resources.AdvertisingPartnerIdentifier advertising_partner = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getAdvertisingPartnerOrBuilder
Output only. Advertising Partner link.
.google.ads.googleads.v18.resources.AdvertisingPartnerIdentifier advertising_partner = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAdvertisingPartnerOrBuilderin interfaceProductLinkOrBuilder
-
setUnknownFields
public final ProductLink.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductLink.Builder>
-
mergeUnknownFields
public final ProductLink.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductLink.Builder>
-