Class DataTableScopeInfo.Builder (0.29.0)

public static final class DataTableScopeInfo.Builder extends GeneratedMessage.Builder<DataTableScopeInfo.Builder> implements DataTableScopeInfoOrBuilder

DataTableScopeInfo specifies the scope info of the data table.

Protobuf type google.cloud.chronicle.v1.DataTableScopeInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDataAccessScopes(Iterable<String> values)

public DataTableScopeInfo.Builder addAllDataAccessScopes(Iterable<String> values)

Required. Contains the list of scope names of the data table. If the list is empty, the data table is treated as unscoped. The scope names should be full resource names and should be of the format: "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"

repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The dataAccessScopes to add.

Returns
Type Description
DataTableScopeInfo.Builder

This builder for chaining.

addDataAccessScopes(String value)

public DataTableScopeInfo.Builder addDataAccessScopes(String value)

Required. Contains the list of scope names of the data table. If the list is empty, the data table is treated as unscoped. The scope names should be full resource names and should be of the format: "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"

repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The dataAccessScopes to add.

Returns
Type Description
DataTableScopeInfo.Builder

This builder for chaining.

addDataAccessScopesBytes(ByteString value)

public DataTableScopeInfo.Builder addDataAccessScopesBytes(ByteString value)

Required. Contains the list of scope names of the data table. If the list is empty, the data table is treated as unscoped. The scope names should be full resource names and should be of the format: "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"

repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the dataAccessScopes to add.

Returns
Type Description
DataTableScopeInfo.Builder

This builder for chaining.

build()

public DataTableScopeInfo build()
Returns
Type Description
DataTableScopeInfo

buildPartial()

public DataTableScopeInfo buildPartial()
Returns
Type Description
DataTableScopeInfo

clear()

public DataTableScopeInfo.Builder clear()
Returns
Type Description
DataTableScopeInfo.Builder
Overrides

clearDataAccessScopes()

public DataTableScopeInfo.Builder clearDataAccessScopes()

Required. Contains the list of scope names of the data table. If the list is empty, the data table is treated as unscoped. The scope names should be full resource names and should be of the format: "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"

repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
DataTableScopeInfo.Builder

This builder for chaining.

getDataAccessScopes(int index)

public String getDataAccessScopes(int index)

Required. Contains the list of scope names of the data table. If the list is empty, the data table is treated as unscoped. The scope names should be full resource names and should be of the format: "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"

repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The dataAccessScopes at the given index.

getDataAccessScopesBytes(int index)

public ByteString getDataAccessScopesBytes(int index)

Required. Contains the list of scope names of the data table. If the list is empty, the data table is treated as unscoped. The scope names should be full resource names and should be of the format: "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"

repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the dataAccessScopes at the given index.

getDataAccessScopesCount()

public int getDataAccessScopesCount()

Required. Contains the list of scope names of the data table. If the list is empty, the data table is treated as unscoped. The scope names should be full resource names and should be of the format: "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"

repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of dataAccessScopes.

getDataAccessScopesList()

public ProtocolStringList getDataAccessScopesList()

Required. Contains the list of scope names of the data table. If the list is empty, the data table is treated as unscoped. The scope names should be full resource names and should be of the format: "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"

repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the dataAccessScopes.

getDefaultInstanceForType()

public DataTableScopeInfo getDefaultInstanceForType()
Returns
Type Description
DataTableScopeInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataTableScopeInfo other)

public DataTableScopeInfo.Builder mergeFrom(DataTableScopeInfo other)
Parameter
Name Description
other DataTableScopeInfo
Returns
Type Description
DataTableScopeInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataTableScopeInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataTableScopeInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataTableScopeInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataTableScopeInfo.Builder
Overrides

setDataAccessScopes(int index, String value)

public DataTableScopeInfo.Builder setDataAccessScopes(int index, String value)

Required. Contains the list of scope names of the data table. If the list is empty, the data table is treated as unscoped. The scope names should be full resource names and should be of the format: "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"

repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The dataAccessScopes to set.

Returns
Type Description
DataTableScopeInfo.Builder

This builder for chaining.