Class UpdateApiSpecRequest.Builder

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

public static final class UpdateApiSpecRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpdateApiSpecRequest.Builder> implements UpdateApiSpecRequestOrBuilder
 Request message for UpdateApiSpec.
 
Protobuf type google.cloud.apigeeregistry.v1.UpdateApiSpecRequest
  • 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<UpdateApiSpecRequest.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<UpdateApiSpecRequest.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<UpdateApiSpecRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public UpdateApiSpecRequest.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<UpdateApiSpecRequest.Builder>
      Throws:
      IOException
    • hasApiSpec

      public boolean hasApiSpec()
       Required. The spec to update.
      
       The `name` field is used to identify the spec to update.
       Format: `projects/*/locations/*/apis/*/versions/*/specs/*`
       
      .google.cloud.apigeeregistry.v1.ApiSpec api_spec = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasApiSpec in interface UpdateApiSpecRequestOrBuilder
      Returns:
      Whether the apiSpec field is set.
    • getApiSpec

      public ApiSpec getApiSpec()
       Required. The spec to update.
      
       The `name` field is used to identify the spec to update.
       Format: `projects/*/locations/*/apis/*/versions/*/specs/*`
       
      .google.cloud.apigeeregistry.v1.ApiSpec api_spec = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getApiSpec in interface UpdateApiSpecRequestOrBuilder
      Returns:
      The apiSpec.
    • setApiSpec

      public UpdateApiSpecRequest.Builder setApiSpec(ApiSpec value)
       Required. The spec to update.
      
       The `name` field is used to identify the spec to update.
       Format: `projects/*/locations/*/apis/*/versions/*/specs/*`
       
      .google.cloud.apigeeregistry.v1.ApiSpec api_spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • setApiSpec

      public UpdateApiSpecRequest.Builder setApiSpec(ApiSpec.Builder builderForValue)
       Required. The spec to update.
      
       The `name` field is used to identify the spec to update.
       Format: `projects/*/locations/*/apis/*/versions/*/specs/*`
       
      .google.cloud.apigeeregistry.v1.ApiSpec api_spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeApiSpec

      public UpdateApiSpecRequest.Builder mergeApiSpec(ApiSpec value)
       Required. The spec to update.
      
       The `name` field is used to identify the spec to update.
       Format: `projects/*/locations/*/apis/*/versions/*/specs/*`
       
      .google.cloud.apigeeregistry.v1.ApiSpec api_spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearApiSpec

      public UpdateApiSpecRequest.Builder clearApiSpec()
       Required. The spec to update.
      
       The `name` field is used to identify the spec to update.
       Format: `projects/*/locations/*/apis/*/versions/*/specs/*`
       
      .google.cloud.apigeeregistry.v1.ApiSpec api_spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • getApiSpecBuilder

      public ApiSpec.Builder getApiSpecBuilder()
       Required. The spec to update.
      
       The `name` field is used to identify the spec to update.
       Format: `projects/*/locations/*/apis/*/versions/*/specs/*`
       
      .google.cloud.apigeeregistry.v1.ApiSpec api_spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • getApiSpecOrBuilder

      public ApiSpecOrBuilder getApiSpecOrBuilder()
       Required. The spec to update.
      
       The `name` field is used to identify the spec to update.
       Format: `projects/*/locations/*/apis/*/versions/*/specs/*`
       
      .google.cloud.apigeeregistry.v1.ApiSpec api_spec = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getApiSpecOrBuilder in interface UpdateApiSpecRequestOrBuilder
    • 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 UpdateApiSpecRequestOrBuilder
      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 UpdateApiSpecRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateApiSpecRequest.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 UpdateApiSpecRequest.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 UpdateApiSpecRequest.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 UpdateApiSpecRequest.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 UpdateApiSpecRequestOrBuilder
    • getAllowMissing

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

      public UpdateApiSpecRequest.Builder setAllowMissing(boolean value)
       If set to true, and the spec is not found, a new spec 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 UpdateApiSpecRequest.Builder clearAllowMissing()
       If set to true, and the spec is not found, a new spec will be created.
       In this situation, `update_mask` is ignored.
       
      bool allow_missing = 3;
      Returns:
      This builder for chaining.