Class CreateScopeRequest.Builder

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

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

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

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

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

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

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

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

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

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

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

      public String getScopeId()
       Required. Client chosen ID for the Scope. `scope_id` must be a
       ????
       
      string scope_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopeId in interface CreateScopeRequestOrBuilder
      Returns:
      The scopeId.
    • getScopeIdBytes

      public com.google.protobuf.ByteString getScopeIdBytes()
       Required. Client chosen ID for the Scope. `scope_id` must be a
       ????
       
      string scope_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopeIdBytes in interface CreateScopeRequestOrBuilder
      Returns:
      The bytes for scopeId.
    • setScopeId

      public CreateScopeRequest.Builder setScopeId(String value)
       Required. Client chosen ID for the Scope. `scope_id` must be a
       ????
       
      string scope_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The scopeId to set.
      Returns:
      This builder for chaining.
    • clearScopeId

      public CreateScopeRequest.Builder clearScopeId()
       Required. Client chosen ID for the Scope. `scope_id` must be a
       ????
       
      string scope_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setScopeIdBytes

      public CreateScopeRequest.Builder setScopeIdBytes(com.google.protobuf.ByteString value)
       Required. Client chosen ID for the Scope. `scope_id` must be a
       ????
       
      string scope_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for scopeId to set.
      Returns:
      This builder for chaining.
    • hasScope

      public boolean hasScope()
       Required. The Scope to create.
       
      .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasScope in interface CreateScopeRequestOrBuilder
      Returns:
      Whether the scope field is set.
    • getScope

      public Scope getScope()
       Required. The Scope to create.
       
      .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScope in interface CreateScopeRequestOrBuilder
      Returns:
      The scope.
    • setScope

      public CreateScopeRequest.Builder setScope(Scope value)
       Required. The Scope to create.
       
      .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];
    • setScope

      public CreateScopeRequest.Builder setScope(Scope.Builder builderForValue)
       Required. The Scope to create.
       
      .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeScope

      public CreateScopeRequest.Builder mergeScope(Scope value)
       Required. The Scope to create.
       
      .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearScope

      public CreateScopeRequest.Builder clearScope()
       Required. The Scope to create.
       
      .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];
    • getScopeBuilder

      public Scope.Builder getScopeBuilder()
       Required. The Scope to create.
       
      .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];
    • getScopeOrBuilder

      public ScopeOrBuilder getScopeOrBuilder()
       Required. The Scope to create.
       
      .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopeOrBuilder in interface CreateScopeRequestOrBuilder