Class CreatePluginInstanceRequest.Builder

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

public static final class CreatePluginInstanceRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreatePluginInstanceRequest.Builder> implements CreatePluginInstanceRequestOrBuilder
 The
 [CreatePluginInstance][google.cloud.apihub.v1.ApiHubPlugin.CreatePluginInstance]
 method's request.
 
Protobuf type google.cloud.apihub.v1.CreatePluginInstanceRequest
  • Method Details

    • getDescriptor

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

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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public CreatePluginInstanceRequest.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<CreatePluginInstanceRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public CreatePluginInstanceRequest.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<CreatePluginInstanceRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent of the plugin instance resource.
       Format: `projects/{project}/locations/{location}/plugins/{plugin}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreatePluginInstanceRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent of the plugin instance resource.
       Format: `projects/{project}/locations/{location}/plugins/{plugin}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreatePluginInstanceRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreatePluginInstanceRequest.Builder setParent(String value)
       Required. The parent of the plugin instance resource.
       Format: `projects/{project}/locations/{location}/plugins/{plugin}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. The parent of the plugin instance resource.
       Format: `projects/{project}/locations/{location}/plugins/{plugin}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreatePluginInstanceRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent of the plugin instance resource.
       Format: `projects/{project}/locations/{location}/plugins/{plugin}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getPluginInstanceId

      public String getPluginInstanceId()
       Optional. The ID to use for the plugin instance, which will become the
       final component of the plugin instance's resource name. This field is
       optional.
      
       * If provided, the same will be used. The service will throw an error if
       the specified id is already used by another plugin instance in the plugin
       resource.
       * If not provided, a system generated id will be used.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][A-Z][0-9]-_/.
       
      string plugin_instance_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPluginInstanceId in interface CreatePluginInstanceRequestOrBuilder
      Returns:
      The pluginInstanceId.
    • getPluginInstanceIdBytes

      public com.google.protobuf.ByteString getPluginInstanceIdBytes()
       Optional. The ID to use for the plugin instance, which will become the
       final component of the plugin instance's resource name. This field is
       optional.
      
       * If provided, the same will be used. The service will throw an error if
       the specified id is already used by another plugin instance in the plugin
       resource.
       * If not provided, a system generated id will be used.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][A-Z][0-9]-_/.
       
      string plugin_instance_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPluginInstanceIdBytes in interface CreatePluginInstanceRequestOrBuilder
      Returns:
      The bytes for pluginInstanceId.
    • setPluginInstanceId

      public CreatePluginInstanceRequest.Builder setPluginInstanceId(String value)
       Optional. The ID to use for the plugin instance, which will become the
       final component of the plugin instance's resource name. This field is
       optional.
      
       * If provided, the same will be used. The service will throw an error if
       the specified id is already used by another plugin instance in the plugin
       resource.
       * If not provided, a system generated id will be used.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][A-Z][0-9]-_/.
       
      string plugin_instance_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pluginInstanceId to set.
      Returns:
      This builder for chaining.
    • clearPluginInstanceId

      public CreatePluginInstanceRequest.Builder clearPluginInstanceId()
       Optional. The ID to use for the plugin instance, which will become the
       final component of the plugin instance's resource name. This field is
       optional.
      
       * If provided, the same will be used. The service will throw an error if
       the specified id is already used by another plugin instance in the plugin
       resource.
       * If not provided, a system generated id will be used.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][A-Z][0-9]-_/.
       
      string plugin_instance_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPluginInstanceIdBytes

      public CreatePluginInstanceRequest.Builder setPluginInstanceIdBytes(com.google.protobuf.ByteString value)
       Optional. The ID to use for the plugin instance, which will become the
       final component of the plugin instance's resource name. This field is
       optional.
      
       * If provided, the same will be used. The service will throw an error if
       the specified id is already used by another plugin instance in the plugin
       resource.
       * If not provided, a system generated id will be used.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][A-Z][0-9]-_/.
       
      string plugin_instance_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for pluginInstanceId to set.
      Returns:
      This builder for chaining.
    • hasPluginInstance

      public boolean hasPluginInstance()
       Required. The plugin instance to create.
       
      .google.cloud.apihub.v1.PluginInstance plugin_instance = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasPluginInstance in interface CreatePluginInstanceRequestOrBuilder
      Returns:
      Whether the pluginInstance field is set.
    • getPluginInstance

      public PluginInstance getPluginInstance()
       Required. The plugin instance to create.
       
      .google.cloud.apihub.v1.PluginInstance plugin_instance = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPluginInstance in interface CreatePluginInstanceRequestOrBuilder
      Returns:
      The pluginInstance.
    • setPluginInstance

      public CreatePluginInstanceRequest.Builder setPluginInstance(PluginInstance value)
       Required. The plugin instance to create.
       
      .google.cloud.apihub.v1.PluginInstance plugin_instance = 3 [(.google.api.field_behavior) = REQUIRED];
    • setPluginInstance

      public CreatePluginInstanceRequest.Builder setPluginInstance(PluginInstance.Builder builderForValue)
       Required. The plugin instance to create.
       
      .google.cloud.apihub.v1.PluginInstance plugin_instance = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergePluginInstance

      public CreatePluginInstanceRequest.Builder mergePluginInstance(PluginInstance value)
       Required. The plugin instance to create.
       
      .google.cloud.apihub.v1.PluginInstance plugin_instance = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearPluginInstance

      public CreatePluginInstanceRequest.Builder clearPluginInstance()
       Required. The plugin instance to create.
       
      .google.cloud.apihub.v1.PluginInstance plugin_instance = 3 [(.google.api.field_behavior) = REQUIRED];
    • getPluginInstanceBuilder

      public PluginInstance.Builder getPluginInstanceBuilder()
       Required. The plugin instance to create.
       
      .google.cloud.apihub.v1.PluginInstance plugin_instance = 3 [(.google.api.field_behavior) = REQUIRED];
    • getPluginInstanceOrBuilder

      public PluginInstanceOrBuilder getPluginInstanceOrBuilder()
       Required. The plugin instance to create.
       
      .google.cloud.apihub.v1.PluginInstance plugin_instance = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPluginInstanceOrBuilder in interface CreatePluginInstanceRequestOrBuilder