Class UpdateAttributeRequest.Builder

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

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

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

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

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

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

      public UpdateAttributeRequest.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<UpdateAttributeRequest.Builder>
      Throws:
      IOException
    • hasAttribute

      public boolean hasAttribute()
       Required. The attribute to update.
      
       The attribute's `name` field is used to identify the attribute to update.
       Format:
       `projects/{project}/locations/{location}/attributes/{attribute}`
       
      .google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAttribute in interface UpdateAttributeRequestOrBuilder
      Returns:
      Whether the attribute field is set.
    • getAttribute

      public Attribute getAttribute()
       Required. The attribute to update.
      
       The attribute's `name` field is used to identify the attribute to update.
       Format:
       `projects/{project}/locations/{location}/attributes/{attribute}`
       
      .google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAttribute in interface UpdateAttributeRequestOrBuilder
      Returns:
      The attribute.
    • setAttribute

      public UpdateAttributeRequest.Builder setAttribute(Attribute value)
       Required. The attribute to update.
      
       The attribute's `name` field is used to identify the attribute to update.
       Format:
       `projects/{project}/locations/{location}/attributes/{attribute}`
       
      .google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED];
    • setAttribute

      public UpdateAttributeRequest.Builder setAttribute(Attribute.Builder builderForValue)
       Required. The attribute to update.
      
       The attribute's `name` field is used to identify the attribute to update.
       Format:
       `projects/{project}/locations/{location}/attributes/{attribute}`
       
      .google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeAttribute

      public UpdateAttributeRequest.Builder mergeAttribute(Attribute value)
       Required. The attribute to update.
      
       The attribute's `name` field is used to identify the attribute to update.
       Format:
       `projects/{project}/locations/{location}/attributes/{attribute}`
       
      .google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearAttribute

      public UpdateAttributeRequest.Builder clearAttribute()
       Required. The attribute to update.
      
       The attribute's `name` field is used to identify the attribute to update.
       Format:
       `projects/{project}/locations/{location}/attributes/{attribute}`
       
      .google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED];
    • getAttributeBuilder

      public Attribute.Builder getAttributeBuilder()
       Required. The attribute to update.
      
       The attribute's `name` field is used to identify the attribute to update.
       Format:
       `projects/{project}/locations/{location}/attributes/{attribute}`
       
      .google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED];
    • getAttributeOrBuilder

      public AttributeOrBuilder getAttributeOrBuilder()
       Required. The attribute to update.
      
       The attribute's `name` field is used to identify the attribute to update.
       Format:
       `projects/{project}/locations/{location}/attributes/{attribute}`
       
      .google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAttributeOrBuilder in interface UpdateAttributeRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       Required. The list of fields to update.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasUpdateMask in interface UpdateAttributeRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Required. The list of fields to update.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUpdateMask in interface UpdateAttributeRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateAttributeRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Required. The list of fields to update.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
    • setUpdateMask

      public UpdateAttributeRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Required. The list of fields to update.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeUpdateMask

      public UpdateAttributeRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Required. The list of fields to update.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearUpdateMask

      public UpdateAttributeRequest.Builder clearUpdateMask()
       Required. The list of fields to update.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Required. The list of fields to update.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Required. The list of fields to update.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateAttributeRequestOrBuilder