Class UpdateApiSpecRequest.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateApiSpecRequest.Builder>
      • clear

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public UpdateApiSpecRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateApiSpecRequest.Builder>
      • setField

        public UpdateApiSpecRequest.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateApiSpecRequest.Builder>
      • clearField

        public UpdateApiSpecRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateApiSpecRequest.Builder>
      • clearOneof

        public UpdateApiSpecRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateApiSpecRequest.Builder>
      • setRepeatedField

        public UpdateApiSpecRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateApiSpecRequest.Builder>
      • addRepeatedField

        public UpdateApiSpecRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateApiSpecRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setUnknownFields

        public final UpdateApiSpecRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateApiSpecRequest.Builder>
      • mergeUnknownFields

        public final UpdateApiSpecRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateApiSpecRequest.Builder>