Class DataLink.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DataLink.Builder>
com.google.ads.googleads.v18.resources.DataLink.Builder
All Implemented Interfaces:
DataLinkOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DataLink

public static final class DataLink.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DataLink.Builder> implements DataLinkOrBuilder
 Represents the data sharing connection between  a Google
 Ads customer and another product's data.
 
Protobuf type google.ads.googleads.v18.resources.DataLink
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DataLink.Builder>
    • clear

      public DataLink.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<DataLink.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DataLink.Builder>
    • getDefaultInstanceForType

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

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

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

      public DataLink.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<DataLink.Builder>
    • setField

      public DataLink.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<DataLink.Builder>
    • clearField

      public DataLink.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DataLink.Builder>
    • clearOneof

      public DataLink.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DataLink.Builder>
    • setRepeatedField

      public DataLink.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DataLink.Builder>
    • addRepeatedField

      public DataLink.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DataLink.Builder>
    • mergeFrom

      public DataLink.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DataLink.Builder>
    • mergeFrom

      public DataLink.Builder mergeFrom(DataLink other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DataLink.Builder>
    • mergeFrom

      public DataLink.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DataLink.Builder>
      Throws:
      IOException
    • getDataLinkEntityCase

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

      public DataLink.Builder clearDataLinkEntity()
    • 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.
    • setResourceName

      public DataLink.Builder setResourceName(String value)
       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) = { ... }
      Parameters:
      value - The resourceName to set.
      Returns:
      This builder for chaining.
    • clearResourceName

      public DataLink.Builder clearResourceName()
       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) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public DataLink.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      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:
      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.
    • setProductLinkId

      public DataLink.Builder setProductLinkId(long value)
       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

      public DataLink.Builder 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.
    • 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.
    • setDataLinkId

      public DataLink.Builder setDataLinkId(long value)
       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];
      Parameters:
      value - The dataLinkId to set.
      Returns:
      This builder for chaining.
    • clearDataLinkId

      public DataLink.Builder clearDataLinkId()
       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];
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       Output only. The type of the data.
       
      .google.ads.googleads.v18.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.
    • setTypeValue

      public DataLink.Builder setTypeValue(int value)
       Output only. The type of the data.
       
      .google.ads.googleads.v18.enums.DataLinkTypeEnum.DataLinkType 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

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

       Output only. The type of the data.
       
      .google.ads.googleads.v18.enums.DataLinkTypeEnum.DataLinkType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public DataLink.Builder clearType()
       Output only. The type of the data.
       
      .google.ads.googleads.v18.enums.DataLinkTypeEnum.DataLinkType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getStatusValue

      public int getStatusValue()
       Output only. The status of the data link.
       
      .google.ads.googleads.v18.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.
    • setStatusValue

      public DataLink.Builder setStatusValue(int value)
       Output only. The status of the data link.
       
      .google.ads.googleads.v18.enums.DataLinkStatusEnum.DataLinkStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

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

       Output only. The status of the data link.
       
      .google.ads.googleads.v18.enums.DataLinkStatusEnum.DataLinkStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public DataLink.Builder clearStatus()
       Output only. The status of the data link.
       
      .google.ads.googleads.v18.enums.DataLinkStatusEnum.DataLinkStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasYoutubeVideo

      public boolean hasYoutubeVideo()
       Immutable. A data link to YouTube video.
       
      .google.ads.googleads.v18.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.v18.resources.YoutubeVideoIdentifier youtube_video = 6 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getYoutubeVideo in interface DataLinkOrBuilder
      Returns:
      The youtubeVideo.
    • setYoutubeVideo

      public DataLink.Builder setYoutubeVideo(YoutubeVideoIdentifier value)
       Immutable. A data link to YouTube video.
       
      .google.ads.googleads.v18.resources.YoutubeVideoIdentifier youtube_video = 6 [(.google.api.field_behavior) = IMMUTABLE];
    • setYoutubeVideo

      public DataLink.Builder setYoutubeVideo(YoutubeVideoIdentifier.Builder builderForValue)
       Immutable. A data link to YouTube video.
       
      .google.ads.googleads.v18.resources.YoutubeVideoIdentifier youtube_video = 6 [(.google.api.field_behavior) = IMMUTABLE];
    • mergeYoutubeVideo

      public DataLink.Builder mergeYoutubeVideo(YoutubeVideoIdentifier value)
       Immutable. A data link to YouTube video.
       
      .google.ads.googleads.v18.resources.YoutubeVideoIdentifier youtube_video = 6 [(.google.api.field_behavior) = IMMUTABLE];
    • clearYoutubeVideo

      public DataLink.Builder clearYoutubeVideo()
       Immutable. A data link to YouTube video.
       
      .google.ads.googleads.v18.resources.YoutubeVideoIdentifier youtube_video = 6 [(.google.api.field_behavior) = IMMUTABLE];
    • getYoutubeVideoBuilder

      public YoutubeVideoIdentifier.Builder getYoutubeVideoBuilder()
       Immutable. A data link to YouTube video.
       
      .google.ads.googleads.v18.resources.YoutubeVideoIdentifier youtube_video = 6 [(.google.api.field_behavior) = IMMUTABLE];
    • getYoutubeVideoOrBuilder

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

      public final DataLink.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DataLink.Builder>
    • mergeUnknownFields

      public final DataLink.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DataLink.Builder>