Class WasmPlugin.Builder (0.23.0)

public static final class WasmPlugin.Builder extends GeneratedMessageV3.Builder<WasmPlugin.Builder> implements WasmPluginOrBuilder

WasmPlugin is a resource representing a service executing a customer-provided Wasm module.

Protobuf type google.cloud.networkservices.v1.WasmPlugin

Implements

WasmPluginOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllUsedBy(Iterable<? extends WasmPlugin.UsedBy> values)

public WasmPlugin.Builder addAllUsedBy(Iterable<? extends WasmPlugin.UsedBy> values)

Output only. List of all extensions that use this WasmPlugin resource.

repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.networkservices.v1.WasmPlugin.UsedBy>
Returns
Type Description
WasmPlugin.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUsedBy(WasmPlugin.UsedBy value)

public WasmPlugin.Builder addUsedBy(WasmPlugin.UsedBy value)

Output only. List of all extensions that use this WasmPlugin resource.

repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value WasmPlugin.UsedBy
Returns
Type Description
WasmPlugin.Builder

addUsedBy(WasmPlugin.UsedBy.Builder builderForValue)

public WasmPlugin.Builder addUsedBy(WasmPlugin.UsedBy.Builder builderForValue)

Output only. List of all extensions that use this WasmPlugin resource.

repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue WasmPlugin.UsedBy.Builder
Returns
Type Description
WasmPlugin.Builder

addUsedBy(int index, WasmPlugin.UsedBy value)

public WasmPlugin.Builder addUsedBy(int index, WasmPlugin.UsedBy value)

Output only. List of all extensions that use this WasmPlugin resource.

repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value WasmPlugin.UsedBy
Returns
Type Description
WasmPlugin.Builder

addUsedBy(int index, WasmPlugin.UsedBy.Builder builderForValue)

public WasmPlugin.Builder addUsedBy(int index, WasmPlugin.UsedBy.Builder builderForValue)

Output only. List of all extensions that use this WasmPlugin resource.

repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue WasmPlugin.UsedBy.Builder
Returns
Type Description
WasmPlugin.Builder

addUsedByBuilder()

public WasmPlugin.UsedBy.Builder addUsedByBuilder()

Output only. List of all extensions that use this WasmPlugin resource.

repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WasmPlugin.UsedBy.Builder

addUsedByBuilder(int index)

public WasmPlugin.UsedBy.Builder addUsedByBuilder(int index)

Output only. List of all extensions that use this WasmPlugin resource.

repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
WasmPlugin.UsedBy.Builder

build()

public WasmPlugin build()
Returns
Type Description
WasmPlugin

buildPartial()

public WasmPlugin buildPartial()
Returns
Type Description
WasmPlugin

clear()

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

clearCreateTime()

public WasmPlugin.Builder clearCreateTime()

Output only. The timestamp when the resource was created.

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

Returns
Type Description
WasmPlugin.Builder

clearDescription()

public WasmPlugin.Builder clearDescription()

Optional. A human-readable description of the resource.

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WasmPlugin.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

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

clearLogConfig()

public WasmPlugin.Builder clearLogConfig()

Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code.

.google.cloud.networkservices.v1.WasmPlugin.LogConfig log_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WasmPlugin.Builder

clearMainVersionId()

public WasmPlugin.Builder clearMainVersionId()

Optional. The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource.

string main_version_id = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WasmPlugin.Builder

This builder for chaining.

clearName()

public WasmPlugin.Builder clearName()

Identifier. Name of the WasmPlugin resource in the following format: projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}.

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

Returns
Type Description
WasmPlugin.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public WasmPlugin.Builder clearUpdateTime()

Output only. The timestamp when the resource was updated.

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

Returns
Type Description
WasmPlugin.Builder

clearUsedBy()

public WasmPlugin.Builder clearUsedBy()

Output only. List of all extensions that use this WasmPlugin resource.

repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WasmPlugin.Builder

clearVersions()

public WasmPlugin.Builder clearVersions()
Returns
Type Description
WasmPlugin.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Set of labels associated with the WasmPlugin resource.

The format must comply with the following requirements.

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

Parameter
Name Description
key String
Returns
Type Description
boolean

containsVersions(String key)

public boolean containsVersions(String key)

Optional. All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object.

Lets you create or update a WasmPlugin resource and its versions in a single request. When the main_version_id field is not empty, it must point to one of the VersionDetails objects in the map.

If provided in a PATCH request, the new versions replace the previous set. Any version omitted from the versions field is removed. Because the WasmPluginVersion resource is immutable, if a WasmPluginVersion resource with the same name already exists and differs, the request fails.

Note: In a GET request, this field is populated only if the field GetWasmPluginRequest.view is set to WASM_PLUGIN_VIEW_FULL.

map<string, .google.cloud.networkservices.v1.WasmPlugin.VersionDetails> versions = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the resource was created.

.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. The timestamp when the resource was created.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the resource was created.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public WasmPlugin getDefaultInstanceForType()
Returns
Type Description
WasmPlugin

getDescription()

public String getDescription()

Optional. A human-readable description of the resource.

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A human-readable description of the resource.

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Set of labels associated with the WasmPlugin resource.

The format must comply with the following requirements.

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

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Set of labels associated with the WasmPlugin resource.

The format must comply with the following requirements.

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

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Set of labels associated with the WasmPlugin resource.

The format must comply with the following requirements.

map<string, string> labels = 5 [(.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. Set of labels associated with the WasmPlugin resource.

The format must comply with the following requirements.

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

Parameter
Name Description
key String
Returns
Type Description
String

getLogConfig()

public WasmPlugin.LogConfig getLogConfig()

Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code.

.google.cloud.networkservices.v1.WasmPlugin.LogConfig log_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WasmPlugin.LogConfig

The logConfig.

getLogConfigBuilder()

public WasmPlugin.LogConfig.Builder getLogConfigBuilder()

Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code.

.google.cloud.networkservices.v1.WasmPlugin.LogConfig log_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WasmPlugin.LogConfig.Builder

getLogConfigOrBuilder()

public WasmPlugin.LogConfigOrBuilder getLogConfigOrBuilder()

Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code.

.google.cloud.networkservices.v1.WasmPlugin.LogConfig log_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WasmPlugin.LogConfigOrBuilder

getMainVersionId()

public String getMainVersionId()

Optional. The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource.

string main_version_id = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The mainVersionId.

getMainVersionIdBytes()

public ByteString getMainVersionIdBytes()

Optional. The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource.

string main_version_id = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for mainVersionId.

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getMutableVersions() (deprecated)

public Map<String,WasmPlugin.VersionDetails> getMutableVersions()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,VersionDetails>

getName()

public String getName()

Identifier. Name of the WasmPlugin resource in the following format: projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Name of the WasmPlugin resource in the following format: projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}.

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

Returns
Type Description
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when the resource was updated.

.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. The timestamp when the resource was updated.

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the resource was updated.

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

Returns
Type Description
TimestampOrBuilder

getUsedBy(int index)

public WasmPlugin.UsedBy getUsedBy(int index)

Output only. List of all extensions that use this WasmPlugin resource.

repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
WasmPlugin.UsedBy

getUsedByBuilder(int index)

public WasmPlugin.UsedBy.Builder getUsedByBuilder(int index)

Output only. List of all extensions that use this WasmPlugin resource.

repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
WasmPlugin.UsedBy.Builder

getUsedByBuilderList()

public List<WasmPlugin.UsedBy.Builder> getUsedByBuilderList()

Output only. List of all extensions that use this WasmPlugin resource.

repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getUsedByCount()

public int getUsedByCount()

Output only. List of all extensions that use this WasmPlugin resource.

repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getUsedByList()

public List<WasmPlugin.UsedBy> getUsedByList()

Output only. List of all extensions that use this WasmPlugin resource.

repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<UsedBy>

getUsedByOrBuilder(int index)

public WasmPlugin.UsedByOrBuilder getUsedByOrBuilder(int index)

Output only. List of all extensions that use this WasmPlugin resource.

repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
WasmPlugin.UsedByOrBuilder

getUsedByOrBuilderList()

public List<? extends WasmPlugin.UsedByOrBuilder> getUsedByOrBuilderList()

Output only. List of all extensions that use this WasmPlugin resource.

repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.networkservices.v1.WasmPlugin.UsedByOrBuilder>

getVersions() (deprecated)

public Map<String,WasmPlugin.VersionDetails> getVersions()

Use #getVersionsMap() instead.

Returns
Type Description
Map<String,VersionDetails>

getVersionsCount()

public int getVersionsCount()

Optional. All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object.

Lets you create or update a WasmPlugin resource and its versions in a single request. When the main_version_id field is not empty, it must point to one of the VersionDetails objects in the map.

If provided in a PATCH request, the new versions replace the previous set. Any version omitted from the versions field is removed. Because the WasmPluginVersion resource is immutable, if a WasmPluginVersion resource with the same name already exists and differs, the request fails.

Note: In a GET request, this field is populated only if the field GetWasmPluginRequest.view is set to WASM_PLUGIN_VIEW_FULL.

map<string, .google.cloud.networkservices.v1.WasmPlugin.VersionDetails> versions = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getVersionsMap()

public Map<String,WasmPlugin.VersionDetails> getVersionsMap()

Optional. All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object.

Lets you create or update a WasmPlugin resource and its versions in a single request. When the main_version_id field is not empty, it must point to one of the VersionDetails objects in the map.

If provided in a PATCH request, the new versions replace the previous set. Any version omitted from the versions field is removed. Because the WasmPluginVersion resource is immutable, if a WasmPluginVersion resource with the same name already exists and differs, the request fails.

Note: In a GET request, this field is populated only if the field GetWasmPluginRequest.view is set to WASM_PLUGIN_VIEW_FULL.

map<string, .google.cloud.networkservices.v1.WasmPlugin.VersionDetails> versions = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,VersionDetails>

getVersionsOrDefault(String key, WasmPlugin.VersionDetails defaultValue)

public WasmPlugin.VersionDetails getVersionsOrDefault(String key, WasmPlugin.VersionDetails defaultValue)

Optional. All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object.

Lets you create or update a WasmPlugin resource and its versions in a single request. When the main_version_id field is not empty, it must point to one of the VersionDetails objects in the map.

If provided in a PATCH request, the new versions replace the previous set. Any version omitted from the versions field is removed. Because the WasmPluginVersion resource is immutable, if a WasmPluginVersion resource with the same name already exists and differs, the request fails.

Note: In a GET request, this field is populated only if the field GetWasmPluginRequest.view is set to WASM_PLUGIN_VIEW_FULL.

map<string, .google.cloud.networkservices.v1.WasmPlugin.VersionDetails> versions = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue WasmPlugin.VersionDetails
Returns
Type Description
WasmPlugin.VersionDetails

getVersionsOrThrow(String key)

public WasmPlugin.VersionDetails getVersionsOrThrow(String key)

Optional. All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object.

Lets you create or update a WasmPlugin resource and its versions in a single request. When the main_version_id field is not empty, it must point to one of the VersionDetails objects in the map.

If provided in a PATCH request, the new versions replace the previous set. Any version omitted from the versions field is removed. Because the WasmPluginVersion resource is immutable, if a WasmPluginVersion resource with the same name already exists and differs, the request fails.

Note: In a GET request, this field is populated only if the field GetWasmPluginRequest.view is set to WASM_PLUGIN_VIEW_FULL.

map<string, .google.cloud.networkservices.v1.WasmPlugin.VersionDetails> versions = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
WasmPlugin.VersionDetails

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the resource was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasLogConfig()

public boolean hasLogConfig()

Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code.

.google.cloud.networkservices.v1.WasmPlugin.LogConfig log_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the logConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp when the resource was updated.

.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 WasmPlugin.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
WasmPlugin.Builder

mergeFrom(WasmPlugin other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLogConfig(WasmPlugin.LogConfig value)

public WasmPlugin.Builder mergeLogConfig(WasmPlugin.LogConfig value)

Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code.

.google.cloud.networkservices.v1.WasmPlugin.LogConfig log_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value WasmPlugin.LogConfig
Returns
Type Description
WasmPlugin.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public WasmPlugin.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when the resource was updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
WasmPlugin.Builder

putAllLabels(Map<String,String> values)

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

Optional. Set of labels associated with the WasmPlugin resource.

The format must comply with the following requirements.

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

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

putAllVersions(Map<String,WasmPlugin.VersionDetails> values)

public WasmPlugin.Builder putAllVersions(Map<String,WasmPlugin.VersionDetails> values)

Optional. All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object.

Lets you create or update a WasmPlugin resource and its versions in a single request. When the main_version_id field is not empty, it must point to one of the VersionDetails objects in the map.

If provided in a PATCH request, the new versions replace the previous set. Any version omitted from the versions field is removed. Because the WasmPluginVersion resource is immutable, if a WasmPluginVersion resource with the same name already exists and differs, the request fails.

Note: In a GET request, this field is populated only if the field GetWasmPluginRequest.view is set to WASM_PLUGIN_VIEW_FULL.

map<string, .google.cloud.networkservices.v1.WasmPlugin.VersionDetails> versions = 10 [(.google.api.field_behavior) = OPTIONAL];

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

putLabels(String key, String value)

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

Optional. Set of labels associated with the WasmPlugin resource.

The format must comply with the following requirements.

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

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

putVersions(String key, WasmPlugin.VersionDetails value)

public WasmPlugin.Builder putVersions(String key, WasmPlugin.VersionDetails value)

Optional. All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object.

Lets you create or update a WasmPlugin resource and its versions in a single request. When the main_version_id field is not empty, it must point to one of the VersionDetails objects in the map.

If provided in a PATCH request, the new versions replace the previous set. Any version omitted from the versions field is removed. Because the WasmPluginVersion resource is immutable, if a WasmPluginVersion resource with the same name already exists and differs, the request fails.

Note: In a GET request, this field is populated only if the field GetWasmPluginRequest.view is set to WASM_PLUGIN_VIEW_FULL.

map<string, .google.cloud.networkservices.v1.WasmPlugin.VersionDetails> versions = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value WasmPlugin.VersionDetails
Returns
Type Description
WasmPlugin.Builder

putVersionsBuilderIfAbsent(String key)

public WasmPlugin.VersionDetails.Builder putVersionsBuilderIfAbsent(String key)

Optional. All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object.

Lets you create or update a WasmPlugin resource and its versions in a single request. When the main_version_id field is not empty, it must point to one of the VersionDetails objects in the map.

If provided in a PATCH request, the new versions replace the previous set. Any version omitted from the versions field is removed. Because the WasmPluginVersion resource is immutable, if a WasmPluginVersion resource with the same name already exists and differs, the request fails.

Note: In a GET request, this field is populated only if the field GetWasmPluginRequest.view is set to WASM_PLUGIN_VIEW_FULL.

map<string, .google.cloud.networkservices.v1.WasmPlugin.VersionDetails> versions = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
WasmPlugin.VersionDetails.Builder

removeLabels(String key)

public WasmPlugin.Builder removeLabels(String key)

Optional. Set of labels associated with the WasmPlugin resource.

The format must comply with the following requirements.

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

Parameter
Name Description
key String
Returns
Type Description
WasmPlugin.Builder

removeUsedBy(int index)

public WasmPlugin.Builder removeUsedBy(int index)

Output only. List of all extensions that use this WasmPlugin resource.

repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
WasmPlugin.Builder

removeVersions(String key)

public WasmPlugin.Builder removeVersions(String key)

Optional. All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object.

Lets you create or update a WasmPlugin resource and its versions in a single request. When the main_version_id field is not empty, it must point to one of the VersionDetails objects in the map.

If provided in a PATCH request, the new versions replace the previous set. Any version omitted from the versions field is removed. Because the WasmPluginVersion resource is immutable, if a WasmPluginVersion resource with the same name already exists and differs, the request fails.

Note: In a GET request, this field is populated only if the field GetWasmPluginRequest.view is set to WASM_PLUGIN_VIEW_FULL.

map<string, .google.cloud.networkservices.v1.WasmPlugin.VersionDetails> versions = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
WasmPlugin.Builder

setCreateTime(Timestamp value)

public WasmPlugin.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
WasmPlugin.Builder

setCreateTime(Timestamp.Builder builderForValue)

public WasmPlugin.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
WasmPlugin.Builder

setDescription(String value)

public WasmPlugin.Builder setDescription(String value)

Optional. A human-readable description of the resource.

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
WasmPlugin.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public WasmPlugin.Builder setDescriptionBytes(ByteString value)

Optional. A human-readable description of the resource.

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
WasmPlugin.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLogConfig(WasmPlugin.LogConfig value)

public WasmPlugin.Builder setLogConfig(WasmPlugin.LogConfig value)

Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code.

.google.cloud.networkservices.v1.WasmPlugin.LogConfig log_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value WasmPlugin.LogConfig
Returns
Type Description
WasmPlugin.Builder

setLogConfig(WasmPlugin.LogConfig.Builder builderForValue)

public WasmPlugin.Builder setLogConfig(WasmPlugin.LogConfig.Builder builderForValue)

Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code.

.google.cloud.networkservices.v1.WasmPlugin.LogConfig log_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue WasmPlugin.LogConfig.Builder
Returns
Type Description
WasmPlugin.Builder

setMainVersionId(String value)

public WasmPlugin.Builder setMainVersionId(String value)

Optional. The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource.

string main_version_id = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The mainVersionId to set.

Returns
Type Description
WasmPlugin.Builder

This builder for chaining.

setMainVersionIdBytes(ByteString value)

public WasmPlugin.Builder setMainVersionIdBytes(ByteString value)

Optional. The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource.

string main_version_id = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for mainVersionId to set.

Returns
Type Description
WasmPlugin.Builder

This builder for chaining.

setName(String value)

public WasmPlugin.Builder setName(String value)

Identifier. Name of the WasmPlugin resource in the following format: projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
WasmPlugin.Builder

This builder for chaining.

setNameBytes(ByteString value)

public WasmPlugin.Builder setNameBytes(ByteString value)

Identifier. Name of the WasmPlugin resource in the following format: projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
WasmPlugin.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public WasmPlugin.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when the resource was updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
WasmPlugin.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public WasmPlugin.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
WasmPlugin.Builder

setUsedBy(int index, WasmPlugin.UsedBy value)

public WasmPlugin.Builder setUsedBy(int index, WasmPlugin.UsedBy value)

Output only. List of all extensions that use this WasmPlugin resource.

repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value WasmPlugin.UsedBy
Returns
Type Description
WasmPlugin.Builder

setUsedBy(int index, WasmPlugin.UsedBy.Builder builderForValue)

public WasmPlugin.Builder setUsedBy(int index, WasmPlugin.UsedBy.Builder builderForValue)

Output only. List of all extensions that use this WasmPlugin resource.

repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue WasmPlugin.UsedBy.Builder
Returns
Type Description
WasmPlugin.Builder