Class CreateExternalApiRequest.Builder

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

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

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

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

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

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

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

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

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

      public CreateExternalApiRequest.Builder setParent(String value)
       Required. The parent resource for the External API resource.
       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 CreateExternalApiRequest.Builder clearParent()
       Required. The parent resource for the External API resource.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateExternalApiRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource for the External API resource.
       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.
    • getExternalApiId

      public String getExternalApiId()
       Optional. The ID to use for the External API resource, which will become
       the final component of the External API'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 External API resource in the
       API hub.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, and valid characters
       are /[a-z][A-Z][0-9]-_/.
       
      string external_api_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExternalApiId in interface CreateExternalApiRequestOrBuilder
      Returns:
      The externalApiId.
    • getExternalApiIdBytes

      public com.google.protobuf.ByteString getExternalApiIdBytes()
       Optional. The ID to use for the External API resource, which will become
       the final component of the External API'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 External API resource in the
       API hub.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, and valid characters
       are /[a-z][A-Z][0-9]-_/.
       
      string external_api_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExternalApiIdBytes in interface CreateExternalApiRequestOrBuilder
      Returns:
      The bytes for externalApiId.
    • setExternalApiId

      public CreateExternalApiRequest.Builder setExternalApiId(String value)
       Optional. The ID to use for the External API resource, which will become
       the final component of the External API'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 External API resource in the
       API hub.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, and valid characters
       are /[a-z][A-Z][0-9]-_/.
       
      string external_api_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The externalApiId to set.
      Returns:
      This builder for chaining.
    • clearExternalApiId

      public CreateExternalApiRequest.Builder clearExternalApiId()
       Optional. The ID to use for the External API resource, which will become
       the final component of the External API'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 External API resource in the
       API hub.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, and valid characters
       are /[a-z][A-Z][0-9]-_/.
       
      string external_api_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setExternalApiIdBytes

      public CreateExternalApiRequest.Builder setExternalApiIdBytes(com.google.protobuf.ByteString value)
       Optional. The ID to use for the External API resource, which will become
       the final component of the External API'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 External API resource in the
       API hub.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, and valid characters
       are /[a-z][A-Z][0-9]-_/.
       
      string external_api_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for externalApiId to set.
      Returns:
      This builder for chaining.
    • hasExternalApi

      public boolean hasExternalApi()
       Required. The External API resource to create.
       
      .google.cloud.apihub.v1.ExternalApi external_api = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasExternalApi in interface CreateExternalApiRequestOrBuilder
      Returns:
      Whether the externalApi field is set.
    • getExternalApi

      public ExternalApi getExternalApi()
       Required. The External API resource to create.
       
      .google.cloud.apihub.v1.ExternalApi external_api = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExternalApi in interface CreateExternalApiRequestOrBuilder
      Returns:
      The externalApi.
    • setExternalApi

      public CreateExternalApiRequest.Builder setExternalApi(ExternalApi value)
       Required. The External API resource to create.
       
      .google.cloud.apihub.v1.ExternalApi external_api = 3 [(.google.api.field_behavior) = REQUIRED];
    • setExternalApi

      public CreateExternalApiRequest.Builder setExternalApi(ExternalApi.Builder builderForValue)
       Required. The External API resource to create.
       
      .google.cloud.apihub.v1.ExternalApi external_api = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeExternalApi

      public CreateExternalApiRequest.Builder mergeExternalApi(ExternalApi value)
       Required. The External API resource to create.
       
      .google.cloud.apihub.v1.ExternalApi external_api = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearExternalApi

      public CreateExternalApiRequest.Builder clearExternalApi()
       Required. The External API resource to create.
       
      .google.cloud.apihub.v1.ExternalApi external_api = 3 [(.google.api.field_behavior) = REQUIRED];
    • getExternalApiBuilder

      public ExternalApi.Builder getExternalApiBuilder()
       Required. The External API resource to create.
       
      .google.cloud.apihub.v1.ExternalApi external_api = 3 [(.google.api.field_behavior) = REQUIRED];
    • getExternalApiOrBuilder

      public ExternalApiOrBuilder getExternalApiOrBuilder()
       Required. The External API resource to create.
       
      .google.cloud.apihub.v1.ExternalApi external_api = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExternalApiOrBuilder in interface CreateExternalApiRequestOrBuilder