Class Template.Builder (0.1.0)

public static final class Template.Builder extends GeneratedMessageV3.Builder<Template.Builder> implements TemplateOrBuilder

Message describing Template resource

Protobuf type google.cloud.modelarmor.v1.Template

Implements

TemplateOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Template build()
Returns
Type Description
Template

buildPartial()

public Template buildPartial()
Returns
Type Description
Template

clear()

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

clearCreateTime()

public Template.Builder clearCreateTime()

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Template.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFilterConfig()

public Template.Builder clearFilterConfig()

Required. filter configuration for this template

.google.cloud.modelarmor.v1.FilterConfig filter_config = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Template.Builder

clearLabels()

public Template.Builder clearLabels()
Returns
Type Description
Template.Builder

clearName()

public Template.Builder clearName()

Identifier. name of resource

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
Template.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTemplateMetadata()

public Template.Builder clearTemplateMetadata()

Optional. metadata for this template

.google.cloud.modelarmor.v1.Template.TemplateMetadata template_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Template.Builder

clearUpdateTime()

public Template.Builder clearUpdateTime()

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Template.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Template getDefaultInstanceForType()
Returns
Type Description
Template

getDescriptorForType()

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

getFilterConfig()

public FilterConfig getFilterConfig()

Required. filter configuration for this template

.google.cloud.modelarmor.v1.FilterConfig filter_config = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FilterConfig

The filterConfig.

getFilterConfigBuilder()

public FilterConfig.Builder getFilterConfigBuilder()

Required. filter configuration for this template

.google.cloud.modelarmor.v1.FilterConfig filter_config = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FilterConfig.Builder

getFilterConfigOrBuilder()

public FilterConfigOrBuilder getFilterConfigOrBuilder()

Required. filter configuration for this template

.google.cloud.modelarmor.v1.FilterConfig filter_config = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FilterConfigOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Identifier. name of resource

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. name of resource

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getTemplateMetadata()

public Template.TemplateMetadata getTemplateMetadata()

Optional. metadata for this template

.google.cloud.modelarmor.v1.Template.TemplateMetadata template_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Template.TemplateMetadata

The templateMetadata.

getTemplateMetadataBuilder()

public Template.TemplateMetadata.Builder getTemplateMetadataBuilder()

Optional. metadata for this template

.google.cloud.modelarmor.v1.Template.TemplateMetadata template_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Template.TemplateMetadata.Builder

getTemplateMetadataOrBuilder()

public Template.TemplateMetadataOrBuilder getTemplateMetadataOrBuilder()

Optional. metadata for this template

.google.cloud.modelarmor.v1.Template.TemplateMetadata template_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Template.TemplateMetadataOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasFilterConfig()

public boolean hasFilterConfig()

Required. filter configuration for this template

.google.cloud.modelarmor.v1.FilterConfig filter_config = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the filterConfig field is set.

hasTemplateMetadata()

public boolean hasTemplateMetadata()

Optional. metadata for this template

.google.cloud.modelarmor.v1.Template.TemplateMetadata template_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the templateMetadata field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Template.Builder mergeCreateTime(Timestamp value)

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Template.Builder

mergeFilterConfig(FilterConfig value)

public Template.Builder mergeFilterConfig(FilterConfig value)

Required. filter configuration for this template

.google.cloud.modelarmor.v1.FilterConfig filter_config = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FilterConfig
Returns
Type Description
Template.Builder

mergeFrom(Template other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTemplateMetadata(Template.TemplateMetadata value)

public Template.Builder mergeTemplateMetadata(Template.TemplateMetadata value)

Optional. metadata for this template

.google.cloud.modelarmor.v1.Template.TemplateMetadata template_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Template.TemplateMetadata
Returns
Type Description
Template.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Template.Builder mergeUpdateTime(Timestamp value)

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Template.Builder

putAllLabels(Map<String,String> values)

public Template.Builder putAllLabels(Map<String,String> values)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Template.Builder

putLabels(String key, String value)

public Template.Builder putLabels(String key, String value)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
Template.Builder

removeLabels(String key)

public Template.Builder removeLabels(String key)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
Template.Builder

setCreateTime(Timestamp value)

public Template.Builder setCreateTime(Timestamp value)

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Template.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Template.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Template.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFilterConfig(FilterConfig value)

public Template.Builder setFilterConfig(FilterConfig value)

Required. filter configuration for this template

.google.cloud.modelarmor.v1.FilterConfig filter_config = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FilterConfig
Returns
Type Description
Template.Builder

setFilterConfig(FilterConfig.Builder builderForValue)

public Template.Builder setFilterConfig(FilterConfig.Builder builderForValue)

Required. filter configuration for this template

.google.cloud.modelarmor.v1.FilterConfig filter_config = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue FilterConfig.Builder
Returns
Type Description
Template.Builder

setName(String value)

public Template.Builder setName(String value)

Identifier. name of resource

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Template.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Template.Builder setNameBytes(ByteString value)

Identifier. name of resource

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Template.Builder

This builder for chaining.

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

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

setTemplateMetadata(Template.TemplateMetadata value)

public Template.Builder setTemplateMetadata(Template.TemplateMetadata value)

Optional. metadata for this template

.google.cloud.modelarmor.v1.Template.TemplateMetadata template_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Template.TemplateMetadata
Returns
Type Description
Template.Builder

setTemplateMetadata(Template.TemplateMetadata.Builder builderForValue)

public Template.Builder setTemplateMetadata(Template.TemplateMetadata.Builder builderForValue)

Optional. metadata for this template

.google.cloud.modelarmor.v1.Template.TemplateMetadata template_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Template.TemplateMetadata.Builder
Returns
Type Description
Template.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Template.Builder setUpdateTime(Timestamp value)

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Template.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Template.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Template.Builder