Class WasmPlugin

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networkservices.v1.WasmPlugin
All Implemented Interfaces:
WasmPluginOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class WasmPlugin extends com.google.protobuf.GeneratedMessage implements WasmPluginOrBuilder
 `WasmPlugin` is a resource representing a service executing
 a customer-provided Wasm module.
 
Protobuf type google.cloud.networkservices.v1.WasmPlugin
See Also:
  • Field Details

  • 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
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • 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.
    • 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.
    • 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
    • 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
    • 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
    • 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
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static WasmPlugin parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WasmPlugin parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WasmPlugin parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WasmPlugin parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WasmPlugin parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WasmPlugin parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WasmPlugin parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WasmPlugin parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static WasmPlugin parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static WasmPlugin parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WasmPlugin parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WasmPlugin parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static WasmPlugin.Builder newBuilder()
    • newBuilder

      public static WasmPlugin.Builder newBuilder(WasmPlugin prototype)
    • toBuilder

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

      protected WasmPlugin.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static WasmPlugin getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<WasmPlugin> parser()
    • getParserForType

      public com.google.protobuf.Parser<WasmPlugin> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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