Class CreateSiteRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateSiteRequest.Builder>
com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest.Builder
All Implemented Interfaces:
CreateSiteRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateSiteRequest

public static final class CreateSiteRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateSiteRequest.Builder> implements CreateSiteRequestOrBuilder
 A request to create a site.
 
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest
  • 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<CreateSiteRequest.Builder>
    • clear

      public CreateSiteRequest.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<CreateSiteRequest.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<CreateSiteRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public CreateSiteRequest.Builder mergeFrom(CreateSiteRequest other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CreateSiteRequest.Builder>
    • mergeFrom

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

      public String getParent()
       Required. The project and location to create the site in.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateSiteRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

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

      public CreateSiteRequest.Builder setParent(String value)
       Required. The project and location to create the site in.
       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

      public CreateSiteRequest.Builder clearParent()
       Required. The project and location to create the site in.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateSiteRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The project and location to create the site in.
       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.
    • getSiteId

      public String getSiteId()
       Optional. ID used to uniquely identify the Site within its parent scope.
       This field should contain at most 63 characters and must start with
       lowercase characters.
       Only lowercase characters, numbers and `-` are accepted.
       The `-` character cannot be the first or the last one.
       A system generated ID will be used if the field is not set.
      
       The site.name field in the request will be ignored.
       
      string site_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSiteId in interface CreateSiteRequestOrBuilder
      Returns:
      The siteId.
    • getSiteIdBytes

      public com.google.protobuf.ByteString getSiteIdBytes()
       Optional. ID used to uniquely identify the Site within its parent scope.
       This field should contain at most 63 characters and must start with
       lowercase characters.
       Only lowercase characters, numbers and `-` are accepted.
       The `-` character cannot be the first or the last one.
       A system generated ID will be used if the field is not set.
      
       The site.name field in the request will be ignored.
       
      string site_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSiteIdBytes in interface CreateSiteRequestOrBuilder
      Returns:
      The bytes for siteId.
    • setSiteId

      public CreateSiteRequest.Builder setSiteId(String value)
       Optional. ID used to uniquely identify the Site within its parent scope.
       This field should contain at most 63 characters and must start with
       lowercase characters.
       Only lowercase characters, numbers and `-` are accepted.
       The `-` character cannot be the first or the last one.
       A system generated ID will be used if the field is not set.
      
       The site.name field in the request will be ignored.
       
      string site_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The siteId to set.
      Returns:
      This builder for chaining.
    • clearSiteId

      public CreateSiteRequest.Builder clearSiteId()
       Optional. ID used to uniquely identify the Site within its parent scope.
       This field should contain at most 63 characters and must start with
       lowercase characters.
       Only lowercase characters, numbers and `-` are accepted.
       The `-` character cannot be the first or the last one.
       A system generated ID will be used if the field is not set.
      
       The site.name field in the request will be ignored.
       
      string site_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setSiteIdBytes

      public CreateSiteRequest.Builder setSiteIdBytes(com.google.protobuf.ByteString value)
       Optional. ID used to uniquely identify the Site within its parent scope.
       This field should contain at most 63 characters and must start with
       lowercase characters.
       Only lowercase characters, numbers and `-` are accepted.
       The `-` character cannot be the first or the last one.
       A system generated ID will be used if the field is not set.
      
       The site.name field in the request will be ignored.
       
      string site_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for siteId to set.
      Returns:
      This builder for chaining.
    • hasSite

      public boolean hasSite()
       Required. The site to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSite in interface CreateSiteRequestOrBuilder
      Returns:
      Whether the site field is set.
    • getSite

      public Site getSite()
       Required. The site to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSite in interface CreateSiteRequestOrBuilder
      Returns:
      The site.
    • setSite

      public CreateSiteRequest.Builder setSite(Site value)
       Required. The site to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED];
    • setSite

      public CreateSiteRequest.Builder setSite(Site.Builder builderForValue)
       Required. The site to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeSite

      public CreateSiteRequest.Builder mergeSite(Site value)
       Required. The site to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearSite

      public CreateSiteRequest.Builder clearSite()
       Required. The site to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED];
    • getSiteBuilder

      public Site.Builder getSiteBuilder()
       Required. The site to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED];
    • getSiteOrBuilder

      public SiteOrBuilder getSiteOrBuilder()
       Required. The site to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSiteOrBuilder in interface CreateSiteRequestOrBuilder
    • getRequestId

      public String getRequestId()
       Optional. An optional unique identifier for this request. See
       [AIP-155](https://google.aip.dev/155).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestId in interface CreateSiteRequestOrBuilder
      Returns:
      The requestId.
    • getRequestIdBytes

      public com.google.protobuf.ByteString getRequestIdBytes()
       Optional. An optional unique identifier for this request. See
       [AIP-155](https://google.aip.dev/155).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestIdBytes in interface CreateSiteRequestOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

      public CreateSiteRequest.Builder setRequestId(String value)
       Optional. An optional unique identifier for this request. See
       [AIP-155](https://google.aip.dev/155).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The requestId to set.
      Returns:
      This builder for chaining.
    • clearRequestId

      public CreateSiteRequest.Builder clearRequestId()
       Optional. An optional unique identifier for this request. See
       [AIP-155](https://google.aip.dev/155).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setRequestIdBytes

      public CreateSiteRequest.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
       Optional. An optional unique identifier for this request. See
       [AIP-155](https://google.aip.dev/155).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for requestId to set.
      Returns:
      This builder for chaining.