Class CreateNamespaceRequest.Builder

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

public static final class CreateNamespaceRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateNamespaceRequest.Builder> implements CreateNamespaceRequestOrBuilder
 The request message for
 [RegistrationService.CreateNamespace][google.cloud.servicedirectory.v1.RegistrationService.CreateNamespace].
 
Protobuf type google.cloud.servicedirectory.v1.CreateNamespaceRequest
  • 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<CreateNamespaceRequest.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<CreateNamespaceRequest.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<CreateNamespaceRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getParent()
       Required. The resource name of the project and location the namespace
       will be created in.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateNamespaceRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The resource name of the project and location the namespace
       will be created in.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateNamespaceRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateNamespaceRequest.Builder setParent(String value)
       Required. The resource name of the project and location the namespace
       will be created in.
       
      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 CreateNamespaceRequest.Builder clearParent()
       Required. The resource name of the project and location the namespace
       will be created in.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateNamespaceRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the project and location the namespace
       will be created in.
       
      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.
    • getNamespaceId

      public String getNamespaceId()
       Required. The Resource ID must be 1-63 characters long, and comply with
       <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      string namespace_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNamespaceId in interface CreateNamespaceRequestOrBuilder
      Returns:
      The namespaceId.
    • getNamespaceIdBytes

      public com.google.protobuf.ByteString getNamespaceIdBytes()
       Required. The Resource ID must be 1-63 characters long, and comply with
       <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      string namespace_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNamespaceIdBytes in interface CreateNamespaceRequestOrBuilder
      Returns:
      The bytes for namespaceId.
    • setNamespaceId

      public CreateNamespaceRequest.Builder setNamespaceId(String value)
       Required. The Resource ID must be 1-63 characters long, and comply with
       <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      string namespace_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The namespaceId to set.
      Returns:
      This builder for chaining.
    • clearNamespaceId

      public CreateNamespaceRequest.Builder clearNamespaceId()
       Required. The Resource ID must be 1-63 characters long, and comply with
       <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      string namespace_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNamespaceIdBytes

      public CreateNamespaceRequest.Builder setNamespaceIdBytes(com.google.protobuf.ByteString value)
       Required. The Resource ID must be 1-63 characters long, and comply with
       <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      string namespace_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for namespaceId to set.
      Returns:
      This builder for chaining.
    • hasNamespace

      public boolean hasNamespace()
       Required. A namespace with initial fields set.
       
      .google.cloud.servicedirectory.v1.Namespace namespace = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasNamespace in interface CreateNamespaceRequestOrBuilder
      Returns:
      Whether the namespace field is set.
    • getNamespace

      public Namespace getNamespace()
       Required. A namespace with initial fields set.
       
      .google.cloud.servicedirectory.v1.Namespace namespace = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNamespace in interface CreateNamespaceRequestOrBuilder
      Returns:
      The namespace.
    • setNamespace

      public CreateNamespaceRequest.Builder setNamespace(Namespace value)
       Required. A namespace with initial fields set.
       
      .google.cloud.servicedirectory.v1.Namespace namespace = 3 [(.google.api.field_behavior) = REQUIRED];
    • setNamespace

      public CreateNamespaceRequest.Builder setNamespace(Namespace.Builder builderForValue)
       Required. A namespace with initial fields set.
       
      .google.cloud.servicedirectory.v1.Namespace namespace = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeNamespace

      public CreateNamespaceRequest.Builder mergeNamespace(Namespace value)
       Required. A namespace with initial fields set.
       
      .google.cloud.servicedirectory.v1.Namespace namespace = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearNamespace

      public CreateNamespaceRequest.Builder clearNamespace()
       Required. A namespace with initial fields set.
       
      .google.cloud.servicedirectory.v1.Namespace namespace = 3 [(.google.api.field_behavior) = REQUIRED];
    • getNamespaceBuilder

      public Namespace.Builder getNamespaceBuilder()
       Required. A namespace with initial fields set.
       
      .google.cloud.servicedirectory.v1.Namespace namespace = 3 [(.google.api.field_behavior) = REQUIRED];
    • getNamespaceOrBuilder

      public NamespaceOrBuilder getNamespaceOrBuilder()
       Required. A namespace with initial fields set.
       
      .google.cloud.servicedirectory.v1.Namespace namespace = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNamespaceOrBuilder in interface CreateNamespaceRequestOrBuilder