Class FilterVersionConfig.Builder (0.44.0)

public static final class FilterVersionConfig.Builder extends GeneratedMessage.Builder<FilterVersionConfig.Builder> implements FilterVersionConfigOrBuilder

Message describing a Filter Version Configuration.

Protobuf type google.cloud.modelarmor.v1.FilterVersionConfig

Static Methods

getDescriptor()

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

Methods

addAllMessageItems(Iterable<? extends MessageItem> values)

public FilterVersionConfig.Builder addAllMessageItems(Iterable<? extends MessageItem> values)

Output only. Extra information regarding this filter version

repeated .google.cloud.modelarmor.v1.MessageItem message_items = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.modelarmor.v1.MessageItem>
Returns
Type Description
FilterVersionConfig.Builder

addMessageItems(MessageItem value)

public FilterVersionConfig.Builder addMessageItems(MessageItem value)

Output only. Extra information regarding this filter version

repeated .google.cloud.modelarmor.v1.MessageItem message_items = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value MessageItem
Returns
Type Description
FilterVersionConfig.Builder

addMessageItems(MessageItem.Builder builderForValue)

public FilterVersionConfig.Builder addMessageItems(MessageItem.Builder builderForValue)

Output only. Extra information regarding this filter version

repeated .google.cloud.modelarmor.v1.MessageItem message_items = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue MessageItem.Builder
Returns
Type Description
FilterVersionConfig.Builder

addMessageItems(int index, MessageItem value)

public FilterVersionConfig.Builder addMessageItems(int index, MessageItem value)

Output only. Extra information regarding this filter version

repeated .google.cloud.modelarmor.v1.MessageItem message_items = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value MessageItem
Returns
Type Description
FilterVersionConfig.Builder

addMessageItems(int index, MessageItem.Builder builderForValue)

public FilterVersionConfig.Builder addMessageItems(int index, MessageItem.Builder builderForValue)

Output only. Extra information regarding this filter version

repeated .google.cloud.modelarmor.v1.MessageItem message_items = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue MessageItem.Builder
Returns
Type Description
FilterVersionConfig.Builder

addMessageItemsBuilder()

public MessageItem.Builder addMessageItemsBuilder()

Output only. Extra information regarding this filter version

repeated .google.cloud.modelarmor.v1.MessageItem message_items = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MessageItem.Builder

addMessageItemsBuilder(int index)

public MessageItem.Builder addMessageItemsBuilder(int index)

Output only. Extra information regarding this filter version

repeated .google.cloud.modelarmor.v1.MessageItem message_items = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
MessageItem.Builder

build()

public FilterVersionConfig build()
Returns
Type Description
FilterVersionConfig

buildPartial()

public FilterVersionConfig buildPartial()
Returns
Type Description
FilterVersionConfig

clear()

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

clearFilterVersion()

public FilterVersionConfig.Builder clearFilterVersion()

Output only. The identifier for this specific version.

string filter_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FilterVersionConfig.Builder

This builder for chaining.

clearFilterVersionAlias()

public FilterVersionConfig.Builder clearFilterVersionAlias()

Output only. The alias associated with this version, if any (e.g., "STABLE", "LATEST"). This will be populated if this version is currently mapped to an alias.

optional .google.cloud.modelarmor.v1.FilterVersionAlias filter_version_alias = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FilterVersionConfig.Builder

This builder for chaining.

clearMessageItems()

public FilterVersionConfig.Builder clearMessageItems()

Output only. Extra information regarding this filter version

repeated .google.cloud.modelarmor.v1.MessageItem message_items = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FilterVersionConfig.Builder

clearProjectedDeprecationDate()

public FilterVersionConfig.Builder clearProjectedDeprecationDate()

Output only. The estimated date when this version is projected to be deprecated.

optional .google.type.Date projected_deprecation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FilterVersionConfig.Builder

clearReleaseDate()

public FilterVersionConfig.Builder clearReleaseDate()

Output only. The date when this version was released.

optional .google.type.Date release_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FilterVersionConfig.Builder

getDefaultInstanceForType()

public FilterVersionConfig getDefaultInstanceForType()
Returns
Type Description
FilterVersionConfig

getDescriptorForType()

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

getFilterVersion()

public String getFilterVersion()

Output only. The identifier for this specific version.

string filter_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The filterVersion.

getFilterVersionAlias()

public FilterVersionAlias getFilterVersionAlias()

Output only. The alias associated with this version, if any (e.g., "STABLE", "LATEST"). This will be populated if this version is currently mapped to an alias.

optional .google.cloud.modelarmor.v1.FilterVersionAlias filter_version_alias = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FilterVersionAlias

The filterVersionAlias.

getFilterVersionAliasValue()

public int getFilterVersionAliasValue()

Output only. The alias associated with this version, if any (e.g., "STABLE", "LATEST"). This will be populated if this version is currently mapped to an alias.

optional .google.cloud.modelarmor.v1.FilterVersionAlias filter_version_alias = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for filterVersionAlias.

getFilterVersionBytes()

public ByteString getFilterVersionBytes()

Output only. The identifier for this specific version.

string filter_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for filterVersion.

getMessageItems(int index)

public MessageItem getMessageItems(int index)

Output only. Extra information regarding this filter version

repeated .google.cloud.modelarmor.v1.MessageItem message_items = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
MessageItem

getMessageItemsBuilder(int index)

public MessageItem.Builder getMessageItemsBuilder(int index)

Output only. Extra information regarding this filter version

repeated .google.cloud.modelarmor.v1.MessageItem message_items = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
MessageItem.Builder

getMessageItemsBuilderList()

public List<MessageItem.Builder> getMessageItemsBuilderList()

Output only. Extra information regarding this filter version

repeated .google.cloud.modelarmor.v1.MessageItem message_items = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getMessageItemsCount()

public int getMessageItemsCount()

Output only. Extra information regarding this filter version

repeated .google.cloud.modelarmor.v1.MessageItem message_items = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getMessageItemsList()

public List<MessageItem> getMessageItemsList()

Output only. Extra information regarding this filter version

repeated .google.cloud.modelarmor.v1.MessageItem message_items = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<MessageItem>

getMessageItemsOrBuilder(int index)

public MessageItemOrBuilder getMessageItemsOrBuilder(int index)

Output only. Extra information regarding this filter version

repeated .google.cloud.modelarmor.v1.MessageItem message_items = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
MessageItemOrBuilder

getMessageItemsOrBuilderList()

public List<? extends MessageItemOrBuilder> getMessageItemsOrBuilderList()

Output only. Extra information regarding this filter version

repeated .google.cloud.modelarmor.v1.MessageItem message_items = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.modelarmor.v1.MessageItemOrBuilder>

getProjectedDeprecationDate()

public Date getProjectedDeprecationDate()

Output only. The estimated date when this version is projected to be deprecated.

optional .google.type.Date projected_deprecation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Date

The projectedDeprecationDate.

getProjectedDeprecationDateBuilder()

public Date.Builder getProjectedDeprecationDateBuilder()

Output only. The estimated date when this version is projected to be deprecated.

optional .google.type.Date projected_deprecation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Date.Builder

getProjectedDeprecationDateOrBuilder()

public DateOrBuilder getProjectedDeprecationDateOrBuilder()

Output only. The estimated date when this version is projected to be deprecated.

optional .google.type.Date projected_deprecation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.DateOrBuilder

getReleaseDate()

public Date getReleaseDate()

Output only. The date when this version was released.

optional .google.type.Date release_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Date

The releaseDate.

getReleaseDateBuilder()

public Date.Builder getReleaseDateBuilder()

Output only. The date when this version was released.

optional .google.type.Date release_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Date.Builder

getReleaseDateOrBuilder()

public DateOrBuilder getReleaseDateOrBuilder()

Output only. The date when this version was released.

optional .google.type.Date release_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.DateOrBuilder

hasFilterVersionAlias()

public boolean hasFilterVersionAlias()

Output only. The alias associated with this version, if any (e.g., "STABLE", "LATEST"). This will be populated if this version is currently mapped to an alias.

optional .google.cloud.modelarmor.v1.FilterVersionAlias filter_version_alias = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the filterVersionAlias field is set.

hasProjectedDeprecationDate()

public boolean hasProjectedDeprecationDate()

Output only. The estimated date when this version is projected to be deprecated.

optional .google.type.Date projected_deprecation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the projectedDeprecationDate field is set.

hasReleaseDate()

public boolean hasReleaseDate()

Output only. The date when this version was released.

optional .google.type.Date release_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the releaseDate field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FilterVersionConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeProjectedDeprecationDate(Date value)

public FilterVersionConfig.Builder mergeProjectedDeprecationDate(Date value)

Output only. The estimated date when this version is projected to be deprecated.

optional .google.type.Date projected_deprecation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
FilterVersionConfig.Builder

mergeReleaseDate(Date value)

public FilterVersionConfig.Builder mergeReleaseDate(Date value)

Output only. The date when this version was released.

optional .google.type.Date release_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
FilterVersionConfig.Builder

removeMessageItems(int index)

public FilterVersionConfig.Builder removeMessageItems(int index)

Output only. Extra information regarding this filter version

repeated .google.cloud.modelarmor.v1.MessageItem message_items = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
FilterVersionConfig.Builder

setFilterVersion(String value)

public FilterVersionConfig.Builder setFilterVersion(String value)

Output only. The identifier for this specific version.

string filter_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The filterVersion to set.

Returns
Type Description
FilterVersionConfig.Builder

This builder for chaining.

setFilterVersionAlias(FilterVersionAlias value)

public FilterVersionConfig.Builder setFilterVersionAlias(FilterVersionAlias value)

Output only. The alias associated with this version, if any (e.g., "STABLE", "LATEST"). This will be populated if this version is currently mapped to an alias.

optional .google.cloud.modelarmor.v1.FilterVersionAlias filter_version_alias = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value FilterVersionAlias

The filterVersionAlias to set.

Returns
Type Description
FilterVersionConfig.Builder

This builder for chaining.

setFilterVersionAliasValue(int value)

public FilterVersionConfig.Builder setFilterVersionAliasValue(int value)

Output only. The alias associated with this version, if any (e.g., "STABLE", "LATEST"). This will be populated if this version is currently mapped to an alias.

optional .google.cloud.modelarmor.v1.FilterVersionAlias filter_version_alias = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for filterVersionAlias to set.

Returns
Type Description
FilterVersionConfig.Builder

This builder for chaining.

setFilterVersionBytes(ByteString value)

public FilterVersionConfig.Builder setFilterVersionBytes(ByteString value)

Output only. The identifier for this specific version.

string filter_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for filterVersion to set.

Returns
Type Description
FilterVersionConfig.Builder

This builder for chaining.

setMessageItems(int index, MessageItem value)

public FilterVersionConfig.Builder setMessageItems(int index, MessageItem value)

Output only. Extra information regarding this filter version

repeated .google.cloud.modelarmor.v1.MessageItem message_items = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value MessageItem
Returns
Type Description
FilterVersionConfig.Builder

setMessageItems(int index, MessageItem.Builder builderForValue)

public FilterVersionConfig.Builder setMessageItems(int index, MessageItem.Builder builderForValue)

Output only. Extra information regarding this filter version

repeated .google.cloud.modelarmor.v1.MessageItem message_items = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue MessageItem.Builder
Returns
Type Description
FilterVersionConfig.Builder

setProjectedDeprecationDate(Date value)

public FilterVersionConfig.Builder setProjectedDeprecationDate(Date value)

Output only. The estimated date when this version is projected to be deprecated.

optional .google.type.Date projected_deprecation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
FilterVersionConfig.Builder

setProjectedDeprecationDate(Date.Builder builderForValue)

public FilterVersionConfig.Builder setProjectedDeprecationDate(Date.Builder builderForValue)

Output only. The estimated date when this version is projected to be deprecated.

optional .google.type.Date projected_deprecation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
FilterVersionConfig.Builder

setReleaseDate(Date value)

public FilterVersionConfig.Builder setReleaseDate(Date value)

Output only. The date when this version was released.

optional .google.type.Date release_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
FilterVersionConfig.Builder

setReleaseDate(Date.Builder builderForValue)

public FilterVersionConfig.Builder setReleaseDate(Date.Builder builderForValue)

Output only. The date when this version was released.

optional .google.type.Date release_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
FilterVersionConfig.Builder