Class WasmPlugin.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WasmPlugin.Builder>
com.google.cloud.networkservices.v1.WasmPlugin.Builder
All Implemented Interfaces:
WasmPluginOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
WasmPlugin

public static final class WasmPlugin.Builder extends com.google.protobuf.GeneratedMessage.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<WasmPlugin.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<WasmPlugin.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<WasmPlugin.Builder>
    • clear

      public WasmPlugin.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<WasmPlugin.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<WasmPlugin.Builder>
    • getDefaultInstanceForType

      public WasmPlugin getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public WasmPlugin build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public WasmPlugin buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public WasmPlugin.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WasmPlugin.Builder>
    • mergeFrom

      public WasmPlugin.Builder mergeFrom(WasmPlugin other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<WasmPlugin.Builder>
    • mergeFrom

      public WasmPlugin.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WasmPlugin.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getName in interface WasmPluginOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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];
      Specified by:
      getNameBytes in interface WasmPluginOrBuilder
      Returns:
      The bytes for name.
    • setName

      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];
      Parameters:
      value - The name to set.
      Returns:
      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:
      This builder for chaining.
    • setNameBytes

      public WasmPlugin.Builder setNameBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      hasCreateTime in interface WasmPluginOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface WasmPluginOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public WasmPlugin.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public WasmPlugin.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public WasmPlugin.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface WasmPluginOrBuilder
    • 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];
      Specified by:
      hasUpdateTime in interface WasmPluginOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface WasmPluginOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public WasmPlugin.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public WasmPlugin.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public WasmPlugin.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface WasmPluginOrBuilder
    • getDescription

      public String getDescription()
       Optional. A human-readable description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface WasmPluginOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. A human-readable description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface WasmPluginOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public WasmPlugin.Builder setDescription(String value)
       Optional. A human-readable description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public WasmPlugin.Builder clearDescription()
       Optional. A human-readable description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public WasmPlugin.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. A human-readable description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: WasmPluginOrBuilder
       Optional. Set of labels associated with the `WasmPlugin` resource.
      
       The format must comply with [the following
       requirements](/compute/docs/labeling-resources#requirements).
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface WasmPluginOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Set of labels associated with the `WasmPlugin` resource.
      
       The format must comply with [the following
       requirements](/compute/docs/labeling-resources#requirements).
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface WasmPluginOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface WasmPluginOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Set of labels associated with the `WasmPlugin` resource.
      
       The format must comply with [the following
       requirements](/compute/docs/labeling-resources#requirements).
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface WasmPluginOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Set of labels associated with the `WasmPlugin` resource.
      
       The format must comply with [the following
       requirements](/compute/docs/labeling-resources#requirements).
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface WasmPluginOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Set of labels associated with the `WasmPlugin` resource.
      
       The format must comply with [the following
       requirements](/compute/docs/labeling-resources#requirements).
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface WasmPluginOrBuilder
    • clearLabels

      public WasmPlugin.Builder clearLabels()
    • removeLabels

      public WasmPlugin.Builder removeLabels(String key)
       Optional. Set of labels associated with the `WasmPlugin` resource.
      
       The format must comply with [the following
       requirements](/compute/docs/labeling-resources#requirements).
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      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](/compute/docs/labeling-resources#requirements).
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      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](/compute/docs/labeling-resources#requirements).
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    • 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];
      Specified by:
      getMainVersionId in interface WasmPluginOrBuilder
      Returns:
      The mainVersionId.
    • getMainVersionIdBytes

      public com.google.protobuf.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];
      Specified by:
      getMainVersionIdBytes in interface WasmPluginOrBuilder
      Returns:
      The bytes for mainVersionId.
    • setMainVersionId

      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];
      Parameters:
      value - The mainVersionId to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setMainVersionIdBytes

      public WasmPlugin.Builder setMainVersionIdBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for mainVersionId to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      hasLogConfig in interface WasmPluginOrBuilder
      Returns:
      Whether the logConfig field is set.
    • 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];
      Specified by:
      getLogConfig in interface WasmPluginOrBuilder
      Returns:
      The logConfig.
    • setLogConfig

      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];
    • setLogConfig

      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];
    • mergeLogConfig

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getLogConfigOrBuilder in interface WasmPluginOrBuilder
    • getVersionsCount

      public int getVersionsCount()
      Description copied from interface: WasmPluginOrBuilder
       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];
      Specified by:
      getVersionsCount in interface WasmPluginOrBuilder
    • containsVersions

      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];
      Specified by:
      containsVersions in interface WasmPluginOrBuilder
    • getVersions

      Deprecated.
      Use getVersionsMap() instead.
      Specified by:
      getVersions in interface WasmPluginOrBuilder
    • 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];
      Specified by:
      getVersionsMap in interface WasmPluginOrBuilder
    • getVersionsOrDefault

      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];
      Specified by:
      getVersionsOrDefault in interface WasmPluginOrBuilder
    • getVersionsOrThrow

      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];
      Specified by:
      getVersionsOrThrow in interface WasmPluginOrBuilder
    • clearVersions

      public WasmPlugin.Builder clearVersions()
    • removeVersions

      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];
    • getMutableVersions

      @Deprecated public Map<String,WasmPlugin.VersionDetails> getMutableVersions()
      Deprecated.
      Use alternate mutation accessors instead.
    • putVersions

      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];
    • putAllVersions

      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];
    • putVersionsBuilderIfAbsent

      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];
    • getUsedByList

      public List<WasmPlugin.UsedBy> getUsedByList()
       Output only. List of all
       [extensions](https://cloud.google.com/service-extensions/docs/overview)
       that use this `WasmPlugin` resource.
       
      repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUsedByList in interface WasmPluginOrBuilder
    • getUsedByCount

      public int getUsedByCount()
       Output only. List of all
       [extensions](https://cloud.google.com/service-extensions/docs/overview)
       that use this `WasmPlugin` resource.
       
      repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUsedByCount in interface WasmPluginOrBuilder
    • getUsedBy

      public WasmPlugin.UsedBy getUsedBy(int index)
       Output only. List of all
       [extensions](https://cloud.google.com/service-extensions/docs/overview)
       that use this `WasmPlugin` resource.
       
      repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUsedBy in interface WasmPluginOrBuilder
    • setUsedBy

      public WasmPlugin.Builder setUsedBy(int index, WasmPlugin.UsedBy value)
       Output only. List of all
       [extensions](https://cloud.google.com/service-extensions/docs/overview)
       that use this `WasmPlugin` resource.
       
      repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUsedBy

      public WasmPlugin.Builder setUsedBy(int index, WasmPlugin.UsedBy.Builder builderForValue)
       Output only. List of all
       [extensions](https://cloud.google.com/service-extensions/docs/overview)
       that use this `WasmPlugin` resource.
       
      repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addUsedBy

      public WasmPlugin.Builder addUsedBy(WasmPlugin.UsedBy value)
       Output only. List of all
       [extensions](https://cloud.google.com/service-extensions/docs/overview)
       that use this `WasmPlugin` resource.
       
      repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addUsedBy

      public WasmPlugin.Builder addUsedBy(int index, WasmPlugin.UsedBy value)
       Output only. List of all
       [extensions](https://cloud.google.com/service-extensions/docs/overview)
       that use this `WasmPlugin` resource.
       
      repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addUsedBy

      public WasmPlugin.Builder addUsedBy(WasmPlugin.UsedBy.Builder builderForValue)
       Output only. List of all
       [extensions](https://cloud.google.com/service-extensions/docs/overview)
       that use this `WasmPlugin` resource.
       
      repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addUsedBy

      public WasmPlugin.Builder addUsedBy(int index, WasmPlugin.UsedBy.Builder builderForValue)
       Output only. List of all
       [extensions](https://cloud.google.com/service-extensions/docs/overview)
       that use this `WasmPlugin` resource.
       
      repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllUsedBy

      public WasmPlugin.Builder addAllUsedBy(Iterable<? extends WasmPlugin.UsedBy> values)
       Output only. List of all
       [extensions](https://cloud.google.com/service-extensions/docs/overview)
       that use this `WasmPlugin` resource.
       
      repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUsedBy

      public WasmPlugin.Builder clearUsedBy()
       Output only. List of all
       [extensions](https://cloud.google.com/service-extensions/docs/overview)
       that use this `WasmPlugin` resource.
       
      repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeUsedBy

      public WasmPlugin.Builder removeUsedBy(int index)
       Output only. List of all
       [extensions](https://cloud.google.com/service-extensions/docs/overview)
       that use this `WasmPlugin` resource.
       
      repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUsedByBuilder

      public WasmPlugin.UsedBy.Builder getUsedByBuilder(int index)
       Output only. List of all
       [extensions](https://cloud.google.com/service-extensions/docs/overview)
       that use this `WasmPlugin` resource.
       
      repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUsedByOrBuilder

      public WasmPlugin.UsedByOrBuilder getUsedByOrBuilder(int index)
       Output only. List of all
       [extensions](https://cloud.google.com/service-extensions/docs/overview)
       that use this `WasmPlugin` resource.
       
      repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUsedByOrBuilder in interface WasmPluginOrBuilder
    • getUsedByOrBuilderList

      public List<? extends WasmPlugin.UsedByOrBuilder> getUsedByOrBuilderList()
       Output only. List of all
       [extensions](https://cloud.google.com/service-extensions/docs/overview)
       that use this `WasmPlugin` resource.
       
      repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUsedByOrBuilderList in interface WasmPluginOrBuilder
    • addUsedByBuilder

      public WasmPlugin.UsedBy.Builder addUsedByBuilder()
       Output only. List of all
       [extensions](https://cloud.google.com/service-extensions/docs/overview)
       that use this `WasmPlugin` resource.
       
      repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addUsedByBuilder

      public WasmPlugin.UsedBy.Builder addUsedByBuilder(int index)
       Output only. List of all
       [extensions](https://cloud.google.com/service-extensions/docs/overview)
       that use this `WasmPlugin` resource.
       
      repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUsedByBuilderList

      public List<WasmPlugin.UsedBy.Builder> getUsedByBuilderList()
       Output only. List of all
       [extensions](https://cloud.google.com/service-extensions/docs/overview)
       that use this `WasmPlugin` resource.
       
      repeated .google.cloud.networkservices.v1.WasmPlugin.UsedBy used_by = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];