Class CreateApiHubInstanceRequest.Builder

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

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

      public CreateApiHubInstanceRequest 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 CreateApiHubInstanceRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

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

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

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

      public CreateApiHubInstanceRequest.Builder setParent(String value)
       Required. The parent resource for the Api Hub instance 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

       Required. The parent resource for the Api Hub instance 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 CreateApiHubInstanceRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource for the Api Hub instance 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.
    • getApiHubInstanceId

      public String getApiHubInstanceId()
       Optional. Identifier to assign to the Api Hub instance. Must be unique
       within scope of the parent resource. If the field is not provided, system
       generated id will be used.
      
       This value should be 4-40 characters, and valid characters
       are `/[a-z][A-Z][0-9]-_/`.
       
      string api_hub_instance_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getApiHubInstanceId in interface CreateApiHubInstanceRequestOrBuilder
      Returns:
      The apiHubInstanceId.
    • getApiHubInstanceIdBytes

      public com.google.protobuf.ByteString getApiHubInstanceIdBytes()
       Optional. Identifier to assign to the Api Hub instance. Must be unique
       within scope of the parent resource. If the field is not provided, system
       generated id will be used.
      
       This value should be 4-40 characters, and valid characters
       are `/[a-z][A-Z][0-9]-_/`.
       
      string api_hub_instance_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getApiHubInstanceIdBytes in interface CreateApiHubInstanceRequestOrBuilder
      Returns:
      The bytes for apiHubInstanceId.
    • setApiHubInstanceId

      public CreateApiHubInstanceRequest.Builder setApiHubInstanceId(String value)
       Optional. Identifier to assign to the Api Hub instance. Must be unique
       within scope of the parent resource. If the field is not provided, system
       generated id will be used.
      
       This value should be 4-40 characters, and valid characters
       are `/[a-z][A-Z][0-9]-_/`.
       
      string api_hub_instance_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The apiHubInstanceId to set.
      Returns:
      This builder for chaining.
    • clearApiHubInstanceId

      public CreateApiHubInstanceRequest.Builder clearApiHubInstanceId()
       Optional. Identifier to assign to the Api Hub instance. Must be unique
       within scope of the parent resource. If the field is not provided, system
       generated id will be used.
      
       This value should be 4-40 characters, and valid characters
       are `/[a-z][A-Z][0-9]-_/`.
       
      string api_hub_instance_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setApiHubInstanceIdBytes

      public CreateApiHubInstanceRequest.Builder setApiHubInstanceIdBytes(com.google.protobuf.ByteString value)
       Optional. Identifier to assign to the Api Hub instance. Must be unique
       within scope of the parent resource. If the field is not provided, system
       generated id will be used.
      
       This value should be 4-40 characters, and valid characters
       are `/[a-z][A-Z][0-9]-_/`.
       
      string api_hub_instance_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for apiHubInstanceId to set.
      Returns:
      This builder for chaining.
    • hasApiHubInstance

      public boolean hasApiHubInstance()
       Required. The ApiHub instance.
       
      .google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasApiHubInstance in interface CreateApiHubInstanceRequestOrBuilder
      Returns:
      Whether the apiHubInstance field is set.
    • getApiHubInstance

      public ApiHubInstance getApiHubInstance()
       Required. The ApiHub instance.
       
      .google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getApiHubInstance in interface CreateApiHubInstanceRequestOrBuilder
      Returns:
      The apiHubInstance.
    • setApiHubInstance

      public CreateApiHubInstanceRequest.Builder setApiHubInstance(ApiHubInstance value)
       Required. The ApiHub instance.
       
      .google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED];
    • setApiHubInstance

      public CreateApiHubInstanceRequest.Builder setApiHubInstance(ApiHubInstance.Builder builderForValue)
       Required. The ApiHub instance.
       
      .google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeApiHubInstance

      public CreateApiHubInstanceRequest.Builder mergeApiHubInstance(ApiHubInstance value)
       Required. The ApiHub instance.
       
      .google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearApiHubInstance

      public CreateApiHubInstanceRequest.Builder clearApiHubInstance()
       Required. The ApiHub instance.
       
      .google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED];
    • getApiHubInstanceBuilder

      public ApiHubInstance.Builder getApiHubInstanceBuilder()
       Required. The ApiHub instance.
       
      .google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED];
    • getApiHubInstanceOrBuilder

      public ApiHubInstanceOrBuilder getApiHubInstanceOrBuilder()
       Required. The ApiHub instance.
       
      .google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getApiHubInstanceOrBuilder in interface CreateApiHubInstanceRequestOrBuilder