Class DataLink

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.ads.googleads.v24.resources.DataLink
All Implemented Interfaces:
DataLinkOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class DataLink extends com.google.protobuf.GeneratedMessage implements DataLinkOrBuilder
 Represents the data sharing connection between  a Google
 Ads customer and another product's data.
 
Protobuf type google.ads.googleads.v24.resources.DataLink
See Also:
  • Field Details

    • RESOURCE_NAME_FIELD_NUMBER

      public static final int RESOURCE_NAME_FIELD_NUMBER
      See Also:
    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • YOUTUBE_VIDEO_FIELD_NUMBER

      public static final int YOUTUBE_VIDEO_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getDataLinkEntityCase

      public DataLink.DataLinkEntityCase getDataLinkEntityCase()
      Specified by:
      getDataLinkEntityCase in interface DataLinkOrBuilder
    • getDataLinkMetadataCase

      public DataLink.DataLinkMetadataCase getDataLinkMetadataCase()
      Specified by:
      getDataLinkMetadataCase in interface DataLinkOrBuilder
    • getResourceName

      public String getResourceName()
       Immutable. Resource name of the product data link.
       DataLink resource names have the form:
      
       `customers/{customer_id}/datalinks/{product_link_id}~{data_link_id}
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface DataLinkOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Immutable. Resource name of the product data link.
       DataLink resource names have the form:
      
       `customers/{customer_id}/datalinks/{product_link_id}~{data_link_id}
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface DataLinkOrBuilder
      Returns:
      The bytes for resourceName.
    • 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:
      hasProductLinkId in interface DataLinkOrBuilder
      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:
      getProductLinkId in interface DataLinkOrBuilder
      Returns:
      The productLinkId.
    • hasDataLinkId

      public boolean hasDataLinkId()
       Output only. The ID of the data link.
       This field is read only.
       
      optional int64 data_link_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDataLinkId in interface DataLinkOrBuilder
      Returns:
      Whether the dataLinkId field is set.
    • getDataLinkId

      public long getDataLinkId()
       Output only. The ID of the data link.
       This field is read only.
       
      optional int64 data_link_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDataLinkId in interface DataLinkOrBuilder
      Returns:
      The dataLinkId.
    • getTypeValue

      public int getTypeValue()
       Output only. The type of the data.
       
      .google.ads.googleads.v24.enums.DataLinkTypeEnum.DataLinkType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTypeValue in interface DataLinkOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • getType

       Output only. The type of the data.
       
      .google.ads.googleads.v24.enums.DataLinkTypeEnum.DataLinkType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getType in interface DataLinkOrBuilder
      Returns:
      The type.
    • getStatusValue

      public int getStatusValue()
       Output only. The status of the data link.
       
      .google.ads.googleads.v24.enums.DataLinkStatusEnum.DataLinkStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatusValue in interface DataLinkOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • getStatus

       Output only. The status of the data link.
       
      .google.ads.googleads.v24.enums.DataLinkStatusEnum.DataLinkStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatus in interface DataLinkOrBuilder
      Returns:
      The status.
    • hasYoutubeVideo

      public boolean hasYoutubeVideo()
       Immutable. A data link to YouTube video.
       
      .google.ads.googleads.v24.resources.YoutubeVideoIdentifier youtube_video = 6 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasYoutubeVideo in interface DataLinkOrBuilder
      Returns:
      Whether the youtubeVideo field is set.
    • getYoutubeVideo

      public YoutubeVideoIdentifier getYoutubeVideo()
       Immutable. A data link to YouTube video.
       
      .google.ads.googleads.v24.resources.YoutubeVideoIdentifier youtube_video = 6 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getYoutubeVideo in interface DataLinkOrBuilder
      Returns:
      The youtubeVideo.
    • getYoutubeVideoOrBuilder

      public YoutubeVideoIdentifierOrBuilder getYoutubeVideoOrBuilder()
       Immutable. A data link to YouTube video.
       
      .google.ads.googleads.v24.resources.YoutubeVideoIdentifier youtube_video = 6 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getYoutubeVideoOrBuilder in interface DataLinkOrBuilder
    • hasYoutubeLinkMetadata

      public boolean hasYoutubeLinkMetadata()
       Immutable. Metadata for a YouTube link.
       
      .google.ads.googleads.v24.resources.YoutubeLinkMetadata youtube_link_metadata = 7 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasYoutubeLinkMetadata in interface DataLinkOrBuilder
      Returns:
      Whether the youtubeLinkMetadata field is set.
    • getYoutubeLinkMetadata

      public YoutubeLinkMetadata getYoutubeLinkMetadata()
       Immutable. Metadata for a YouTube link.
       
      .google.ads.googleads.v24.resources.YoutubeLinkMetadata youtube_link_metadata = 7 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getYoutubeLinkMetadata in interface DataLinkOrBuilder
      Returns:
      The youtubeLinkMetadata.
    • getYoutubeLinkMetadataOrBuilder

      public YoutubeLinkMetadataOrBuilder getYoutubeLinkMetadataOrBuilder()
       Immutable. Metadata for a YouTube link.
       
      .google.ads.googleads.v24.resources.YoutubeLinkMetadata youtube_link_metadata = 7 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getYoutubeLinkMetadataOrBuilder in interface DataLinkOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static DataLink parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataLink parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataLink parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataLink parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataLink parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataLink parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataLink parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataLink parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DataLink parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DataLink parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataLink parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataLink parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public DataLink.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static DataLink.Builder newBuilder()
    • newBuilder

      public static DataLink.Builder newBuilder(DataLink prototype)
    • toBuilder

      public DataLink.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected DataLink.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static DataLink getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DataLink> parser()
    • getParserForType

      public com.google.protobuf.Parser<DataLink> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public DataLink getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder