Class CreateApiHubInstanceRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.apihub.v1.CreateApiHubInstanceRequest
All Implemented Interfaces:
CreateApiHubInstanceRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class CreateApiHubInstanceRequest extends com.google.protobuf.GeneratedMessage implements CreateApiHubInstanceRequestOrBuilder
 The
 [CreateApiHubInstance][google.cloud.apihub.v1.Provisioning.CreateApiHubInstance]
 method's request.
 
Protobuf type google.cloud.apihub.v1.CreateApiHubInstanceRequest
See Also:
  • Field Details

    • PARENT_FIELD_NUMBER

      public static final int PARENT_FIELD_NUMBER
      See Also:
    • API_HUB_INSTANCE_ID_FIELD_NUMBER

      public static final int API_HUB_INSTANCE_ID_FIELD_NUMBER
      See Also:
    • API_HUB_INSTANCE_FIELD_NUMBER

      public static final int API_HUB_INSTANCE_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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
    • 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 CreateApiHubInstanceRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static CreateApiHubInstanceRequest.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static CreateApiHubInstanceRequest getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<CreateApiHubInstanceRequest> 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 CreateApiHubInstanceRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder