Class ExamplesRestrictionsNamespace.Builder (3.47.0)

public static final class ExamplesRestrictionsNamespace.Builder extends GeneratedMessageV3.Builder<ExamplesRestrictionsNamespace.Builder> implements ExamplesRestrictionsNamespaceOrBuilder

Restrictions namespace for example-based explanations overrides.

Protobuf type google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace

Static Methods

getDescriptor()

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

Methods

addAllAllow(Iterable<String> values)

public ExamplesRestrictionsNamespace.Builder addAllAllow(Iterable<String> values)

The list of allowed tags.

repeated string allow = 2;

Parameter
Name Description
values Iterable<String>

The allow to add.

Returns
Type Description
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

addAllDeny(Iterable<String> values)

public ExamplesRestrictionsNamespace.Builder addAllDeny(Iterable<String> values)

The list of deny tags.

repeated string deny = 3;

Parameter
Name Description
values Iterable<String>

The deny to add.

Returns
Type Description
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

addAllow(String value)

public ExamplesRestrictionsNamespace.Builder addAllow(String value)

The list of allowed tags.

repeated string allow = 2;

Parameter
Name Description
value String

The allow to add.

Returns
Type Description
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

addAllowBytes(ByteString value)

public ExamplesRestrictionsNamespace.Builder addAllowBytes(ByteString value)

The list of allowed tags.

repeated string allow = 2;

Parameter
Name Description
value ByteString

The bytes of the allow to add.

Returns
Type Description
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

addDeny(String value)

public ExamplesRestrictionsNamespace.Builder addDeny(String value)

The list of deny tags.

repeated string deny = 3;

Parameter
Name Description
value String

The deny to add.

Returns
Type Description
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

addDenyBytes(ByteString value)

public ExamplesRestrictionsNamespace.Builder addDenyBytes(ByteString value)

The list of deny tags.

repeated string deny = 3;

Parameter
Name Description
value ByteString

The bytes of the deny to add.

Returns
Type Description
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExamplesRestrictionsNamespace build()
Returns
Type Description
ExamplesRestrictionsNamespace

buildPartial()

public ExamplesRestrictionsNamespace buildPartial()
Returns
Type Description
ExamplesRestrictionsNamespace

clear()

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

clearAllow()

public ExamplesRestrictionsNamespace.Builder clearAllow()

The list of allowed tags.

repeated string allow = 2;

Returns
Type Description
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

clearDeny()

public ExamplesRestrictionsNamespace.Builder clearDeny()

The list of deny tags.

repeated string deny = 3;

Returns
Type Description
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearNamespaceName()

public ExamplesRestrictionsNamespace.Builder clearNamespaceName()

The namespace name.

string namespace_name = 1;

Returns
Type Description
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ExamplesRestrictionsNamespace.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ExamplesRestrictionsNamespace.Builder
Overrides

clone()

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

getAllow(int index)

public String getAllow(int index)

The list of allowed tags.

repeated string allow = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The allow at the given index.

getAllowBytes(int index)

public ByteString getAllowBytes(int index)

The list of allowed tags.

repeated string allow = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the allow at the given index.

getAllowCount()

public int getAllowCount()

The list of allowed tags.

repeated string allow = 2;

Returns
Type Description
int

The count of allow.

getAllowList()

public ProtocolStringList getAllowList()

The list of allowed tags.

repeated string allow = 2;

Returns
Type Description
ProtocolStringList

A list containing the allow.

getDefaultInstanceForType()

public ExamplesRestrictionsNamespace getDefaultInstanceForType()
Returns
Type Description
ExamplesRestrictionsNamespace

getDeny(int index)

public String getDeny(int index)

The list of deny tags.

repeated string deny = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The deny at the given index.

getDenyBytes(int index)

public ByteString getDenyBytes(int index)

The list of deny tags.

repeated string deny = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the deny at the given index.

getDenyCount()

public int getDenyCount()

The list of deny tags.

repeated string deny = 3;

Returns
Type Description
int

The count of deny.

getDenyList()

public ProtocolStringList getDenyList()

The list of deny tags.

repeated string deny = 3;

Returns
Type Description
ProtocolStringList

A list containing the deny.

getDescriptorForType()

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

getNamespaceName()

public String getNamespaceName()

The namespace name.

string namespace_name = 1;

Returns
Type Description
String

The namespaceName.

getNamespaceNameBytes()

public ByteString getNamespaceNameBytes()

The namespace name.

string namespace_name = 1;

Returns
Type Description
ByteString

The bytes for namespaceName.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExamplesRestrictionsNamespace other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAllow(int index, String value)

public ExamplesRestrictionsNamespace.Builder setAllow(int index, String value)

The list of allowed tags.

repeated string allow = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The allow to set.

Returns
Type Description
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

setDeny(int index, String value)

public ExamplesRestrictionsNamespace.Builder setDeny(int index, String value)

The list of deny tags.

repeated string deny = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The deny to set.

Returns
Type Description
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setNamespaceName(String value)

public ExamplesRestrictionsNamespace.Builder setNamespaceName(String value)

The namespace name.

string namespace_name = 1;

Parameter
Name Description
value String

The namespaceName to set.

Returns
Type Description
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

setNamespaceNameBytes(ByteString value)

public ExamplesRestrictionsNamespace.Builder setNamespaceNameBytes(ByteString value)

The namespace name.

string namespace_name = 1;

Parameter
Name Description
value ByteString

The bytes for namespaceName to set.

Returns
Type Description
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

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

public ExamplesRestrictionsNamespace.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ExamplesRestrictionsNamespace.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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