Class ReferenceListScope.Builder (0.21.0)

public static final class ReferenceListScope.Builder extends GeneratedMessage.Builder<ReferenceListScope.Builder> implements ReferenceListScopeOrBuilder

ReferenceListScope specifies the list of scope names of the reference list.

Protobuf type google.cloud.chronicle.v1.ReferenceListScope

Static Methods

getDescriptor()

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

Methods

addAllScopeNames(Iterable<String> values)

public ReferenceListScope.Builder addAllScopeNames(Iterable<String> values)

Optional. The list of scope names of the reference list. 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 scope_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The scopeNames to add.

Returns
Type Description
ReferenceListScope.Builder

This builder for chaining.

addScopeNames(String value)

public ReferenceListScope.Builder addScopeNames(String value)

Optional. The list of scope names of the reference list. 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 scope_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The scopeNames to add.

Returns
Type Description
ReferenceListScope.Builder

This builder for chaining.

addScopeNamesBytes(ByteString value)

public ReferenceListScope.Builder addScopeNamesBytes(ByteString value)

Optional. The list of scope names of the reference list. 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 scope_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the scopeNames to add.

Returns
Type Description
ReferenceListScope.Builder

This builder for chaining.

build()

public ReferenceListScope build()
Returns
Type Description
ReferenceListScope

buildPartial()

public ReferenceListScope buildPartial()
Returns
Type Description
ReferenceListScope

clear()

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

clearScopeNames()

public ReferenceListScope.Builder clearScopeNames()

Optional. The list of scope names of the reference list. 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 scope_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ReferenceListScope.Builder

This builder for chaining.

getDefaultInstanceForType()

public ReferenceListScope getDefaultInstanceForType()
Returns
Type Description
ReferenceListScope

getDescriptorForType()

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

getScopeNames(int index)

public String getScopeNames(int index)

Optional. The list of scope names of the reference list. 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 scope_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The scopeNames at the given index.

getScopeNamesBytes(int index)

public ByteString getScopeNamesBytes(int index)

Optional. The list of scope names of the reference list. 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 scope_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the scopeNames at the given index.

getScopeNamesCount()

public int getScopeNamesCount()

Optional. The list of scope names of the reference list. 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 scope_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of scopeNames.

getScopeNamesList()

public ProtocolStringList getScopeNamesList()

Optional. The list of scope names of the reference list. 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 scope_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the scopeNames.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ReferenceListScope other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setScopeNames(int index, String value)

public ReferenceListScope.Builder setScopeNames(int index, String value)

Optional. The list of scope names of the reference list. 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 scope_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The scopeNames to set.

Returns
Type Description
ReferenceListScope.Builder

This builder for chaining.