Class CreateScopeNamespaceRequest.Builder

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

public static final class CreateScopeNamespaceRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateScopeNamespaceRequest.Builder> implements CreateScopeNamespaceRequestOrBuilder
 Request to create a fleet namespace.
 
Protobuf type google.cloud.gkehub.v1.CreateScopeNamespaceRequest
  • 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<CreateScopeNamespaceRequest.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<CreateScopeNamespaceRequest.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<CreateScopeNamespaceRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public String getParent()
       Required. The parent (project and location) where the Namespace will be
       created. Specified in the format `projects/*/locations/*/scopes/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateScopeNamespaceRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent (project and location) where the Namespace will be
       created. Specified in the format `projects/*/locations/*/scopes/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateScopeNamespaceRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateScopeNamespaceRequest.Builder setParent(String value)
       Required. The parent (project and location) where the Namespace will be
       created. Specified in the format `projects/*/locations/*/scopes/*`.
       
      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 (project and location) where the Namespace will be
       created. Specified in the format `projects/*/locations/*/scopes/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateScopeNamespaceRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent (project and location) where the Namespace will be
       created. Specified in the format `projects/*/locations/*/scopes/*`.
       
      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.
    • getScopeNamespaceId

      public String getScopeNamespaceId()
       Required. Client chosen ID for the Namespace. `namespace_id` must be a
       valid RFC 1123 compliant DNS label:
      
       1. At most 63 characters in length
       2. It must consist of lower case alphanumeric characters or `-`
       3. It must start and end with an alphanumeric character
      
       Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
       with a maximum length of 63 characters.
       
      string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopeNamespaceId in interface CreateScopeNamespaceRequestOrBuilder
      Returns:
      The scopeNamespaceId.
    • getScopeNamespaceIdBytes

      public com.google.protobuf.ByteString getScopeNamespaceIdBytes()
       Required. Client chosen ID for the Namespace. `namespace_id` must be a
       valid RFC 1123 compliant DNS label:
      
       1. At most 63 characters in length
       2. It must consist of lower case alphanumeric characters or `-`
       3. It must start and end with an alphanumeric character
      
       Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
       with a maximum length of 63 characters.
       
      string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopeNamespaceIdBytes in interface CreateScopeNamespaceRequestOrBuilder
      Returns:
      The bytes for scopeNamespaceId.
    • setScopeNamespaceId

      public CreateScopeNamespaceRequest.Builder setScopeNamespaceId(String value)
       Required. Client chosen ID for the Namespace. `namespace_id` must be a
       valid RFC 1123 compliant DNS label:
      
       1. At most 63 characters in length
       2. It must consist of lower case alphanumeric characters or `-`
       3. It must start and end with an alphanumeric character
      
       Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
       with a maximum length of 63 characters.
       
      string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The scopeNamespaceId to set.
      Returns:
      This builder for chaining.
    • clearScopeNamespaceId

      public CreateScopeNamespaceRequest.Builder clearScopeNamespaceId()
       Required. Client chosen ID for the Namespace. `namespace_id` must be a
       valid RFC 1123 compliant DNS label:
      
       1. At most 63 characters in length
       2. It must consist of lower case alphanumeric characters or `-`
       3. It must start and end with an alphanumeric character
      
       Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
       with a maximum length of 63 characters.
       
      string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setScopeNamespaceIdBytes

      public CreateScopeNamespaceRequest.Builder setScopeNamespaceIdBytes(com.google.protobuf.ByteString value)
       Required. Client chosen ID for the Namespace. `namespace_id` must be a
       valid RFC 1123 compliant DNS label:
      
       1. At most 63 characters in length
       2. It must consist of lower case alphanumeric characters or `-`
       3. It must start and end with an alphanumeric character
      
       Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
       with a maximum length of 63 characters.
       
      string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for scopeNamespaceId to set.
      Returns:
      This builder for chaining.
    • hasScopeNamespace

      public boolean hasScopeNamespace()
       Required. The fleet namespace to create.
       
      .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasScopeNamespace in interface CreateScopeNamespaceRequestOrBuilder
      Returns:
      Whether the scopeNamespace field is set.
    • getScopeNamespace

      public Namespace getScopeNamespace()
       Required. The fleet namespace to create.
       
      .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopeNamespace in interface CreateScopeNamespaceRequestOrBuilder
      Returns:
      The scopeNamespace.
    • setScopeNamespace

      public CreateScopeNamespaceRequest.Builder setScopeNamespace(Namespace value)
       Required. The fleet namespace to create.
       
      .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED];
    • setScopeNamespace

      public CreateScopeNamespaceRequest.Builder setScopeNamespace(Namespace.Builder builderForValue)
       Required. The fleet namespace to create.
       
      .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeScopeNamespace

      public CreateScopeNamespaceRequest.Builder mergeScopeNamespace(Namespace value)
       Required. The fleet namespace to create.
       
      .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearScopeNamespace

      public CreateScopeNamespaceRequest.Builder clearScopeNamespace()
       Required. The fleet namespace to create.
       
      .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED];
    • getScopeNamespaceBuilder

      public Namespace.Builder getScopeNamespaceBuilder()
       Required. The fleet namespace to create.
       
      .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED];
    • getScopeNamespaceOrBuilder

      public NamespaceOrBuilder getScopeNamespaceOrBuilder()
       Required. The fleet namespace to create.
       
      .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopeNamespaceOrBuilder in interface CreateScopeNamespaceRequestOrBuilder