Class ReferenceListScope.Builder (0.2.0)

public static final class ReferenceListScope.Builder extends GeneratedMessageV3.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.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReferenceListScope.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReferenceListScope.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public ReferenceListScope.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ReferenceListScope.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ReferenceListScope.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReferenceListScope.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReferenceListScope.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ReferenceListScope.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReferenceListScope.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ReferenceListScope.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
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.

setUnknownFields(UnknownFieldSet unknownFields)

public final ReferenceListScope.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReferenceListScope.Builder
Overrides