Class ExamplesRestrictionsNamespace.Builder (3.38.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
TypeDescription
Descriptor

Methods

addAllAllow(Iterable<String> values)

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

The list of allowed tags.

repeated string allow = 2;

Parameter
NameDescription
valuesIterable<String>

The allow to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The deny to add.

Returns
TypeDescription
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
NameDescription
valueString

The allow to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the allow to add.

Returns
TypeDescription
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
NameDescription
valueString

The deny to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the deny to add.

Returns
TypeDescription
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExamplesRestrictionsNamespace.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExamplesRestrictionsNamespace.Builder
Overrides

build()

public ExamplesRestrictionsNamespace build()
Returns
TypeDescription
ExamplesRestrictionsNamespace

buildPartial()

public ExamplesRestrictionsNamespace buildPartial()
Returns
TypeDescription
ExamplesRestrictionsNamespace

clear()

public ExamplesRestrictionsNamespace.Builder clear()
Returns
TypeDescription
ExamplesRestrictionsNamespace.Builder
Overrides

clearAllow()

public ExamplesRestrictionsNamespace.Builder clearAllow()

The list of allowed tags.

repeated string allow = 2;

Returns
TypeDescription
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

clearDeny()

public ExamplesRestrictionsNamespace.Builder clearDeny()

The list of deny tags.

repeated string deny = 3;

Returns
TypeDescription
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ExamplesRestrictionsNamespace.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ExamplesRestrictionsNamespace.Builder
Overrides

clearNamespaceName()

public ExamplesRestrictionsNamespace.Builder clearNamespaceName()

The namespace name.

string namespace_name = 1;

Returns
TypeDescription
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ExamplesRestrictionsNamespace.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ExamplesRestrictionsNamespace.Builder
Overrides

clone()

public ExamplesRestrictionsNamespace.Builder clone()
Returns
TypeDescription
ExamplesRestrictionsNamespace.Builder
Overrides

getAllow(int index)

public String getAllow(int index)

The list of allowed tags.

repeated string allow = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the allow at the given index.

getAllowCount()

public int getAllowCount()

The list of allowed tags.

repeated string allow = 2;

Returns
TypeDescription
int

The count of allow.

getAllowList()

public ProtocolStringList getAllowList()

The list of allowed tags.

repeated string allow = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the allow.

getDefaultInstanceForType()

public ExamplesRestrictionsNamespace getDefaultInstanceForType()
Returns
TypeDescription
ExamplesRestrictionsNamespace

getDeny(int index)

public String getDeny(int index)

The list of deny tags.

repeated string deny = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the deny at the given index.

getDenyCount()

public int getDenyCount()

The list of deny tags.

repeated string deny = 3;

Returns
TypeDescription
int

The count of deny.

getDenyList()

public ProtocolStringList getDenyList()

The list of deny tags.

repeated string deny = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the deny.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNamespaceName()

public String getNamespaceName()

The namespace name.

string namespace_name = 1;

Returns
TypeDescription
String

The namespaceName.

getNamespaceNameBytes()

public ByteString getNamespaceNameBytes()

The namespace name.

string namespace_name = 1;

Returns
TypeDescription
ByteString

The bytes for namespaceName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExamplesRestrictionsNamespace other)

public ExamplesRestrictionsNamespace.Builder mergeFrom(ExamplesRestrictionsNamespace other)
Parameter
NameDescription
otherExamplesRestrictionsNamespace
Returns
TypeDescription
ExamplesRestrictionsNamespace.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExamplesRestrictionsNamespace.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExamplesRestrictionsNamespace.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ExamplesRestrictionsNamespace.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ExamplesRestrictionsNamespace.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExamplesRestrictionsNamespace.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The allow to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The deny to set.

Returns
TypeDescription
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ExamplesRestrictionsNamespace.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExamplesRestrictionsNamespace.Builder
Overrides

setNamespaceName(String value)

public ExamplesRestrictionsNamespace.Builder setNamespaceName(String value)

The namespace name.

string namespace_name = 1;

Parameter
NameDescription
valueString

The namespaceName to set.

Returns
TypeDescription
ExamplesRestrictionsNamespace.Builder

This builder for chaining.

setNamespaceNameBytes(ByteString value)

public ExamplesRestrictionsNamespace.Builder setNamespaceNameBytes(ByteString value)

The namespace name.

string namespace_name = 1;

Parameter
NameDescription
valueByteString

The bytes for namespaceName to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExamplesRestrictionsNamespace.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ExamplesRestrictionsNamespace.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExamplesRestrictionsNamespace.Builder
Overrides