Class CreateAttributeRequest.Builder

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

public static final class CreateAttributeRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateAttributeRequest.Builder> implements CreateAttributeRequestOrBuilder
 The [CreateAttribute][google.cloud.apihub.v1.ApiHub.CreateAttribute] method's
 request.
 
Protobuf type google.cloud.apihub.v1.CreateAttributeRequest
  • 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<CreateAttributeRequest.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<CreateAttributeRequest.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<CreateAttributeRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getParent()
       Required. The parent resource for Attribute.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateAttributeRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

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

      public CreateAttributeRequest.Builder setParent(String value)
       Required. The parent resource for Attribute.
       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 CreateAttributeRequest.Builder clearParent()
       Required. The parent resource for Attribute.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateAttributeRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource for Attribute.
       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.
    • getAttributeId

      public String getAttributeId()
       Optional. The ID to use for the attribute, which will become the final
       component of the attribute's resource name. This field is optional.
      
       * If provided, the same will be used. The service will throw an error if
       the specified id is already used by another attribute resource in the API
       hub.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, and valid characters
       are /[a-z][A-Z][0-9]-_/.
       
      string attribute_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributeId in interface CreateAttributeRequestOrBuilder
      Returns:
      The attributeId.
    • getAttributeIdBytes

      public com.google.protobuf.ByteString getAttributeIdBytes()
       Optional. The ID to use for the attribute, which will become the final
       component of the attribute's resource name. This field is optional.
      
       * If provided, the same will be used. The service will throw an error if
       the specified id is already used by another attribute resource in the API
       hub.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, and valid characters
       are /[a-z][A-Z][0-9]-_/.
       
      string attribute_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributeIdBytes in interface CreateAttributeRequestOrBuilder
      Returns:
      The bytes for attributeId.
    • setAttributeId

      public CreateAttributeRequest.Builder setAttributeId(String value)
       Optional. The ID to use for the attribute, which will become the final
       component of the attribute's resource name. This field is optional.
      
       * If provided, the same will be used. The service will throw an error if
       the specified id is already used by another attribute resource in the API
       hub.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, and valid characters
       are /[a-z][A-Z][0-9]-_/.
       
      string attribute_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The attributeId to set.
      Returns:
      This builder for chaining.
    • clearAttributeId

      public CreateAttributeRequest.Builder clearAttributeId()
       Optional. The ID to use for the attribute, which will become the final
       component of the attribute's resource name. This field is optional.
      
       * If provided, the same will be used. The service will throw an error if
       the specified id is already used by another attribute resource in the API
       hub.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, and valid characters
       are /[a-z][A-Z][0-9]-_/.
       
      string attribute_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setAttributeIdBytes

      public CreateAttributeRequest.Builder setAttributeIdBytes(com.google.protobuf.ByteString value)
       Optional. The ID to use for the attribute, which will become the final
       component of the attribute's resource name. This field is optional.
      
       * If provided, the same will be used. The service will throw an error if
       the specified id is already used by another attribute resource in the API
       hub.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, and valid characters
       are /[a-z][A-Z][0-9]-_/.
       
      string attribute_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for attributeId to set.
      Returns:
      This builder for chaining.
    • hasAttribute

      public boolean hasAttribute()
       Required. The attribute to create.
       
      .google.cloud.apihub.v1.Attribute attribute = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAttribute in interface CreateAttributeRequestOrBuilder
      Returns:
      Whether the attribute field is set.
    • getAttribute

      public Attribute getAttribute()
       Required. The attribute to create.
       
      .google.cloud.apihub.v1.Attribute attribute = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAttribute in interface CreateAttributeRequestOrBuilder
      Returns:
      The attribute.
    • setAttribute

      public CreateAttributeRequest.Builder setAttribute(Attribute value)
       Required. The attribute to create.
       
      .google.cloud.apihub.v1.Attribute attribute = 3 [(.google.api.field_behavior) = REQUIRED];
    • setAttribute

      public CreateAttributeRequest.Builder setAttribute(Attribute.Builder builderForValue)
       Required. The attribute to create.
       
      .google.cloud.apihub.v1.Attribute attribute = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeAttribute

      public CreateAttributeRequest.Builder mergeAttribute(Attribute value)
       Required. The attribute to create.
       
      .google.cloud.apihub.v1.Attribute attribute = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearAttribute

      public CreateAttributeRequest.Builder clearAttribute()
       Required. The attribute to create.
       
      .google.cloud.apihub.v1.Attribute attribute = 3 [(.google.api.field_behavior) = REQUIRED];
    • getAttributeBuilder

      public Attribute.Builder getAttributeBuilder()
       Required. The attribute to create.
       
      .google.cloud.apihub.v1.Attribute attribute = 3 [(.google.api.field_behavior) = REQUIRED];
    • getAttributeOrBuilder

      public AttributeOrBuilder getAttributeOrBuilder()
       Required. The attribute to create.
       
      .google.cloud.apihub.v1.Attribute attribute = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAttributeOrBuilder in interface CreateAttributeRequestOrBuilder