Class CustomerAsset
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.resources.CustomerAsset
- All Implemented Interfaces:
CustomerAssetOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class CustomerAsset
extends com.google.protobuf.GeneratedMessageV3
implements CustomerAssetOrBuilder
A link between a customer and an asset.Protobuf type
google.ads.googleads.v18.resources.CustomerAsset- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA link between a customer and an asset.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAsset()Required.com.google.protobuf.ByteStringRequired.static CustomerAssetstatic final com.google.protobuf.Descriptors.DescriptorRequired.intRequired.com.google.protobuf.Parser<CustomerAsset>Output only.getPrimaryStatusDetails(int index) Output only.intOutput only.Output only.getPrimaryStatusDetailsOrBuilder(int index) Output only.List<? extends AssetLinkPrimaryStatusDetailsOrBuilder>Output only.getPrimaryStatusReasons(int index) Output only.intOutput only.Output only.intgetPrimaryStatusReasonsValue(int index) Output only.Output only.intOutput only.Immutable.com.google.protobuf.ByteStringImmutable.intOutput only.intOutput only.Status of the customer asset.intStatus of the customer asset.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic CustomerAsset.Builderstatic CustomerAsset.BuildernewBuilder(CustomerAsset prototype) protected CustomerAsset.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static CustomerAssetparseDelimitedFrom(InputStream input) static CustomerAssetparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CustomerAssetparseFrom(byte[] data) static CustomerAssetparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CustomerAssetparseFrom(com.google.protobuf.ByteString data) static CustomerAssetparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CustomerAssetparseFrom(com.google.protobuf.CodedInputStream input) static CustomerAssetparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CustomerAssetparseFrom(InputStream input) static CustomerAssetparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CustomerAssetparseFrom(ByteBuffer data) static CustomerAssetparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CustomerAsset>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
RESOURCE_NAME_FIELD_NUMBER
public static final int RESOURCE_NAME_FIELD_NUMBER- See Also:
-
ASSET_FIELD_NUMBER
public static final int ASSET_FIELD_NUMBER- See Also:
-
FIELD_TYPE_FIELD_NUMBER
public static final int FIELD_TYPE_FIELD_NUMBER- See Also:
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER- See Also:
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER- See Also:
-
PRIMARY_STATUS_FIELD_NUMBER
public static final int PRIMARY_STATUS_FIELD_NUMBER- See Also:
-
PRIMARY_STATUS_DETAILS_FIELD_NUMBER
public static final int PRIMARY_STATUS_DETAILS_FIELD_NUMBER- See Also:
-
PRIMARY_STATUS_REASONS_FIELD_NUMBER
public static final int PRIMARY_STATUS_REASONS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
getResourceName
Immutable. The resource name of the customer asset. CustomerAsset resource names have the form: `customers/{customer_id}/customerAssets/{asset_id}~{field_type}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceCustomerAssetOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()Immutable. The resource name of the customer asset. CustomerAsset resource names have the form: `customers/{customer_id}/customerAssets/{asset_id}~{field_type}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceCustomerAssetOrBuilder- Returns:
- The bytes for resourceName.
-
getAsset
Required. Immutable. The asset which is linked to the customer.
string asset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getAssetin interfaceCustomerAssetOrBuilder- Returns:
- The asset.
-
getAssetBytes
public com.google.protobuf.ByteString getAssetBytes()Required. Immutable. The asset which is linked to the customer.
string asset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getAssetBytesin interfaceCustomerAssetOrBuilder- Returns:
- The bytes for asset.
-
getFieldTypeValue
public int getFieldTypeValue()Required. Immutable. Role that the asset takes for the customer link.
.google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldType field_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getFieldTypeValuein interfaceCustomerAssetOrBuilder- Returns:
- The enum numeric value on the wire for fieldType.
-
getFieldType
Required. Immutable. Role that the asset takes for the customer link.
.google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldType field_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getFieldTypein interfaceCustomerAssetOrBuilder- Returns:
- The fieldType.
-
getSourceValue
public int getSourceValue()Output only. Source of the customer asset link.
.google.ads.googleads.v18.enums.AssetSourceEnum.AssetSource source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourceValuein interfaceCustomerAssetOrBuilder- Returns:
- The enum numeric value on the wire for source.
-
getSource
Output only. Source of the customer asset link.
.google.ads.googleads.v18.enums.AssetSourceEnum.AssetSource source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourcein interfaceCustomerAssetOrBuilder- Returns:
- The source.
-
getStatusValue
public int getStatusValue()Status of the customer asset.
.google.ads.googleads.v18.enums.AssetLinkStatusEnum.AssetLinkStatus status = 4;- Specified by:
getStatusValuein interfaceCustomerAssetOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
getStatus
Status of the customer asset.
.google.ads.googleads.v18.enums.AssetLinkStatusEnum.AssetLinkStatus status = 4;- Specified by:
getStatusin interfaceCustomerAssetOrBuilder- Returns:
- The status.
-
getPrimaryStatusValue
public int getPrimaryStatusValue()Output only. Provides the PrimaryStatus of this asset link. Primary status is meant essentially to differentiate between the plain "status" field, which has advertiser set values of enabled, paused, or removed. The primary status takes into account other signals (for assets its mainly policy and quality approvals) to come up with a more comprehensive status to indicate its serving state.
.google.ads.googleads.v18.enums.AssetLinkPrimaryStatusEnum.AssetLinkPrimaryStatus primary_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPrimaryStatusValuein interfaceCustomerAssetOrBuilder- Returns:
- The enum numeric value on the wire for primaryStatus.
-
getPrimaryStatus
Output only. Provides the PrimaryStatus of this asset link. Primary status is meant essentially to differentiate between the plain "status" field, which has advertiser set values of enabled, paused, or removed. The primary status takes into account other signals (for assets its mainly policy and quality approvals) to come up with a more comprehensive status to indicate its serving state.
.google.ads.googleads.v18.enums.AssetLinkPrimaryStatusEnum.AssetLinkPrimaryStatus primary_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPrimaryStatusin interfaceCustomerAssetOrBuilder- Returns:
- The primaryStatus.
-
getPrimaryStatusDetailsList
Output only. Provides the details of the primary status and its associated reasons.
repeated .google.ads.googleads.v18.common.AssetLinkPrimaryStatusDetails primary_status_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPrimaryStatusDetailsListin interfaceCustomerAssetOrBuilder
-
getPrimaryStatusDetailsOrBuilderList
public List<? extends AssetLinkPrimaryStatusDetailsOrBuilder> getPrimaryStatusDetailsOrBuilderList()Output only. Provides the details of the primary status and its associated reasons.
repeated .google.ads.googleads.v18.common.AssetLinkPrimaryStatusDetails primary_status_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPrimaryStatusDetailsOrBuilderListin interfaceCustomerAssetOrBuilder
-
getPrimaryStatusDetailsCount
public int getPrimaryStatusDetailsCount()Output only. Provides the details of the primary status and its associated reasons.
repeated .google.ads.googleads.v18.common.AssetLinkPrimaryStatusDetails primary_status_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPrimaryStatusDetailsCountin interfaceCustomerAssetOrBuilder
-
getPrimaryStatusDetails
Output only. Provides the details of the primary status and its associated reasons.
repeated .google.ads.googleads.v18.common.AssetLinkPrimaryStatusDetails primary_status_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPrimaryStatusDetailsin interfaceCustomerAssetOrBuilder
-
getPrimaryStatusDetailsOrBuilder
Output only. Provides the details of the primary status and its associated reasons.
repeated .google.ads.googleads.v18.common.AssetLinkPrimaryStatusDetails primary_status_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPrimaryStatusDetailsOrBuilderin interfaceCustomerAssetOrBuilder
-
getPrimaryStatusReasonsList
public List<AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReason> getPrimaryStatusReasonsList()Output only. Provides a list of reasons for why an asset is not serving or not serving at full capacity.
repeated .google.ads.googleads.v18.enums.AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReason primary_status_reasons = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPrimaryStatusReasonsListin interfaceCustomerAssetOrBuilder- Returns:
- A list containing the primaryStatusReasons.
-
getPrimaryStatusReasonsCount
public int getPrimaryStatusReasonsCount()Output only. Provides a list of reasons for why an asset is not serving or not serving at full capacity.
repeated .google.ads.googleads.v18.enums.AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReason primary_status_reasons = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPrimaryStatusReasonsCountin interfaceCustomerAssetOrBuilder- Returns:
- The count of primaryStatusReasons.
-
getPrimaryStatusReasons
public AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReason getPrimaryStatusReasons(int index) Output only. Provides a list of reasons for why an asset is not serving or not serving at full capacity.
repeated .google.ads.googleads.v18.enums.AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReason primary_status_reasons = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPrimaryStatusReasonsin interfaceCustomerAssetOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The primaryStatusReasons at the given index.
-
getPrimaryStatusReasonsValueList
Output only. Provides a list of reasons for why an asset is not serving or not serving at full capacity.
repeated .google.ads.googleads.v18.enums.AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReason primary_status_reasons = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPrimaryStatusReasonsValueListin interfaceCustomerAssetOrBuilder- Returns:
- A list containing the enum numeric values on the wire for primaryStatusReasons.
-
getPrimaryStatusReasonsValue
public int getPrimaryStatusReasonsValue(int index) Output only. Provides a list of reasons for why an asset is not serving or not serving at full capacity.
repeated .google.ads.googleads.v18.enums.AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReason primary_status_reasons = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPrimaryStatusReasonsValuein interfaceCustomerAssetOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of primaryStatusReasons at the given index.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CustomerAsset parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomerAsset parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomerAsset parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomerAsset parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomerAsset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomerAsset parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CustomerAsset parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CustomerAsset parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static CustomerAsset parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CustomerAsset parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CustomerAsset.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-