target.apidocs.com.google.api.services.bigquery.model.TableReplicationInfo.html Maven / Gradle / Ivy
TableReplicationInfo (BigQuery API v2-rev20240727-2.0.0)
com.google.api.services.bigquery.model
Class TableReplicationInfo
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.bigquery.model.TableReplicationInfo
-
public final class TableReplicationInfo
extends com.google.api.client.json.GenericJson
Replication info of a table created using `AS REPLICA` DDL like: `CREATE MATERIALIZED VIEW mv1 AS
REPLICA OF src_mv`
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the BigQuery API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
TableReplicationInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
TableReplicationInfo
clone()
Long
getReplicatedSourceLastRefreshTime()
Optional.
ErrorProto
getReplicationError()
Optional.
Long
getReplicationIntervalMs()
Optional.
String
getReplicationStatus()
Optional.
TableReference
getSourceTable()
Required.
TableReplicationInfo
set(String fieldName,
Object value)
TableReplicationInfo
setReplicatedSourceLastRefreshTime(Long replicatedSourceLastRefreshTime)
Optional.
TableReplicationInfo
setReplicationError(ErrorProto replicationError)
Optional.
TableReplicationInfo
setReplicationIntervalMs(Long replicationIntervalMs)
Optional.
TableReplicationInfo
setReplicationStatus(String replicationStatus)
Optional.
TableReplicationInfo
setSourceTable(TableReference sourceTable)
Required.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getReplicatedSourceLastRefreshTime
public Long getReplicatedSourceLastRefreshTime()
Optional. Output only. If source is a materialized view, this field signifies the last refresh
time of the source.
- Returns:
- value or
null
for none
-
setReplicatedSourceLastRefreshTime
public TableReplicationInfo setReplicatedSourceLastRefreshTime(Long replicatedSourceLastRefreshTime)
Optional. Output only. If source is a materialized view, this field signifies the last refresh
time of the source.
- Parameters:
replicatedSourceLastRefreshTime
- replicatedSourceLastRefreshTime or null
for none
-
getReplicationError
public ErrorProto getReplicationError()
Optional. Output only. Replication error that will permanently stopped table replication.
- Returns:
- value or
null
for none
-
setReplicationError
public TableReplicationInfo setReplicationError(ErrorProto replicationError)
Optional. Output only. Replication error that will permanently stopped table replication.
- Parameters:
replicationError
- replicationError or null
for none
-
getReplicationIntervalMs
public Long getReplicationIntervalMs()
Optional. Specifies the interval at which the source table is polled for updates. It's
Optional. If not specified, default replication interval would be applied.
- Returns:
- value or
null
for none
-
setReplicationIntervalMs
public TableReplicationInfo setReplicationIntervalMs(Long replicationIntervalMs)
Optional. Specifies the interval at which the source table is polled for updates. It's
Optional. If not specified, default replication interval would be applied.
- Parameters:
replicationIntervalMs
- replicationIntervalMs or null
for none
-
getReplicationStatus
public String getReplicationStatus()
Optional. Output only. Replication status of configured replication.
- Returns:
- value or
null
for none
-
setReplicationStatus
public TableReplicationInfo setReplicationStatus(String replicationStatus)
Optional. Output only. Replication status of configured replication.
- Parameters:
replicationStatus
- replicationStatus or null
for none
-
getSourceTable
public TableReference getSourceTable()
Required. Source table reference that is replicated.
- Returns:
- value or
null
for none
-
setSourceTable
public TableReplicationInfo setSourceTable(TableReference sourceTable)
Required. Source table reference that is replicated.
- Parameters:
sourceTable
- sourceTable or null
for none
-
set
public TableReplicationInfo set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public TableReplicationInfo clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.