Class BigQueryLink.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BigQueryLink.Builder>
com.google.analytics.admin.v1alpha.BigQueryLink.Builder
All Implemented Interfaces:
BigQueryLinkOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BigQueryLink

public static final class BigQueryLink.Builder extends com.google.protobuf.GeneratedMessage.Builder<BigQueryLink.Builder> implements BigQueryLinkOrBuilder
 A link between a Google Analytics property and BigQuery project.
 
Protobuf type google.analytics.admin.v1alpha.BigQueryLink
  • 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.Builder<BigQueryLink.Builder>
    • clear

      public BigQueryLink.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.GeneratedMessage.Builder<BigQueryLink.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.GeneratedMessage.Builder<BigQueryLink.Builder>
    • getDefaultInstanceForType

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

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

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

      public BigQueryLink.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<BigQueryLink.Builder>
    • mergeFrom

      public BigQueryLink.Builder mergeFrom(BigQueryLink other)
    • isInitialized

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

      public BigQueryLink.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<BigQueryLink.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. Resource name of this BigQuery link.
       Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
       Format: 'properties/1234/bigQueryLinks/abc567'
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface BigQueryLinkOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Resource name of this BigQuery link.
       Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
       Format: 'properties/1234/bigQueryLinks/abc567'
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface BigQueryLinkOrBuilder
      Returns:
      The bytes for name.
    • setName

      public BigQueryLink.Builder setName(String value)
       Output only. Resource name of this BigQuery link.
       Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
       Format: 'properties/1234/bigQueryLinks/abc567'
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public BigQueryLink.Builder clearName()
       Output only. Resource name of this BigQuery link.
       Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
       Format: 'properties/1234/bigQueryLinks/abc567'
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public BigQueryLink.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Resource name of this BigQuery link.
       Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
       Format: 'properties/1234/bigQueryLinks/abc567'
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getProject

      public String getProject()
       Immutable. The linked Google Cloud project. When creating a BigQueryLink,
       you may provide this resource name using either a project number or project
       ID. Once this resource has been created, the returned project will always
       have a project that contains a project number.
       Format: 'projects/{project number}'
       Example: 'projects/1234'
       
      string project = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getProject in interface BigQueryLinkOrBuilder
      Returns:
      The project.
    • getProjectBytes

      public com.google.protobuf.ByteString getProjectBytes()
       Immutable. The linked Google Cloud project. When creating a BigQueryLink,
       you may provide this resource name using either a project number or project
       ID. Once this resource has been created, the returned project will always
       have a project that contains a project number.
       Format: 'projects/{project number}'
       Example: 'projects/1234'
       
      string project = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getProjectBytes in interface BigQueryLinkOrBuilder
      Returns:
      The bytes for project.
    • setProject

      public BigQueryLink.Builder setProject(String value)
       Immutable. The linked Google Cloud project. When creating a BigQueryLink,
       you may provide this resource name using either a project number or project
       ID. Once this resource has been created, the returned project will always
       have a project that contains a project number.
       Format: 'projects/{project number}'
       Example: 'projects/1234'
       
      string project = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The project to set.
      Returns:
      This builder for chaining.
    • clearProject

      public BigQueryLink.Builder clearProject()
       Immutable. The linked Google Cloud project. When creating a BigQueryLink,
       you may provide this resource name using either a project number or project
       ID. Once this resource has been created, the returned project will always
       have a project that contains a project number.
       Format: 'projects/{project number}'
       Example: 'projects/1234'
       
      string project = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setProjectBytes

      public BigQueryLink.Builder setProjectBytes(com.google.protobuf.ByteString value)
       Immutable. The linked Google Cloud project. When creating a BigQueryLink,
       you may provide this resource name using either a project number or project
       ID. Once this resource has been created, the returned project will always
       have a project that contains a project number.
       Format: 'projects/{project number}'
       Example: 'projects/1234'
       
      string project = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for project to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Time when the link was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface BigQueryLinkOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Time when the link was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface BigQueryLinkOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public BigQueryLink.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when the link was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public BigQueryLink.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time when the link was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public BigQueryLink.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when the link was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public BigQueryLink.Builder clearCreateTime()
       Output only. Time when the link was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Time when the link was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Time when the link was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface BigQueryLinkOrBuilder
    • getDailyExportEnabled

      public boolean getDailyExportEnabled()
       If set true, enables daily data export to the linked Google Cloud project.
       
      bool daily_export_enabled = 4;
      Specified by:
      getDailyExportEnabled in interface BigQueryLinkOrBuilder
      Returns:
      The dailyExportEnabled.
    • setDailyExportEnabled

      public BigQueryLink.Builder setDailyExportEnabled(boolean value)
       If set true, enables daily data export to the linked Google Cloud project.
       
      bool daily_export_enabled = 4;
      Parameters:
      value - The dailyExportEnabled to set.
      Returns:
      This builder for chaining.
    • clearDailyExportEnabled

      public BigQueryLink.Builder clearDailyExportEnabled()
       If set true, enables daily data export to the linked Google Cloud project.
       
      bool daily_export_enabled = 4;
      Returns:
      This builder for chaining.
    • getStreamingExportEnabled

      public boolean getStreamingExportEnabled()
       If set true, enables streaming export to the linked Google Cloud project.
       
      bool streaming_export_enabled = 5;
      Specified by:
      getStreamingExportEnabled in interface BigQueryLinkOrBuilder
      Returns:
      The streamingExportEnabled.
    • setStreamingExportEnabled

      public BigQueryLink.Builder setStreamingExportEnabled(boolean value)
       If set true, enables streaming export to the linked Google Cloud project.
       
      bool streaming_export_enabled = 5;
      Parameters:
      value - The streamingExportEnabled to set.
      Returns:
      This builder for chaining.
    • clearStreamingExportEnabled

      public BigQueryLink.Builder clearStreamingExportEnabled()
       If set true, enables streaming export to the linked Google Cloud project.
       
      bool streaming_export_enabled = 5;
      Returns:
      This builder for chaining.
    • getFreshDailyExportEnabled

      public boolean getFreshDailyExportEnabled()
       If set true, enables fresh daily export to the linked Google Cloud project.
       
      bool fresh_daily_export_enabled = 9;
      Specified by:
      getFreshDailyExportEnabled in interface BigQueryLinkOrBuilder
      Returns:
      The freshDailyExportEnabled.
    • setFreshDailyExportEnabled

      public BigQueryLink.Builder setFreshDailyExportEnabled(boolean value)
       If set true, enables fresh daily export to the linked Google Cloud project.
       
      bool fresh_daily_export_enabled = 9;
      Parameters:
      value - The freshDailyExportEnabled to set.
      Returns:
      This builder for chaining.
    • clearFreshDailyExportEnabled

      public BigQueryLink.Builder clearFreshDailyExportEnabled()
       If set true, enables fresh daily export to the linked Google Cloud project.
       
      bool fresh_daily_export_enabled = 9;
      Returns:
      This builder for chaining.
    • getIncludeAdvertisingId

      public boolean getIncludeAdvertisingId()
       If set true, exported data will include advertising identifiers for mobile
       app streams.
       
      bool include_advertising_id = 6;
      Specified by:
      getIncludeAdvertisingId in interface BigQueryLinkOrBuilder
      Returns:
      The includeAdvertisingId.
    • setIncludeAdvertisingId

      public BigQueryLink.Builder setIncludeAdvertisingId(boolean value)
       If set true, exported data will include advertising identifiers for mobile
       app streams.
       
      bool include_advertising_id = 6;
      Parameters:
      value - The includeAdvertisingId to set.
      Returns:
      This builder for chaining.
    • clearIncludeAdvertisingId

      public BigQueryLink.Builder clearIncludeAdvertisingId()
       If set true, exported data will include advertising identifiers for mobile
       app streams.
       
      bool include_advertising_id = 6;
      Returns:
      This builder for chaining.
    • getExportStreamsList

      public com.google.protobuf.ProtocolStringList getExportStreamsList()
       The list of streams under the parent property for which data will be
       exported.
       Format: properties/{property_id}/dataStreams/{stream_id}
       Example: ['properties/1000/dataStreams/2000']
       
      repeated string export_streams = 7;
      Specified by:
      getExportStreamsList in interface BigQueryLinkOrBuilder
      Returns:
      A list containing the exportStreams.
    • getExportStreamsCount

      public int getExportStreamsCount()
       The list of streams under the parent property for which data will be
       exported.
       Format: properties/{property_id}/dataStreams/{stream_id}
       Example: ['properties/1000/dataStreams/2000']
       
      repeated string export_streams = 7;
      Specified by:
      getExportStreamsCount in interface BigQueryLinkOrBuilder
      Returns:
      The count of exportStreams.
    • getExportStreams

      public String getExportStreams(int index)
       The list of streams under the parent property for which data will be
       exported.
       Format: properties/{property_id}/dataStreams/{stream_id}
       Example: ['properties/1000/dataStreams/2000']
       
      repeated string export_streams = 7;
      Specified by:
      getExportStreams in interface BigQueryLinkOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The exportStreams at the given index.
    • getExportStreamsBytes

      public com.google.protobuf.ByteString getExportStreamsBytes(int index)
       The list of streams under the parent property for which data will be
       exported.
       Format: properties/{property_id}/dataStreams/{stream_id}
       Example: ['properties/1000/dataStreams/2000']
       
      repeated string export_streams = 7;
      Specified by:
      getExportStreamsBytes in interface BigQueryLinkOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the exportStreams at the given index.
    • setExportStreams

      public BigQueryLink.Builder setExportStreams(int index, String value)
       The list of streams under the parent property for which data will be
       exported.
       Format: properties/{property_id}/dataStreams/{stream_id}
       Example: ['properties/1000/dataStreams/2000']
       
      repeated string export_streams = 7;
      Parameters:
      index - The index to set the value at.
      value - The exportStreams to set.
      Returns:
      This builder for chaining.
    • addExportStreams

      public BigQueryLink.Builder addExportStreams(String value)
       The list of streams under the parent property for which data will be
       exported.
       Format: properties/{property_id}/dataStreams/{stream_id}
       Example: ['properties/1000/dataStreams/2000']
       
      repeated string export_streams = 7;
      Parameters:
      value - The exportStreams to add.
      Returns:
      This builder for chaining.
    • addAllExportStreams

      public BigQueryLink.Builder addAllExportStreams(Iterable<String> values)
       The list of streams under the parent property for which data will be
       exported.
       Format: properties/{property_id}/dataStreams/{stream_id}
       Example: ['properties/1000/dataStreams/2000']
       
      repeated string export_streams = 7;
      Parameters:
      values - The exportStreams to add.
      Returns:
      This builder for chaining.
    • clearExportStreams

      public BigQueryLink.Builder clearExportStreams()
       The list of streams under the parent property for which data will be
       exported.
       Format: properties/{property_id}/dataStreams/{stream_id}
       Example: ['properties/1000/dataStreams/2000']
       
      repeated string export_streams = 7;
      Returns:
      This builder for chaining.
    • addExportStreamsBytes

      public BigQueryLink.Builder addExportStreamsBytes(com.google.protobuf.ByteString value)
       The list of streams under the parent property for which data will be
       exported.
       Format: properties/{property_id}/dataStreams/{stream_id}
       Example: ['properties/1000/dataStreams/2000']
       
      repeated string export_streams = 7;
      Parameters:
      value - The bytes of the exportStreams to add.
      Returns:
      This builder for chaining.
    • getExcludedEventsList

      public com.google.protobuf.ProtocolStringList getExcludedEventsList()
       The list of event names that will be excluded from exports.
       
      repeated string excluded_events = 8;
      Specified by:
      getExcludedEventsList in interface BigQueryLinkOrBuilder
      Returns:
      A list containing the excludedEvents.
    • getExcludedEventsCount

      public int getExcludedEventsCount()
       The list of event names that will be excluded from exports.
       
      repeated string excluded_events = 8;
      Specified by:
      getExcludedEventsCount in interface BigQueryLinkOrBuilder
      Returns:
      The count of excludedEvents.
    • getExcludedEvents

      public String getExcludedEvents(int index)
       The list of event names that will be excluded from exports.
       
      repeated string excluded_events = 8;
      Specified by:
      getExcludedEvents in interface BigQueryLinkOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The excludedEvents at the given index.
    • getExcludedEventsBytes

      public com.google.protobuf.ByteString getExcludedEventsBytes(int index)
       The list of event names that will be excluded from exports.
       
      repeated string excluded_events = 8;
      Specified by:
      getExcludedEventsBytes in interface BigQueryLinkOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the excludedEvents at the given index.
    • setExcludedEvents

      public BigQueryLink.Builder setExcludedEvents(int index, String value)
       The list of event names that will be excluded from exports.
       
      repeated string excluded_events = 8;
      Parameters:
      index - The index to set the value at.
      value - The excludedEvents to set.
      Returns:
      This builder for chaining.
    • addExcludedEvents

      public BigQueryLink.Builder addExcludedEvents(String value)
       The list of event names that will be excluded from exports.
       
      repeated string excluded_events = 8;
      Parameters:
      value - The excludedEvents to add.
      Returns:
      This builder for chaining.
    • addAllExcludedEvents

      public BigQueryLink.Builder addAllExcludedEvents(Iterable<String> values)
       The list of event names that will be excluded from exports.
       
      repeated string excluded_events = 8;
      Parameters:
      values - The excludedEvents to add.
      Returns:
      This builder for chaining.
    • clearExcludedEvents

      public BigQueryLink.Builder clearExcludedEvents()
       The list of event names that will be excluded from exports.
       
      repeated string excluded_events = 8;
      Returns:
      This builder for chaining.
    • addExcludedEventsBytes

      public BigQueryLink.Builder addExcludedEventsBytes(com.google.protobuf.ByteString value)
       The list of event names that will be excluded from exports.
       
      repeated string excluded_events = 8;
      Parameters:
      value - The bytes of the excludedEvents to add.
      Returns:
      This builder for chaining.
    • getDatasetLocation

      public String getDatasetLocation()
       Required. Immutable. The geographic location where the created BigQuery
       dataset should reside. See https://cloud.google.com/bigquery/docs/locations
       for supported locations.
       
      string dataset_location = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDatasetLocation in interface BigQueryLinkOrBuilder
      Returns:
      The datasetLocation.
    • getDatasetLocationBytes

      public com.google.protobuf.ByteString getDatasetLocationBytes()
       Required. Immutable. The geographic location where the created BigQuery
       dataset should reside. See https://cloud.google.com/bigquery/docs/locations
       for supported locations.
       
      string dataset_location = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDatasetLocationBytes in interface BigQueryLinkOrBuilder
      Returns:
      The bytes for datasetLocation.
    • setDatasetLocation

      public BigQueryLink.Builder setDatasetLocation(String value)
       Required. Immutable. The geographic location where the created BigQuery
       dataset should reside. See https://cloud.google.com/bigquery/docs/locations
       for supported locations.
       
      string dataset_location = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The datasetLocation to set.
      Returns:
      This builder for chaining.
    • clearDatasetLocation

      public BigQueryLink.Builder clearDatasetLocation()
       Required. Immutable. The geographic location where the created BigQuery
       dataset should reside. See https://cloud.google.com/bigquery/docs/locations
       for supported locations.
       
      string dataset_location = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDatasetLocationBytes

      public BigQueryLink.Builder setDatasetLocationBytes(com.google.protobuf.ByteString value)
       Required. Immutable. The geographic location where the created BigQuery
       dataset should reside. See https://cloud.google.com/bigquery/docs/locations
       for supported locations.
       
      string dataset_location = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for datasetLocation to set.
      Returns:
      This builder for chaining.