Class CreatePluginRequest.Builder

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

public static final class CreatePluginRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreatePluginRequest.Builder> implements CreatePluginRequestOrBuilder
 The [CreatePlugin][google.cloud.apihub.v1.ApiHubPlugin.CreatePlugin] method's
 request.
 
Protobuf type google.cloud.apihub.v1.CreatePluginRequest
  • 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<CreatePluginRequest.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<CreatePluginRequest.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<CreatePluginRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getParent()
       Required. The parent resource where this plugin will be created.
       Format: `projects/{project}/locations/{location}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreatePluginRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource where this plugin will be created.
       Format: `projects/{project}/locations/{location}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreatePluginRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

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

      public CreatePluginRequest.Builder clearParent()
       Required. The parent resource where this plugin will be created.
       Format: `projects/{project}/locations/{location}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreatePluginRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource where this plugin will be created.
       Format: `projects/{project}/locations/{location}`.
       
      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.
    • getPluginId

      public String getPluginId()
       Optional. The ID to use for the Plugin resource, which will become the
       final component of the Plugin'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 resource in the API hub
       instance.
       * If not provided, a system generated id will be used.
      
       This value should be 4-63 characters, overall resource name which will be
       of format
       `projects/{project}/locations/{location}/plugins/{plugin}`,
       its length is limited to 1000 characters and valid characters are
       /[a-z][A-Z][0-9]-_/.
       
      string plugin_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPluginId in interface CreatePluginRequestOrBuilder
      Returns:
      The pluginId.
    • getPluginIdBytes

      public com.google.protobuf.ByteString getPluginIdBytes()
       Optional. The ID to use for the Plugin resource, which will become the
       final component of the Plugin'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 resource in the API hub
       instance.
       * If not provided, a system generated id will be used.
      
       This value should be 4-63 characters, overall resource name which will be
       of format
       `projects/{project}/locations/{location}/plugins/{plugin}`,
       its length is limited to 1000 characters and valid characters are
       /[a-z][A-Z][0-9]-_/.
       
      string plugin_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPluginIdBytes in interface CreatePluginRequestOrBuilder
      Returns:
      The bytes for pluginId.
    • setPluginId

      public CreatePluginRequest.Builder setPluginId(String value)
       Optional. The ID to use for the Plugin resource, which will become the
       final component of the Plugin'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 resource in the API hub
       instance.
       * If not provided, a system generated id will be used.
      
       This value should be 4-63 characters, overall resource name which will be
       of format
       `projects/{project}/locations/{location}/plugins/{plugin}`,
       its length is limited to 1000 characters and valid characters are
       /[a-z][A-Z][0-9]-_/.
       
      string plugin_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pluginId to set.
      Returns:
      This builder for chaining.
    • clearPluginId

      public CreatePluginRequest.Builder clearPluginId()
       Optional. The ID to use for the Plugin resource, which will become the
       final component of the Plugin'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 resource in the API hub
       instance.
       * If not provided, a system generated id will be used.
      
       This value should be 4-63 characters, overall resource name which will be
       of format
       `projects/{project}/locations/{location}/plugins/{plugin}`,
       its length is limited to 1000 characters and valid characters are
       /[a-z][A-Z][0-9]-_/.
       
      string plugin_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPluginIdBytes

      public CreatePluginRequest.Builder setPluginIdBytes(com.google.protobuf.ByteString value)
       Optional. The ID to use for the Plugin resource, which will become the
       final component of the Plugin'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 resource in the API hub
       instance.
       * If not provided, a system generated id will be used.
      
       This value should be 4-63 characters, overall resource name which will be
       of format
       `projects/{project}/locations/{location}/plugins/{plugin}`,
       its length is limited to 1000 characters and valid characters are
       /[a-z][A-Z][0-9]-_/.
       
      string plugin_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for pluginId to set.
      Returns:
      This builder for chaining.
    • hasPlugin

      public boolean hasPlugin()
       Required. The plugin to create.
       
      .google.cloud.apihub.v1.Plugin plugin = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasPlugin in interface CreatePluginRequestOrBuilder
      Returns:
      Whether the plugin field is set.
    • getPlugin

      public Plugin getPlugin()
       Required. The plugin to create.
       
      .google.cloud.apihub.v1.Plugin plugin = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPlugin in interface CreatePluginRequestOrBuilder
      Returns:
      The plugin.
    • setPlugin

      public CreatePluginRequest.Builder setPlugin(Plugin value)
       Required. The plugin to create.
       
      .google.cloud.apihub.v1.Plugin plugin = 3 [(.google.api.field_behavior) = REQUIRED];
    • setPlugin

      public CreatePluginRequest.Builder setPlugin(Plugin.Builder builderForValue)
       Required. The plugin to create.
       
      .google.cloud.apihub.v1.Plugin plugin = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergePlugin

      public CreatePluginRequest.Builder mergePlugin(Plugin value)
       Required. The plugin to create.
       
      .google.cloud.apihub.v1.Plugin plugin = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearPlugin

      public CreatePluginRequest.Builder clearPlugin()
       Required. The plugin to create.
       
      .google.cloud.apihub.v1.Plugin plugin = 3 [(.google.api.field_behavior) = REQUIRED];
    • getPluginBuilder

      public Plugin.Builder getPluginBuilder()
       Required. The plugin to create.
       
      .google.cloud.apihub.v1.Plugin plugin = 3 [(.google.api.field_behavior) = REQUIRED];
    • getPluginOrBuilder

      public PluginOrBuilder getPluginOrBuilder()
       Required. The plugin to create.
       
      .google.cloud.apihub.v1.Plugin plugin = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPluginOrBuilder in interface CreatePluginRequestOrBuilder