Class UpdateApiRequest.Builder

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

public static final class UpdateApiRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpdateApiRequest.Builder> implements UpdateApiRequestOrBuilder
 Request message for UpdateApi.
 
Protobuf type google.cloud.apigeeregistry.v1.UpdateApiRequest
  • 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<UpdateApiRequest.Builder>
    • clear

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

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

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

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

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

      public UpdateApiRequest.Builder mergeFrom(UpdateApiRequest other)
    • isInitialized

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

      public UpdateApiRequest.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<UpdateApiRequest.Builder>
      Throws:
      IOException
    • hasApi

      public boolean hasApi()
       Required. The API to update.
      
       The `name` field is used to identify the API to update.
       Format: `projects/*/locations/*/apis/*`
       
      .google.cloud.apigeeregistry.v1.Api api = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasApi in interface UpdateApiRequestOrBuilder
      Returns:
      Whether the api field is set.
    • getApi

      public Api getApi()
       Required. The API to update.
      
       The `name` field is used to identify the API to update.
       Format: `projects/*/locations/*/apis/*`
       
      .google.cloud.apigeeregistry.v1.Api api = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getApi in interface UpdateApiRequestOrBuilder
      Returns:
      The api.
    • setApi

      public UpdateApiRequest.Builder setApi(Api value)
       Required. The API to update.
      
       The `name` field is used to identify the API to update.
       Format: `projects/*/locations/*/apis/*`
       
      .google.cloud.apigeeregistry.v1.Api api = 1 [(.google.api.field_behavior) = REQUIRED];
    • setApi

      public UpdateApiRequest.Builder setApi(Api.Builder builderForValue)
       Required. The API to update.
      
       The `name` field is used to identify the API to update.
       Format: `projects/*/locations/*/apis/*`
       
      .google.cloud.apigeeregistry.v1.Api api = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeApi

      public UpdateApiRequest.Builder mergeApi(Api value)
       Required. The API to update.
      
       The `name` field is used to identify the API to update.
       Format: `projects/*/locations/*/apis/*`
       
      .google.cloud.apigeeregistry.v1.Api api = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearApi

      public UpdateApiRequest.Builder clearApi()
       Required. The API to update.
      
       The `name` field is used to identify the API to update.
       Format: `projects/*/locations/*/apis/*`
       
      .google.cloud.apigeeregistry.v1.Api api = 1 [(.google.api.field_behavior) = REQUIRED];
    • getApiBuilder

      public Api.Builder getApiBuilder()
       Required. The API to update.
      
       The `name` field is used to identify the API to update.
       Format: `projects/*/locations/*/apis/*`
       
      .google.cloud.apigeeregistry.v1.Api api = 1 [(.google.api.field_behavior) = REQUIRED];
    • getApiOrBuilder

      public ApiOrBuilder getApiOrBuilder()
       Required. The API to update.
      
       The `name` field is used to identify the API to update.
       Format: `projects/*/locations/*/apis/*`
       
      .google.cloud.apigeeregistry.v1.Api api = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getApiOrBuilder in interface UpdateApiRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       The list of fields to be updated. If omitted, all fields are updated that
       are set in the request message (fields set to default values are ignored).
       If an asterisk "*" is specified, all fields are updated, including fields
       that are unspecified/default in the request.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      hasUpdateMask in interface UpdateApiRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       The list of fields to be updated. If omitted, all fields are updated that
       are set in the request message (fields set to default values are ignored).
       If an asterisk "*" is specified, all fields are updated, including fields
       that are unspecified/default in the request.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      getUpdateMask in interface UpdateApiRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateApiRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       The list of fields to be updated. If omitted, all fields are updated that
       are set in the request message (fields set to default values are ignored).
       If an asterisk "*" is specified, all fields are updated, including fields
       that are unspecified/default in the request.
       
      .google.protobuf.FieldMask update_mask = 2;
    • setUpdateMask

      public UpdateApiRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       The list of fields to be updated. If omitted, all fields are updated that
       are set in the request message (fields set to default values are ignored).
       If an asterisk "*" is specified, all fields are updated, including fields
       that are unspecified/default in the request.
       
      .google.protobuf.FieldMask update_mask = 2;
    • mergeUpdateMask

      public UpdateApiRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       The list of fields to be updated. If omitted, all fields are updated that
       are set in the request message (fields set to default values are ignored).
       If an asterisk "*" is specified, all fields are updated, including fields
       that are unspecified/default in the request.
       
      .google.protobuf.FieldMask update_mask = 2;
    • clearUpdateMask

      public UpdateApiRequest.Builder clearUpdateMask()
       The list of fields to be updated. If omitted, all fields are updated that
       are set in the request message (fields set to default values are ignored).
       If an asterisk "*" is specified, all fields are updated, including fields
       that are unspecified/default in the request.
       
      .google.protobuf.FieldMask update_mask = 2;
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       The list of fields to be updated. If omitted, all fields are updated that
       are set in the request message (fields set to default values are ignored).
       If an asterisk "*" is specified, all fields are updated, including fields
       that are unspecified/default in the request.
       
      .google.protobuf.FieldMask update_mask = 2;
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       The list of fields to be updated. If omitted, all fields are updated that
       are set in the request message (fields set to default values are ignored).
       If an asterisk "*" is specified, all fields are updated, including fields
       that are unspecified/default in the request.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateApiRequestOrBuilder
    • getAllowMissing

      public boolean getAllowMissing()
       If set to true, and the API is not found, a new API will be created.
       In this situation, `update_mask` is ignored.
       
      bool allow_missing = 3;
      Specified by:
      getAllowMissing in interface UpdateApiRequestOrBuilder
      Returns:
      The allowMissing.
    • setAllowMissing

      public UpdateApiRequest.Builder setAllowMissing(boolean value)
       If set to true, and the API is not found, a new API will be created.
       In this situation, `update_mask` is ignored.
       
      bool allow_missing = 3;
      Parameters:
      value - The allowMissing to set.
      Returns:
      This builder for chaining.
    • clearAllowMissing

      public UpdateApiRequest.Builder clearAllowMissing()
       If set to true, and the API is not found, a new API will be created.
       In this situation, `update_mask` is ignored.
       
      bool allow_missing = 3;
      Returns:
      This builder for chaining.